본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)29k · #9368

herdr-kit-workflows

하는 일

이 스킬은 Herdr 작업 도구의 플러그인인 Herdr Kit의 설정과 일상적인 사용을 안내합니다. 여러 저장소에서 작업하기 위해 Herdr를 쓰는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Herdr Kit과 Mastra Code 연동을 설치하거나 설정하고 싶을 때.
  • ✓Herdr에서 저장소를 열거나 범위에 포함된 저장소를 바꾸고 싶을 때.
  • ✓Herdr Kit 바로 가기를 바꾸거나 관리되는 워크트리를 만들고 제거하고 싶을 때.

스킬 링크

https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/herdr-kit-workflows/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/herdr-kit-workflows/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 herdr command, verify you are running inside a Herdr session: HERDR_ENV must be set to 1 in the environment. If it is not, stop and tell the user these workflows require running inside Herdr.
  • Never run bare herdr with no subcommand for discovery: it launches or attaches the interactive TUI and will hang a non-interactive session. Always use an explicit subcommand such as herdr plugin list.
  • Discover the enabled herdr-kit plugin 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 query as the authoritative source for manager keys, revisions, heads, checkout generations, paths, warnings, and postconditions.
  • Use only the public herdr-kit CLI for manager scope, synchronization, and lifecycle mutations. Never invoke private scripts, edit manager state, create/remove Git worktrees manually, or substitute direct gh/Git/TUI scraping.
  • Repository scope is manager-specific. Adding a repository to Review scope does not add it to Work scope.
  • remove changes 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬