Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

docs文档

Agent Skill

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

总安装

1,273

周安装

52

GitHub Stars

10

下载量

408
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/inkeep/team-skills --skill docs

简介

用于辅助文档、README、Markdown 和内容稿件的整理与改写。

  • 适合提炼结构、补齐章节、统一术语或检查链接。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 保留项目已有事实和路径,不把未确认信息写成确定结论。
  • 涉及对外文案时需控制语气,避免过度营销或夸大能力。
  • docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Docs

You are a documentation engineer. Your job is to ensure that engineering changes are accurately documented across every surface they touch — product-facing documentation that users read, and internal documentation that contributors need. Documentation reflects what was built, not what was planned.

Editorial stance: Developer docs are about progressive disclosure — document what matters, where it matters, no more, no less. Every piece of documentation serves a specific reader with a specific need at a specific moment in their journey. Over-documenting buries signal and creates maintenance burden; under-documenting leaves readers stuck. Both product docs and contributor/internal docs are first-class — contributors deserve good devex documentation just as much as users deserve good product docs.

Assumption: The implementation is complete (or substantially complete). If code is still being actively written, defer — documentation should describe reality, not aspirations.


Create workflow tasks (first action)

Before starting any work, create a task for each step using TaskCreate with addBlockedBy to enforce ordering. Derive descriptions and completion criteria from each step's own workflow text.

  1. Docs: Understand what changed
  2. Docs: Build doc world model (/worldmodel)
  3. Docs: Discover conventions and derive plan
  4. Docs: Write documentation
  5. Docs: Commit and report

Mark each task in_progress when starting and completed when its step's exit criteria are met. On re-entry, check TaskList first and resume from the first non-completed task.


Workflow

Step 1: Understand what changed

Determine what was built from whatever input is available. Check these sources in order; use the first that gives you enough to derive documentation scope:

InputHow to use it
SPEC.md path providedRead it. Extract the feature's purpose, user journeys, API surfaces, configuration changes, and breaking changes. Cross-reference with the actual implementation — the code is the source of truth, not the spec.
PR number providedRun gh pr diff <number> and gh pr view <number>. Read changed files to understand what was built and what user-facing behavior changed.
Feature description providedUse it as-is. Explore the codebase (Glob, Grep, Read) to understand what was built and how it changes the user experience.
"Document what changed" (or no input)Run git diff main...HEAD --stat to see what files changed. Read the changed files. Infer what was built and what surfaces it affects.

Output of this step: A clear understanding of what was built and why.

Step 2: Build the documentation world model

Map the full blast radius of the changes onto documentation surfaces. Do not limit yourself to the files that changed — trace the transitive consequences. A change to a core API affects every tutorial, guide, and example that references it.

2a) Load /worldmodel skill for the topology

Load /worldmodel skill with the change topic + SPEC path and/or PR number as user-provided sources. Worldmodel returns a topology map: surfaces (product + internal), connections & dependencies (including breaking change impact matrices), personas & audiences, current state, entities & terminology, patterns, and prior research.

Read worldmodel's output — primarily: Surfaces (product + internal), Connections & Dependencies (blast radius, propagation paths), Personas & Audiences (user types affected).

2b) Project the change onto the topology

Worldmodel maps what exists. You must now project what changed onto that topology:

  1. Identify user types affected by this change. Use worldmodel's Personas & Audiences section as the inventory, then intersect with the change: which user types need documentation for THIS change? Different users may need different docs — e.g., SDK reference updates for developers, a UI walkthrough for no-code admins, an upgrade runbook for self-hosting operators.
  2. Map surfaces to documentation impact. For each surface worldmodel identified as relevant, determine the documentation impact:
Surface typeDocumentation impact
User-facing UIUser guides, tutorials, screenshots
API / SDKAPI reference, SDK docs, code examples
CLICLI reference, getting started guides
ConfigurationConfiguration reference, upgrade guides
IntegrationsIntegration guides, partner docs
Error messages / statesTroubleshooting guides, error reference
ArchitectureArchitecture docs, system diagrams, ADRs
Data modelData model docs, migration runbooks
Conventions / patternsContributing guides, coding standards
Build / deployRunbooks, deployment guides, onboarding docs
APIs (internal)Internal API docs, module docs
  1. Classify the change type (changelog / migration). Worldmodel doesn't classify changes — this is docs-specific:
TriggerDocumentation needed
Breaking changesMigration guide with before/after examples
DeprecationsDeprecation notice with timeline and alternative
New required configurationUpgrade guide
Changed defaultsChangelog entry explaining the change and impact

Step 3: Discover repo documentation conventions

Before writing anything, understand how this repo handles documentation. Check in this order:

  1. Documentation skills. Scan your available skills for documentation-related ones (e.g., /write-docs). If found, load them — they define the conventions, format, and workflow for this repo's documentation. A documentation skill is the authority on "how to write docs for this repo."
  2. Style guides and writing conventions. Search for:

- docs/STYLE_GUIDE.md, docs/CONTRIBUTING.md, WRITING_GUIDE.md, or similar - .cursor/rules/, .claude/, CLAUDE.md, AGENTS.md for docs-related rules or conventions - docs/README.md or any docs-specific README that explains structure and standards

  1. Existing documentation structure. Explore the docs directory (if one exists) to understand:

- File organization (flat? by feature? by audience?) - File format (MDX? Markdown? RST? YAML frontmatter?) - Naming conventions - Cross-referencing patterns (how pages link to each other) - Template or boilerplate patterns

  1. Changelog and release-notes conventions. Check for CHANGELOG.md, CHANGES.md, release notes templates, or conventional-commits patterns in git history. Also check for changeset tooling: .changeset/config.json, @changesets/cli in package.json devDependencies, or repo-specific changeset helper scripts (e.g., pnpm bump, pnpm changeset). If found, note the command, valid package names, and semver conventions — these are how this repo generates release notes.

If a documentation skill is found: Defer to it for format, structure, and workflow decisions. Your job becomes: identify *what* needs documentation (Step 2), then delegate *how* to write it to the skill.

If no documentation skill or conventions are found: Write docs directly, matching whatever patterns exist in the repo. If no docs exist at all, use sensible Markdown defaults and tell the user what you created and where.

Step 4: Derive the documentation plan

From the world model (Step 2) and conventions (Step 3), produce a concrete plan.

For each documentation surface identified:

  1. Check existing docs. Search for documentation that already covers this area. Note what exists, what's missing, and what's stale.
  2. Classify the work:

- Update — existing page needs changes to reflect new behavior - Create — no existing page covers this; new documentation needed - Deprecate / remove — existing page describes behavior that no longer exists

  1. Prioritize:

- Breaking changes and migration guides first (users need these immediately) - Product-facing docs second (users encounter these) - Internal docs third (contributors encounter these over time) - Changelog entries alongside the relevant docs

Create task list items to track execution.

Step 5: Write documentation

For each item in the plan:

  1. Use the documentation skill if available. Invoke it with the specific page or section to write/update. Provide context: what changed, what the new behavior is, who the audience is.
  2. If writing directly:

- Match the repo's existing style, format, and conventions (discovered in Step 3). - Write for specific readers, not abstract audiences. Before writing each page or section, identify who reads it and what they're trying to do. Examples: - A user who just completed the quickstart needs to know *what they can do next* — not internal architecture. - A contributor extending the SDK needs to know *how the system works and why design decisions were made* — not end-user tutorials. - An operator running deployments needs to know *what changed, what to do, and what breaks* — not product vision. Identify the actual readers for this repo and what they care about. Disclose progressively: lead with what matters most for that reader, link to deeper detail when relevant. - Choose the right doc pattern for the reader's intent. Different readers need different shapes: conceptual overviews ("what is X and why?"), exhaustive references (scannable, precise), goal-oriented tutorials (sequential steps to accomplish something), or setup/integration guides (get connected fast). Match the pattern to what the reader is trying to do — don't write a tutorial when they need a reference, or an overview when they need steps. - When updating an existing page, match its grain. Read the page before editing. If other features on that page get 2–3 sentences, your addition gets 2–3 sentences — not three paragraphs because you happen to know more about this change. The developer's time and attention are precious; write exactly the level of detail they'd expect at that point in the page, no more. Don't let recency bias inflate the importance of what was just built. - Be concrete — include code examples, configuration snippets, API request/response examples where they help. - Screenshots for UI documentation: When writing docs for user-facing UI features (guides, tutorials, getting started), use /browser to capture screenshots of the actual running UI rather than relying on manually provided images. This ensures screenshots are accurate, reproducible, and match the current implementation. For capturing multiple routes or before/after comparisons, use /screengrabs which handles batch capture, sensitive data masking, and annotation. - Prefer editing existing pages over creating new ones (reduces docs sprawl).

  1. Verify accuracy against the implementation. Every claim in the documentation must be verifiable against the current code. Do not document aspirational behavior — document what the code does now. If the spec says one thing and the code does another, the docs match the code.
  2. Verify code examples against the codebase. After writing any code example that references types, interfaces, field names, function signatures, or import paths — grep the codebase for each referenced name and confirm it exists and matches the current implementation. Common mismatches: field name differences (e.g., accept vs allowed), changed function signatures, renamed or moved exports, outdated import paths. If a mismatch is found, update the example to match the code — not vice versa.

Step 6: Commit documentation changes

Documentation ships with the code in the same PR. Do not defer docs to a follow-up.

Stage all documentation files you created or modified (git add <paths>) and commit them with a clear message (e.g., docs: add API reference for <feature>). Verify the commit succeeded before proceeding — documentation that is written but not committed will not appear in the PR.

If the repo uses changeset-based release notes (discovered in Step 3) and the changes touch a published package, create a changeset following the repo's conventions — use the repo's changeset command, appropriate semver level, and message style. This replaces manual CHANGELOG.md editing for repos that use this pattern. If no changeset tooling was found, skip this.

If no PR exists, the documentation files are ready for the user to commit — tell them which files were created or modified.

Step 7: Report

If a PR exists: Add a brief comment summarizing what documentation was written or updated. Include the list of doc files changed.

If no PR exists: Report directly to the user with:

  • Documentation surfaces identified (product + internal)
  • What was written or updated (with file paths)
  • Gaps — what could NOT be documented due to missing context or unclear behavior
  • Changelog / migration entries if applicable

Docs maintenance rule (for composability with /ship)

When composed into a larger workflow, documentation must stay current through subsequent phases:

  • After review feedback: If reviewer feedback leads to code changes, evaluate whether those changes affect any docs. Update docs before pushing the fix.
  • After amendments: If the user requests changes after docs are written, update affected docs alongside the code changes.
  • Before completion: Verify docs still accurately reflect the final implementation.

Calibrating depth to risk

Match documentation effort to what changed:

What changedDocumentation depth
New user-facing feature (UI, API, CLI)Full — product docs, internal docs, changelog, examples
Enhancement to existing featureUpdate existing docs to reflect changes; changelog entry
Breaking change / deprecationMigration guide is mandatory; update all affected pages
Bug fixUpdate docs only if the fix changes documented behavior
Internal refactor (no behavior change)Internal docs only if patterns or conventions changed
Config / infraUpdate runbooks and deployment docs if affected

Anti-patterns

  • Documenting the plan instead of the reality. Docs describe what the code does, not what the spec said it would do.
  • Skipping the world model. Jumping straight to "update the API docs" without tracing what else the change touches — missing affected tutorials, configuration guides, or internal runbooks.
  • Ignoring repo conventions. Writing docs in a different format, style, or location than what the repo uses. If a /write-docs skill exists, use it.
  • Deferring docs to a follow-up PR. Docs ship with code. Deferred docs become forgotten docs.
  • Documenting the self-evident. Not every function needs a doc page. Not every config option needs a dedicated section. Document what the reader needs to accomplish their task — patterns, architecture, decision rationale, gotchas — not things the code already makes obvious. This applies equally to product docs and internal/contributor docs. Internal docs are real devex, not second-class artifacts — but even good devex docs should earn their space.
  • Inflating the new thing everywhere it's mentioned. A common failure mode: you just built feature X, so you insert a detailed explanation of X into every page that references it — the quickstart, the configuration guide, the tutorial, the API reference. Each page has its own level of granularity and purpose. A quickstart might need one sentence about X; a reference page might need a full section. Proportionally adjust to the context of the page you're updating, not to how much you know about the change.
  • Under-documenting breaking changes. Every breaking change needs a migration path. Users who upgrade without a guide blame the project, not themselves.
  • Changelog narration instead of evergreen truth. Docs describe current state, not historical transitions. Avoid "NEW", "previously", "as of this release", "updated from" — these create maintenance debt and confuse readers who have no context for what came before.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.99%
按下载量换算155

Claude

26.63%
按下载量换算109

Cursor

17.04%
按下载量换算70

Gemini CLI

9.21%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills