claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Evaluates API surface design, consistency, and exemplar alignment. Use when reviewing public API changes or before releasing a new API surface.
$ npx -y skills add athola/claude-night-market --skill api-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/api-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Evaluates API surface design, consistency, and exemplar alignment. Use when reviewing public API changes or before releasing a new API surface.
name: api-review role: library description: Evaluates API surface design, consistency, and exemplar alignment. Use when reviewing public API changes or before releasing a new API surface. alwaysApply: false category: code-review tags: - api - design - consistency - documentation - versioning tools: [] usage_patterns: - api-design-review - consistency-audit - documentation-governance complexity: intermediate model_hint: standard estimated_tokens: 400 progressive_loading: true dependencies: - imbue:proof-of-work - imbue:review-core - imbue:structured-output modules: - modules/consistency-audit.md - modules/exemplar-research.md - modules/surface-inventory.md
`pensive:code-refinement`)
1. [Usage](#usage) 2. [Required Progress Tracking](#required-progress-tracking) 3. [Workflow](#workflow)
Use this skill to review public API changes, design new surfaces, audit consistency, and validate documentation completeness. Run it before any API release to confirm alignment with project guidelines.
1. `api-review:surface-inventory` 2. `api-review:exemplar-research` 3. `api-review:consistency-audit` 4. `api-review:docs-governance` 5. `api-review:evidence-log` 6. `api-review:findings-verified`
Catalog all public APIs by language. Record stability levels, feature flags, and versioning metadata. Use tools like `rg` to find public symbols (e.g., `pub` in Rust or non-underscored `def` in Python). Confirm the working tree state with `git status` before starting.
Identify at least two high-quality API references for the relevant language, such as pandas, requests, or tokio. Document their patterns for namespacing, pagination, error handling, and structure to serve as a baseline for the audit.
Compare the project's API against the identified exemplar patterns. Analyze naming conventions, parameter ordering, return types, and error semantics. Identify duplication, leaky abstractions, missing feature gates, and documentation gaps.
Validate that documentation includes entry points, quickstarts, and a complete API reference. Verify that changelogs and migration notes are maintained. Check for SemVer compliance, stability promises, and clear deprecation timelines. Confirm that documentation is generated automatically using tools like rustdoc, Sphinx, or OpenAPI.
Record all executed commands and findings. Summarize the final recommendation as Approve, Approve with actions, or Block. Include specific action items with assigned owners and due dates.
Confirm consistent conventions and descriptive names that follow language-specific idioms.
Verify consistent ordering and ensure optional parameters have explicit defaults. Check that type annotations are complete.
Analyze return patterns for consistency. Confirm that error cases are documented and that pagination follows a uniform structure.
Verify that all public APIs include usage examples and that the changelog reflects current changes.
The final report must include a summary of the API surface, a numerical inventory of endpoints and public types, and an alignment analysis against researched exemplars. Document consistency issues and documentation gaps with precise file and line references. Conclude with a clear decision and a timed action plan.
Each issue must follow this structure:
[A1] Title - Location: file.py:42 - Anchor: `verbatim source text at line 42` - Issue: what is wrong | Fix: remediation | Evidence: [E1]
The `Anchor` is the exact source text at `Location`; it is what `citation_verifier.py` re-reads to prove the finding is real.
Use `imbue:proof-of-work` for reproducible command capture and `imbue:structured-output` for formatting findings. Reference `imbue:diff-analysis/modules/risk-assessment-framework` when assessing breaking changes.
Every finding must cite a real location and a verbatim anchor. Write findings to `.review/findings.json` and confirm each citation resolves:
python plugins/imbue/scripts/citation_verifier.py \ --findings .review/findings.json --repo-root .
Drop or label `UNVERIFIED` any finding the verifier fails (exit `1`); only verified findings enter the report. See `Skill(imbue:review-core)` Step 5 and `Skill(imbue:structured-output)` for the schema.
documentation governance checked, and evidence logged.
confirmed by `citation_verifier.py` (exit `0`), or unverified findings were dropped or labeled `UNVERIFIED`.
If the audit command is missing, verify that dependencies are installed and accessible in the system PATH. Check file permissions if access errors occur. Use the `--verbose` flag to inspect execution logs if the tool behaves unexpectedly.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.