herdr-kit-workflows
できること
このスキルは、Herdrツールのプラグインである、Herdr Kitのセットアップと日々の使い方を手引きします。Herdrで複数のリポジトリを扱う開発者向けです。
使う場面
- ✓Herdr KitとMastra Codeの連携をインストールまたは設定したいとき。
- ✓リポジトリをHerdrで開いたり、対象のリポジトリを変えたりしたいとき。
- ✓Herdr Kitのショートカットを変えたり、管理されたworktreeを作成・削除したりしたいとき。
スキルのリンク
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/herdr-kit-workflows/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Herdr Kitをインストールし、リポジトリがHerdrで正しく開くように設定する手伝いをしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、エージェントに、Herdrのセッション内で動いているかを確認させます。そのうえで、セットアップと変更にはプラグインがサポートするコマンドだけを使わせます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Herdr Kit Workflows
Use Herdr Kit's supported Herdr and protocol-1 interfaces for setup, configuration, repository scope, synchronization, and worktree lifecycle operations.
Activate this skill when the user asks to install or configure Herdr Kit, change its shortcuts or launcher settings, open a repository correctly in Herdr, keep a closed repository synchronized, synchronize Review or Work Manager records, or materialize/dematerialize manager worktrees.
Safety and authority
- Before issuing any
herdrcommand, verify you are running inside a Herdr session:HERDR_ENVmust be set to1in the environment. If it is not, stop and tell the user these workflows require running inside Herdr. - Never run bare
herdrwith no subcommand for discovery: it launches or attaches the interactive TUI and will hang a non-interactive session. Always use an explicit subcommand such asherdr plugin list. - Discover the enabled
herdr-kitplugin through Herdr. Do not assume the current repository contains the plugin. - Negotiate capabilities before using the public CLI. Treat protocol and request schema versions as compatibility boundaries.
- Use
manager queryas the authoritative source for manager keys, revisions, heads, checkout generations, paths, warnings, and postconditions. - Use only the public
herdr-kitCLI for manager scope, synchronization, and lifecycle mutations. Never invoke private scripts, edit manager state, create/remove Git worktrees manually, or substitute directgh/Git/TUI scraping. - Repository scope is manager-specific. Adding a repository to Review scope does not add it to Work scope.
removechanges persistent synchronization scope only. It does not delete repositories, worktrees, branches, or Herdr workspaces.- Never bypass stale-confirmation or warning checks. If a request is rejected, query again, show the changed authoritative values, and obtain renewed user confirmation.
- Materialization and dematerialization require explicit user confirmation of the exact records. Synchronization and opening/focusing an already registered primary repository may proceed when directly requested.
- If discovery, capabilities, query output, schema validation, configuration validation, or a lifecycle result reports an error, stop and report it exactly. Do not fall back.
Discover and negotiate the installed interface
plugin_file=$(mktemp)
capabilities_file=$(mktemp)
data_file=
cleanup() { rm -f "$plugin_file" "$capabilities_file" ${data_file:+"$data_file"}; }
trap cleanup EXIT
if ! herdr plugin list --plugin herdr-kit --json > "$plugin_file"; then
exit 1
fi
if ! plugin_root=$(python3 - "$plugin_file" <<'PY'
import json, sys
p = json.load(open(sys.argv[1]))
if not isinstance(p, dict) or p.get("error") is not None:
raise SystemExit(p.get("error") if isinstance(p, dict) else "Malformed herdr plugin list response")
result = p.get("result")
if not isinstance(result, dict) or not isinstance(result.get("plugins"), list):
raise SystemExit("Malformed herdr plugin list response")
plugin = next((item for item in result["plugins"] if item.get("plugin_id") == "herdr-kit"), None)
if not plugin or not plugin.get("enabled") or not plugin.get("plugin_root"):
raise SystemExit("Enabled herdr-kit plugin root is unavailable")
print(plugin["plugin_root"])
PY
); then
exit 1
fi
manager_cli="$plugin_root/herdr-kit"
if ! "$manager_cli" capabilities > "$capabilities_file"; then
exit 1
fi
python3 - "$capabilities_file" <<'PY'
import json, sys
p = json.load(open(sys.argv[1]))
if not isinstance(p, dict) or p.get("error") is not None:
raise SystemExit(p.get("error") if isinstance(p, dict) else "Malformed herdr-kit capabilities response")
if p.get("protocol_version") != 1:
raise SystemExit(f"Unsupported herdr-kit protocol: {p.get('protocol_version')}")
operations = p.get("operations")
if not isinstance(operations, dict):
raise SystemExit("Malformed herdr-kit capabilities response")
print(json.dumps(operations, indent=2))
PY
Before each operation, require its capability to be present and available: true. Before any command using --request, also require that operation's request_schema to equal the request file's schema_version (1 below).
Detect and update an outdated plugin
The skill describes the current Herdr Kit public contract, but the enabled plugin may be older. Treat a missing required capability, an unsupported protocol/request schema, or a missing documented
よくある質問
Herdrの外でもこのスキルは使えますか?
いいえ。Herdrのセッション内で動いていなければ、エージェントは止まらなければならないとスキルは定めています。
エージェントは私に確認せずにリポジトリを変えますか?
スキルは変更をプラグインのサポートするコマンドに限定し、エージェントは行った変更を報告します。
キーボードショートカットも変えられますか?
はい。スキルは、Herdr Kitの設定とショートカットの更新も扱います。
詳細
作者による元の説明
Set up and operate Herdr Kit safely: install and configure the plugin and Mastra Code integration, manage Review and Work repository scope, open primary repository workspaces, synchronize managers, materialize or dematerialize managed worktrees, and update Herdr Kit settings or shortcuts.
repo: mastra-ai/mastra
人気
- GitHubのスター
- 29k
- ランキング
- #9368
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
debugging-difficult-bugs
29kエージェントが、本物のプログラムが実行時にどう動くかをログに残して、難しいバグをデバッグできるよう支援します。テストだけで推測するのではありません。
mastra-frontend
29kエージェントが、スタイルを一から書くのではなく、既製のコンポーネントを組み合わせて、Mastraのプレイグラウンドのデザインシステムで画面を作れるよう支援します。
pr-explainer
29kエージェントが、プルリクエストを、レビューアー向けに変更内容を説明する、単独で読める分かりやすいHTMLページに変換できるよう支援します。
pr-splitter
29kエージェントが、大きく入り組んだプルリクエストを、元の作業を安全に保ちながら、レビューしやすい小さなプルリクエストに分けられるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。