Token导航 LogoToken导航

Agent Skill · 研究检索

code-documenter(代码记录器)

code-documenter 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

code-documenter 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,042。

总安装 374周安装 15GitHub Stars 83下载 121核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-documenter(代码记录器)
来源仓库:https://github.com/robertguss/claude-code-toolkit
仓库路径:skills/code-documenter
安装命令:
npx skills add https://github.com/robertguss/claude-code-toolkit --skill code-documenter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/robertguss/claude-code-toolkit --skill code-documenter

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

code-documenter 用于查找、检索和筛选相关信息。适合根据关键词、任务场景或来源线索快速定位候选结果。可通过 npx skills add 命令从 GitHub 仓库安装使用。使用前需确认权限边界,避免触发不必要的联网或文件读写操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/code-documenter

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/robertguss/claude-code-toolkit --skill code-do…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-documenter 怎么安装?

在终端执行 npx skills add https://github.com/robertguss/claude-code-toolkit --skill code-documenter。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-documenter 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

code-documenter 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

code-documenter 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

code-documenter 用的人多吗?

公开数据是累计安装 374 次,近一周安装 15 次,下载 121 次,GitHub 83 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

code-documenter 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
code-documenter

代码记录器 · 本页

37483接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Code Documenter Skill

An intelligent documentation system that analyzes codebases and generates thorough, comprehensive documentation tailored to your project type and audience needs.

Core Philosophy

Documentation serves readers, not authors. Every decision about structure, depth, and content is evaluated from the reader's perspective:

  • Will this help them understand?
  • Will this help them succeed?
  • Will this answer their questions?
  • Does this earn its place?

Comprehensive without overwhelm. Thorough coverage of what matters, ruthless cutting of what doesn't. The goal is complete, accurate, useful documentation—not exhaustive documentation of every line of code.

Documentation as code artifact. Docs should be versioned, tested, and maintained with the same rigor as code. They're not afterthoughts; they're essential.

When to Use This Skill

Primary use cases:

  • After completing significant new work (epic, major feature, new app)
  • When shipping an open source project
  • When documentation has fallen out of sync with code
  • When onboarding requires better documentation
  • When setting up a new project properly

Not for:

  • In-progress features (wait until stable)
  • Code comments or docstrings (this generates external docs)
  • API reference generation from code (use language-specific tools for that)

Session Flow

Mode Selection

The skill operates in two modes:

ModeWhen to UseBehavior
Quick ModeIncremental updates after new featuresAutonomous, fast, focused on what changed
Comprehensive ModeNew projects, major overhauls, first-time setupCollaborative, thorough, quality gates throughout

The skill will ask: "Quick update or comprehensive documentation?"

Phase 1: Multi-Agent Project Analysis

The skill deploys specialized analysis agents to understand your project:

Analysis Phase:
├─ Agent 1: Project Structure
│  └─ Scanning file tree, identifying project type, tech stack
├─ Agent 2: Code Surface Analysis
│  └─ Finding APIs, components, commands, exports
├─ Agent 3: Dependency Analysis
│  └─ Reviewing packages, frameworks, key dependencies
├─ Agent 4: Git History Analysis
│  └─ Analyzing commits since last doc update
├─ Agent 5: Existing Documentation Review
│  └─ Reading current docs, assessing state
└─ Synthesis: Generating documentation plan...

Quick Mode: Focused analysis on what changed since last update Comprehensive Mode: Full analysis of entire project

Each agent reports findings in structured format. You see everything happening.

Phase 2: Documentation State Assessment

The skill compares code state vs. documentation state:

If manifest exists (.doc-state.json):

  • Loads documentation state from last run
  • Compares current code vs. last documented state
  • Identifies what's changed (added/modified/removed)
  • Shows you the documentation debt

If no manifest:

  • First time documenting this project
  • Will create fresh manifest after completion

Key metrics shown:

  • Health Score: Current documentation health (0-100)
  • Coverage: What % of public surface is documented
  • Freshness: How current are docs vs. code
  • Debt: What needs attention (prioritized)

Phase 3: Audience & Scope Discovery

The skill asks:

  1. "Who needs these docs?"

- Developers only - Users only - Both developers and users

  1. "What depth of documentation?"

- Standard: Right-sized coverage (4,000-7,000 words) - Deep: Comprehensive with internals (8,000-12,000 words)

Quick Mode: Uses stored preferences from manifest Comprehensive Mode: Asks explicitly, shows examples

Phase 4: Documentation Boundaries

The skill proposes what should be documented:

Based on my analysis of your Express + PostgreSQL API:

PUBLIC SURFACE (Always Document)
├─ 12 API endpoints in /routes
├─ Database schema (3 tables)
├─ 14 environment variables
└─ Authentication flow

INTERNAL IMPLEMENTATION (Recommended for Deep)
├─ 6 middleware functions
├─ Error handling patterns
└─ Database migration strategy

INFRASTRUCTURE (Essential for all levels)
├─ Docker setup
├─ CI/CD pipeline
└─ Deployment process

EXCLUDED (Recommend skip)
├─ Test files (obvious from names)
├─ Build scripts (standard tooling)
└─ Internal helpers (<10 lines each)

Adjust these boundaries? [approve/modify]

You approve or adjust before documentation generation begins.

Phase 5: Documentation Plan Presentation

The skill presents a complete plan:

DOCUMENTATION PLAN

Structure:
└─ /docs
   ├─ developers/
   │  ├─ api.md (API endpoint reference)
   │  ├─ architecture.md (System design + diagrams)
   │  ├─ contributing.md (How to contribute)
   │  ├─ deployment.md (Deploy & operate)
   │  ├─ troubleshooting.md (Common issues)
   │  ├─ examples/ (12 runnable examples)
   │  └─ adr/ (4 architecture decisions)
   ├─ users/
   │  ├─ getting-started.md (Quick start guide)
   │  ├─ features.md (Feature overview)
   │  ├─ troubleshooting.md (User-facing issues)
   │  └─ examples/ (5 user examples)
   ├─ CHANGELOG.md (Documentation change log)
   └─ documentation-map.md (Navigation guide)

Files to update:
- README.md (complete rewrite, progressive disclosure)
- docs/developers/api.md (2 new endpoints, 1 modified)
- docs/CHANGELOG.md (new entry)

Files to create:
- docs/adr/004-caching-strategy.md (new decision)
- docs/developers/examples/pagination.js (new example)

Files to remove:
- docs/developers/legacy-auth.md (endpoint removed)

Estimated scope: ~5,200 words total
Target health score: 92/100

Proceed? [yes/adjust scope/abort]

Comprehensive Mode: Review and approve before generation Quick Mode: Brief preview, option to review or proceed

Phase 6: Documentation Generation

Comprehensive Mode (with Quality Gates)

The skill works through documentation in phases, pausing for review:

Gate 1: Core Documentation (README + Getting Started)

  • Generates README with progressive disclosure
  • Creates getting started guides
  • Quality Check: Does this hook and onboard effectively?
  • You review and approve or request changes

Gate 2: Reference Documentation (API/Commands/Components)

  • Generates reference documentation
  • Creates working examples
  • Quality Check: Is everything covered? Examples clear?
  • You review and approve or request changes

Gate 3: Architecture & Decisions

  • Documents architecture with Mermaid diagrams
  • Creates ADRs for key decisions
  • Quality Check: Does this explain the WHY?
  • You review and approve or request changes

Gate 4: Supporting Documentation

  • Generates troubleshooting guides
  • Creates contributing guidelines
  • Documentation map for navigation
  • Quality Check: Complete and helpful?
  • You review and approve or request changes

Gate 5: Polish & Verification

  • Generates test scripts for examples
  • Creates link validation script
  • Runs accessibility check
  • Final health score calculation
  • Final review
Quick Mode (Autonomous)

The skill executes the plan efficiently:

  • Updates only changed sections
  • Preserves manual edits in unchanged areas
  • Generates new content as needed
  • Updates manifest and changelog
  • Reports final results

Phase 7: Session Completion

The skill produces:

Files Created/Updated:

  • All documentation files as planned
  • .doc-state.json (updated manifest)
  • docs/CHANGELOG.md (new entry)
  • Test and validation scripts

Documentation Health Report:

DOCUMENTATION HEALTH REPORT

Overall Health Score: 92/100 (↑ from 78)

Component Scores:
├─ Coverage Health: 95/100 (↑ from 82)
│  └─ 97% of public surface documented
├─ Freshness Health: 98/100 (↑ from 65)
│  └─ All docs current as of commit a3f2b1c
├─ Quality Health: 88/100 (↑ from 81)
│  └─ 12 examples, 4 ADRs, troubleshooting complete
└─ Consistency Health: 90/100 (↑ from 84)
   └─ Tone consistent, terminology standardized

Debt Status:
├─ Critical: 0 items (was 2)
├─ Important: 1 item (was 4)
└─ Minor: 3 items (unchanged)

Next session recommendations:
- Document the new webhook system (flagged as potential)
- Add performance troubleshooting section
- Consider hosting docs on GitHub Pages

Session Notes:

  • Decisions made
  • Scope adjustments
  • What was included/excluded and why
  • Next steps

File Outputs

Core Documentation Structure

Developer-only projects:

/docs
├── CHANGELOG.md
├── api.md / commands.md / components.md
├── architecture.md
├── contributing.md
├── deployment.md
├── troubleshooting.md
├── examples/
│   ├── example-1.js
│   ├── example-2.js
│   └── test-examples.sh
├── adr/
│   ├── 001-initial-decisions.md
│   ├── 002-database-choice.md
│   └── ...
└── scripts/
    ├── validate-links.sh
    └── accessibility-check.md

Multi-audience projects:

/docs
├── CHANGELOG.md
├── documentation-map.md
├── users/
│   ├── getting-started.md
│   ├── features.md
│   ├── troubleshooting.md
│   └── examples/
│       ├── basic-usage.js
│       └── advanced-usage.js
├── developers/
│   ├── api.md / architecture.md
│   ├── contributing.md
│   ├── deployment.md
│   ├── troubleshooting.md
│   ├── examples/
│   │   ├── integration.js
│   │   ├── extending.js
│   │   └── test-examples.sh
│   └── adr/
│       ├── 001-framework-choice.md
│       └── ...
└── scripts/
    ├── validate-links.sh
    └── accessibility-check.md

Documentation Manifest (.doc-state.json)

Tracks complete documentation state:

{
  "version": "1.0",
  "project": {
    "name": "my-api",
    "type": "express-api",
    "lastScanned": "2025-01-10T14:30:00Z",
    "gitCommit": "a3f2b1c"
  },
  "preferences": {
    "audiences": ["developers", "users"],
    "depthLevel": "standard",
    "tone": "professional"
  },
  "healthScore": {
    "overall": 92,
    "components": {
      "coverage": 95,
      "freshness": 98,
      "quality": 88,
      "consistency": 90
    },
    "trend": [78, 85, 92]
  },
  "coverage": {
    "endpoints": { "total": 12, "documented": 12, "changed": 0 },
    "components": { "total": 8, "documented": 8, "changed": 0 },
    "schemas": { "total": 3, "documented": 3, "changed": 0 }
  },
  "debt": {
    "critical": [],
    "important": [
      {
        "item": "Document webhook system",
        "effort": "medium",
        "status": "to-fix"
      }
    ],
    "minor": [
      {
        "item": "Add performance troubleshooting",
        "effort": "low",
        "status": "accepted"
      }
    ]
  },
  "documentationMap": {
    "README.md": {
      "lastUpdated": "2025-01-10T14:30:00Z",
      "covers": ["overview", "quickstart"],
      "wordCount": 850
    },
    "docs/developers/api.md": {
      "lastUpdated": "2025-01-10T14:30:00Z",
      "covers": ["endpoints"],
      "wordCount": 2400
    }
  }
}

Collaboration Behaviors

In Comprehensive Mode

Proactive contributions:

  • "I notice you're using Redis but there's no ADR explaining why—should I document that decision?"
  • "Your error handling is sophisticated. This deserves explanation in architecture docs."
  • "The authentication flow is non-standard. Users will have questions—let me address them."

Challenge assumptions:

  • "You said 'standard depth' but you have 47 endpoints. That needs Deep documentation."
  • "This 'getting started' guide assumes too much. Your users won't know X."
  • "Three examples aren't enough here. The concept is complex."

Surface insights:

  • "Your git history shows you refactored auth 3 times. That's an ADR waiting to be written."
  • "These three files handle all business logic but aren't documented at all. Gap."
  • "You have inline JSDoc but it contradicts what's in the markdown docs. Consistency issue."

In Quick Mode

Efficient execution:

  • "Updating 3 files based on changes in commit a3f2b1c..."
  • "2 new endpoints detected, adding to api.md..."
  • "Removed documentation for deleted legacy-auth endpoint..."

Flag concerns:

  • "Warning: Manual changes detected in architecture.md, preserving your edits"
  • "Note: Health score dropped from 92 to 85 due to new undocumented features"

Quality Standards

The skill maintains high documentation quality through:

Clarity

  • Concepts explained before they're used
  • Technical terms defined on first use
  • Examples precede or immediately follow concepts
  • Progressive disclosure (simple → complex)

Completeness

  • Every public-facing element documented
  • Edge cases and gotchas addressed
  • Troubleshooting for predictable failures
  • Examples for common use cases

Accuracy

  • All facts verified against code
  • Examples tested and working
  • Links validated
  • No outdated information

Accessibility

  • Diagrams include alt text
  • Links have descriptive text
  • Heading hierarchy is logical
  • Code snippets have language labels

Consistency

  • Terminology used uniformly
  • Tone maintained throughout
  • Formatting standardized
  • Structure predictable

Special Features

Architecture Decision Records (ADRs)

Captures WHY decisions were made:

The skill identifies decision points through:

  • Major dependency additions (git history)
  • Non-standard architectural patterns (code analysis)
  • Framework/library choices
  • Flagged commits with "decision" language
  • Your explicit identification

Each ADR documents:

  • Context (what was the situation?)
  • Decision (what did we decide?)
  • Rationale (why this choice?)
  • Consequences (trade-offs accepted)
  • Alternatives considered

Living, Tested Examples

Examples are runnable code in /examples:

  • Actually work (not pseudocode)
  • Cover common use cases
  • Include test script to verify they run
  • Referenced from documentation
  • Maintained as code evolves

Troubleshooting Database

Two flavors:

  • User troubleshooting: Common errors, how to fix them
  • Developer troubleshooting: Debugging guides, edge cases, gotchas

The skill seeds initial content in Comprehensive Mode, grows it in Quick Mode as you add real troubleshooting content.

Documentation Map

For large projects, a navigation guide:

  • Different learning paths (beginner/advanced)
  • How docs connect to each other
  • What to read when
  • Visual/textual navigation aid

Mermaid Diagrams

The skill generates code-based diagrams:

  • Architecture diagrams
  • Sequence diagrams
  • Entity-relationship diagrams
  • State diagrams
  • Flowcharts

All version-controllable, all render in GitHub.

Documentation Hosting Integration

Detects if you're using:

  • GitHub Pages
  • ReadTheDocs
  • GitBook
  • MkDocs

Generates appropriate config files and optimizes structure for static site generation.

Reference Documents

Load contextually when needed:

  • references/project-types-guide.md — How to document different project types
  • references/documentation-patterns.md — Common documentation patterns and structures
  • references/quality-standards.md — Detailed quality criteria and examples
  • references/manifest-spec.md — Technical specification for .doc-state.json
  • references/depth-levels-guide.md — Standard vs. Deep explained with examples
  • references/health-score-formula.md — How health score is calculated
  • references/adr-guide.md — Writing effective Architecture Decision Records

Templates

Available in templates/:

  • README-template.md — Progressive disclosure README structure
  • api-docs-template.md — API endpoint documentation
  • component-docs-template.md — Component/module documentation
  • troubleshooting-template.md — Troubleshooting guide structure
  • contributing-template.md — Contributing guidelines
  • documentation-map-template.md — Navigation guide template

Success Criteria

Documentation is complete when:

✓ Health score ≥ 85 ✓ All critical and important debt resolved ✓ Examples run without errors ✓ Links validate successfully ✓ Accessibility check passes ✓ Tone is consistent throughout ✓ You're confident someone could use your project from the docs alone

Key Reminders

  • Reader-first always: Every decision serves the reader
  • Git-aware: Smart incremental updates, not regeneration
  • Transparency: You see all analysis and decisions
  • Preserve quality: Don't overwrite good manual edits
  • Test examples: Generate test scripts for working code
  • Track health: Health score trends over time
  • Prioritize debt: Not all debt is equal
  • Comprehensive without exhaustive: Document what matters

平台分布

Codex

33.49%
按下载量换算41

Claude

28.44%
按下载量换算34

Cursor

19.4%
按下载量换算23

Gemini CLI

10.4%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills