← 返回 Skills 市场
athola

Nm Pensive Api Review

作者 athola · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
67
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install nm-pensive-api-review
功能描述
Evaluate API surface design, consistency, documentation, and exemplar alignment
使用说明 (SKILL.md)

Night Market Skill — ported from claude-night-market/pensive. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

API Review Workflow

Table of Contents

  1. Usage
  2. Required Progress Tracking
  3. Workflow

Usage

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.

Required Progress Tracking

  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

Workflow

Step 1: Surface Inventory

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.

Step 2: Exemplar Research

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.

Step 3: Consistency 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.

Step 4: Documentation Governance

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.

Step 5: Evidence Log

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.

API Quality Checklist

Naming

Confirm consistent conventions and descriptive names that follow language-specific idioms.

Parameters

Verify consistent ordering and ensure optional parameters have explicit defaults. Check that type annotations are complete.

Return Values

Analyze return patterns for consistency. Confirm that error cases are documented and that pagination follows a uniform structure.

Documentation

Verify that all public APIs include usage examples and that the changelog reflects current changes.

Output Format

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.

Technical Integration

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.

Module Reference

  • See modules/surface-inventory.md for API cataloging patterns
  • See modules/exemplar-research.md for researching API standards
  • See modules/consistency-audit.md for cross-API consistency checks

Troubleshooting

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.

安全使用建议
This skill is coherent for performing a repository-based API review: it will run local scanning commands and produce a structured evidence log. Before installing or invoking it, (1) confirm the two required config paths (night-market.pensive:shared and night-market.imbue:proof-of-work) are trustworthy and do not contain or grant access to secrets you don't want exposed; (2) avoid running this on repositories that contain sensitive secrets or credentials because the tool will read source/docs and record command output; (3) run it in a sandboxed environment or a checkout that strips secrets if you have concerns; and (4) ensure the host has the expected CLI tools available (rg, git, cargo, sphinx, tsc, etc.). Autonomous invocation is the platform default and not elevated here, but if you plan to allow the agent to run skills without supervision, review the evidence-capture settings so command outputs aren't exfiltrated outside your environment.
功能分析
Type: OpenClaw Skill Name: nm-pensive-api-review Version: 1.0.0 The skill bundle provides a legitimate workflow for auditing API design, consistency, and documentation. It utilizes standard development tools such as 'rg' (ripgrep), 'git', and language-specific documentation generators (e.g., cargo doc, sphinx-build) to inspect source code. No evidence of malicious intent, data exfiltration, or prompt injection was found across SKILL.md or the supporting modules.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill's name/description (API review, consistency, docs) matches the instructions and included modules, which enumerate ripgrep/git/cargo/sphinx/tsc/etc commands used to catalog and audit a codebase. The declared required config paths (night-market.pensive:shared and night-market.imbue:proof-of-work) are consistent with the skill's need to capture reproducible command output and structured formatting.
Instruction Scope
Instructions direct the agent to scan the repository (rg across src, check docs, run git status, generate docs, etc.) and to record executed commands in an evidence log. This is appropriate for an API audit, but it means the skill will read potentially all files in the working tree and capture command output. The SKILL.md does not instruct sending data to external endpoints beyond referencing internal 'imbue' modules.
Install Mechanism
There is no install spec or code to write to disk: the skill is instruction-only. Low-risk in terms of installation; it relies on host binaries being present (rg, git, cargo, sphinx, go, tsc, npx, yq, etc.) but does not provision or download additional software.
Credentials
The skill requests no environment variables or external credentials, which is proportional. It does declare two required config paths (night-market.pensive:shared and night-market.imbue:proof-of-work). These appear to be internal Night Market/imbue configuration hooks used for command capture and structured output; users should verify that those config entries do not expose unrelated secrets or grant broader access than intended.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system-wide privileges. Autonomous invocation is allowed (platform default) but there is no indication the skill attempts to modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install nm-pensive-api-review
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /nm-pensive-api-review 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the api-review skill, version 1.0.0. - Provides a structured workflow for reviewing public API changes, design consistency, and documentation completeness. - Includes progress tracking steps: surface inventory, exemplar research, consistency audit, docs governance, and evidence logging. - Offers a detailed checklist and reporting template for API quality and alignment verification. - Integrates with other Night Market components and proof-of-work requirements for command auditability.
元数据
Slug nm-pensive-api-review
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Nm Pensive Api Review 是什么?

Evaluate API surface design, consistency, documentation, and exemplar alignment. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 Nm Pensive Api Review?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install nm-pensive-api-review」即可一键安装,无需额外配置。

Nm Pensive Api Review 是免费的吗?

是的,Nm Pensive Api Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Nm Pensive Api Review 支持哪些平台?

Nm Pensive Api Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Nm Pensive Api Review?

由 athola(@athola)开发并维护,当前版本 v1.0.0。

💬 留言讨论