aiwf-check

Validates the aiwf planning tree and explains every check finding code.

Updated May 9, 2026
One-click install
npx skills add https://github.com/23min/aiwf --skill aiwf-check-23min
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiwf-check
Source: https://github.com/23min/aiwf/tree/main/internal/skills/embedded/aiwf-check
Command: npx skills add https://github.com/23min/aiwf --skill aiwf-check-23min

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working with an aiwf-managed planning tree, a blocked git push or a failed aiwf check run leaves you staring at cryptic finding codes like refs-resolve/unresolved or fsm-history-consistent/illegal-transition with no explanation of what went wrong or how to fix it. This Skill decodes every finding, tells you whether it blocks a push, and gives the remediation path. ## Core Features & Use Cases - Finding code reference: Explains every error and warning code emitted by aiwf check, from id collisions and broken references to FSM history violations and provenance audit failures. - Hook behavior guidance: Clarifies the difference between the fast pre-commit shape-only check and the full pre-push audit, including when each blocks and why. - Provenance audit scoping: Explains how --since <ref> controls the untrailered-commit audit range and what happens on branches with no upstream. - Use Case: Your push is rejected with ids-unique/trunk-collision. Ask the Skill what it means, and it explains that an id allocated on your branch collides with one on the trunk ref, and that aiwf reallocate is the fix. ## Quick Start Ask the assistant to explain why aiwf check reported a specific finding code and whether it blocks your push.

Frequently Asked Questions about aiwf-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my aiwf planning tree is valid?

Run `aiwf check` for a human-readable summary of findings, or `aiwf check --verbose` to expand every warning with its path, line, and remediation hint. Use `--format=json` for tooling integration.

Why did the aiwf pre-push hook block my git push?

The pre-push hook runs the full `aiwf check` and blocks on any error-severity finding, such as duplicate ids, unresolved references, illegal status transitions, or untrailered entity commits. Run `aiwf check` locally to see the exact finding code and its remediation hint.

What does the ids-unique/trunk-collision finding mean?

It means an id allocated on your branch is also allocated on the configured trunk ref at a different path, so two different entities share it across branches. Resolve it with `aiwf reallocate` rather than a manual `git mv`, so references and history stay intact.

How do I run the aiwf provenance audit on a branch with no upstream?

When the branch has no upstream, the untrailered-entity audit is skipped with a `provenance-untrailered-scope-undefined` warning. Pass `--since <ref>`, for example `aiwf check --since main`, or set an upstream with `git push -u origin <branch>`.

What is the difference between the pre-commit and pre-push aiwf checks?

The pre-commit hook runs `aiwf check --shape-only`, a fast subset that only catches stray files under `work/`. The pre-push hook runs the full check covering frontmatter shape, references, FSM history, provenance, and contract config.

Why does aiwf check report body-prose-id findings in my entity files?

Entity bodies must cite real entity ids at canonical width; placeholder shapes like `<prefix>-NNNN` are rejected there, though they are fine in docs. Tokens inside backticks or code fences are exempt because they discuss id syntax rather than referencing an entity.