Skip to content
Skill Authoring
Skill

/hai-audit-docs

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

From plugin
hai-stack
39519 skills

Claude Code

$ npx -y skills add hylarucoder/hai-stack --skill hai-audit-docs --agent claude-code

SKILL.md

hai-audit-docs.SKILL.md
name: hai-audit-docs
description: |
  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.

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

1. 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. 2. Build a claim map: behavior, commands, defaults, lifecycle, permissions, terminology, assumptions, acceptance, and cross-links. Record source precedence per class of claim. 3. 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. 4. 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. 5. 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. 6. Recommend update, move, merge, remove, split, or resolve. Separate a suggested repair from an applied edit. Preserve real contracts and unresolved claims explicitly. 7. 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`. 8. 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.

Read more
@hylarucoder
Ships withhai-stack

让 Coding Agent 把软件迭代做对:从真实问题出发,完成改动,用证据确认结果。 支持:大多数能读取 Skills(SKILL.md)的 Coding Agent,例如 Claude Code、Codex。 hai-stack 由 @海拉鲁编程客 创建。它把一次软件迭代拆成判断、设计、动手、确认、沉淀五步,每一步都有对应的技能。

Stars on GitHub

Momentum

stars in total
395
Star history of hylarucoder/hai-stack on GitHub, a chart by star-history.com

Other skills on hai-stack.

geju

geju

Challenges an overly conservative, incremental, or compatibility-led proposal with a bold target model, a concrete…

goudi

goudi

Pressure-tests an ambitious proposal and returns a landing judgment, one minimum viable proof, explicit cuts, success/failure…

hai-architecture

hai-architecture

Investigates architecture and change complexity from repository runtime paths to bounded modules, React components, and shared…

hai-ast-grep

hai-ast-grep

Produces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures.…

More skills from other plugins.

gstack-openclaw-ceo-review

gstack-openclaw-ceo-re…

Use when asked to review a plan, challenge a proposal, run a CEO review, poke holes in an approach, think bigger about scope, or…

gstack3w138k
@garrytan@garrytanInstall Skill
book-to-skill

book-to-skill

Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…

@virgiliojr94@virgiliojr94Install Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

@titanwings@titanwingsInstall Skill

Questions about hai-audit-docs.

Which coding agents can use hai-audit-docs?
hai-audit-docs installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.