快速了解
它能做什么
用于维护文档规范的指导。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
选择前先看
该技能提供用于维护文档规范的指导
适合谁
需要documentation能力的 DSH 用户。
常见任务
- 用于文档规范相关的documentation工作流。
- 决定是否适合你的 Profile 前先查看固定版本的仓库证据。
权限与数据
本次未测试运行时行为;宿主访问范围取决于 DSH 集成方式和声明的依赖项。
权限- 将技能加入宿主技能集合。
- 本次未测试运行时数据处理。
- 可能使用固定仓库声明的依赖项或服务。
- 现有证据没有确认凭据要求。
局限
- 本次未测试运行时安装和执行。
- 描述基于固定版本的仓库证据。
DSHub 已核对
- 证据中固定了源码仓库 commit。
DSHub 未核对
- 本次未测试运行时安装、执行和兼容性。
- 不表示任何安全认证。
固定版本安装
主要操作
这个独立 Skill没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
Skill 使用说明
name: dsh-doc-standards description: 'Use when writing, moving, reviewing, or auditing documentation in the deepseek-harness repo — choosing hierarchy and detail, separating tutorials from references, checking tutorial progression, trimming doc slop, responding to a verify-doc-budgets failure, or requests like "improve the docs", "audit the docs", "where should this be documented", or "this doc is too long".'
Applying the DeepSeek Harness Documentation Standard
The documentation rules live in docs/AGENTS.md. This workflow covers placement, corpus audits, budgets, and validation across Markdown, JSDoc, and code comments. It is guidance, not a script; use dsh-prose-standard for required coverage and editorial judgment, and never treat length alone as a defect.
Sources of truth (read, don't re-summarize)
- docs/AGENTS.md — hierarchy, tutorial/reference forms, taxonomy, budgets, and slop checklist.
- .agents/notes/README.md — when a decision earns an Agent Note, how to file it, and what goes inside one (the header block, per-lifecycle skeleton, and Alternatives-considered mandate, gated by
verify-agent-note-format); docs/postmortem/README.md — when an incident earns a postmortem. - docs/i18n/README.md — the bilingual pairing rules; editing either side of a pair obligates the counterpart in the same change.
- Root AGENTS.md — the standing orders whose budget discipline this skill protects.
- Archived Agent Notes — frozen historical snapshots excluded from editorial maintenance and evolving documentation gates.
Review structure before prose
Apply the standard's authoring order to every human-facing document in scope. Do not apply this structural pass to Agent Notes. Classify a postmortem as a reference scoped to one incident; preserve its required chronological evidence without treating chronology as a teaching sequence.
- Locate the document in the repository and navigation trees. State its own subject and identify its direct children.
- Set the permitted level of detail. Keep full detail about the document's subject, summarize direct children by purpose, responsibility, and high-level behavior, and move deeper explanations to their owning descendants with links. Treat test infrastructure as descendant-owned unless it is the document's subject.
- Classify the document from its intended use, not its path or title. A tutorial must lead through ordered work to an observable outcome; a reference must support lookup within an explicit scope without requiring sequential reading.
- For a tutorial, privately classify the starting reader and concepts as beginner, intermediate, or advanced. Trace each concept to its prerequisites, reorder premature material, and move optional advanced detail to a later tutorial or reference.
- Split substantial mixed forms. Put a small secondary form in a clearly labeled section.
Then check constraints that make placement expensive or wrong:
- Paired docs (
pnpm run verify-translation-pairing --list) cost a zh counterpart update and a--writere-record on every edit — prefer an unpaired home for content that will churn. - Generated catalogs are never hand-edited; if the fact belongs there, change the generator's source.
- Before renaming or moving any doc, grep for inbound references:
verify-md-linkscatches Markdown link targets AND#fragmentanchors onto Markdown files (heading slugs and explicit<a id>), andverify-doc-refscatchesdocs/*.mdcitations in TypeScript comments; anchors cited from TypeScript strings still need a manual grep when their output never reaches gate-scanned Markdown. - A move is atomic: remove from the old home, add to the new home, and fix every inbound link in the same change.
Audit the corpus
After the structural pass, hunt the standard's slop checklist with the cheapest probes first. Verify and fetch the PR's live base, then run pnpm --silent run change-scope --base <verified-base-ref> to identify committed and dirty paths before applying semantic judgment. After a retarget or base merge, rerun the report and audit prose introduced by the new base.
- Measure:
pnpm run verify-doc-budgets --list, thengit ls-files '*.md' ':(exclude)vendor/**' | xargs wc -w | sort -rn | head -30to spot unbudgeted outliers. - Hunt reasoning-transcript leakage — narrated history, dead design-session citations, review choreography, control-flow narration, test walkthroughs — with dsh-trim-cot-leakage, which defines the taxonomy, recall batteries, and rules for what to keep or delete. Preserve only a non-obvious contract or durable rationale; the same rationale repeated beside sibling methods keeps one home.
- Hunt duplication by grepping distinctive phrases. Keep one home and replace other copies with links.
- Replace hand-written catalogs, test/status inventories, and JSDoc restatements with the authoritative tree, script, or generated reference.
- In
implemented/Agent Notes, remove migration plans, acceptance-task checklists, and future-tense spec language. Keep concise verification contracts that identify the behaviors and tiers pinning the shipped decision, plus named coverage gaps. - If removing prose changes a promised behavior rather than its explanation, use a proposed Agent Note first (follow dsh-find-simplifications).
Exclude .agents/notes/archived/ from corpus audits and edits. Active prose may repair, redirect, or delete an inbound link, but never follow an archive-wide cleanup into the frozen target.
Keep every load-bearing rule, preferably as one to three lines plus a link to its rationale. Cut stories, duplicates, status notes, and the path used to derive the rule. Do not create a new explanation merely to relocate disposable reasoning.
When verify-doc-budgets goes red
Apply the ordered relocate-condense-raise policy in docs/AGENTS.md; this skill only supplies the workflow probes above.
Validation and PR hygiene
Run at least pnpm run doc-sync, pnpm run lint, and git diff --check; JSDoc changes may regenerate catalogs. If a paired doc changed, follow the lightweight routine path and run pnpm run verify-translation-pairing --write <pair>. The PR body should give word deltas, explain any deliberately long exception, and list checks.
有意识地管理
安装与管理
前置条件与目标 Profile
目标: 没有原生 DSH Profile 目标。
交付方式: Skill 文件 — https://github.com/hust-open-atom-club/oh-dsh。
兼容性与访问范围
not_runtime_tested: not tested。
风险事实
A destructive recursive-delete pattern was detected in the installer script; do not run it without human review.
证据 ↗A destructive recursive-delete pattern was detected in the installer script; do not run it without human review.
证据 ↗A destructive recursive-delete pattern was detected in the installer script; do not run it without human review.
证据 ↗The npm distribution signal is incomplete or differs from the pinned source; review it before use.
证据 ↗The npm distribution signal is incomplete or differs from the pinned source; review it before use.
证据 ↗The npm distribution signal is incomplete or differs from the pinned source; review it before use.
证据 ↗证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
在核对来源内容和不可变发布记录后,已由人工批准发布。AI 参与了内容草稿生成,最终发布决定由人工完成。
人工审查于 2026/8/29 UTC 15:26。GitHub 事实核对日期: 2026/8/29 UTC 15:11。
自当前证据基线以来,没有记录到重要源码变化。