Agent skill
api-review-athola-claude-night-market-cd68cbc8
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/api-review-athola-claude-night-market-cd68cbc8
SKILL.md
Table of Contents
- Quick Start
- When to Use
- Required TodoWrite Items
- Workflow
- Step 1: Surface Inventory
- Step 2: Exemplar Research
- Step 3: Consistency Audit
- Step 4: Documentation Governance
- Step 5: Evidence Log
- Progressive Loading
- API Quality Checklist
- Naming
- Parameters
- Return Values
- Documentation
- Output Format
- API Review Report
- Summary
- Surface Inventory
- Exemplar Comparison
- Consistency Issues
- Documentation Gaps
- Recommendations
- Integration Notes
- Exit Criteria
API Review Workflow
Evaluate API surfaces against guidelines and high-quality exemplars.
Quick Start
/api-review
Verification: Run the command with --help flag to verify availability.
When to Use
- Reviewing public API changes
- Designing new API surfaces
- Auditing API consistency
- Validating documentation completeness
- Before API releases
Required TodoWrite Items
api-review:surface-inventoryapi-review:exemplar-researchapi-review:consistency-auditapi-review:docs-governanceapi-review:evidence-log
Workflow
Step 1: Surface Inventory
Module: @modules/surface-inventory.md
Detect and catalog all public APIs by language. Record stability levels, feature flags, and versioning metadata.
Quick commands:
pwd && git status -sb
rg -n "^pub" src # Rust
rg -n "^def [^_]" package # Python
Verification: Run git status to confirm working tree state.
Step 2: Exemplar Research
Module: @modules/exemplar-research.md
Find 2+ high-quality API references per language. Document patterns for namespacing, pagination, error handling, and documentation structure.
Common exemplars: pandas, requests, tokio, net/http, Stripe API
Step 3: Consistency Audit
Module: @modules/consistency-audit.md
Compare project API against exemplar patterns. Check naming, parameters, return types, error semantics, and deprecation handling.
Identify duplication, leaky abstractions, missing feature gates, and documentation gaps.
Step 4: Documentation Governance
validate documentation includes:
- Entry points and quickstarts
- Complete API reference
- Changelogs and migration notes
- Automated generation (rustdoc, Sphinx, typedoc, OpenAPI)
Verify versioning:
- SemVer compliance
- Stability promises
- Deprecation timelines
Step 5: Evidence Log
Dependency: imbue:evidence-logging
Record all executed commands and findings. Summarize recommendation (Approve / Approve with actions / Block) with action items, owners, and dates.
Progressive Loading
Load modules as needed:
- Always load: surface-inventory, consistency-audit
- Load for new designs: exemplar-research
- Load for documentation audits: Include docs-governance checklist
API Quality Checklist
Naming
- Consistent convention, clear descriptive names, follows language idioms
Parameters
- Consistent ordering, optional parameters have defaults, complete type annotations
Return Values
- Consistent patterns, error cases documented, pagination consistent
Documentation
- All public APIs documented with examples, changelog maintained
Output Format
## API Review Report
### Summary
[Assessment of API surface]
### Surface Inventory
- Endpoints/Functions: N
- Public types: N
- Stability: [stable/beta/experimental counts]
### Exemplar Comparison
[Key patterns from exemplars and alignment analysis]
### Consistency Issues
[I1] [Issue title]
- Location: file:line
- Recommendation: [fix]
### Documentation Gaps
[Identified gaps and required additions]
### Recommendations
- Decision: Approve / Approve with actions / Block
- Action items with owners and dates
Verification: Run the command with --help flag to verify availability.
Integration Notes
- Use
imbue:evidence-loggingfor reproducible command capture - Reference
imbue:diff-analysis/modules/risk-assessment-frameworkfor breaking change assessment - Format output using
imbue:structured-outputfor consistent findings
Exit Criteria
- Surface inventory complete with stability metadata
- Exemplars researched with pattern citations
- Consistency issues documented with locations
- Documentation gaps identified
- Action plan with ownership and timeline
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?