
crafthall
io.github.crafthall/crafthall
Offline check of a Claude Code agent setup: agents, skills, CLAUDE.md; verdict, hints at file:line
Documentation
Crafthall
Is your Claude Code agent setup OK? Find out in one command.
Crafthall checks your .claude/agents, skills and CLAUDE.md and shows what to fix first – each hint with its file,
line and fix. It runs on your machine and sends nothing.
Open your agent map
Run this in your workspace folder – the folder that holds .claude/ and CLAUDE.md:
npx crafthall --open
You need Node.js 20 or newer; there is nothing to install first and no account. Crafthall checks the workspace on your
machine, prints the verdict in the terminal and opens your agent map in the browser: a page served from your machine on
127.0.0.1 with the health score, who hands work to whom and every hint with its file, line and fix. Ctrl+C stops the
page. For the text report in the terminal only, run npx crafthall.

- One command, nothing leaves your machine. No account and no telemetry; the check makes no network request.
- Same files, same verdict. Deterministic text rules, not a language model: the same files with the same Crafthall version always give the same result.
- See what your fix changed. Save a check, fix, compare (Before and after):
9 issues before → 5 now (fixed 4, new 0, still there 5, moved 0).
Example: Metabase's agents
A public-repository snapshot: metabase/metabase
at commit 37e608e. Crafthall finds 11 agents, 16 handoffs and 25 skills, a health score of 97 and no conflicts.
One handoff to look at: transforms-backend-expert hands driver DDL changes to drivers-and-sync-backend-expert, whose
file never names it back, so the receiver has no contract for what arrives (.claude/agents/transforms-backend-expert.md:83).
Read the Metabase report – every hint checked at its line – or the
other sample reports.
See your own agent map: run npx crafthall --open in your workspace folder.
Use inside Claude Code
The Claude Code plugin gives you the same check and dashboard inside your Claude Code session.
One command (Claude Code 2.1.292 or newer – check with claude --version):
claude plugin install crafthall --marketplace crafthall/plugins
Then open Claude Code in the workspace that holds your agents (claude) and run /crafthall:open: 3 steps in all.
Already in a session (Claude Code 2.1.275 or newer): /plugin install crafthall --marketplace crafthall/plugins, then /reload-plugins.
After install, the first new Claude Code session shows one line, once: "Crafthall is installed. Run /crafthall:open to open the dashboard of the agents in this workspace – offline, nothing is sent." (a session that was already open does not; Claude Code has no install screen).
Older Claude Code – two commands instead of the first one (4 steps):
claude plugin marketplace add crafthall/plugins
claude plugin install crafthall@crafthall
What the plugin adds to the terminal command:
- Fixes in your session. In the dashboard opened with
npx crafthall --open, the fix buttons copy a prompt for you to paste into Claude Code. Opened with/crafthall:open, they send the fix to Claude in the same session, and you review each edit before it is applied. - Slash commands:
/crafthall:open,/crafthall:open --report,/crafthall:doctor, and the Optimize and Canon commands. - The MCP tool, registered for you: Claude and your agents can call
check_agents. Without the plugin, register it yourself (MCP server without the plugin).
Website: crafthall.dev – every check below has its own page there, with a real example, the plugin's output on it and the fix. Crafthall Optimize and Crafthall Canon are included in the plugin (details).
What it checks
Crafthall reads the files that define your agents: .claude/agents/**/*.md (subfolders too), .claude/skills/*/SKILL.md, CLAUDE.md
and shared docs, plus the rest of the Claude Code setup: .claude/settings.json (with its hooks; .claude/settings.local.json
only when the repository tracks it), .mcp.json and .claude/commands/. Secret values in those files (env,
headers, tokens) are replaced before any check reads them, so a hint names the key, never the value. It then runs 26
checks on your machine. Eleven look for definition errors in single files (broken references and broken frontmatter in
command files too):
| Check | What it finds |
|---|---|
| Missing field | An agent file has no name or description (Claude Code needs both), or has no persona or tool limit when the other agents set one. A file with no frontmatter at all is reported too, because Claude Code does not load it as a subagent. |
| Duplicate identity | Two agents share an id or a personal name, so a request can reach either one. |
| Broken reference | An agent or skill points to a repo path that does not exist. |
| Persona mismatch | A file calls an agent by a personal name that is not its persona:. |
| Tool mismatch | An agent is told to write files but has no Write or Edit tool. |
| Broken frontmatter | The frontmatter block is not closed, or one of its lines is not valid YAML, so Claude Code reads no fields from it. |
| Unknown tool | A tools: entry is not a Claude Code tool or an MCP tool. A near miss, such as Edti, is flagged as a typo. |
| Skill name that does not resolve | An agent or shared file tells Claude to run a skill by a name no project skill, command or built-in answers to. Plugin and personal skills are never reported as broken. |
| Skill description cut or too short | A skill's description plus when_to_use is over the 1,536 characters Claude Code keeps in the skill listing, so the end is cut, or it is too short to say what the skill does. |
| Two skills with the same trigger | Two skills have near-duplicate descriptions, so Claude cannot tell which one a request is for. |
| Oversized SKILL.md | A SKILL.md body is over 500 lines and links no supporting file, so all of it loads every time the skill runs. |
Six check the rest of the setup against the Claude Code docs:
| Check | What it finds |
|---|---|
| Settings or MCP file is not valid JSON | .claude/settings.json or .mcp.json does not parse as strict JSON, so Claude Code skips the whole file. |
| Settings key Claude Code does not apply | A typo of a setting (permisions), a setting read only from user or managed settings, or a misplaced key such as mcpServers in a settings file. |
| Unknown hook event | A key under hooks is not a hook event (PostToolUSe), so its hooks never run. |
| Hook runs a script that does not exist | A command hook runs a repo script ($CLAUDE_PROJECT_DIR/.claude/hooks/x.sh) that is not in the repository. |
| Unknown tool in a hook matcher or permission rule | A matcher or a permissions rule names a misspelt tool (Edit|Wirte, Bsh(rm *)), so it never applies. |
| MCP server cannot start | A server in .mcp.json has no command or url, an unknown type, a url without type, or runs a missing repo script. |
Nine read all agents at once. They work from the wording of the files, so treat each hint as a lead to check:
| Check | What it finds |
|---|---|
| Conflicting directive | Two files give opposite instructions on the same policy. |
| Cross-group boundary unclear | Files disagree on which agents one group may borrow from another, and for what. |
| One-way handoff | An agent hands work to another agent whose file never mentions it. |
| Handoff file path does not match | One agent saves a file at one path and the agent that reads it looks at another, or writes into a folder nothing reads. |
| No boundaries defined | The agent file never says what the agent must not do. |
| Code changes are never verified | An agent that writes code names no test, check or review step and hands its work to no agent that does. |
| Retry loop without a limit | An agent is told to keep trying until checks pass, with no limit and no point where it hands back. |
| Failing tests may be skipped or retried | A file allows skipping, disabling, retrying or sleeping around failing tests. |
| Nobody delegates to this agent | No other agent, skill or shared document names the agent, so nothing sends it work. It was off at first and came back after a re-test on 10 public repos where 9 of its 15 hints held up (60%) – a small sample, most of it from one repo, so check each hint. |
Three more checks – overlapping responsibilities, unclear when to use the agent and unclear when to use the skill – are off in this release: in testing on public repos too few of their hints held up (the skill check uses the same test as the agent check and stays off until it is measured on its own). The output lists them under "Not checked".
The dashboard also shows a gap check (can your agents do an assignment you describe, and which capability is missing) and a bench of reserve agents from public libraries rated against your agents. Both run on your machine too.
The first line of the output is the verdict, for example:
2 things to improve (1 minor note; checked on this machine, nothing sent)
Below the verdict come the top hints, most important first. Each hint names the file and line and says how to fix it.
Minor notes are listed but not counted in the number of things to improve. With clean agents the verdict starts with
OK – no conflicts or broken handoffs found in <n> agents.
The checks are deterministic text rules, not a language model, so the same files with the same Crafthall version always give the same result. They are hints, not proof: a rule sees only what its pattern describes, and a clean result does not mean your agents have no problems. You decide what to change; see No guarantee.
Optimize and Canon included
One install gives you Optimize's token-use and before/after
commands (/crafthall:optimize-usage, -import-usage, -report, -fixture-add, -compare) and Canon's product
docs check and skills (/crafthall:canon-check; skills project-init, bootstrap, everything-as-code,
hub-check). If you installed crafthall-optimize or crafthall-canon on their own before, you can uninstall them.
Install
You need Claude Code and Node.js 20 or newer. Installing downloads Crafthall from GitHub, both the
plugin and the terminal client (npx with git). After that, the check itself needs no network.
Something does not start? Run /crafthall:doctor in Claude Code (or npx crafthall doctor) and see
Troubleshooting.
Claude Code plugin
The one command is in Use inside Claude Code. claude plugin list should then show the plugin.
Without Claude Code (npm)
npx crafthall --open
Run it in the repository you want to check, or pass a path (npx crafthall <path> --open). Without --open it prints
the text report only. --help lists every option. To pin a version, use npx crafthall@<version>; the same client is on
GitHub as npx github:crafthall/plugins (it needs git; add #v<version> to pin one).
MCP server without the plugin
The plugin registers Crafthall's MCP server for you. Running npx crafthall --open does not: the dashboard alone adds no
MCP tool to Claude Code. To give Claude Code the tool without the plugin, register the standalone stdio server in your
workspace:
claude mcp add crafthall -- npx -y crafthall mcp
Then check that it is there: claude mcp list shows crafthall as connected, and in a new Claude Code session /mcp
lists the server with the tool check_agents. Use --scope user to register it for every workspace, and
claude mcp remove crafthall to remove it.
First run
In Claude Code, open the workspace that holds your agents and run:
/crafthall:open
Claude Code names plugin commands /<plugin>:<command>, so the command is /crafthall:open, not /crafthall. It opens
Crafthall's dashboard of your agents and answers in the chat with one line: the verdict and the page's address.
The page is served from your machine on 127.0.0.1 and opens in the app's browser pane, or in your default browser; it
stops when the Claude Code session ends. It shows the Agents Map, a directory of your agents and their profiles, and the review with every hint. If your
repo has a .claude/portraits/ folder with one image per agent id (<agent id>.png, .jpg, .webp or .avif), the
map shows those portraits. They are read from your repo and never uploaded.


The screenshots show the synthetic demo agents that ship with the plugin (see "Try it on the demo agents" below).
To see the text report in the chat instead, run /crafthall:open --report: Crafthall shows the verdict and the top hints,
then Claude offers to apply the first fix. The plugin tells Claude to show you the exact edit first and to change the
file only after you say yes; your Claude Code permission settings apply as well. Review each edit before you accept it.
From the terminal the same steps are npx crafthall --open (the dashboard) and npx crafthall (the report). Press Ctrl+C to stop
the page.
More in Claude Code
- Fix from the dashboard. In the dashboard's Review, Fix all sends every hint shown to Claude in the same Claude
Code session; tick hints and use Fix selected, or use Fix this on one hint. The page shows "Claude is fixing…"
and blocks a second request until Claude reports back, then runs the check again. Each edit follows your Claude Code
permission settings; review each edit before you accept it. Without a Claude Code session behind the page (for
example
npx crafthall --openin a terminal), the buttons copy a prompt to paste into Claude Code instead. This uses Claude Code's messages between sessions (Claude Code 2.1.224 or later). - Assistant hints (off unless you ask). With
/crafthall:open --report --assistant, or when you say yes to the offer under the report, Claude reviews the same files, and the documents they point to, once with a fixed, versioned prompt and with read-only tools. The extra hints are labelled "Assistant hints" and are never counted in Crafthall's verdict. They are written by a language model, so they can be wrong. They run in your Claude Code session and count against your own Claude plan or API usage. Without--assistantor that yes, no assistant review runs. - MCP tool. The plugin adds a local MCP tool,
check_agents, so Claude and your agents can run the check without a shell prompt.
Try it on the demo agents. The plugin ships five synthetic agents of a made-up company (with a few
planted problems) in its examples/demo-team/ folder. To check them without touching your own workspace:
/crafthall:open <plugin folder>/examples/demo-team
Claude Code shows the plugin folder in /plugin (installed plugins); any repository with a .claude/agents/ folder
works the same way.
Example prompts (in Claude Code, in a workspace with agents):
/crafthall:open– the dashboard: health score, Agents Map, agent directory and every hint on a local page./crafthall:open --report– the verdict and the top hints with file and line in the chat, then Claude offers the first fix.- "Run the agents check and fix the first hint" – Claude uses the MCP tool
check_agents, shows the edit and changes the file only after you say yes. /crafthall:open --report --all– every hint in the chat, Crafthall's own checks only (add--assistantfor the assistant hints).
Before and after. To see what a fix changed, save a check, fix the files and compare:
npx crafthall --save-check before.json
# fix the files, then:
npx crafthall --save-check after.json
npx crafthall compare before.json after.json
Pull requests (GitHub Actions, opt-in). To see what a pull request does to your agents before you merge it,
copy plugin/examples/github-actions/crafthall-pr.yml to
.github/workflows/ in your repository. When a pull request changes an agent, skill or shared file, the run checks the
merge base and the pull request head with the same pinned release and lists in the job summary the findings it adds
and the ones it resolves, with severity and file:line. Findings that were already there, or only moved to another
line, are not shown as new. The summary also says when there is nothing to compare: no agent configuration, the
first agent of the repository (no baseline), or two checks that cannot be compared.
- It never blocks a merge: the job succeeds whatever it finds. A tool error shows as a warning on the run and a "Not checked" summary.
- It is read-only:
permissions: contents: read, no secrets,pull_request(notpull_request_target). Your files are read as data; nothing from the repository is installed or run, and nothing is sent anywhere. - The log and the summary show titles, agent ids and locations only, never the text of your instructions.
- It needs Crafthall 0.5.0 or later (
crafthall pr-report); the workflow pins the release tag, so change the tag in the file to move to a newer release.
README badge. Show your agents' verdict in your README: npx crafthall --badge writes
.github/crafthall.svg (made on your machine, nothing sent) and prints the Markdown line to paste: the badge
image, linked to https://crafthall.dev/. Commit the file and run --badge again to refresh it. When the verdict is OK, the dashboard's Get badge shows the same line.
Exit codes, for scripts and CI: 0 OK, 1 things to improve, 2 usage error, 3 nothing checked (no Claude Code
agents found, or another format only).
What runs where
Crafthall is a Claude Code plugin (with the same client for a terminal through npx). It does not work in Claude on the
web or in other apps: it reads your local repository and runs node.
| Where it runs | What leaves your machine | |
|---|---|---|
| All 26 checks, the gap check and the bench (CLI, plugin, MCP tool, local page) | on your machine | nothing |
| The dashboard (local page) | a server on 127.0.0.1, on your machine | nothing; the page talks only to that local server |
Before and after (--save-check, compare) | on your machine | nothing; the file goes where you save it |
README badge (--badge, Get badge on the dashboard): an SVG of the verdict and score for your README | on your machine | nothing; the file goes into your repository (.github/crafthall.svg or the file you name) |
Optimize tab (local page): the cost comparisons of the free Crafthall Optimize plugin, read from .crafthall/optimize/ in your repository | on your machine | nothing; Crafthall only reads the records, never changes them and never adds them to a check |
| Report an issue (link at the bottom of the dashboard sidebar and in About) | your browser opens github.com in a new tab | nothing until you submit: the link prefills a bug report with the Crafthall version only (no workspace data) on github.com/crafthall/plugins, and you review and submit it there |
Crafthall Optimize (/crafthall:optimize-*): its CLI, scripts/crafthall-optimize.mjs | on your machine | usage, import-usage, report, fixture-add: nothing. compare shows its plan and expected cost first and only after you confirm runs your Claude Code CLI (claude -p) on your account: what Claude Code sends to its model |
Crafthall Canon: /crafthall:canon-check (scripts/hub.mjs) and its skills | the check on your machine; the skills in your Claude Code session | the check: nothing. The skills: what Claude Code sends to its model |
| Welcome line (plugin hook at the start of a new Claude Code session; prints only once) | a shell script on your machine | nothing; it writes one empty file, welcome-shown, in Claude Code's data folder for the plugin. It also reads Claude Code's list of installed plugins and, once, says when a standalone Crafthall Optimize or Canon plugin can be uninstalled (marker suite-duplicate-shown) |
Assistant hints (/crafthall:open only) | your Claude Code session | what Claude Code sends to its model, under your Claude Code terms (see Privacy) |
You need no account, no sign-in and no key. Crafthall reads files and runs no code from your repository. It calls your
installed git (git ls-files and git rev-parse) to list the repo's paths and read the current commit id, so it can
tell whether a referenced path exists.
No network. This release has no server, no engine, no sign-in and no telemetry: its code makes no network request.
The only web addresses in it are the local page on 127.0.0.1, one link shown in the bench as the source and
licence of its example agents (https://github.com/affaan-m/ECC, MIT), the link to the Crafthall Optimize page
(https://crafthall.dev/optimize/) on the Optimize tab, the website link (https://crafthall.dev/) in the Markdown line
the README badge prints for you to paste, the Report an issue link to the public new-issue form
(https://github.com/crafthall/plugins/issues/new), the SVG namespace name inside the badge (http://www.w3.org/2000/svg, an
identifier), the JSON Schema dialect name inside the Optimize record
schema (https://json-schema.org/draft/2020-12/schema, an identifier), and Crafthall Optimize's support and releases
links (https://github.com/crafthall/optimize) in its help text; Crafthall never opens any of them itself.
Optimize's compare starts your own claude CLI only after you confirm.
What the plugin runs: the command /crafthall:open runs node <plugin>/scripts/crafthall.mjs in your workspace
through Claude Code's Bash tool; the MCP server crafthall is the same file (crafthall.mjs mcp); the welcome hook is
hooks/welcome.sh; the assistant step runs node <plugin>/tools/assistant-merge.mjs, which only formats text; the
Optimize commands run node <plugin>/scripts/crafthall-optimize.mjs and /crafthall:canon-check runs
node <plugin>/scripts/hub.mjs check.
What Crafthall does not do
- It does not run, schedule or orchestrate agents. It reads the definitions and judges them.
- It does not trace what your agents do at runtime, or what they cost.
- It does not use a language model for its verdict. The optional assistant hints in Claude Code are separate and never counted.
- Crafthall changes your files only after you see the diff and confirm, and only these: the
persona:frontmatter key of an agent (and, only if you tick it, the "Your name is" line of the body);docs/crafthall/agents/groups.json(Agent Groups);docs/crafthall/agents/ignore.json(a hint marked "Not a problem"); its own marked Focus section ofCLAUDE.md; and theupkeep:key of a Canon hub README. Agent ids are never renamed; commit first, Crafthall does not back up your files. Fixes to the rest of an agent file stay yours: Claude makes them in your Claude Code session – after you say yes to the fix it offers in the chat, or after you click a fix button in the dashboard – and your Claude Code permission settings apply to every edit. - It checks the Claude Code format only. A repo with only
AGENTS.mdor Cursor rules gets "format not supported yet" (exit 3). - It does not check your code, the quality of your prompts in general, or the security of your repository.
- It does not store your files and sends them nowhere.
- It is not professional, legal or security advice, and it does not certify agents as correct or safe.
Privacy
- Crafthall sends nothing. The checks, the local page and before/after run on your machine. They need no account. Crafthall collects no telemetry and no analytics.
- What it reads:
.claude/agents/**/*.md(subfolders and untracked ones too),.claude/skills/*/SKILL.md,CLAUDE.md,AGENTS.md,docs/organization.md,docs/workflow.md,docs/orgs/*/README.mdanddocs/orgs/*/how-we-work.md(files over 200 KB are skipped), plus the list of file paths in the repo (tracked files and ignored files on disk) and the current commit id. It reads no other file contents. For the dashboard it also readscrafthall.config.jsonif present and the portrait images in.claude/portraits/(or the folder that config names). - What it writes: nothing in your repository, unless you ask for it with
--save-check <file>or--badge [file.svg]. The plugin's welcome line writes one empty marker file in Claude Code's data folder for the plugin, so it shows only once. - Inside Claude Code:
/crafthall:openruns in your Claude Code session. As with any command there, its output (the verdict and hints, which quote lines from your files) and, if you ask for them, the assistant hints (Claude reads the same files and the documents they point to) go to the model your Claude Code uses, under your own agreement with that model provider. Crafthall's code sends them to no one else. For a run that involves no model, usenpx crafthallin a terminal. The assistant hints run only with--assistantor your yes; the verdict and hints still pass through your Claude Code session. - Downloads: installing the plugin fetches it from GitHub, and
npx crafthallfetches the package from the npm registry (npx github:crafthall/pluginsfetches this repository from GitHub). Those services apply their own terms.
Licence
MIT. See LICENSE.
The licence covers the client in this repository: the CLI, the plugin, the local page and every check it runs. The local page bundles third-party components (among them React, Radix UI, Lucide icons and the Geist font under the SIL Open Font License 1.1). They keep their own licences, listed in THIRD-PARTY-NOTICES.md.
No guarantee
Crafthall's hints and verdict are automated suggestions about your agent definitions, not an assessment of whether your agents work, is safe or is fit for any purpose. Check each hint and each fix yourself before you rely on it. Crafthall is provided "as is", without warranty of any kind, as the LICENSE says in full.
Trademarks
Crafthall is an independent product. It is not made, endorsed or sponsored by Anthropic, and it is not affiliated with Anthropic. Claude, Claude Code and Anthropic are trademarks of Anthropic, used here only to say which tool Crafthall works with.
Troubleshooting
Start with the prerequisite check. It reads nothing in your repository, sends nothing and prints a fix for every missing piece:
npx crafthall doctor
Inside Claude Code: /crafthall:doctor. It checks Node.js 20 or newer, Git on PATH and, in the plugin, the
Claude Code version. Exit code 0 means ready, 1 means something is missing.
Node.js missing or too old. The plugin's commands, its MCP server and the dashboard run node. At session start
the plugin says so in one line when Node.js is missing or older than 20, or Git is missing. Install Node.js 20 or newer
(macOS: brew install node; Windows: winget install OpenJS.NodeJS.LTS; Linux: your distribution's package or
nvm install 22; or the installer from nodejs.org). Node.js 16 and older cannot even load Crafthall and print a
SyntaxError or ERR_UNKNOWN_BUILTIN_MODULE instead.
Installed, but Claude Code does not find node or git (PATH). Claude Code uses the PATH it was started with. After
installing Node.js or Git, quit and restart Claude Code (the desktop app too) and open a new terminal. With nvm, fnm or
asdf, make sure your shell profile puts that Node.js on PATH for non-interactive shells as well, then restart.
Claude Code version. claude --version shows it. The one-command install needs 2.1.292 or newer; older versions use
the two commands above; claude update updates. Installing from inside a session needs 2.1.275 or newer and
/reload-plugins afterwards (see Install). A session that was already open does not see a new plugin until you reload or start a new one.
Windows. Use Claude Code with Git for Windows installed (Claude Code runs commands in Git Bash, which the plugin's start-up check also needs), or run everything inside WSL – then install Node.js and Git inside WSL, not on Windows. Paths with spaces are fine. Restart Claude Code after installing Node.js or Git so it sees the new PATH.
Install errors. The one-command install reports an unknown marketplace: run the two-command install above, which
adds crafthall/plugins first. npx crafthall fails to download: it needs access to the npm registry (and, for
npx github:crafthall/plugins, git on PATH and github.com); behind a proxy, set HTTPS_PROXY for npm and git. claude plugin list shows whether the plugin is
installed and enabled.
The dashboard does not open. /crafthall:open starts a small local server on 127.0.0.1 and prints
Dashboard: http://127.0.0.1:…; open that address yourself if no browser started. It runs only while that Claude Code
session runs, so open the command again in a new session. A port that is taken is skipped automatically. From a
terminal: npx crafthall --open (Ctrl+C stops it; --no-browser prints the address only).
Offline. After install, every check runs on your machine and nothing is sent; Crafthall needs no network and no account. Only installing and updating download from GitHub.
Still stuck? Open an issue with the output of the doctor command and claude --version (see Support).
Support
Open an issue in this repository: https://github.com/crafthall/plugins/issues. Support is through GitHub issues only, with no calls or meetings. Issues are public.
Security problems: do not open a public issue. Report them privately through the repository's Security tab ("Report a vulnerability").
Please include:
- the version (
npx crafthall --version, or theVersionline ofclaude plugin list); - what you ran (
/crafthall:open,--report, the MCP toolcheck_agents) and the exit code; - the output, with nothing private in it: no file contents you do not want to make public;
- what you expected instead.
crafthallnpm install crafthall