From ritual
Use to validate architecture rules against a diff -- hard gate that blocks PR creation on violations
How this skill is triggered — by the user, by Claude, or both
Slash command
/ritual:run-arch-checkhaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are validating architecture rules against the current changes. This is a **hard gate** -- violations must be fixed before a PR can be created.
You are validating architecture rules against the current changes. This is a hard gate -- violations must be fixed before a PR can be created.
Read docs/ritual-config.json in the current project directory.
If the file does not exist, report: "No project config found. Run /run-setup first." and stop.
Extract architecture.rules from the config. If the array is empty or the architecture key is missing, report: "No architecture rules configured. Arch check passed (no rules to enforce)." and stop with a pass result.
Get the diff that will be included in the PR:
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
git diff $BASE...HEAD
If the diff is empty, report: "No changes to check. Arch check passed." and stop.
For each rule in architecture.rules:
For each rule, record one of:
Report:
Architecture check passed.
Rules checked: <N>
Passed: <N>
Not applicable: <N>
Return a pass result to the caller.
Report each violation:
Architecture check FAILED.
Violations:
1. Rule: "<rule text>"
File: <file path>
Line: <line number>
Details: <what violates the rule and why>
2. ...
Rules checked: <N>
Passed: <N>
Violations: <N>
Not applicable: <N>
Return a fail result with the full violation report. The caller (orchestrator or user) is responsible for deciding what to do -- fix the violations or proceed as a draft PR.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub yanekyuk/arcana --plugin ritual