Docs Codebase 标志

Docs Codebase

社区
vasilyu1983
docs-codebase

Writes and reorganizes docs-as-code for software repos. Use when updating READMEs, runbooks, onboarding docs, API references, or agent instruction files.

概览

发布者vasilyu1983
代码仓库AI-Agents-public
技能名称docs-codebase
星标数
87
复刻数
19
附带文件
32
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 32 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 vasilyu1983 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Docs Codebase AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/docs-codebase .claude/skills/docs-codebase
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Docs Codebase,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Docs Codebase。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Docs Codebase 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Technical Documentation

Use this skill to write, restructure, and verify software-repo documentation: READMEs, runbooks, API references, changelogs, onboarding docs, instruction files, and canonical docs libraries for humans and coding agents.

The goal is durable docs, not document sprawl. Keep one canonical doc per subject, wire in ownership and review cadence, and verify filesystem-backed claims before publishing summary docs.

Quick Reference

Documentation TypeTemplateNotes
project READMEassets/project-management/readme-template.mdonboarding and project navigation
ADR or architecture noteassets/architecture/adr-template.mddecision record
gap analysis or migration assessmentassets/architecture/gap-analysis-template.mdarchitecture and readiness work
API referenceassets/api-reference/api-docs-template.mdREST, GraphQL, gRPC, AsyncAPI
changelogassets/project-management/changelog-template.mdrelease history
contributing guideassets/project-management/contributing-template.mdteam and OSS contribution
docs IA or consolidation planassets/docs-as-code/docs-structure-template.mdlarge doc sets
ownership and review modelassets/docs-as-code/ownership-model.mdrunbooks and critical docs
doc sync checklistassets/project-management/template-doc-sync-checklist.mdstatus and path integrity
operational runbookassets/operational/runbook-template.mdSLO, alerts → response, rollback, escalation, postmortems; use {{PLACEHOLDER}} format
CI markdownlint configassets/ci/.markdownlint.yamldrop into repo root; MD013 off, MD024 siblings_only, sensible defaults
CI Vale prose configassets/ci/.vale.iniMicrosoft style base; passive voice as suggestion; per-rule overrides documented
CI docs quality workflowassets/ci/docs-quality.ymlGitHub Actions: markdownlint + markdown-link-check + vale on docs/ PRs

When to Use This Skill

Use this skill when the main task is:

  • writing or refactoring canonical technical docs
  • consolidating messy docs/ folders
  • adding or fixing README, onboarding, runbook, changelog, or API docs
  • keeping instruction files and canonical docs aligned
  • publishing AI-readable documentation with stable navigation

Route elsewhere when the main task is:

  • auditing docs freshness or coverage rather than rewriting docs
  • deciding product requirements, specs, or PRD structure

Defaults

  • one subject, one canonical doc
  • update an existing canonical doc before creating a new Markdown file
  • owners and review cadence on critical docs
  • doc updates in the same delivery cycle as the feature or change
  • summary docs may not claim complete inventory unless counts and paths were re-verified from the repo
  • temporary reports are lifecycle-managed, not permanent sources of truth
  • thin platform entry files are better than duplicated giant instruction files

Markdown Creation Gate

Before creating any new *.md file, prove all of these:

  • no existing canonical doc owns the subject
  • the target path has a clear doc type: README/navigation, runbook, reference, explanation, ADR/spec, report, or generated context
  • the file has an owner, review cadence, and lifecycle state if it can go stale
  • the file is linked from the right index, README, nav, or context hub
  • generated outputs are under a generated artifact root such as docs/context/ and have a rebuild path

If any item fails, update an existing doc, add a small section to a canonical page, or keep the answer in chat. Do not create per-session notes, one-off summaries, or root-level Markdown reports unless the user explicitly asks for that artifact.

Docs vs Agent Operations

  • AGENTS.md / CLAUDE.md: hot execution policy, exact commands, constraints, and pointers. Not a codebase catalog, report archive, or general docs folder.
  • README.md: human and agent navigation. Not a deep handbook.
  • docs/: durable product, technical, operational, API, ADR, and onboarding docs.
  • docs/operations/ or docs/runbooks/: operational procedures with owners and verification steps.
  • docs/reports/: temporary evidence or analysis with pending-integration, integrated, or superseded status.
  • docs/context/ or context/: generated or compiled LLM context artifacts. Prefer rebuild scripts and structured inputs; do not hand-edit generated pages as canonical truth.
  • .archive/: historical material excluded from normal search and context unless explicitly requested.

Workflow

  1. Identify the document type and audience.
  2. Inspect the repo’s current conventions and existing canonical docs.
  3. Run the Markdown Creation Gate before adding a new file.
  4. Start from the closest template in assets/ only when a new or replacement doc is justified.
  5. Consolidate duplicates into one canonical page per topic.
  6. Add ownership, review cadence, and publishing expectations where the doc matters operationally.
  7. Run documentation QA and integrity checks before handoff.

ASCII Flow

text
Docs request
  |
  v
Classify document type + audience
  |-- README / onboarding ------> project-management templates
  |-- runbook / operations -----> operational templates
  |-- API reference ------------> api-reference templates
  |-- ADR / architecture -------> architecture templates
  |-- docs IA / cleanup --------> docs-as-code templates
  |
  v
Inspect existing canonical docs
  |
  v
Markdown Creation Gate
  |-- existing owner found -----> update canonical doc
  |-- no owner, justified ------> create linked doc with owner + cadence
  |-- temporary evidence -------> docs/reports with lifecycle state
  |
  v
Verify paths, links, counts, commands, and status claims
  |
  v
Publish through README / index / context hub

Revamp Mode for Large or Messy Docs Folders

Use this mode when a repo has too many overlapping or LLM-generated docs:

  1. inventory every file and classify it by doc type
  2. pick the canonical doc for each subject
  3. move durable facts into the canonical doc
  4. mark temporary reports as pending-integration, integrated, or superseded
  5. remove integrated drafts instead of preserving duplicate mirrors
  6. re-check links, counts, moved paths, and canonical references before publishing a summary

AI-Readable Documentation Rules

  • keep README.md as the navigation anchor
  • keep AGENTS.md and CLAUDE.md thin when possible, with shared guidance factored into canonical docs
  • keep LLM operational files as routers to canonical docs, not mirrors of those docs
  • publish stable URLs, stable headings, and last_verified markers for volatile pages
  • prefer concise task-oriented docs over prose-heavy essays
  • treat stale docs as execution bugs for humans and agents alike
  • keep generated context hubs rebuildable from source artifacts rather than manually patched markdown

Judgment Calls: Docs Rot, Agent Consumers, and Ownership That Sticks

Rot detection beyond "old timestamp":

  • A doc edited yesterday can still be wrong. Correlate the doc's git history against the git history of the code path it describes; a code file that moved on without a matching doc commit is a stronger rot signal than age alone.
  • Treat "the doc still reads fine" as a false negative test. Verify referenced commands, flags, paths, and dependency versions actually run or exist — prose can read smoothly while describing a system that no longer exists.
  • A doc that names people ("ask Sarah"), specific tickets, or an org chart is a rot magnet. Move time-bound references into buddy notes or dated reports, not canonical docs.
  • Treat a deprecated-but-undeleted doc as more dangerous than a missing one: readers and agents trust what they find, and a wrong doc actively misleads where a gap only leaves a question.

Agents and humans read the same doc differently; serve both:

  • Agents execute instructions literally and immediately — a stale command in AGENTS.md or CLAUDE.md gets run, not questioned, the way a human skimming a wiki might self-correct. Hold instruction files to a higher freshness bar than narrative docs.
  • Agents need stable anchors (headings, IDs, paths) they can cite and re-fetch; humans tolerate prose that moves around. Do not casually reshuffle a canonical doc's headings once tooling or agent memory links into it.
  • An agent cannot tell an example from a prescription unless the doc says so. Label illustrative code, counts, and inventories explicitly, or an unlabeled example becomes ground truth for the next agent that reads it.
  • Humans need the "why" (rationale, trade-offs, links to ADRs); agents mostly need the "what" and the exact command. Keep both, but do not let one crowd out the other in the same file — narrative belongs in docs/, execution policy belongs in the thin instruction file.

Ownership models fail in predictable ways:

  • A named team with no allocated review time is ownership theater; the doc drifts regardless of who is listed as DRI.
  • Ownership tied only to a calendar cadence misses the trigger that actually causes rot: the underlying system changed. Pair calendar review with an event trigger (schema change, deploy, incident) for anything used under pressure, such as runbooks or on-call docs.
  • When a team is renamed, merged, or a person leaves, transfer ownership explicitly and date the transfer. An orphaned doc with a listed-but-gone owner is worse than an admittedly unowned doc — it signals false confidence.

Integrity and Anti-Fluff Gates

Before merging:

  • verify file paths, moved-path references, and template paths exist
  • verify counts and complete list claims against the filesystem
  • mark examples as examples instead of presenting them as exhaustive truth
  • remove duplicate narrative, vague future-idea prose, and unsupported claims
  • keep status in one canonical source and link to it from secondary docs
  • reject new Markdown files that lack a placement, owner, lifecycle, and index link

Navigation

Core references

Craft and style

Advanced and AI-aware

Boundary: docs-codebase vs docs-ai-prd

  • docs-codebase owns technical documentation quality, structure, and canonicalization
  • docs-ai-prd owns requirements, specs, acceptance criteria, and what context an implementation agent needs

If you are writing or cleaning docs, stay here. If you are deciding feature requirements or context strategy, use docs-ai-prd.

Related Skills

Verification Gate

Before delivering output, verify:

  • every local file path and template path exists
  • any counts or inventory claims were re-checked against the filesystem
  • commands and code blocks either match repo reality or are marked as examples
  • the output matches the intended doc type and calls out any follow-up review or publishing step

Fact-Checking

  • Verify volatile external facts, platform behavior, and version-sensitive guidance before final advice.
  • Prefer primary docs over summaries.
  • If live verification is unavailable, mark external claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Docs Codebase AI 技能有什么作用?

Writes and reorganizes docs-as-code for software repos. Use when updating READMEs, runbooks, onboarding docs, API references, or agent instruction files.

为什么在 TypingMind 中使用 Docs Codebase?

因为您只需安装一次,就能搭配任何模型使用。Docs Codebase 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Docs Codebase?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Docs Codebase?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Docs Codebase 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Docs Codebase 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Docs Codebase AI 技能免费吗?

是的。vasilyu1983 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇