Agent Skillskdlbs/kandev › docs-maintainer

docs-maintainer

GitHub

用于判断公共文档是否需要更新并执行维护的 Skill。涵盖 CLI、配置、API 及 UI 等变更,规范文档目录结构、更新流程及 Diátaxis 内容分类标准。

.agents/skills/docs-maintainer/SKILL.md kdlbs/kandev

Trigger Scenarios

代码变更影响 CLI、配置或 API 时 审查变更是否需更新公共文档时

Install

npx skills add kdlbs/kandev --skill docs-maintainer -g -y
More Options

Non-standard path

npx skills add https://github.com/kdlbs/kandev/tree/main/.agents/skills/docs-maintainer -g -y

Use without installing

npx skills use kdlbs/kandev@docs-maintainer

指定 Agent (Claude Code)

npx skills add kdlbs/kandev --skill docs-maintainer -a claude-code -g -y

安装 repo 全部 skill

npx skills add kdlbs/kandev --all -g -y

预览 repo 内 skill

npx skills add kdlbs/kandev --list

SKILL.md

Frontmatter
{
    "name": "docs-maintainer",
    "description": "Keep public Kandev docs current when code or behavior changes affect CLI commands, config keys, install\/deploy flows, workflows, executors, APIs, screenshots, or user-facing terminology. Use this before finishing any change with public documentation impact, and when reviewing whether a change needs docs."
}

Docs Maintainer

Use this skill to decide whether public docs need updates and to make those updates in the right place.

Docs Boundaries

  • Public website docs source lives under docs/public/**.
  • Internal product/spec planning stays under docs/specs/**.
  • Implementation plans stay under docs/plans/**.
  • Architecture decisions stay under docs/decisions/**.
  • Raw supporting notes can remain under docs/** outside docs/public/**, but do not publish them unless rewritten for users.
  • docs/public/meta.json owns published-page order and navigation groups. Page paths own routes, and page frontmatter owns titles and descriptions.
  • The landing/docs website generates its content from this directory. Do not hand-edit generated files in the landing repository.

When Docs Need Updates

Check public docs when a change affects:

  • CLI commands, flags, install commands, or runtime launch behavior.
  • Configuration keys, environment variables, defaults, profiles, or feature flags.
  • Workspaces, workflows, tasks, agents, executors, worktrees, Git behavior, or review flows.
  • Docker, Kubernetes, service, desktop, remote environment, or Windows instructions.
  • Public APIs, WebSocket messages, workflow import/export schemas, or integration contracts.
  • Screenshots, visible UI labels, navigation, onboarding, or user-facing terminology.

Skip public docs when the change is:

  • Purely internal refactoring with no behavior change.
  • Test-only, fixture-only, or build-only without user-visible behavior.
  • A speculative plan or design note that belongs in docs/specs/**, docs/plans/**, or docs/decisions/**.

Workflow

  1. Identify docs impact from the diff and changed behavior.
  2. Search docs/public/** first for affected terms and commands.
  3. If public docs exist, update them with the same PR as the behavior change.
  4. If no public docs exist but the behavior is user-facing, add or propose the smallest useful public page/section. When adding a page, include title and description frontmatter and list its page slug or path without the .md extension in docs/public/meta.json exactly once, for example cli. See docs/public/README.md.
  5. If the change only updates implementation intent or architectural history, update specs/plans/ADRs instead.
  6. Classify each public page by its primary Diátaxis content type:
    • Tutorial: teach a beginner by leading them through one successful outcome.
    • How-to guide: help a reader complete a known task, with focused steps, choices, and recovery paths.
    • Reference: provide accurate, complete lookup information such as fields, commands, defaults, limits, or protocol contracts.
    • Explanation: build understanding of a concept, boundary, rationale, or trade-off. Keep one dominant type per page. Link to another page when a long section changes from learning to procedure, lookup, or explanation; do not force every page into a generic tutorial-shaped opening.
  7. Keep public docs task-oriented and scan-friendly:
    • Tutorials should lead with prerequisites and a linear first success; how-to guides should lead with the task, expected result, and only the prerequisites it needs.
    • Reference pages should lead with scope and the contract readers need to look up; explanation pages should lead with the question or concept and why it matters.
    • Use short paragraphs (one idea, normally three sentences or fewer) and bullets for choices, limits, and consequences.
    • Prefer a link to the page that owns a detailed contract over repeating it.
    • Use native <details> / <summary> disclosures for non-essential edge cases, exhaustive option lists, and advanced configuration. Keep required steps, security warnings, destructive effects, and eligibility limits visible.
    • Use tables only for genuine comparisons, not narrative text.
  8. Preserve internal links inside docs/public/** where possible. Link to source-only raw docs only when the raw note is intentionally not published.
  9. Note docs impact and the page's primary content type in the PR body.

Validation

Run the checks relevant to your change:

# Replace SEARCH_TERM with the command, config key, or terminology that changed.
rg -n "SEARCH_TERM" docs/public docs/specs docs/decisions
node --test scripts/validate-public-docs.test.mjs
node scripts/validate-public-docs.mjs

For website docs publishing changes, also run from the landing repo:

pnpm install --frozen-lockfile
pnpm --filter @kandev/docs fetch-docs
pnpm exec vitest run apps/docs/lib/docs-processing.test.ts apps/docs/lib/public-docs.test.ts
pnpm --filter @kandev/docs build

Final Report

State one of:

  • Public docs updated: with changed docs/public/** files.
  • Internal docs updated: with changed specs/plans/decisions.
  • No docs change needed: with one concrete reason.

Version History

  • 1578843 Current 2026-08-16 08:47

    添加 Diátaxis 公共文档指导原则,简化文档扫描逻辑

  • b4239d8 2026-07-24 17:32

Same Skill Collection

.agents/skills/acp-debug/SKILL.md
.agents/skills/add-integration/SKILL.md
.agents/skills/clean-branches/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/commit/SKILL.md
.agents/skills/context-engineering/SKILL.md
.agents/skills/create-kandev-plugin/SKILL.md
.agents/skills/debug/SKILL.md
.agents/skills/e2e/SKILL.md
.agents/skills/fix/SKILL.md
.agents/skills/harness-improvement/SKILL.md
.agents/skills/interview-me/SKILL.md
.agents/skills/plan/SKILL.md
.agents/skills/planner-orchestration/SKILL.md
.agents/skills/playwright-cli/SKILL.md
.agents/skills/pr-fixup/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/product-demo-seeding/SKILL.md
.agents/skills/product-video-capture/SKILL.md
.agents/skills/push/SKILL.md
.agents/skills/qa/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/runtime-feature-flags/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/spec-driven-development/SKILL.md
.agents/skills/spec/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/using-agent-skills/SKILL.md
.agents/skills/verify/SKILL.md
.agents/skills/mobile-parity/SKILL.md
.agents/skills/record/SKILL.md

Metadata

Files
0
Version
1578843
Hash
c9f2e8d8
Indexed
2026-07-24 17:32

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-17 00:05
浙ICP备14020137号-1 $mapa de visitantes$