From jrobic-cc-harness-setup-example
Set up, configure, verify, or audit the Claude Code harness (deny list + team context import in CLAUDE.md). Trigger on intents such as: "set up my harness", "configure Claude Code", "verify my deny list", "audit my harness", "apply the team context", "check my Claude Code setup".
How this skill is triggered — by the user, by Claude, or both
Slash command
/jrobic-cc-harness-setup-example:harness-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When the user wants to set up, configure, verify, or audit their Claude Code
When the user wants to set up, configure, verify, or audit their Claude Code harness — including the deny list and the team context import — execute the following flow. Never write anything without explicit user confirmation.
${CLAUDE_PLUGIN_ROOT} may not expand in this context. Use a filesystem fallback:
SCRIPT="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/scripts/harness-setup.ts}"
if [ -z "$SCRIPT" ] || [ ! -f "$SCRIPT" ]; then
# CLAUDE_CONFIG_DIR covers isolated/demo homes; fall back to ~/.claude.
SCRIPT="$(find "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins" -name harness-setup.ts 2>/dev/null | head -1)"
fi
if [ -z "$SCRIPT" ] || [ ! -f "$SCRIPT" ]; then
echo "ERROR: harness-setup.ts engine not found. Is the plugin installed?" >&2
exit 1
fi
bun run "$SCRIPT" check
0 → already complete. Report this and stop.3 → incomplete. Proceed to step 3.2 → error. Report and stop.The engine prints the resolved home it audits, e.g.
Harness — configuration status (home: /Users/you/.claude). Surface that path so
the user knows which config is being touched (it may be an isolated/demo home).
Show the user (using the home path the engine reported, not a hardcoded
~/.claude):
deny rules (from <home>/settings.json)<home>/CLAUDE.mdConfirm with a structured prompt: call the AskUserQuestion tool with one
question ("Apply these harness changes?") and two options — Apply and
Cancel — rather than free-text. Apply only if the user selects Apply. Fall
back to an explicit typed confirmation if AskUserQuestion is unavailable
(headless/print mode).
Never invent deny rules. The source of truth is reference/deny.json
inside the plugin. The engine reads it directly — do not duplicate or
modify the rule list manually.
Only if the user selected Apply:
bun run "$SCRIPT" apply
After apply, present the summary. Confirm that:
.bak-<timestamp> backups were created for every modified file.<home>):
<home>/settings.json, <home>/CLAUDE.md, <home>/harness/CONTEXT.mdIf the user declines, do not run apply and do not write anything.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub jrobic/cc-harness-setup-example --plugin jrobic-cc-harness-setup-example