/archkeel:archkeelfrom archkeel
Defines and enforces repository architecture contracts using the Archkeel deterministic checker. Validates code against declared component rules before submitting changes.
Ships in archkeel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Archkeel is a deterministic architecture checker. A native collector observes the code, the Rust core evaluates a declared contract of components and rules against that observation, and the verdict is PASS, FAIL or UNKNOWN. UNKNOWN is not PASS. Nothing is enforced by convention alone. PASS under assumption depends on a named premise; report that premise with the verdict.
A window is runtime behavior the scan cannot bound. Close an eligible window with an approved contract entry, or change the code to turn it into a door. Never hide a window to report PASS. See doors and windows for examples and the current approval limits.
The Rust core decides validate and report. There is no Python fallback. In a source checkout,
run make core to build the core binary first.
archkeel validate [--root PATH] [--config PATH] [--json | --text] checks the contract.
PASS exits 0, FAIL exits 1, UNKNOWN and a refusal exit 2.
A rule can pass its written structure and still list open runtime windows. Read
WINDOWS-ACCEPTED for each frame. An open window keeps the frame UNKNOWN unless a rule fails.
A window marked no effect stays visible with reasons. It needs no approval.
An approved declarations.window_patterns entry covers only its exact sites and current facts.
Use the pattern count and site IDs in the frame to review what it accepts.archkeel report prints the same frame with the same exit codes. Add --topology for the bounded
topology. --output PATH writes one static HTML page; --output PATH --format json writes the
frame instead: archkeel report --output report.json --format json. Without --output, the
format option is refused. No file is written by default. The parent of PATH must exist.archkeel studio [PATH | --root PATH] opens the local Explorer. Existing scripts can use
archkeel explore. Without a contract it shows observed source and preserves UNKNOWN.archkeel rules --json lists rule forms and language support without a project.
The Explorer MCP tool rule_catalog returns the same catalog.archkeel skill install claude or archkeel skill install codex writes this skill file.archkeel init drafts archkeel.toml and a contract from the folder layout (Python packages, a
Cargo workspace, a package.json workspace). validate and report do it by themselves when
archkeel.toml is missing, and never replace a file (--no-init or ARCHKEEL_NO_INIT=1 writes
nothing). Every decision in the draft is a TODO: the first verdict is UNKNOWN and lists them. Ask
the owner for each decision; never fill one in alone. The walk is in docs/onboarding.md.Release 4.0.1 has check. Saved reports, architecture.json, amendments, --component and
--write-graph are refused by option name. A refusal is not a result: never report PASS after one,
and never run a refused command in a loop. Tell the owner and use release 4.0.1 when they need it.
Run archkeel studio PATH --no-open and keep it running. Set URL to its URL without the final /.
Search with curl -G "$URL/api/v1/search" --data-urlencode "text=FUNCTION".
Follow each returned element ID with
curl -G "$URL/api/v1/relations" --data-urlencode "element=ID" -d direction=out -d kind=call.
Follow next_cursor pages. A candidate or missing call is not a proven path.
See the story format and query guide.
ArchKeel collects source evidence for Rust, TypeScript, Python and Dart.
Rule coverage depends on the language and the available evidence.
Python and Dart support import and interface boundary checks.
Python also checks direct function calls for call_owner.
Dart checks cycles when the package map is complete.
Unsupported or unproved cases remain UNKNOWN.
Python and Dart can check named imports against a declared interface_boundary.
Do not report PASS for a supported subset of a project. Per-language limits are in known limits.
archkeel.toml names one scan. The schema
defines it:
[scan]
roots = ["src"]
namespace = "app"
language = "typescript"
contract = "architecture-contract.json"
language is rust, typescript, python or dart; a missing value selects python. The
contract lists components, requires entries and rules. Rule kinds and selectors are in the
rule catalog and the
reference.
A component may name a contract of its own with inside; the core reads each mount.
The architect owns the target. Never write a rationale or choose an allowed dependency yourself:
ask, and write the architect's own words with decided_by: "architect". Mark what you decided
without them decided_by: "agent". Never treat an observed import as permission.
archkeel validate --json before you submit a change. Read status and frame.rules
(each rule id with its state), not only the exit code.archkeel report --topology --output report.html and open the page.The reference has the
per-command exit table. --json prints JSON also in a terminal; --text prints text also without one.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rapiddweller/archkeel --plugin archkeel3 skills in this plugin
Other plugins' skills for the same job