/greenbar:setupfrom greenbar
Set up greenbar's done gate for this repo. Finds the project's real test, type-check and lint commands, writes .claude/done-gate.json, and proves the gate works. Use when the user runs /greenbar:setup or asks to configure greenbar.
Ships in greenbar. 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.
The done gate does nothing until .claude/done-gate.json lists at least one check.
package.json scripts, pyproject.toml,
Makefile, go.mod, Cargo.toml, CI files under .github/workflows/, and the README.
Prefer what CI runs. Typical picks: npm test --silent, npx tsc --noEmit, python3 -m pytest -q,
ruff check ., go test ./..., cargo test..claude/done-gate.json:
{"checks": [{"name": "tests", "run": "<command>"}]}. See examples/done-gate.json in this
plugin for every option.python3 "${CLAUDE_PLUGIN_ROOT}/hooks/done_gate.py" trust "$CLAUDE_PROJECT_DIR".
If CLAUDE_PLUGIN_ROOT is not set in your shell, find the plugin folder with claude plugin details greenbar.
Re-run this after any change to done-gate.json, guard.json or guard.off..claude/.done-gate/ to .gitignore (it holds the last-green fingerprint)..claude/guard.json if the repo has paths beyond the defaults that Claude must
never read (customer exports, credentials) or files that are locked once committed (migrations).
A list you set replaces that list's defaults, so copy the defaults you still want. Trust again after.touch .claude/done-gate.off, touch .claude/guard.off,
or DONE_GATE_OFF=1 for one session.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub anchorcoteam/greenbar --plugin greenbar