herdr-kit-workflows
O que ela faz
Esta skill orienta a configuração e o uso diário do Herdr Kit, um plugin para a ferramenta de espaço de trabalho Herdr. Ela é para desenvolvedores que usam o Herdr para trabalhar em vários repositórios.
Quando usar
- ✓Quando você quer instalar ou configurar o Herdr Kit e a integração com o Mastra Code.
- ✓Quando você quer abrir um repositório no Herdr ou mudar quais repositórios estão no escopo.
- ✓Quando você quer alterar os atalhos do Herdr Kit ou criar e remover worktrees gerenciados.
Link da skill
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/herdr-kit-workflows/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me ajude a instalar o Herdr Kit e configurar meus repositórios para que abram corretamente no Herdr.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill manda o agente verificar se ele está rodando dentro do Herdr e depois usar apenas os comandos suportados pelo plugin para configurar e fazer alterações.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Esta skill funciona fora do Herdr?
Não. A skill diz que o agente deve parar se não estiver rodando dentro de uma sessão do Herdr.
O agente vai mudar meus repositórios sem perguntar?
A skill limita as mudanças aos comandos suportados pelo plugin, e o agente informa o que alterou.
Ele pode mudar meus atalhos de teclado?
Sim. A skill cobre a atualização das configurações e dos atalhos do Herdr Kit.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 29 mil
- Posição no ranking
- #9368
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
debugging-difficult-bugs
29 milAjuda seu agente a depurar um bug difícil registrando o que o programa real faz em tempo de execução, em vez de adivinhar a partir apenas dos testes.
mastra-frontend
29 milAjuda seu agente a criar telas de aplicativo com o sistema de design do playground da Mastra, combinando seus componentes prontos em vez de estilizar do zero.
pr-explainer
29 milAjuda seu agente a transformar um pull request em uma página HTML clara e autocontida que explica a mudança para os revisores.
pr-splitter
29 milAjuda seu agente a dividir um pull request grande e confuso em pull requests menores e revisáveis, mantendo o trabalho original seguro.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.