[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ANZDPRPV88E9ZZVR3S0J50":3,"skill-same:01M7ANZDPRPV88E9ZZVR3S0J50":51},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ANZDPRPV88E9ZZVR3S0J50","agentic-system-design",null,"Guides architecture for AI agent systems — tool use, memory, RAG, orchestration, guardrails, evals, and cost\u002Flatency trade-offs. Use when building Cursor automations, LLM features, multi-step agents, MCP integrations, or SDK-based agent pipelines.","Vinayak-RZ\u002FImproveness","Vinayak-RZ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179278780?v=4","01M7ANW079C0NQMM13ZJ9AFNNB","Vinayak Raizada","01M7ANW07W35RJP6KJQ6448V08",1,"MIT","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fagentic-system-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agentic-system-design\ndescription: Guides architecture for AI agent systems — tool use, memory, RAG, orchestration, guardrails, evals, and cost\u002Flatency trade-offs. Use when building Cursor automations, LLM features, multi-step agents, MCP integrations, or SDK-based agent pipelines.\n---\n\n# Agentic System Design\n\nApply when designing features where an LLM plans, calls tools, or runs multi-step workflows.\n\n## Decision checklist\n\n1. **Autonomy level** — single call vs chained vs autonomous loop\n2. **Tool surface** — strict schemas, idempotency, human checkpoints\n3. **Context** — what goes in prompt vs retrieved vs persisted memory\n4. **Model tier** — small\u002Ffast vs large\u002Fcapable per step\n5. **Failure** — retries, fallbacks, \"I don't know\" vs hallucination\n6. **Safety** — irreversible actions, PII, injection resistance\n7. **Quality** — eval dataset, regression gates, cost caps\n\n## Reference architecture\n\n```text\nUser \u002F trigger\n    → Orchestrator (workflow state, step limit)\n        → Policy \u002F guardrails (rules, hooks, allowlists)\n        → Context builder (RAG, memory, tool results)\n        → Model call (bounded tokens, structured output)\n        → Tool executor (timeout, audit log, idempotent tools)\n        → Response \u002F artifact\n```\n\n## Layer responsibilities\n\n| Layer | Owns |\n|-------|------|\n| Orchestrator | Step budget, branching, human-in-the-loop gates |\n| Tools | Narrow contracts; no business logic in tool definitions |\n| Memory | Session vs persistent; namespace by user\u002Ftenant |\n| RAG | Chunking, retrieval threshold, citations |\n| Evals | Golden tasks, adversarial prompts, cost\u002Flatency metrics |\n\n## Trade-offs to surface\n\n| Decision | Options | Default |\n|----------|---------|---------|\n| Autonomy | Human-in-loop vs full auto | Human-in-loop for irreversible\u002Fmoney\u002Fshared state |\n| Chaining | Single prompt vs multi-step | Multi-step when phases have different model needs |\n| Memory | In-context only vs external store | External for long sessions; summarize into context |\n| RAG vs fine-tune | Dynamic knowledge vs baked-in style | RAG for facts; fine-tune rarely for format\u002Ftone only |\n| Runtime | API-hosted vs self-hosted | API for most products until cost\u002Fprivacy forces self-host |\n\n## MCP: Agent Patterns Catalog (use when connected)\n\nThis config includes `.cursor\u002Fmcp.json` → [Agent Patterns Catalog](https:\u002F\u002Fwww.agentpatternscatalog.org\u002F) (`https:\u002F\u002Fmcp.agentpatternscatalog.org\u002Fmcp`).\n\n**Before finalizing agent architecture**, query MCP when available:\n\n| Goal | Tool |\n|------|------|\n| Pick a structure | `recommend_recipe` |\n| Lookup patterns | `find_pattern` |\n| Debug misbehavior | `pattern_for_symptom` |\n| Shared vocabulary | `glossary_term` |\n\nCite **catalog pattern ids** in design docs and ADRs. See [docs\u002FMCP_SETUP.md](..\u002F..\u002F..\u002Fdocs\u002FMCP_SETUP.md).\n\nExample: *\"Recommend a recipe for a code-review agent, expand patterns, list anti-patterns.\"*\n\n## Guardrails (required)\n\n- Hard **max steps** per agent loop\n- **Explicit schemas** for every tool input\u002Foutput\n- **No unbounded** generation tokens\n- Log: model, tokens, latency, tool calls, outcome\n- **Checkpoint** before: delete, pay, send email, deploy\n- Treat user content as untrusted (prompt injection)\n\n## Anti-patterns to reject\n\n- Unbounded agent loops\n- Tools that can run shell without approval\n- Sending PII to external models without policy\n- No eval suite before shipping\n- Business logic duplicated inside prompts instead of code\n- Silent tool failure \u002F fabricated tool results\n\n## Output when architecting\n\nProduce **Agentic System Design Note**:\n\n1. Autonomy diagram (human vs agent steps)\n2. Tool list with contracts and idempotency\n3. Context\u002Fmemory\u002FRAG strategy\n4. Model selection per step\n5. Eval plan (≥20 cases: happy, edge, adversarial)\n6. Cost and latency budgets\n\n## Additional reference\n\nSee [references\u002Fpatterns.md](references\u002Fpatterns.md).\n","# Agentic System Design\n\nApply when designing features where an LLM plans, calls tools, or runs multi-step workflows.\n\n## Decision checklist\n\n1. **Autonomy level** — single call vs chained vs autonomous loop\n2. **Tool surface** — strict schemas, idempotency, human checkpoints\n3. **Context** — what goes in prompt vs retrieved vs persisted memory\n4. **Model tier** — small\u002Ffast vs large\u002Fcapable per step\n5. **Failure** — retries, fallbacks, \"I don't know\" vs hallucination\n6. **Safety** — irreversible actions, PII, injection resistance\n7. **Quality** — eval dataset, regression gates, cost caps\n\n## Reference architecture\n\n```text\nUser \u002F trigger\n    → Orchestrator (workflow state, step limit)\n        → Policy \u002F guardrails (rules, hooks, allowlists)\n        → Context builder (RAG, memory, tool results)\n        → Model call (bounded tokens, structured output)\n        → Tool executor (timeout, audit log, idempotent tools)\n        → Response \u002F artifact\n```\n\n## Layer responsibilities\n\n| Layer | Owns |\n|-------|------|\n| Orchestrator | Step budget, branching, human-in-the-loop gates |\n| Tools | Narrow contracts; no business logic in tool definitions |\n| Memory | Session vs persistent; namespace by user\u002Ftenant |\n| RAG | Chunking, retrieval threshold, citations |\n| Evals | Golden tasks, adversarial prompts, cost\u002Flatency metrics |\n\n## Trade-offs to surface\n\n| Decision | Options | Default |\n|----------|---------|---------|\n| Autonomy | Human-in-loop vs full auto | Human-in-loop for irreversible\u002Fmoney\u002Fshared state |\n| Chaining | Single prompt vs multi-step | Multi-step when phases have different model needs |\n| Memory | In-context only vs external store | External for long sessions; summarize into context |\n| RAG vs fine-tune | Dynamic knowledge vs baked-in style | RAG for facts; fine-tune rarely for format\u002Ftone only |\n| Runtime | API-hosted vs self-hosted | API for most products until cost\u002Fprivacy forces self-host |\n\n## MCP: Agent Patterns Catalog (use when connected)\n\nThis config includes `.cursor\u002Fmcp.json` → [Agent Patterns Catalog](https:\u002F\u002Fwww.agentpatternscatalog.org\u002F) (`https:\u002F\u002Fmcp.agentpatternscatalog.org\u002Fmcp`).\n\n**Before finalizing agent architecture**, query MCP when available:\n\n| Goal | Tool |\n|------|------|\n| Pick a structure | `recommend_recipe` |\n| Lookup patterns | `find_pattern` |\n| Debug misbehavior | `pattern_for_symptom` |\n| Shared vocabulary | `glossary_term` |\n\nCite **catalog pattern ids** in design docs and ADRs. See [docs\u002FMCP_SETUP.md](..\u002F..\u002F..\u002Fdocs\u002FMCP_SETUP.md).\n\nExample: *\"Recommend a recipe for a code-review agent, expand patterns, list anti-patterns.\"*\n\n## Guardrails (required)\n\n- Hard **max steps** per agent loop\n- **Explicit schemas** for every tool input\u002Foutput\n- **No unbounded** generation tokens\n- Log: model, tokens, latency, tool calls, outcome\n- **Checkpoint** before: delete, pay, send email, deploy\n- Treat user content as untrusted (prompt injection)\n\n## Anti-patterns to reject\n\n- Unbounded agent loops\n- Tools that can run shell without approval\n- Sending PII to external models without policy\n- No eval suite before shipping\n- Business logic duplicated inside prompts instead of code\n- Silent tool failure \u002F fabricated tool results\n\n## Output when architecting\n\nProduce **Agentic System Design Note**:\n\n1. Autonomy diagram (human vs agent steps)\n2. Tool list with contracts and idempotency\n3. Context\u002Fmemory\u002FRAG strategy\n4. Model selection per step\n5. Eval plan (≥20 cases: happy, edge, adversarial)\n6. Cost and latency budgets\n\n## Additional reference\n\nSee [references\u002Fpatterns.md](references\u002Fpatterns.md).\n",{"name":5,"description":7},"main","9fb685c39f4231d1c854d8d1b95935d2e1a2e709",".cursor\u002Fskills\u002Fagentic-system-design",0,"https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness","https:\u002F\u002Fgithub.com\u002FVinayak-RZ","2026-09-15 15:09:50",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Vinayak-RZ\u002FImproveness --skill agentic-system-design",{"tool":37,"command":38},"bunx","bunx skills add Vinayak-RZ\u002FImproveness --skill agentic-system-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Vinayak-RZ\u002FImproveness --skill agentic-system-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fagentic-system-design\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fpatterns.md","REFERENCE","参考文档",1424,"https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fagentic-system-design\u002Freferences\u002Fpatterns.md",[52,59,66,73,79,86],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7APA22BN6W9SVF4SCEAP3B1","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7AP9ZV2PZ7EZAVMP021GT88","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7AP9YRRCH92DRVN61AQTNAZ","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7AP9XDBJJSP9XRNGP6JQ2BX","no-frontmatter","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7AP9WAGKGA2C3FN9B92RKAD","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7AP9SRFAAYTQ44GWGXG5ERX","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002FVinayak-RZ\u002FImproveness\u002Fblob\u002Fmain\u002Foh-my-pi\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]