[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NQA43E50NHKXKP2KHZ5GNQ":3,"skill-same:01M6NQA43E50NHKXKP2KHZ5GNQ":61},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6NQA43E50NHKXKP2KHZ5GNQ","orchestration-check",null,"Determine whether logic belongs in a reactive rule, workflow, or component. Use when adding orchestration logic, designing multi-step processes, or reviewing boundary violations.","C360Studio\u002Fsemteams","C360Studio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F107274645?v=4","01M6NQ809JZG513TZ7FJX8SAKQ","Complete 360 Studio","01M6NQ80DRB447R1H9W554K7V8",0,"MIT","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Forchestration-check\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"orchestration","check","orchestration check","workflow","component","boundary","use","pattern","logic","rule","processes","multi","reactive","when","2026-11-10 10:12:30",false,"---\nname: orchestration-check\ndescription: Determine whether logic belongs in a reactive rule, workflow, or component. Use when adding orchestration logic, designing multi-step processes, or reviewing boundary violations.\nargument-hint: [pattern or logic being evaluated]\n---\n\n# Orchestration Layer Check\n\n## What pattern are you evaluating?\n\n$ARGUMENTS\n\n## The Two Layers\n\n| Layer | Responsibility | Owns | Does NOT Own |\n|-------|---------------|------|--------------|\n| **Reactive Engine** | State detection, triggers, multi-step coordination | Conditions, actions, step sequence, loop limits, timeouts | Actual work execution |\n| **Component** | Execute single units of work | Execution mechanics, internal state | Workflow awareness, caller context |\n\n## Quick Decision\n\n| Pattern | Use |\n|---------|-----|\n| Condition X met --> fire action Y (no retry) | Single-trigger reactive rule |\n| A --> B --> A --> B... (max N times, with timeouts) | Reactive workflow |\n| Execute LLM call, process tools, write files | Component |\n\n## The 5 Rules\n\n1. **Rules trigger, they don't orchestrate** -- A rule fires one action, not a sequence.\n   - Anti-pattern: Rule A sets `step=1`, Rule B watches for `step=1` and sets `step=2`...\n   - Fix: Use a workflow for multi-step sequences.\n\n2. **Workflows coordinate, they don't execute** -- Workflows spawn components, not inline logic.\n   - Anti-pattern: Workflow step contains 100 lines of processing logic.\n   - Fix: Move processing into a component, have workflow publish to trigger it.\n\n3. **Components are workflow-agnostic** -- Components don't know their caller.\n   - Anti-pattern: Component checks `workflow_id` to decide behavior.\n   - Fix: Pass behavior differences as configuration, not caller identity.\n\n4. **State ownership is exclusive** -- Only one layer owns any piece of state.\n\n   | State | Owner |\n   |-------|-------|\n   | Trigger conditions | Rules |\n   | Step progress, iteration count | Workflow |\n   | Execution state (pending tools, loop phase) | Component |\n   | Domain entities | Knowledge graph (ENTITY_STATES) |\n\n5. **If it needs a loop limit, it's a workflow** -- Simple handoffs use rules; cycles use workflows.\n\n## Anti-Patterns\n\n- Rule chains that build up state across multiple firings (should be workflow)\n- Workflows with inline processing logic (belongs in components)\n- Components checking workflow context to decide behavior (should be caller-agnostic)\n- Both rules and workflows tracking the same state (exclusive ownership violated)\n\n## State Storage Boundaries\n\n| Category | Storage | In Knowledge Graph? |\n|----------|---------|---------------------|\n| Domain entities | `ENTITY_STATES` KV | Yes (Graphable) |\n| Operational results | Component-specific KV | No |\n| Events\u002Fwork items | JetStream streams | No |\n\nDo NOT write operational results to ENTITY_STATES -- it pollutes the knowledge graph.\n\n## Reactive Rule Example (single trigger)\n\n```go\nreactive.NewRule(\"architect-complete-spawn-editor\").\n    WatchKV(\"AGENT_LOOPS\", \"LOOP_*\").\n    When(\"architect role\", func(ctx *reactive.RuleContext) bool {\n        return ctx.State.(*AgentLoopState).Role == \"architect\"\n    }).\n    When(\"completed\", func(ctx *reactive.RuleContext) bool {\n        return ctx.State.(*AgentLoopState).Outcome == \"success\"\n    }).\n    Publish(\"agent.task.editor\", ...).\n    Build()\n```\n\n## Workflow Example (loop with limit)\n\n```go\nreactive.NewWorkflow(\"review-fix-cycle\").\n    WithStateBucket(\"REVIEW_FIX_STATE\").\n    WithMaxIterations(3).\n    WithTimeout(300 * time.Second).\n    AddRule(\u002F* request-review rule *\u002F).\n    AddRule(\u002F* fix-issues rule *\u002F).\n    AddRule(\u002F* max-iterations-exceeded rule *\u002F).\n    MustBuild()\n```\n\nRead `docs\u002Fconcepts\u002F14-orchestration-layers.md` for full documentation.\n","# Orchestration Layer Check\n\n## What pattern are you evaluating?\n\n$ARGUMENTS\n\n## The Two Layers\n\n| Layer | Responsibility | Owns | Does NOT Own |\n|-------|---------------|------|--------------|\n| **Reactive Engine** | State detection, triggers, multi-step coordination | Conditions, actions, step sequence, loop limits, timeouts | Actual work execution |\n| **Component** | Execute single units of work | Execution mechanics, internal state | Workflow awareness, caller context |\n\n## Quick Decision\n\n| Pattern | Use |\n|---------|-----|\n| Condition X met --> fire action Y (no retry) | Single-trigger reactive rule |\n| A --> B --> A --> B... (max N times, with timeouts) | Reactive workflow |\n| Execute LLM call, process tools, write files | Component |\n\n## The 5 Rules\n\n1. **Rules trigger, they don't orchestrate** -- A rule fires one action, not a sequence.\n   - Anti-pattern: Rule A sets `step=1`, Rule B watches for `step=1` and sets `step=2`...\n   - Fix: Use a workflow for multi-step sequences.\n\n2. **Workflows coordinate, they don't execute** -- Workflows spawn components, not inline logic.\n   - Anti-pattern: Workflow step contains 100 lines of processing logic.\n   - Fix: Move processing into a component, have workflow publish to trigger it.\n\n3. **Components are workflow-agnostic** -- Components don't know their caller.\n   - Anti-pattern: Component checks `workflow_id` to decide behavior.\n   - Fix: Pass behavior differences as configuration, not caller identity.\n\n4. **State ownership is exclusive** -- Only one layer owns any piece of state.\n\n   | State | Owner |\n   |-------|-------|\n   | Trigger conditions | Rules |\n   | Step progress, iteration count | Workflow |\n   | Execution state (pending tools, loop phase) | Component |\n   | Domain entities | Knowledge graph (ENTITY_STATES) |\n\n5. **If it needs a loop limit, it's a workflow** -- Simple handoffs use rules; cycles use workflows.\n\n## Anti-Patterns\n\n- Rule chains that build up state across multiple firings (should be workflow)\n- Workflows with inline processing logic (belongs in components)\n- Components checking workflow context to decide behavior (should be caller-agnostic)\n- Both rules and workflows tracking the same state (exclusive ownership violated)\n\n## State Storage Boundaries\n\n| Category | Storage | In Knowledge Graph? |\n|----------|---------|---------------------|\n| Domain entities | `ENTITY_STATES` KV | Yes (Graphable) |\n| Operational results | Component-specific KV | No |\n| Events\u002Fwork items | JetStream streams | No |\n\nDo NOT write operational results to ENTITY_STATES -- it pollutes the knowledge graph.\n\n## Reactive Rule Example (single trigger)\n\n```go\nreactive.NewRule(\"architect-complete-spawn-editor\").\n    WatchKV(\"AGENT_LOOPS\", \"LOOP_*\").\n    When(\"architect role\", func(ctx *reactive.RuleContext) bool {\n        return ctx.State.(*AgentLoopState).Role == \"architect\"\n    }).\n    When(\"completed\", func(ctx *reactive.RuleContext) bool {\n        return ctx.State.(*AgentLoopState).Outcome == \"success\"\n    }).\n    Publish(\"agent.task.editor\", ...).\n    Build()\n```\n\n## Workflow Example (loop with limit)\n\n```go\nreactive.NewWorkflow(\"review-fix-cycle\").\n    WithStateBucket(\"REVIEW_FIX_STATE\").\n    WithMaxIterations(3).\n    WithTimeout(300 * time.Second).\n    AddRule(\u002F* request-review rule *\u002F).\n    AddRule(\u002F* fix-issues rule *\u002F).\n    AddRule(\u002F* max-iterations-exceeded rule *\u002F).\n    MustBuild()\n```\n\nRead `docs\u002Fconcepts\u002F14-orchestration-layers.md` for full documentation.\n",{"name":5,"description":7,"argument-hint":38},[39],"pattern or logic being evaluated","main","9b1ec2f24adbbc9121f3d9322f9d414fdc16e016",".agents\u002Fskills\u002Forchestration-check","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams","https:\u002F\u002Fc360studio.github.io","https:\u002F\u002Fgithub.com\u002FC360Studio","2026-11-11 01:13:46",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add C360Studio\u002Fsemteams --skill orchestration-check",{"tool":53,"command":54},"bunx","bunx skills add C360Studio\u002Fsemteams --skill orchestration-check",{"tool":56,"command":57},"pnpm","pnpm dlx skills add C360Studio\u002Fsemteams --skill orchestration-check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Forchestration-check\u002FSKILL.md",true,[],[62,83,103,127,138,154],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":33},"01M6NQEE3V8S4HEVMFVFW7SEQ4","store-pattern","Choose the right state management approach for a use case. Decide between component-local state, derived state, runes-based stores, SvelteKit load, or URL state.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fstore-pattern\u002FSKILL.md",[],[69,70,26,71,72,73,74,75,23,76,25,77,78,79,80,81,82],"store pattern","store","URL","load","for","managed","case","local","state management","state","sveltekit","choose","decide","management",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":33},"01M6NQE4Z802R8B8PBE23JRR5W","new-component","Step-by-step checklist for adding a new Svelte 5 component with proper patterns, tests, and TypeScript types. Use when creating new UI components.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fnew-component\u002FSKILL.md",[],[23,90,91,92,93,94,95,96,25,97,98,99,100,101,102,73,32],"new component","new","svelte","types","patterns","checklist","svelte 5","ui","components","typescript","tests","ui components","with",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":33},"01M6NQDYRKF89279J9A2D9Q892","backend-integration","Connect the UI to semstreams backend APIs. Covers proxy routing, fetch patterns, SSR considerations, and real-time data. Use when adding new backend integrations or debugging API issues.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fbackend-integration\u002FSKILL.md",[],[110,111,112,91,113,114,115,116,94,25,117,118,119,120,32,97,121,122,123,124,125,126],"backend integration","backend","integration","api endpoint","data","backend integrations","time","fetch","integrations","api","real-time","proxy","issues","routing","connect","debugging","ssr",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":33},"01M6NQDW39CHJMCCQZA696N1Y7","review-pr","Adapter for review-pr.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-pr\u002FSKILL.md",[],[134,135,136,137,73,129],"pr","review pr","review","adapter",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":33},"01M6NQD8CX3BCRHN8BRFTVJJ01","query-pattern","Choose the right query access pattern (GraphQL, MCP, NATS Direct) for a use case. Use when designing query APIs, adding new access points, or choosing between gateway types.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fquery-pattern\u002FSKILL.md",[],[145,26,146,25,91,32,73,93,75,147,148,80,149,150,151,152,153],"query pattern","query","scenario","nats","direct","access","GraphQL","gateway","MCP",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":33},"01M6NQD73AJADQC2G9005KPNPN","preflight","Adapter for preflight.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpreflight\u002FSKILL.md",[],[156,73,137]]