[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BYN4DNE5AK446SE79P6VDM":3,"skill-same:01M7BYN4DNE5AK446SE79P6VDM":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7BYN4DNE5AK446SE79P6VDM","gaia-build-agent",null,"Build a new GAIA agent with the SDK end-to-end: scaffold the package, write the Agent subclass, register @tool functions, compose reusable tool mixins, set the model + system prompt, and test it locally — then hand off to publishing. Use when creating a NEW agent (a Python class inheriting from the base Agent) for the GAIA repo or a user-authored package, not for tuning an existing agent's prompt (prompt-engineer), adding one tool to an existing class (python-developer), or shipping\u002Freleasing an already-built agent (use the agent-hub-release skill + docs\u002Fguides\u002Fhub-publishing.mdx). Pairs with the agent-hub-release skill: this one BUILDS, that one PUBLISHES.","secure-workflows\u002Fgaia","secure-workflows","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F311422533?v=4","01M7BYM925H8FAXM1DRD7F5DQD","01M7BYM92V01EZBAV87C93HNKX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgaia-build-agent\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"gaia-build-agent\"\ndescription: \"Build a new GAIA agent with the SDK end-to-end: scaffold the package, write the Agent subclass, register @tool functions, compose reusable tool mixins, set the model + system prompt, and test it locally — then hand off to publishing. Use when creating a NEW agent (a Python class inheriting from the base Agent) for the GAIA repo or a user-authored package, not for tuning an existing agent's prompt (prompt-engineer), adding one tool to an existing class (python-developer), or shipping\u002Freleasing an already-built agent (use the agent-hub-release skill + docs\u002Fguides\u002Fhub-publishing.mdx). Pairs with the agent-hub-release skill: this one BUILDS, that one PUBLISHES.\"\n---\n\n# Building a GAIA Agent\n\nHow to take an idea to a working, testable GAIA agent — a Python class that runs\nlocally on AI PCs. This skill covers **build**; publishing is its sibling\n[`agent-hub-release`](..\u002Fagent-hub-release\u002FSKILL.md) skill and the author guide\n[`docs\u002Fguides\u002Fhub-publishing.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fhub-publishing.mdx). The\nfull prose walkthrough is [`docs\u002Fguides\u002Fcustom-agent.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fcustom-agent.mdx).\n\n> Read [`CLAUDE.md`](..\u002F..\u002F..\u002FCLAUDE.md) first — the \"No Silent Fallbacks\", code-reuse,\n> testing, and eval rules all apply to a new agent.\n\n## The mental model\n\nA GAIA agent is **one Python class** that inherits from the base `Agent`\n(`src\u002Fgaia\u002Fagents\u002Fbase\u002Fagent.py`) and exposes capabilities as `@tool`-decorated\nmethods. The base class owns the agent loop, tool registry, state, error recovery,\nand (via mixins) MCP \u002F OpenAI-API exposure — you write the prompt + the tools, not\nthe plumbing. There are no YAML agent manifests for in-core agents (removed in\nv0.17.5); a *publishable hub package* adds a `gaia-agent.yaml` manifest on top (see\nthe publish skill).\n\n## Steps\n\n1. **Scaffold.** `gaia agent init my-agent` generates a starter package at\n   `.\u002Fmy-agent\u002F`. For a publishable hub package in this repo, add `--layout hub`\n   so it lands at `hub\u002Fagents\u002F\u003Cid>\u002Fpython\u002F`:\n\n   ```bash\n   gaia agent init my-agent -o hub\u002Fagents\u002F --layout hub\n   ```\n\n   Then mirror an existing package (e.g. `analyst`, `browser`) for structure.\n\n2. **Write the `Agent` subclass.** Inherit from `Agent` (or a closer base like the\n   chat\u002Fdocqa agents). **Leave `model_id` unset** — that inherits the base default,\n   `Gemma-4-E4B-it-GGUF` (`DEFAULT_MODEL_NAME`), which is right for nearly every agent.\n   Every agent sharing one model is what keeps a single model resident, so switching\n   agents never triggers an eviction + cold reload. Only set `model_id` when the agent\n   genuinely needs a different model (e.g. the summarizer's `Qwen3-4B-Instruct-2507-GGUF`),\n   and say why. Keep the constructor thin.\n\n3. **Register tools with `@tool`.** Each `@tool` method is a capability the LLM can\n   call; its **docstring is the schema the model sees**, so write it for the model\n   (one line of intent + each arg). Return structured data or an actionable error —\n   never swallow exceptions into a placeholder (No Silent Fallbacks).\n\n4. **Reuse, don't reinvent — compose mixins.** Before writing file\u002Fweb\u002FRAG\u002Fshell\u002FSQL\n   logic, check `KNOWN_TOOLS` in [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py):\n   `rag`, `file_io`, `file_search`, `shell`, `browser`, `scratchpad`, `code_index`,\n   `vlm`, `sd`, … Compose them by name instead of duplicating. New shared logic →\n   add a mixin and register it in `KNOWN_TOOLS`.\n\n5. **System prompt.** Implement `_get_system_prompt()` — state the agent's job, when\n   to use which tool, and the output contract. This is an LLM-affecting surface, so\n   it's covered by the eval rule below.\n\n6. **Make it discoverable.** An **in-core** agent is added to\n   [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py) (and a\n   `gaia \u003Ccmd>` subparser in `src\u002Fgaia\u002Fcli.py` if it's a CLI command). A **hub\n   package** is **auto-discovered from its `gaia-agent.yaml` manifest** — no\n   `registry.py` edit; just make sure the manifest's `python.entry_module` \u002F\n   `entry_class` point at your class.\n\n7. **Test it — actually run it.** Unit tests with a mocked LLM for tool logic\n   (`tests\u002F`), then run the **real CLI** a user would (`gaia \u003Ccmd> ...` or\n   `python my_agent.py`) — never only the Python module. Follow the\n   [`gaia-testing`](..\u002Fgaia-testing\u002FSKILL.md) skill for real-world evidence.\n\n8. **Eval if it touches LLM behavior.** If you wrote\u002Fchanged a system prompt, tool\n   docstrings, the tool schema, the model, or error classification, you MUST run\n   `gaia eval agent` against the relevant category and compare to the committed\n   baseline before calling it done (CLAUDE.md eval rule). Unit tests don't catch LLM\n   regressions.\n\n## Then publish\n\nOnce it runs and is documented (README\u002FSPEC\u002FSKILL per the doc-sync rule), ship it:\n\n- **Standard wheel → Hub + PyPI** (PR route, no token): the\n  [`hub-publishing.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fhub-publishing.mdx) guide.\n- **Frozen-binary + npm sidecar** (like the email agent): the\n  [`agent-hub-release`](..\u002Fagent-hub-release\u002FSKILL.md) skill.\n- **Taking an agent that already exists to a publishable, Agent-UI-usable state**\n  (the parity kit, the generalize-before-documenting rule, the day-one gate): the\n  [`porting-agent-to-hub`](..\u002Fporting-agent-to-hub\u002FSKILL.md) skill.\n\n## Reference\n\n- [`docs\u002Fguides\u002Fcustom-agent.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fcustom-agent.mdx) — the full build walkthrough.\n- [`src\u002Fgaia\u002Fagents\u002Fbase\u002F`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fbase\u002F) — `Agent`, `MCPAgent`, `ApiAgent`, `@tool`, console, errors.\n- [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py) — agent registry + `KNOWN_TOOLS`.\n- The `gaia-agent-builder` agent (`.claude\u002Fagents\u002F`) — a specialist for this work.\n\n## Output style\n\nFollow [CLAUDE.md](..\u002F..\u002F..\u002FCLAUDE.md) → \"How You Communicate\".\n","# Building a GAIA Agent\n\nHow to take an idea to a working, testable GAIA agent — a Python class that runs\nlocally on AI PCs. This skill covers **build**; publishing is its sibling\n[`agent-hub-release`](..\u002Fagent-hub-release\u002FSKILL.md) skill and the author guide\n[`docs\u002Fguides\u002Fhub-publishing.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fhub-publishing.mdx). The\nfull prose walkthrough is [`docs\u002Fguides\u002Fcustom-agent.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fcustom-agent.mdx).\n\n> Read [`CLAUDE.md`](..\u002F..\u002F..\u002FCLAUDE.md) first — the \"No Silent Fallbacks\", code-reuse,\n> testing, and eval rules all apply to a new agent.\n\n## The mental model\n\nA GAIA agent is **one Python class** that inherits from the base `Agent`\n(`src\u002Fgaia\u002Fagents\u002Fbase\u002Fagent.py`) and exposes capabilities as `@tool`-decorated\nmethods. The base class owns the agent loop, tool registry, state, error recovery,\nand (via mixins) MCP \u002F OpenAI-API exposure — you write the prompt + the tools, not\nthe plumbing. There are no YAML agent manifests for in-core agents (removed in\nv0.17.5); a *publishable hub package* adds a `gaia-agent.yaml` manifest on top (see\nthe publish skill).\n\n## Steps\n\n1. **Scaffold.** `gaia agent init my-agent` generates a starter package at\n   `.\u002Fmy-agent\u002F`. For a publishable hub package in this repo, add `--layout hub`\n   so it lands at `hub\u002Fagents\u002F\u003Cid>\u002Fpython\u002F`:\n\n   ```bash\n   gaia agent init my-agent -o hub\u002Fagents\u002F --layout hub\n   ```\n\n   Then mirror an existing package (e.g. `analyst`, `browser`) for structure.\n\n2. **Write the `Agent` subclass.** Inherit from `Agent` (or a closer base like the\n   chat\u002Fdocqa agents). **Leave `model_id` unset** — that inherits the base default,\n   `Gemma-4-E4B-it-GGUF` (`DEFAULT_MODEL_NAME`), which is right for nearly every agent.\n   Every agent sharing one model is what keeps a single model resident, so switching\n   agents never triggers an eviction + cold reload. Only set `model_id` when the agent\n   genuinely needs a different model (e.g. the summarizer's `Qwen3-4B-Instruct-2507-GGUF`),\n   and say why. Keep the constructor thin.\n\n3. **Register tools with `@tool`.** Each `@tool` method is a capability the LLM can\n   call; its **docstring is the schema the model sees**, so write it for the model\n   (one line of intent + each arg). Return structured data or an actionable error —\n   never swallow exceptions into a placeholder (No Silent Fallbacks).\n\n4. **Reuse, don't reinvent — compose mixins.** Before writing file\u002Fweb\u002FRAG\u002Fshell\u002FSQL\n   logic, check `KNOWN_TOOLS` in [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py):\n   `rag`, `file_io`, `file_search`, `shell`, `browser`, `scratchpad`, `code_index`,\n   `vlm`, `sd`, … Compose them by name instead of duplicating. New shared logic →\n   add a mixin and register it in `KNOWN_TOOLS`.\n\n5. **System prompt.** Implement `_get_system_prompt()` — state the agent's job, when\n   to use which tool, and the output contract. This is an LLM-affecting surface, so\n   it's covered by the eval rule below.\n\n6. **Make it discoverable.** An **in-core** agent is added to\n   [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py) (and a\n   `gaia \u003Ccmd>` subparser in `src\u002Fgaia\u002Fcli.py` if it's a CLI command). A **hub\n   package** is **auto-discovered from its `gaia-agent.yaml` manifest** — no\n   `registry.py` edit; just make sure the manifest's `python.entry_module` \u002F\n   `entry_class` point at your class.\n\n7. **Test it — actually run it.** Unit tests with a mocked LLM for tool logic\n   (`tests\u002F`), then run the **real CLI** a user would (`gaia \u003Ccmd> ...` or\n   `python my_agent.py`) — never only the Python module. Follow the\n   [`gaia-testing`](..\u002Fgaia-testing\u002FSKILL.md) skill for real-world evidence.\n\n8. **Eval if it touches LLM behavior.** If you wrote\u002Fchanged a system prompt, tool\n   docstrings, the tool schema, the model, or error classification, you MUST run\n   `gaia eval agent` against the relevant category and compare to the committed\n   baseline before calling it done (CLAUDE.md eval rule). Unit tests don't catch LLM\n   regressions.\n\n## Then publish\n\nOnce it runs and is documented (README\u002FSPEC\u002FSKILL per the doc-sync rule), ship it:\n\n- **Standard wheel → Hub + PyPI** (PR route, no token): the\n  [`hub-publishing.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fhub-publishing.mdx) guide.\n- **Frozen-binary + npm sidecar** (like the email agent): the\n  [`agent-hub-release`](..\u002Fagent-hub-release\u002FSKILL.md) skill.\n- **Taking an agent that already exists to a publishable, Agent-UI-usable state**\n  (the parity kit, the generalize-before-documenting rule, the day-one gate): the\n  [`porting-agent-to-hub`](..\u002Fporting-agent-to-hub\u002FSKILL.md) skill.\n\n## Reference\n\n- [`docs\u002Fguides\u002Fcustom-agent.mdx`](..\u002F..\u002F..\u002Fdocs\u002Fguides\u002Fcustom-agent.mdx) — the full build walkthrough.\n- [`src\u002Fgaia\u002Fagents\u002Fbase\u002F`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fbase\u002F) — `Agent`, `MCPAgent`, `ApiAgent`, `@tool`, console, errors.\n- [`src\u002Fgaia\u002Fagents\u002Fregistry.py`](..\u002F..\u002F..\u002Fsrc\u002Fgaia\u002Fagents\u002Fregistry.py) — agent registry + `KNOWN_TOOLS`.\n- The `gaia-agent-builder` agent (`.claude\u002Fagents\u002F`) — a specialist for this work.\n\n## Output style\n\nFollow [CLAUDE.md](..\u002F..\u002F..\u002FCLAUDE.md) → \"How You Communicate\".\n",{"name":5,"description":7},"main","11039b64e036dca33313350b4cd1d6c2a791eb15",".claude\u002Fskills\u002Fgaia-build-agent","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia","https:\u002F\u002Fgithub.com\u002Fsecure-workflows","2026-10-26 10:48:34",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add secure-workflows\u002Fgaia --skill gaia-build-agent",{"tool":35,"command":36},"bunx","bunx skills add secure-workflows\u002Fgaia --skill gaia-build-agent",{"tool":38,"command":39},"pnpm","pnpm dlx skills add secure-workflows\u002Fgaia --skill gaia-build-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgaia-build-agent\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7BYXGPPQJGVVD0DPS2WK3FS","web-search","Search the web via the Brave Search API. Use when the user asks about current events or external facts.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7BYXDF2TM5JPMEQKMMHW0VJ","triage-support-ticket","Triage an inbound support ticket end to end. Use when the user pastes a support ticket or asks to triage one.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftriage-support-ticket\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7BYXAHWNBMJ8Y1Q51EZ53K7","tool-mismatch","Declares a tool its tools.py never registers. Used to prove validation fails loudly with no partial load.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftool-mismatch\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7BYX6CZ63AM6HB90PPNXKF7","report-archive","Archive a generated report to the user's reports folder and register it with the team's report index. Use when the user asks to file, archive, or publish a finished report.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Freport-archive\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7BYX4PM4HGNZ0QBZ54BTG1N","local-capability","Writes files on the local workspace. Used to prove Phase 1 refuses local-capability permissions.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Flocal-capability\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7BYX1KVPKHHZ5Z3R3BB0QQA","incident-review","Run an incident postmortem. Stands in for a Claude Code skill library imported read-only from .claude\u002Fskills\u002F.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fincident-review\u002FSKILL.md",[],[]]