Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)29k · #9368

herdr-kit-workflows

Was er macht

Dieser Skill führt durch die Einrichtung und den täglichen Einsatz von Herdr Kit, einem Plugin für das Arbeitsbereichswerkzeug Herdr. Er ist für Entwickler gedacht, die Herdr nutzen, um über mehrere Repositories hinweg zu arbeiten.

Wann du ihn nutzt

  • ✓Wenn du Herdr Kit und seine Mastra-Code-Integration installieren oder konfigurieren willst.
  • ✓Wenn du ein Repository in Herdr öffnen oder ändern willst, welche Repositories im Umfang sind.
  • ✓Wenn du Herdr-Kit-Shortcuts ändern oder verwaltete Worktrees anlegen und entfernen willst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/herdr-kit-workflows/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Hilf mir, Herdr Kit zu installieren und meine Repositories so einzurichten, dass sie in Herdr richtig öffnen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill weist den Agenten an zu prüfen, dass er innerhalb von Herdr läuft, und danach nur die unterstützten Befehle des Plugins für Einrichtung und Änderungen zu nutzen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Funktioniert dieser Skill außerhalb von Herdr?

Nein. Der Skill sagt, dass der Agent anhalten muss, wenn er nicht in einer Herdr-Sitzung läuft.

Ändert der Agent meine Repositories ohne Nachfrage?

Der Skill begrenzt Änderungen auf die unterstützten Befehle des Plugins, und der Agent berichtet, was er geändert hat.

Kann er meine Tastenkürzel ändern?

Ja, der Skill deckt auch das Aktualisieren der Herdr-Kit-Einstellungen und Shortcuts ab.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
29k
Platz im Ranking
#9368
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills