Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By usadamasav2026.1128.3MITIn 1 marketplace
Skills and hooks for operating the Claude Code harness itself: writing skills, auditing token usage, PreToolUse guards for Bash and home-directory access, and sandbox troubleshooting
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code のハーネス自体を運用する skill と hook をまとめた plugin。 ハーネスは、skill・hook・settings など、Claude Code の動きを決める周りの仕組みを指す。
| skill | 中身 |
|---|---|
| writing-skills | skill の書き方と、配布する前のテスト |
| auditing-token-usage | 過去のセッションを横断した token の浪費の監査 |
| sandbox-troubleshooting | strict sandbox で Bash が想定外に失敗したときの診断 |
| guard-bash-git-github | guard-bash が git や gh を deny / ask にした理由と、通る書き方 |
| hook | イベント | 中身 |
|---|---|---|
| guard-home-dir | PreToolUse (Read・Edit・Write・Glob・Grep・NotebookEdit・Bash) | ホーム配下の許していない置き場へのアクセスを deny する |
| guard-bash | PreToolUse (Bash) | Bash のコマンドを構文解析し、破壊的な操作と、sandbox の外で動くはずのコマンドが sandbox 内に落ちる形を deny / ask にする |
| guard-optin-env.sh | PreToolUse (Write・Edit・Bash) | gh の書き込みの opt-in キーをプロジェクトの settings へ書く操作を deny する |
| build-guards.sh・build-analyze-tokens.sh | SessionStart | Go のバイナリを、ソースが変わったときだけビルドする |
取り込んだ skill と移植したコードの出典は NOTICE.md にある。
claude plugin install harness@usadamasa
Go・jq・git が要る。guard-bash・guard-home-dir・analyze-tokens は、SessionStart hook が
~/.claude/plugins/data/harness-usadamasa/bin/ へビルドする。
onFailure: "block"、Claude Code v2.1.295 以降で効く)。
hook が 10 秒の timeout を超えたときも止まるguard-home-dir は、ホーム配下のうち、cwd・~/.claude・次の YAML に書いたディレクトリだけを許す。
置き場: ${XDG_CONFIG_HOME:-$HOME/.config}/claude-harness/guard-home-dir.yaml
(XDG_CONFIG_HOME が絶対パスでなければ $HOME/.config を使う)
allowed_home_directories:
- src
- workspace
~/.claude は書かなくても許す/ か ~ で始まる値・.. を含む値・空の値・
ホームそのものを指す値 (.)。allowed_home_directories が無いとき、知らないキー、一覧でない値も同じ# yaml-language-server: $schema=https://raw.githubusercontent.com/usadamasa/agents-marketplace/main/plugins/harness/schemas/guard-home-dir.schema.json
を書くと、対応するエディタが書いた時点で検査する~/.claude だけを許す。deny の文言が YAML の置き場と書き方を示すanalyze-tokens に sandbox の設定は要らない。
読むのは ~/.claude/projects の transcript だけで、書き込みとネットワークへの接続をしない。
guard-bash の照合外れの deny は、scripts/sandboxexcluded-denies.sh が transcript から週ごとに数える。
使いどころは
sandbox-troubleshooting の maintenance.md にある。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub usadamasa/agents-marketplace --plugin harnessPlugins from other owners that cover similar ground