Skip to content

/flowforge:dev:checkrules

/flowforge:dev:checkrules evaluates the project against the FlowForge rule set defined in .flowforge/RULES.md and prints a per-rule compliance report. It is the manual counterpart to the automatic checks that run as Claude Code hooks on every action.

Terminal window
/flowforge:dev:checkrules [rule-number|help|?]

From outside Claude Code:

Terminal window
flowforge run flowforge:dev:checkrules

A FlowForge project ships with a set of rules — Rule #3 (TDD), Rule #5 (work requires a ticket), Rule #18 (no work on main/develop), Rule #33 (no AI references in git output), and so on. Eight of those rules are enforced automatically on every Claude Code action via hooks. The remaining rules require periodic verification — they are too expensive or too coarse to run on every keystroke.

/flowforge:dev:checkrules runs the full sweep manually. It loads .flowforge/RULES.md, dispatches each rule’s verifier, and prints a structured report indicating which rules pass, which fail, and which warrant a closer look. The command refuses to run outside a FlowForge project: if .flowforge/RULES.md is missing the command exits non-zero and points the user at the project root.

When invoked with a single positional argument that parses as a rule number, the sweep narrows to that rule alone. This is the fast-path workflow: catch a likely violation, confirm it with a targeted check.

PositionNameRequiredDescription
1rule-numbernoRule number to verify in isolation (for example 3 for the TDD rule). When omitted, all rules are checked. The literal values ? and help print an in-terminal usage block and exit 0.

None. The command is positional-only.

VariableDirectionPurpose
ARGUMENTSreadReceives the rule number when invoked through the slash-command runtime.
DEBUGreadWhen set to 1, enables set -x tracing.

Run the full rule sweep:

Terminal window
/flowforge:dev:checkrules

Check Rule #3 (TDD) only:

Terminal window
/flowforge:dev:checkrules 3

Check Rule #18 (no work on main/develop) only:

Terminal window
/flowforge:dev:checkrules 18

Print the help block:

Terminal window
/flowforge:dev:checkrules help

A typical full sweep produces output of this shape:

FlowForge Rule Compliance Report
────────────────────────────────
Rule #1 Documentation Organization PASS
Rule #2 Three Options Before Implement PASS
Rule #3 TDD First PASS (152/152 tests)
Rule #5 Work Requires Ticket PASS (ticket #123)
Rule #18 No Work on main/develop PASS (branch: feature/123-...)
Rule #33 No AI References in Git Output PASS
...
35 rules checked. 0 failures, 0 warnings.
CodeMeaning
0Sweep completed; report generated. The exit code does not indicate whether all rules passed — read the report.
1Precondition failed. Most commonly: .flowforge/RULES.md not found because the command was invoked outside a FlowForge project.