Logo von Porting Agent To Hub

Porting Agent To Hub

OrganisationBeliebt
amd
porting-agent-to-hub

Verwenden, wenn ein bestehender GAIA-Agent aus dem Repo in ein veröffentlichtes Hub-Paket überführt werden soll, das vom ersten Tag an einsatzbereit ist – etwa beim Portieren eines Legacy-Agenten aus hub/agents/<id>/, bei der Entscheidung, ob ein Agent überhaupt veröffentlicht werden sollte, oder bei der Frage, warum ein Agent „nicht veröffentlichungsreif“ ist. Auch verwenden, wenn das Manifest eines Agenten Fähigkeiten verspricht, die sein Code nicht bietet, oder wenn ein Agent zwar eine README, aber keine SPEC/SKILL/CHANGELOG/SCORECARD hat.

Add to TypingMind

Übersicht

Herausgeberamd
Repositorygaia
Skill-Nameporting-agent-to-hub
Sterne
1.6K
Forks
176
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von amd auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Porting Agent To Hub in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/amd/gaia/tree/main/.claude/skills/porting-agent-to-hub
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amd/gaia.git /tmp/gaia
mkdir -p .claude/skills
cp -r /tmp/gaia/.claude/skills/porting-agent-to-hub .claude/skills/porting-agent-to-hub
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Porting Agent To Hub in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Porting Agent To Hub automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Porting Agent To Hub nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Porting an Agent to a Hub-Native Package

Take an agent that exists only as in-repo Python and make it a published package a user can install from the Agent Hub and use in Agent UI v2 immediately.

The email agent is the template — hub/agents/email/python/ + hub/agents/email/npm/ + .github/workflows/release_agent_email.yml. It is the only agent in the repo that clears the bar; every phase below points at the file in it you are mirroring.

This skill is the porting flow. For adjacent work use: gaia-build-agent (a NEW agent) · agent-hub-release (cutting the release) · adding-eval-scorecard (the scorecard mechanics) · integrate-hub-agent (consuming one from an app).

The Iron Rule

Generalize before you document.

Docs, SPEC, SKILL and SCORECARD written against behavior that is about to change are wasted work — and a scorecard is meaningless until the capability is stable. Phases run in order. Do not jump to the parity kit because it looks mechanical.

Phase 0 — Decide whether it should ship at all

Not every agent should be ported. Before any work, get a verdict: PORT / MERGE INTO <target> / DISCARD (keep as in-repo example) / DEFER.

Check for a more general agent that already covers the use case — in in the other hub agents, and in ChatAgent's profiles. Duplicating a capability into the catalog is worse than not shipping.

Signals it is not a catalog agent: category: examples / security_tier: experimental; absent from setup.py's AGENT_WHEEL_PACKAGES; no gaia.agent entry point; a module docstring saying it exists to validate some other feature; a named successor already in flight.

Phase 1 — Capability-truth audit

Read the manifest's description, tags, tools_count and interfaces:, then prove each claim against the code. Assume the manifest is lying until checked — in the 2026-07 fleet audit it was wrong for most agents, in both directions.

  • Does every advertised verb have a reachable tool? (An agent advertising CSV analysis that composes no file mixin cannot open a file.)
  • Does every conversation_starter have a tool behind it? Agent UI shows these as first-run prompts, so a starter for a missing capability means the user's first click fails. Worse than a stale description — check these first.
  • Does tools_count match the real @tool surface plus composed mixins? It lives in two places — gaia-agent.yaml and the build_registration() call in __init__.py. Check both; the registry copy is what the UI reads.
  • Do the agent's own defaults work end to end? (A language="python" default that fails a TypeScript-only validator is a mis-scope, not a bug.)
  • Does interfaces: claim a mode nothing serves — and is the dependency for that mode even declared? api_server/mcp_server need amd-gaia[api] in both pyproject.toml and the manifest's python.dependencies. Most agents declare the interface against plain amd-gaia, so the mode is not merely unimplemented, it is uninstallable — and it fails on a clean install, not in CI. word-count is the package that gets this right.
  • Are preflights checking the right thing? docker --version tests the binary; the agent needs the daemon. A preflight can be present and still wrong.

Record every gap. This list is the port's actual scope.

Phase 2 — Generalize and harden

  • Close every Phase 1 gap: implement the advertised capability, or narrow the manifest to the truth. Both are valid; shipping the mismatch is not.
  • Remove single-instance / single-machine assumptions — an author's own service schema baked into a system prompt is the canonical case.
  • Inject configuration instead of hardcoding paths, URLs, models, ports.
  • Fail loudly (CLAUDE.md): no except …: pass, no default-to-empty, no swallowed retry. Errors name what failed, what to do, and where to look.
  • Declare and preflight external dependencies (a daemon, a binary, credentials, VRAM). Check the service, not just the binary on PATH.

Phase 3 — Behavioral tests

The fleet-wide failure mode: tests import the agent, construct it, and assert a tool name appears in the registry. They never call a tool.

Every @tool needs a test that invokes it, over a fixture harness (temp FS, mocked network, temp scratchpad DB) with _TOOL_REGISTRY isolation. Cover the cold state a new user is in — empty index, empty DB, first run.

Phase 4 — Eval: corpus first, then scorecard

Two halves, and the expensive one is not the code:

  • The oracle (not automatable): a labelled, human-curated ground-truth corpus plus a deterministic fixture harness so the eval needs no live service and no LLM judge. Email's lives in tests/fixtures/email/ — _stub_inbox.mbox plus a per-task ground truth (action_items_, briefing_, drafting_, followups_, longthread_) driven through FakeGmailBackend. ls it; there is no single ground_truth.json.
  • The mechanism: the adapter, SCORECARD.md, the scorecard_gate.py wiring and a refresh workflow → use adding-eval-scorecard.

Pick the metric before starting, and prefer deterministic exact-match over a judge. Where no honest metric exists, say so in the scorecard rather than reporting a number that means nothing.

Beware the measurement trap: an agent_type in the scenario corpus may name a ChatAgent prompt profile, not your package. A green scenario can be measuring something else entirely.

Phase 5 — The parity kit (what email has)

SurfaceMirror from emailConsumed by
README SPEC SKILL CHANGELOG EVALUATIONhub/agents/email/npm/hub page + Agent UI (the Worker reads all of them)
CAPABILITY_MATRIX.mdpackaging/capability_matrix.pythe "what can it do" surface
SCORECARD.mdpackaging/gen_scorecard.pyrelease gate
server.py, api_routes.py, query_routes.py/health, /version, POST /v1/<id>/query (SSE)the daemon + UI chat
openapi.<id>.json, specification.htmlexport_openapi.py, spec_html.pythe contract
playground + playground_urlplayground_html.py"try before install"
packaging/freeze, stamp_version, smoke_test, lock, publishthe release
npm clienthub/agents/email/npm/src/integrators

Generate these; do not hand-write them per agent. Anything derivable from the manifest and the tool registry should be — tools_count especially. A number a human types is a number that drifts.

Doc-root gotcha: email's canonical docs live in its npm package, not the Python one. Do not assume python/README.md is the source of truth.

Phase 6 — Versioning and CI/CD

Each agent versions and ships independently.

  • One source of version truth (version.py), propagated by a stamp script, with a test asserting pyproject.toml ≡ gaia-agent.yaml ≡ version.py.
  • Tag namespace agent-pkg-<id>-v* — never v*, which fires the core release.
  • Its own test / eval / scorecard-refresh / release workflows, generated from the manifest. → agent-hub-release for the release lane itself.
  • After publishing, assert the live catalog entry matches the repo manifest for that version. Published-vs-repo drift is real and silent.

Phase 7 — Day-one usability gate

Publishing is not the finish line — usable on install is. Script it:

catalog index → install → daemon spawns the sidecar → /health passes → /query returns a rendered SSE stream in the UI → the playground URL loads.

If any step needs a human, the agent is not day-one usable. Also confirm an AgentSidecarSpec exists (or the spec table is manifest-driven), every declared renderTypes[] has a renderer with a fallback, and conversation_starters are present.

Red flags — stop and go back a phase

  • Writing SPEC/SKILL/SCORECARD while the capability is still being changed
  • Typing a tools_count by hand
  • A scorecard produced without a corpus, or with hand-authored numbers
  • "The tests pass" when no test calls a tool
  • Copy-pasting another agent's workflow instead of generating it
  • Porting an agent nobody gave a Phase 0 verdict for
  • Treating interfaces: api_server: true as satisfied because the manifest says so
  • Checking a capability claim in gaia-agent.yaml only — the same claims are duplicated, unguarded, in build_registration()
  • Concluding "it works" from a dev box that already has the extras installed

Reporting the port

The docs you write (README/SPEC/SKILL/CHANGELOG) and your report back to the user both follow CLAUDE.md → How You Communicate: lead with what the agent now does for a user and what still doesn't work, then the phase-by-phase evidence underneath. Name any gate you skipped — an unstated skip reads as a pass.

Reference

  • Template: hub/agents/email/python/, hub/agents/email/npm/
  • Generic 5-interface server (TUI/CLI/pipe/API/MCP, manifest-gated): src/gaia/agents/base/server.py — run_agent_cli()
  • Sidecar registration: src/gaia/daemon/sidecars/spec.py
  • Manifest parsing: src/gaia/hub/manifest.py
  • Catalog readers: workers/agent-hub/src/storage.ts
  • Scorecard format: docs/reference/eval-scorecard.mdx

Häufig gestellte Fragen

Was macht der KI-Skill Porting Agent To Hub?

Verwenden, wenn ein bestehender GAIA-Agent aus dem Repo in ein veröffentlichtes Hub-Paket überführt werden soll, das vom ersten Tag an einsatzbereit ist – etwa beim Portieren eines Legacy-Agenten aus hub/agents/<id>/, bei der Entscheidung, ob ein Agent überhaupt veröffentlicht werden sollte, oder bei der Frage, warum ein Agent „nicht veröffentlichungsreif“ ist. Auch verwenden, wenn das Manifest eines Agenten Fähigkeiten verspricht, die sein Code nicht bietet, oder wenn ein Agent zwar eine README, aber keine SPEC/SKILL/CHANGELOG/SCORECARD hat.

Warum Porting Agent To Hub in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Porting Agent To Hub besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Porting Agent To Hub in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/amd/gaia/tree/main/.claude/skills/porting-agent-to-hub ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Porting Agent To Hub nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Porting Agent To Hub verwenden?

So viele Sie möchten. In TypingMind können Sie Porting Agent To Hub mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Porting Agent To Hub kostenlos?

Ja. Der Skill wird von amd auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇