← 返回
开发者工具 中文

UA1 Validator Agent

Validate PDFs against PDF/UA-1 using ua1.dev or api.ua1.dev from AI coding agents (OpenClaw, Claude Code, Codex, OpenCode). Use when an agent needs determini...
使用 ua1.dev 或 api.ua1.dev 按 PDF/UA-1 标准验证 PDF,供 AI 编程智能体(OpenClaw、Claude Code、Codex、OpenCode)调用。当智能体需要确定...
hajekt2
开发者工具 clawhub v0.1.0 1 版本 99817.7 Key: 无需
★ 0
Stars
📥 1,095
下载
💾 24
安装
1
版本
#latest

概述

UA1 Validator Agent Skill

Use this skill to run deterministic PDF/UA-1 checks from an agent workflow.

Endpoints

  • Health: GET https://api.ua1.dev/api/health
  • Validate: POST https://api.ua1.dev/api/validate
  • Compact mode: POST https://api.ua1.dev/api/validate?format=compact
  • Metrics: GET https://api.ua1.dev/api/metrics

Required contract

Send multipart form-data with field name file.

  • Accepted: .pdf
  • Typical outcomes:
  • 200 validation response
  • 415 unsupported type
  • 413 file too large
  • 429 rate-limited

Minimal workflow for agents

  1. Run health check once before batch validation.
  2. Validate each PDF using compact mode for deterministic parsing.
  3. If verdict is fail, capture findings and group by rule_id.
  4. Produce remediation plan sorted by rule frequency.
  5. Re-run validation after fixes and compare counts.

Use script

Run:

bash scripts/validate_pdf.sh /absolute/or/relative/path/to/file.pdf

Optional env:

  • UA1_API_BASE (default: https://api.ua1.dev)
  • UA1_FORMAT (compact by default; set full for full payload)

CI gate pattern

Treat non-pass verdict as a failed quality gate.

  • Exit 0 only when verdict is pass
  • Exit 2 when verdict is fail
  • Exit 1 for transport/API errors

Use the script’s exit codes directly in pipelines.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 08:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,814
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,286
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,294