用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill natspec命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | natspec |
| description | > Use when this capability is needed. |
Generates NatSpec-style documentation comments for complex implementations in any language. Detects the file's language, adapts the comment syntax, and documents all public/exported declarations.
Read references/natspec-patterns.md for tag rules, format by language,
and examples before starting.
If the argument is a file → process only that file.
If the argument is a directory:
→ Glob for all source files recursively.
→ Ignore: node_modules/, dist/, build/, .git/, config files.
If no argument → ask the user: specific file or entire directory?
Language (by file extension):
| Extension | Language | Comment syntax |
|---|---|---|
.ts, .tsx | TypeScript | /** ... */ (JSDoc) |
.js, .jsx | JavaScript | /** ... */ (JSDoc) |
.sol | Solidity | /// ... (NatSpec native) |
.py | Python | """...""" (docstring) |
.rs | Rust | /// ... (doc comments) |
.go | Go | // ... (GoDoc) |
| Other | Generic | /** ... */ |
Mode (by current coverage):
| Situation | Mode |
|---|---|
| No documentation at all | full — document everything |
| Partial documentation | patch — complete what's missing |
| Fully documented | audit — validate only |
For each file in full or patch mode, spawn a natspec-writer:
Agent(
subagent_type: "natspec-writer",
prompt: "File: [path]. Language: [language]. Mode: [full|patch].
Read the file, generate NatSpec for all public/exported functions,
classes, interfaces, types, events, and errors.
Reference: .claude/skills/natspec/references/natspec-patterns.md"
)
Independent files run in parallel. One agent per file.
After all writers complete, spawn a natspec-validator per file:
Agent(
subagent_type: "natspec-validator",
prompt: "Validate NatSpec completeness in: [path]. Language: [language].
Reference: .claude/skills/natspec/references/natspec-patterns.md"
)
NATSPEC COMPLETE
Files processed: N
✅ src/module/file.ts — 12 declarations documented, 0 issues
✅ contracts/Vault.sol — 8 declarations documented, 0 issues
⚠️ src/lib/api.ts — 5 declarations documented, 2 warnings
└─ Line 47: @returns missing description
└─ Line 89: @param has no description
Total: N functions | N classes | N types documented
Private/internal functions:
→ @dev only — @notice is optional (not ABI/API public).
Inheritance / Override:
→ Override with no added logic: use @inheritdoc.
→ Override with added logic: document normally + mention the override.
Complex types (interfaces, enums, structs):
→ Document the type with @notice.
→ Document each field/member with inline @dev.
Async functions:
→ @returns must describe what the Promise resolves to, not the Promise itself.
@notice and @param/@returns@dev when logic is non-obviousSource: gabrielfst30/super-gabriel-claude-toolkit — distributed by TomeVault.