Logo van Porting Agent To Hub

Porting Agent To Hub

OrganisatiePopulair
amd
porting-agent-to-hub

Gebruik dit wanneer je een bestaande GAIA-agent in de repo ombouwt tot een gepubliceerd hub-pakket dat vanaf dag één bruikbaar is — bijvoorbeeld bij het overzetten van een verouderde agent naar hub/agents/<id>/, het bepalen of een agent überhaupt moet worden uitgebracht of het beantwoorden van de vraag waarom een agent ‘nog niet klaar is om te publiceren’. Gebruik dit ook wanneer het manifest van een agent mogelijkheden belooft die de code niet biedt, of wanneer een agent wel een README heeft maar geen SPEC/SKILL/CHANGELOG/SCORECARD.

Add to TypingMind

Overzicht

Uitgeveramd
Repositorygaia
Skillnaamporting-agent-to-hub
Sterren
1.6K
Forks
176
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door amd op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Porting Agent To Hub in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/amd/gaia/tree/main/.claude/skills/porting-agent-to-hub
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Porting Agent To Hub in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Porting Agent To Hub automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Porting Agent To Hub niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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

Veelgestelde vragen

Wat doet de AI-skill Porting Agent To Hub?

Gebruik dit wanneer je een bestaande GAIA-agent in de repo ombouwt tot een gepubliceerd hub-pakket dat vanaf dag één bruikbaar is — bijvoorbeeld bij het overzetten van een verouderde agent naar hub/agents/<id>/, het bepalen of een agent überhaupt moet worden uitgebracht of het beantwoorden van de vraag waarom een agent ‘nog niet klaar is om te publiceren’. Gebruik dit ook wanneer het manifest van een agent mogelijkheden belooft die de code niet biedt, of wanneer een agent wel een README heeft maar geen SPEC/SKILL/CHANGELOG/SCORECARD.

Waarom Porting Agent To Hub gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Porting Agent To Hub bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Porting Agent To Hub in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/amd/gaia/tree/main/.claude/skills/porting-agent-to-hub. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Porting Agent To Hub gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Porting Agent To Hub gebruiken?

Zoveel als je wilt. Je kunt Porting Agent To Hub gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Porting Agent To Hub gratis?

Ja. Deze skill is door amd op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇