跳到正文
cccskills
免费在 GitHub 公开

ls-docs-source-drift

Run automated repo documentation alignment: discover source truth, audit public/internal docs, refresh generated artifacts, coordinate subagent research, and verify docs in one pass.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(10)

  • SKILL.md6.8 KB
  • asset-guidance.md536 B
  • ci-model.md497 B
  • commands.md1.5 KB
  • generated-docs-policy.md742 B
  • public-docs-style.md743 B
  • runbook.md864 B
  • source-ledger.md1.1 KB
  • troubleshooting.md730 B
  • truth-map.md628 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Documentation alignment

Use this skill when a repo needs documentation brought back into alignment with the code, manifests, CLI commands, assets, generated docs, and current external documentation standards.

Purpose

  • Discover source-of-truth surfaces before editing docs.
  • Use subagents for independent repo scouting and current external research when the task is broad.
  • Generate a stable inventory, truth map, audit result, asset manifest, and summary.
  • Fix supported stale facts in public docs without hand-maintaining volatile counts.
  • Keep generated docs owned by the repo generator instead of ad hoc edits.
  • Record public-doc ownership through owner_skill or owner_package frontmatter and fail CI for active framework docs without an owner.
  • Leave a reproducible validation trail for future runs.

Generic workflow

  1. Create or resume a run ledger under .agents/state/<task-slug>/ledger.md; the controller assigns one Git-bound task slug for every agent and tool to reuse.
  2. Inventory the repo: public docs, internal docs, generated docs, skills/workflows, assets, CLI commands, CI, and lifecycle metadata.
  3. Map truth sources. For LocalSetup, defaults are VERSION, pyproject.toml, ls/config/*.yaml, ls/skills/*/SKILL.md, ls/workflows/*/workflow.yaml, generated facts, assets, and CI workflows.
  4. Delegate scouts when scope is broad:
    • code truth and generator ownership
    • public docs and stale claims
    • internal/generated docs and lifecycle rules
    • current external documentation standards
    • assets and CI gates
    • skill/workflow package conventions
  5. Run the alignment audit and plan. Treat subagent reports as evidence, not completion.
  6. Apply generated and supported public fixes. Keep manual-review findings explicit.
  7. Regenerate docs artifacts and run validation.
  8. Run a final read-only review before claiming completion.

Commands

Inventory:

uv run --locked python ls/tools/docs_alignment.py --repo-root . inventory

Audit:

uv run --locked python ls/tools/docs_alignment.py --repo-root . audit

Plan:

uv run --locked python ls/tools/docs_alignment.py --repo-root . plan

Apply generated artifacts:

uv run --locked python ls/tools/docs_alignment.py --repo-root . apply --scope generated

Apply supported public-doc fixes:

uv run --locked python ls/tools/docs_alignment.py --repo-root . apply --scope public

Dry-run any write scope:

uv run --locked python ls/tools/docs_alignment.py --repo-root . apply --scope all --dry-run

CI/read-only check:

uv run --locked python ls/tools/docs_alignment.py --repo-root . check --ci

LocalSetup wrapper:

uv run --locked python ls/tools/localsetup.py --source-root . docs-align check --ci

Outputs

Release preparation

In the LocalSetup source repository, localsetup release-docs plan resolves the upcoming version and inventories tracked active public documents. prepare --verify-baseline --candidate .agents/state/<task-slug>/candidate.json produces a scoped model proposal and independent review without applying it. Model authoring is optional. When selected, the protected QC runtime must be available and an incomplete model proposal cannot be applied. A reviewed source record with deterministic rendering remains the ordinary fallback; a provider failure does not block that path. apply --candidate ... is the explicit local write step; render updates managed sections from an existing record. Use check after canonical version/document synchronization and notes to render release prose.

Versioned records under ls/docs/releases/ own the managed release-summary and release-link blocks and their matching guides. Edit the record or its owning generator, not rendered blocks. Preserve historical guides. Semantic review must cover release claims and complete commands, including required checksum and SBOM sidecars; a zero-finding static audit alone does not establish semantic accuracy. Git-backed public inventories exclude untracked files and private state.

Generated artifacts live under ls/docs/_generated/:

  • docs-inventory.json
  • docs-truth-map.json
  • docs-audit-result.json
  • docs-asset-manifest.json
  • docs-alignment-summary.md

Asset provenance and reference notes live in assets/README.md when the asset scope is applied.

Audit model

The tool reports JSON-first findings for:

  • version and generated-facts drift
  • stale generated skill taxonomy
  • stale skill/workflow counts
  • missing lifecycle frontmatter in framework docs
  • missing or invalid active-doc ownership frontmatter
  • broken relative links and missing image files
  • missing image alt text
  • unclosed fenced code blocks
  • missing managed generated facts blocks

Critical and major findings fail check --ci.

Subagent pattern

For a generic repo, assign scouts before edits:

  • explorer: map code truth, docs ownership, CI, and assets
  • researcher: verify current external standards from primary sources
  • worker: implement bounded fixes after controller verification
  • tester: run validation commands and summarize failures
  • reviewer: final read-only review against the run ledger

The controller verifies each report and records checkpoints in the ledger.

References

  • ls/tools/docs_alignment.py
  • ls/docs/_generated/docs-alignment-summary.md
  • ls/docs/OUTPUT_AND_DOC_GENERATION.md
  • ls/docs/DOCUMENT_LIFECYCLE_MANAGEMENT.md
  • ls/docs/WORKFLOW_STANDARD.md

Documentation Skill Refresh Note

Classification: route docs drift, generated artifact sync, and public documentation alignment here rather than creating a duplicate generic documentation skill.

Command inventory boundary

The generated inventory's cli_commands lists root localsetup command families from the canonical ls/core/cli_parser.py builder. Collection parses declarations without importing or executing the target source. Missing, malformed, empty or nonliteral root declarations fail collection and require an owner update; they must not silently produce an empty command inventory. A regression check compares the collected names with the actual argparse root choices.

This field does not enumerate nested subcommands, options, delegated LSCli commands or their behavior. Audit those against their owning parsers and command references during comprehensive documentation alignment. A zero-finding report is not proof that every command contract or current documentation claim is covered.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

查看 CruxExperts 的全部技能

报告此技能的问题