From ritual
Use to validate architecture rules against a diff -- hard gate that blocks PR creation on violations
npx claudepluginhub yanekyuk/arcana --plugin ritualThis skill is limited to using the following tools:
You are validating architecture rules against the current changes. This is a **hard gate** -- violations must be fixed before a PR can be created.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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.