wiki-policy-check
Installation
SKILL.md
wiki-policy-check — Audit business-rule leaks + validate typed-schema
This skill has two modes:
| Mode | When to use | How it works |
|---|---|---|
audit |
Default. User asks "is anything leaking?", "audit the docs", "check for business rules in this repo". | Prompt-driven: agent reads all markdown in this repo and reports leaks (see §Steps below). |
validate-schema |
User asks to validate typed Decisions/Rules/Events in a wiki target. Or invoked by wiki-lint (epic #4 Story 05). Or after publishing a new ADR/Rule. |
Script-driven: scripts/validate-schema.ts reads <wiki>/_schemas/typed-schema.yaml and validates frontmatter + events.jsonl lines per ADR-0009. |
The two modes are independent — audit is the original prompt-based skill; validate-schema is a programmatic add-on (epic #4 Story 02 of wiki-service).
Mode 1: audit (prompt-driven)
Convention this skill enforces: technical rules live in the project repo; business and product rules live in the central wiki. This skill audits all markdown in the current repo for content that crossed the line and reports what should migrate.
Project root
This skill reads files at paths relative to the project root (the repo where the audit runs), not the agent's current working directory.