dart-docs-update
GitHub用于更新DART项目文档及AI指令可见性,或审计文档树以发现并清理陈旧、重复和孤立内容,确保文档准确性与一致性。
Trigger Scenarios
Install
npx skills add dartsim/dart --skill dart-docs-update -g -y
SKILL.md
Frontmatter
{
"name": "dart-docs-update",
"description": "DART Docs Update: update docs or AI instruction visibility without code changes, or audit the docs tree for stale, duplicated, and orphaned content"
}
dart-docs-update
Use this skill in Codex to run the DART dart-docs-update workflow. The editable
workflow source lives in .claude/commands/; this file is its generated adapter
in the shared .agents/skills/ catalog.
Invocation
- Claude Code:
/dart-docs-update <arguments> - Codex:
$dart-docs-update <arguments>
Treat the text after the skill name as $ARGUMENTS. When the workflow
references $1, $2, etc., map those to the positional values supplied by the
user.
Command Body
Update documentation: $ARGUMENTS
Required Reading
@AGENTS.md @docs/README.md @docs/AGENTS.md @docs/ai/principles.md @docs/ai/verification.md
For AI instruction or workflow changes, follow the owner read order in
docs/ai/README.md; read the relevant tool section of
docs/onboarding/ai-tools.md only when compatibility is affected. Load
docs/onboarding/changelog.md when making the closeout changelog decision.
Modes
<topic>(default): make the requested documentation change.audit [bucket]: find stale, duplicated, unowned, or oversized docs and propose or apply consolidations; limit to one bucket when given.
Workflow
- Create a branch from the target branch:
git checkout -b docs/<topic> origin/main - For
audit, build the finding list first:- run
pixi run check-docs-policyand collect every failure and advisory (broken links, orphans, dev-task size budgets, dashboard budgets); - run
pixi run check-architecture-mapand, when a build exists,pixi run check-architecture-map-runtime; treat findings as drift of the architecture map views underdocs/assets/architecture/(see thedart-architectureskill for the update procedure); - walk the "Keeping Docs Current" table in
docs/README.mdagainst the bucket: completed tasks whose folders remain, archived plans still pointing at numbered files, resolvedDecision neededblocks, superseded pages, rules copied into more than one doc, running logs in snapshot files, and pages describing a state the code has left behind; - for each finding record the owner doc, the proposed action (rewrite, merge, delete, promote, link), and the evidence; prefer deletion and consolidation over new files or sections. Apply the findings that stay within the requested scope and list the rest in the output.
- run
- Edit docs and AI workflow sources only:
- Regular docs:
docs/**,README.md,AGENTS.md,CONTRIBUTING.md, andCHANGELOG.mdwhendart-changelogrequires a release-note entry - AI source files:
.claude/commands/**,.claude/skills/**
- Regular docs:
- For AI workflow changes, edit
.claude/sources and runpixi run sync-ai-commands; do not hand-edit generated.agents/skills/files (.codex/is a maintained source) - Classify new or moved docs by lifecycle first, then audience, then topic,
using the placement matrix in
docs/README.md. For AI docs, keep always-loaded entrypoints compact: improve owner placement or pointers instead of duplicating procedures. - Update indexes and cross-references that point to changed docs; redirect every link into a deleted file.
- Use
docs/ai/verification.mdto select the docs-only or AI docs/adapters gate set, then runpixi run lintbefore committing - Invoke the
dart-changelogroutine for theCHANGELOG.mddecision and any required entry. - Ask for explicit maintainer/user approval before pushing or opening the PR.
After approval, use
.github/PULL_REQUEST_TEMPLATE.mdand the proper milestone.
Output
- Docs and AI workflow sources changed
- For
audit: findings applied, findings deferred with their owner, and advisories left in place with the reason - Sync and verification commands run
- Changelog decision
- PR readiness, noting any external mutation that was explicitly approved
Version History
-
deb9869
Current 2026-09-08 21:45
新增audit模式支持检查架构映射漂移;更新触发工具列表移除OpenCode;调整必读文档路径。
- bcd584e 2026-09-02 23:40
- b9fbefc 2026-07-19 11:29


