Token导航 LogoToken导航

Agent Skill · 研究检索

docs-codebase(文档代码库)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

docs-codebase 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 30,145。

总安装 2,928周安装 122GitHub Stars 60下载 976核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill docs-codebase

这个 Skill 是做什么的

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

提供面向代码库的技术文档编写模式和现代最佳实践指导。涵盖 docs-as-code、审查节奏、AI 辅助起草等 2026 年标准方法。包含 README、ADR、API 参考等多种文档类型的模板。适用于希望建立可持续文档体系的开发团队。

docs-codebase 属于研究检索类 Skill,可作为该场景下的辅助能力补充。强调生成引擎优化(GEO)以提升 AI 搜索可见性。

来源仓库内路径:skills/docs-codebase

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

docs-codebase 怎么安装?

在终端执行 npx skills add https://github.com/vasilyu1983/ai-agents-public --skill docs-codebase。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

docs-codebase 支持哪些 AI 工具?

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

docs-codebase 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

docs-codebase 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

docs-codebase 用的人多吗?

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

docs-codebase 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
docs-codebase

文档代码库 · 本页

2,92860需要联网MIT有提醒

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

SKILL.md 原文

Technical Documentation

Execution-ready patterns for clear, maintainable technical documentation.

Modern best practices (January 2026): docs-as-code, ownership + review cadence, documentation QA gates (links/style/spelling), AI-assisted drafting + review, OpenAPI 3.2.0 where streaming schemas matter, and GEO (Generative Engine Optimization) for AI search.

Quick Reference

Documentation TypeTemplateWhen to Use
Project READMEreadme-template.mdNew project, onboarding
Architecture Decisionadr-template.mdTechnical decisions
API Referenceapi-docs-template.mdREST/GraphQL APIs
Changelogchangelog-template.mdVersion history
Contributing Guidecontributing-template.mdOpen source, teams

Workflow

  1. Identify the documentation type and audience.
  2. Find existing patterns in the repo; follow local conventions.
  3. Start from the closest template in assets/ and adapt.
  4. Add ownership + review cadence for critical docs (runbooks, onboarding, API reference).
  5. Run documentation QA (links, formatting, spelling, examples) before merging.

Docs Folder / LLM-Generated Revamp Mode (Any Repo)

Use this mode when a repo's docs/ folder contains substantial research notes for LLMs and implementation docs generated by LLMs.

  1. Build an inventory and classify each file by doc type (Tutorial, How-to, Reference, Explanation).
  2. Mark lifecycle metadata for non-canonical files:
status: draft | canonical | integrated | superseded
owner: @username
last_verified: 2026-02-24
integrates_into: docs/path/to/canonical-doc.md
delete_by: 2026-03-31
  1. For each topic/feature, keep exactly one canonical spec/reference and merge all duplicates into it.
  2. Keep only durable facts/decisions in canonical docs; move exploration detail to short linked evidence notes.
  3. Keep a compact LLM doc library with root anchors: AGENTS.md, README.md, and minimal canonical docs under docs/ (instructions, specs, reference-data).
  4. Delete integrated drafts on schedule; avoid .archive/ mirrors in docs/ unless retention is mandatory.

Decision Tree

User needs: [Documentation Task]
    ├─ Repo has a docs folder with many LLM-generated docs? → **Revamp Mode** (inventory → canonicalize → trim)
    ├─ New project? → **README.md**
    ├─ Technical decision? → **ADR**
    ├─ Building API? → **OpenAPI spec** + api-docs-template
    ├─ New version? → **CHANGELOG.md**
    ├─ Team collaboration? → **CONTRIBUTING.md**
    ├─ Documenting code? → **Docstrings** (JSDoc, Python)
    └─ Building docs site? → **MkDocs** (Python) or **Docusaurus** (JS)

Cross-Platform AI Documentation

AGENTS.md Standard

Prefer AGENTS.md as the cross-tool source of truth. If a specific tool requires a different filename (example: Claude Code uses CLAUDE.md), keep it aligned via a symlink only when you want identical content across tools.

# If `CLAUDE.md` does not exist and you want identical content:
ln -s AGENTS.md CLAUDE.md

Do / Avoid

Do

  • Assign owners and review cadences to critical docs
  • Add CI checks for links, style, and staleness
  • Prefer small, task-oriented docs over big wiki pages
  • Use Keep a Changelog format with semantic versioning

Avoid

  • Docs without owners (guaranteed to rot)
  • Stale runbooks (dangerous during incidents)
  • Copy/paste docs that drift from code

LLM-First Documentation Patterns

When documentation is consumed primarily by AI agents (AGENTS.md, CLAUDE.md, canonical docs for coding assistants), stale docs become a distinct category of bug.

Stale Docs = Agent Bugs

An agent reading stale docs will:

  • Attempt to fix problems that are already solved (e.g., "9 open gating gaps" that were all sealed)
  • Use wrong model names (e.g., "Claude Haiku" when code uses gpt-4o)
  • Apply wrong limits (e.g., "fully gated" when free tier actually gets 3/week)
  • Re-implement features that already exist

Rule: Treat doc updates as part of the feature PR, not as a follow-up task.

Report Integration Lifecycle

Temporary investigation docs (QA reports, research exports, audit findings) must not become permanent false sources of truth.

Every dated report file must carry lifecycle metadata:

---
Status: pending-integration | integrated | superseded
Integrates-into: docs/product/pricing-feature-matrix.md
Owner: @username
Delete-by: 2026-03-15
---

Workflow:

  1. Create report with Status: pending-integration
  2. Extract durable findings into canonical docs
  3. Mark report Status: integrated with date
  4. Delete after Delete-by date (git history preserves everything)

Living Docs: Audit Tables with Status Columns

Instead of deleting audit findings, add a Status column:

GapStatusSealed In
Chart aspects visible to freeSealedPR #26
Dreams unlimited for freeSealedPR #26
Ask Cosmos no rate limitOpen—

This preserves the audit trail while showing current state. Agents can quickly scan for Open items.

Two-Pass Consolidation

When consolidating planning docs into canonical docs:

  1. First pass: Follow the plan — extract content, delete source files, fix cross-references
  2. Second pass: Audit deleted content against canonical destinations

- git show deleted files to recover any unique data missed in planning - Compare code to docs for drift (e.g., feature marked "Planned" but code shows it's implemented)

Even thorough consolidation plans miss unique data that only lived in one source doc.

Canonical Set Rule (No Doc Sprawl)

  • One subject/feature should have one canonical doc.
  • Derived docs must link to canonical docs instead of restating them.
  • If a derived doc is fully integrated, mark it integrated and remove it by delete_by (default: delete, not archive).
  • If two canonical docs overlap, merge and leave a redirect note in the removed file path.

Canonical LLM Library Rule

  • Root files are mandatory anchors: AGENTS.md for agent behavior/instructions and README.md for project navigation.
  • The docs/ folder should expose only a small canonical set for LLM consumption: current instruction sets, current specs, and durable reference data.
  • Research logs, exploratory prompts, and intermediate drafts are temporary working files, not library entries.
  • Keep discovery breadcrumbs as links from canonical docs; do not duplicate full research dumps.

Anti-Fluff Rewrite Gate

Before merging LLM-generated docs, require:

  • explicit audience and decision/use-case for each section
  • measurable statements instead of vague claims
  • source links + dates for external facts
  • removal of duplicated paragraphs and "future ideas" not tied to a tracked decision

Staleness Disclaimers Over Wrong Numbers

For externally-sourced data (competitor pricing, API rate limits, third-party capabilities):

> Prices as of Feb 2026 — verify current pricing at [source].

A staleness disclaimer is safer than a potentially wrong number. Wrong numbers in agent-consumed docs cause incorrect implementation decisions.

Decision Log Collision Prevention

When adding entries to a decision log (e.g., ### D039 — Feature Name):

# Always check the latest entry number before adding
grep -o '### D[0-9]*' docs/decision-log.md | tail -1

Numbering collisions happen when two decisions are logged in rapid succession without checking.

Backlog Status Sync Pattern (Mandatory)

When implementation status changes (for example backlog milestones completed), sync canonical docs in the same delivery cycle to prevent stale guidance for humans and agents.

Sync Rules

  1. Update one canonical status source first (feature matrix / roadmap / decision log).
  2. Propagate only by reference links in secondary docs; avoid duplicate status prose.
  3. Add concrete completion dates and owner for status changes.
  4. If temporary reports are integrated, mark lifecycle state (integrated or superseded) and delete_by.

Release Gate

A feature is not doc-complete until:

  • canonical status doc updated,
  • dependent docs checked for conflicting claims,
  • docs sync checklist completed.

Resources

ResourcePurpose
references/readme-best-practices.mdREADME structure, badges
references/adr-writing-guide.mdADR lifecycle, examples
references/changelog-best-practices.mdKeep a Changelog format
references/api-documentation-standards.mdREST, GraphQL, gRPC docs
references/code-commenting-guide.mdDocstrings, inline comments
references/contributing-guide-standards.mdCONTRIBUTING.md structure
references/docs-as-code-setup.mdMkDocs, Docusaurus, CI/CD
references/writing-best-practices.mdClear communication
references/markdown-style-guide.mdMarkdown formatting
references/documentation-testing.mdVale, markdownlint, cspell
references/ai-documentation-tools.mdMintlify, DocuWriter, GEO
references/production-gotchas-guide.mdDocumenting platform issues
references/documentation-metrics.mdDoc quality, freshness, coverage scoring
references/onboarding-documentation.mdDeveloper ramp-up guides, Day 1-Week 4
references/runbook-writing-guide.mdOperational runbooks, incident response
references/backlog-status-sync-pattern.mdCanonical backlog status sync workflow for multi-doc repos

Templates

Related Skills

SkillPurpose
qa-docs-coverageDocumentation gap audit
dev-api-designREST API patterns
dev-git-workflowConventional Commits
docs-ai-prdPRD templates

Fact-Checking

  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.

平台分布

Claude Code

29.76%
按下载量换算290

Cursor

20.01%
按下载量换算195

Gemini CLI

16.08%
按下载量换算157

Antigravity

11.58%
按下载量换算113

OpenCode

7.81%
按下载量换算76

Codex

3.53%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills