Hai Audit Docs
For Chinese readers, see SKILL.zh_CN.md. The English file is the execution source of truth.
Principle
A coherent document can be factually wrong; implementation can violate an approved requirement.
Declare which authority settles each claim before deciding which side needs repair.
Select evidence and action
- Internal: compare claims within the named document set. Respect "only docs/no code".
Internal agreement proves consistency, not runtime truth.
- Implementation/contract: compare current-behavior claims with code/config and intended
behavior with approved specs/contracts. Inspect related internal contradictions as useful.
- Combined: use both when the user asks for both or a general accuracy audit has both sources
available. State the chosen scope; if code is unavailable, mark claims unverified instead of
implying they match.
- Audit only: deliver findings without editing.
- Check and fix: when requested, apply evidence-backed repairs to the named local documents,
then recheck affected claims and links. Do not silently change implementation to make docs true.
Escalate unresolved product/authority choices; continue independent clear repairs.
These are internal modes, not questions the user must answer before work starts.
Workflow
- Identify the named document surface, audience, scenarios, and requested action. Do not expand
named targets into sibling documents without reason or authorization. With no named targets,
inspect README, setup/API docs, and examples relevant to the question.
- Build a claim map: behavior, commands, defaults, lifecycle, permissions, terminology,
assumptions, acceptance, and cross-links. Record source precedence per class of claim.
- For internal evidence, read
references/internal-audit.md; distinguish explicit supersession
from unsupported claims. Absence of support alone does not prove a claim false or obsolete.
- For implementation evidence, read
references/checklist.md. Trace documented scenarios to
implementation and inspect public/config contracts back toward documentation for important
omissions. Cite both locations and identify generated versus canonical sources.
- Classify each finding as document defect, implementation gap, internal conflict, or needs
evidence/decision. If a doc describes approved future behavior, mark the implementation gap;
do not rewrite it to bless current behavior. Consult
references/worked-examples.md when
authority is disputed.
- Recommend update, move, merge, remove, split, or resolve. Separate a suggested repair from an
applied edit. Preserve real contracts and unresolved claims explicitly.
- If repairs were requested, make the bounded authorized edits and verify them. Route a wholesale
rewrite to
hai-rewrite-doc with the established evidence; product decisions belong to
hai-prd, plan changes to hai-goal.
- Read
references/output-template.md and report scope, findings, actual edits, verification,
and unresolved decisions without repeating a full report for each evidence mode.
Impact
- P0: evidenced severe wrong decision, data/security harm, or launch failure.
- P1: core scenario, scope, or acceptance is materially wrong.
- P2: bounded drift, omission, duplication, or misleading terminology.
- P3: minor wording or link issue.
- Needs evidence/decision: unresolved; not a confirmed defect.
Rate actual impact, not the presence of a sensitive keyword. A security-related typo alone
does not become a release blocker.
Boundaries
- Formatting without factual changes →
readme-beautifier.
- Whole-document reconstruction →
hai-rewrite-doc.
- Product requirements or acceptance definition →
hai-prd.
- Entity fields and storage/migration placement →
entity-model-auditor.
- Proving a software change works →
write-technical-acceptance-report; documentation
inspection alone does not prove runtime acceptance.
1---2name: hai-audit-docs3description: Audits documentation for internal contradictions and/or mismatches with code, config, schemas, and approved contracts. Use for 文档审计、前后冲突、术语漂移、README 是否过时、文档和代码一致吗, including check-and-fix requests. Select evidence sources from the request; return prioritized findings, source precedence, and repair ownership. Apply clear local repairs only when requested. Use hai-rewrite-doc for wholesale reconstruction, hai-prd for product shaping, and readme-beautifier for formatting only.4---56# Hai Audit Docs78For Chinese readers, see `SKILL.zh_CN.md`. The English file is the execution source of truth.910## Principle1112A coherent document can be factually wrong; implementation can violate an approved requirement.13Declare which authority settles each claim before deciding which side needs repair.1415## Select evidence and action1617- **Internal**: compare claims within the named document set. Respect "only docs/no code".18 Internal agreement proves consistency, not runtime truth.19- **Implementation/contract**: compare current-behavior claims with code/config and intended20 behavior with approved specs/contracts. Inspect related internal contradictions as useful.21- **Combined**: use both when the user asks for both or a general accuracy audit has both sources22 available. State the chosen scope; if code is unavailable, mark claims unverified instead of23 implying they match.24- **Audit only**: deliver findings without editing.25- **Check and fix**: when requested, apply evidence-backed repairs to the named local documents,26 then recheck affected claims and links. Do not silently change implementation to make docs true.27 Escalate unresolved product/authority choices; continue independent clear repairs.2829These are internal modes, not questions the user must answer before work starts.3031## Workflow32331. Identify the named document surface, audience, scenarios, and requested action. Do not expand34 named targets into sibling documents without reason or authorization. With no named targets,35 inspect README, setup/API docs, and examples relevant to the question.362. Build a claim map: behavior, commands, defaults, lifecycle, permissions, terminology,37 assumptions, acceptance, and cross-links. Record source precedence per class of claim.383. For internal evidence, read `references/internal-audit.md`; distinguish explicit supersession39 from unsupported claims. Absence of support alone does not prove a claim false or obsolete.404. For implementation evidence, read `references/checklist.md`. Trace documented scenarios to41 implementation and inspect public/config contracts back toward documentation for important42 omissions. Cite both locations and identify generated versus canonical sources.435. Classify each finding as document defect, implementation gap, internal conflict, or needs44 evidence/decision. If a doc describes approved future behavior, mark the implementation gap;45 do not rewrite it to bless current behavior. Consult `references/worked-examples.md` when46 authority is disputed.476. Recommend update, move, merge, remove, split, or resolve. Separate a suggested repair from an48 applied edit. Preserve real contracts and unresolved claims explicitly.497. If repairs were requested, make the bounded authorized edits and verify them. Route a wholesale50 rewrite to `hai-rewrite-doc` with the established evidence; product decisions belong to51 `hai-prd`, plan changes to `hai-goal`.528. Read `references/output-template.md` and report scope, findings, actual edits, verification,53 and unresolved decisions without repeating a full report for each evidence mode.5455## Impact5657- P0: evidenced severe wrong decision, data/security harm, or launch failure.58- P1: core scenario, scope, or acceptance is materially wrong.59- P2: bounded drift, omission, duplication, or misleading terminology.60- P3: minor wording or link issue.61- Needs evidence/decision: unresolved; not a confirmed defect.6263Rate actual impact, not the presence of a sensitive keyword. A security-related typo alone64does not become a release blocker.6566## Boundaries6768- Formatting without factual changes → `readme-beautifier`.69- Whole-document reconstruction → `hai-rewrite-doc`.70- Product requirements or acceptance definition → `hai-prd`.71- Entity fields and storage/migration placement → `entity-model-auditor`.72- Proving a software change works → `write-technical-acceptance-report`; documentation73 inspection alone does not prove runtime acceptance.