api-validator
Skill by maximhq
Audits the Bifrost HTTP API by comparing route handlers and middleware auth with the OpenAPI files in docs/openapi. Built for developers who need to find missing routes and documentation drift.
Install api-validator
Built from the published package, never by AI.
git clone --depth 1 https://github.com/maximhq/bifrost /tmp/bifrost && mkdir -p ~/.claude/skills && cp -r /tmp/bifrost/.claude/skills/api-validator ~/.claude/skills/api-validatorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/maximhq/bifrost /tmp/bifrost && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bifrost/.claude/skills/api-validator ~/.gemini/antigravity-cli/skills/api-validatorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
api-validator is an agent skill for auditing the Bifrost HTTP API. It scans route registrations in the controller, handler and integration Go files and traces the middleware wiring to work out the actual authentication behavior. It then compares that inventory with the OpenAPI files in docs/openapi to find missing or stale routes, method and path mismatches, parameter and schema differences, and auth mismatches.
It is run as /api-validator with an optional scope such as management, inference, auth or a path prefix, and an optional --fix flag. The default is audit only. With --fix, the skill presents a plan and edits files only after approval. It is aimed at developers working on the Bifrost codebase who need API docs to match the code.
Written from the project's SKILL.md and checked against it.
What it can do
- Scoped auditAudits all handlers and OpenAPI docs, or only a chosen scope or path prefix.
- Route inventoryBuilds a list of methods, paths, handlers and file locations from controllers and integrations.
- Auth checkDerives actual auth behavior from middleware wiring and compares it with OpenAPI security.
- OpenAPI comparisonFinds missing, stale, method, path and parameter mismatches between code and docs.
- Fix with approvalUpdates OpenAPI or controller files after showing a plan and receiving approval.
- Validation stepBundles the OpenAPI spec to /tmp and runs relevant tests and linters if available.
What you need
- A checkout of the Bifrost repository
- Git
- Python to run bundle.py
Try asking
- /api-validator management to audit /api/* routes against the OpenAPI docs
- /api-validator auth to compare OpenAPI security with middleware auth
- /api-validator inference to find missing or incorrect /v1/* documentation
Good to know
- Audit only by default. Files change only after the user asks for fixes or approves a plan.
- docs/openapi/openapi.json is generated by CI and must not be edited by hand.
- UI catch-all routes are not compared as API docs unless the user asks.
Security check
B- Allowed to use Bash, Edit, Write without limitsIn
SKILL.md
Checked automatically: .claude/skills/api-validator/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepGlobBashEditWriteTaskAskUserQuestionTodoWrite
-
SKILL.md28 KB
Alternatives to api-validator
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
api-validator: common questions
Does it change my files?
No by default. It edits files only when the user asks for fixes or approves a proposed plan.
Which APIs does it check?
It can check management routes under /api/*, inference routes under /v1/*, and provider integration routes, along with their auth behavior.
Where does it read the API docs from?
It reads docs/openapi/openapi.yaml and the path and schema files it references under docs/openapi.
How do I install api-validator?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is api-validator free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is api-validator safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.
What are alternatives to api-validator?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
