[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D4TNEGCFHXP7F329KQM9GF":3,"skill-same:01M7D4TNEGCFHXP7F329KQM9GF":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7D4TNEGCFHXP7F329KQM9GF","add-agent-node",null,"Add a new node (agent role) to the multi-agent SimpleGraph in agentic-platform, with routing and tests.","sm2774us\u002Fagentic-platform","sm2774us","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2208675?v=4","01M7D4TKFED2FY63WEZZ7B3RMP","Shaikat Majumdar","01M7D4TKG2E10V6X3VNQFTYTES",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-agent-node\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-agent-node\ndescription: Add a new node (agent role) to the multi-agent SimpleGraph in agentic-platform, with routing and tests.\n---\n\n# Add a new agent node to the graph\n\nUse this when asked to add a new step\u002Frole to the multi-agent pipeline\n(e.g. a \"fact-checker\" node, a \"summarizer\" node, a \"translator\" node).\n\n## Steps\n\n1. **Add the role** to `AgentRole` in `src\u002Fagentic_platform\u002Fagents\u002Fstate.py`\n   if the new node represents a distinct conceptual role (not just a helper\n   function).\n\n2. **Write the node function** in `src\u002Fagentic_platform\u002Fagents\u002Fgraph.py`\n   inside `build_research_writer_graph` (or a new `build_*_graph` factory if\n   this is a genuinely different pipeline shape). A node function has the\n   signature `(state: AgentState) -> AgentState` — it must be pure with\n   respect to everything except `state` (no hidden global mutation), and\n   should call `state.add(role, content)` to log what it did.\n\n3. **Wire it into `nodes` and `routers`** in the returned `SimpleGraph`.\n   Routers are `(state: AgentState) -> str` functions returning the next\n   node's key or `END`. Keep routing logic explicit and testable — avoid\n   deeply nested conditionals in a router; extract a helper function if the\n   condition is non-trivial.\n\n4. **Respect `max_steps`.** The graph raises `GraphExecutionError` if\n   `max_steps` is exceeded — this is a deliberate safety rail against\n   infinite agent loops. Don't raise `max_steps` casually; if a legitimate\n   workflow needs more steps, that's a signal to reconsider the graph shape.\n\n5. **Write tests** (see skill `write-tests-100-coverage`):\n   - A unit test if the node has meaningful logic in isolation.\n   - An integration test in `tests\u002Fintegration\u002Ftest_graph.py` exercising the\n     new node as part of a full graph run.\n   - Cover both the \"happy path\" and any error\u002Fedge branch your node\n     introduces (e.g. what happens when its dependency returns nothing).\n\n6. **Run `make ci`** before considering the task done. 100% coverage is\n   enforced — a new node with an untested branch will fail the build.\n\n## Anti-patterns to avoid\n\n- Don't call `llm.complete()` or any tool directly from a router function —\n  routers should only inspect `state`, not perform side effects.\n- Don't introduce a new sensitive tool call without registering it with\n  `sensitive=True` in the `ToolRegistry` and confirming the human-in-the-loop\n  path is tested (see `HumanApprovalRequiredError`).\n","# Add a new agent node to the graph\n\nUse this when asked to add a new step\u002Frole to the multi-agent pipeline\n(e.g. a \"fact-checker\" node, a \"summarizer\" node, a \"translator\" node).\n\n## Steps\n\n1. **Add the role** to `AgentRole` in `src\u002Fagentic_platform\u002Fagents\u002Fstate.py`\n   if the new node represents a distinct conceptual role (not just a helper\n   function).\n\n2. **Write the node function** in `src\u002Fagentic_platform\u002Fagents\u002Fgraph.py`\n   inside `build_research_writer_graph` (or a new `build_*_graph` factory if\n   this is a genuinely different pipeline shape). A node function has the\n   signature `(state: AgentState) -> AgentState` — it must be pure with\n   respect to everything except `state` (no hidden global mutation), and\n   should call `state.add(role, content)` to log what it did.\n\n3. **Wire it into `nodes` and `routers`** in the returned `SimpleGraph`.\n   Routers are `(state: AgentState) -> str` functions returning the next\n   node's key or `END`. Keep routing logic explicit and testable — avoid\n   deeply nested conditionals in a router; extract a helper function if the\n   condition is non-trivial.\n\n4. **Respect `max_steps`.** The graph raises `GraphExecutionError` if\n   `max_steps` is exceeded — this is a deliberate safety rail against\n   infinite agent loops. Don't raise `max_steps` casually; if a legitimate\n   workflow needs more steps, that's a signal to reconsider the graph shape.\n\n5. **Write tests** (see skill `write-tests-100-coverage`):\n   - A unit test if the node has meaningful logic in isolation.\n   - An integration test in `tests\u002Fintegration\u002Ftest_graph.py` exercising the\n     new node as part of a full graph run.\n   - Cover both the \"happy path\" and any error\u002Fedge branch your node\n     introduces (e.g. what happens when its dependency returns nothing).\n\n6. **Run `make ci`** before considering the task done. 100% coverage is\n   enforced — a new node with an untested branch will fail the build.\n\n## Anti-patterns to avoid\n\n- Don't call `llm.complete()` or any tool directly from a router function —\n  routers should only inspect `state`, not perform side effects.\n- Don't introduce a new sensitive tool call without registering it with\n  `sensitive=True` in the `ToolRegistry` and confirming the human-in-the-loop\n  path is tested (see `HumanApprovalRequiredError`).\n",{"name":5,"description":7},"main","8ca705ded1c3333837f5b517e5d1e68224a68c07",".agents\u002Fskills\u002Fadd-agent-node","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform","https:\u002F\u002Fgithub.com\u002Fsm2774us","https:\u002F\u002Fsm2774us.wixsite.com\u002Fsmajumdar","2026-09-21 07:16:18",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add sm2774us\u002Fagentic-platform --skill add-agent-node",{"tool":37,"command":38},"bunx","bunx skills add sm2774us\u002Fagentic-platform --skill add-agent-node",{"tool":40,"command":41},"pnpm","pnpm dlx skills add sm2774us\u002Fagentic-platform --skill add-agent-node","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-agent-node\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7D4VB1HR5JBJ866WZ1EEPE0","write-tests-100-coverage","Write tests that keep agentic-platform at 100% branch coverage without gaming the metric.","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwrite-tests-100-coverage\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7D4V7EQN21QPVVCREW04TQT","add-rag-source","Add a new document source into the HybridRetriever knowledge base in agentic-platform.","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-rag-source\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7D4V61WG2ZDBQ5BBW5DM8C6","add-fastapi-endpoint","Add a new endpoint to the agentic-platform FastAPI service in src\u002Fagentic_platform\u002Fapi\u002Fmain.py.","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-fastapi-endpoint\u002FSKILL.md",[],[],{"skillNo":68,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7D4V2EVFGMHRWPEHGTHQ42F","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-agent-node\u002FSKILL.md",[],[],{"skillNo":73,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7D4TYK0M2KFXMD10ZS3MNQN","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrite-tests-100-coverage\u002FSKILL.md",[],[],{"skillNo":78,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7D4TTZB0BXDN4TG0W27MDW6","https:\u002F\u002Fgithub.com\u002Fsm2774us\u002Fagentic-platform\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fadd-rag-source\u002FSKILL.md",[],[]]