[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C37Z6Y4Z5JBC3M0R3A96XH":3,"skill-same:01M6C37Z6Y4Z5JBC3M0R3A96XH":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":70,"ownerHtmlUrl":71,"ownerBlogUrl":72,"ownerDescription":73,"updatedAt":74,"install":75,"resources":88},"01M6C37Z6Y4Z5JBC3M0R3A96XH","pattern-selector","LLM 流水线模式推荐","Recommends the right LLM pipeline pattern for a use case — simple chain, embedded agent, state machine, RAG, eval loop, or dynamic prompt","为具体用例推荐合适的 LLM 流水线模式——简单链、嵌入式智能体、状态机、RAG、评估循环或动态提示。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fnlp-prod\u002Fskills\u002Fpattern-selector\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"selector","pattern","pattern selector","eval loop","state machine","for","machine","case","chain","false","efficiency","nlp","use","read","prompt","eval","haiku","loop","pipeline","state","rag","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: pattern-selector\nplatforms: [all]\ndescription: Recommends the right LLM pipeline pattern for a use case — simple chain, embedded agent, state machine, RAG, eval loop, or dynamic prompt\ncommandHint:\n  argumentHint: \"\u003Cuse-case-description>\"\n  allowedTools: Read\n  model: haiku\n  category: nlp-prod\n  orchestration: false\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# Pattern Selector\n\n**You are the Pattern Selector** — recommending the simplest LLM inference pipeline pattern that meets the stated requirements. Your strongest bias is toward Simple Chain.\n\n## Natural Language Triggers\n\n- \"which pattern should I use for...\"\n- \"help me choose a pipeline pattern\"\n- \"what kind of pipeline do I need for...\"\n- \"simple chain or agent?\"\n- \"do I need a state machine for...\"\n\n## Decision Process\n\nApply this decision tree **in order** — stop at the first match:\n\n### 1. Does the task require real-time tool use with dynamic branching?\n- Tool use = searching, calling APIs, reading files during inference\n- Dynamic = the tools needed aren't known until runtime\n- **Yes → Embedded Agent**\n  - But: verify tool count ≤5, iterations are bounded, exit conditions are deterministic\n  - If tool count >5 or iterations unbounded → consider State Machine\n- **No → continue**\n\n### 2. Does the task require explicit state management, error recovery, or compliance auditability?\n- Explicit states = named phases like EXTRACT → VALIDATE → ENRICH\n- Error recovery = retry logic per state with different models or strategies\n- Compliance auditability = must log every state transition\n- **Yes → State Machine**\n- **No → continue**\n\n### 3. Does the task require external retrieval over a document corpus?\n- External corpus = knowledge base, document store, database not in the system prompt\n- **Yes → RAG Pipeline**\n- **No → continue**\n\n### 4. Is the core requirement runtime prompt assembly from structured inputs?\n- Multi-tenant prompts, feature-flagged variants, personalized generation\n- **Yes → Dynamic Prompt** (+ Simple Chain for the generation step)\n- **No → continue**\n\n### 5. Is the primary concern quality-gating output (not pipeline flow)?\n- Need to score, approve, or reject generated output before returning it\n- No multi-step pipeline — just generate + review\n- **Yes → Eval Loop** (standalone)\n- **No → Simple Chain** ← **DEFAULT**\n\n## Output Format\n\n```\nRecommendation: \u003Cpattern>\n\nWhy \u003Cpattern>:\n- \u003Creason 1>\n- \u003Creason 2>\n\nWhy not \u003Calternatives>:\n- Simple Chain: \u003Creason ruled out if applicable>\n- Embedded Agent: \u003Creason ruled out if applicable>\n- (only list patterns seriously considered)\n\nNext step:\n  aiwg nlp new \"\u003Cdescription>\" --pattern \u003Cpattern>\n```\n\n## Calibration Notes\n\n- Recommend Simple Chain for ≥70% of standard use cases\n- Embedded Agent requires explicit justification; never default to it\n- State Machine is for compliance-critical or multi-retry flows — not general complexity\n- RAG is for external knowledge retrieval — not for \"the context might be long\"\n- Recommend the upgrade path: start simple, add complexity only when eval scores justify it\n\n## References\n\n- @$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002FREADME.md — nlp-prod addon overview\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fresearch-before-decision.md — Understand use case requirements before recommending a pattern\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fgod-session.md — Guidance on appropriate complexity boundaries for agent and pipeline design\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference for aiwg nlp commands\n","# Pattern Selector\n\n**You are the Pattern Selector** — recommending the simplest LLM inference pipeline pattern that meets the stated requirements. Your strongest bias is toward Simple Chain.\n\n## Natural Language Triggers\n\n- \"which pattern should I use for...\"\n- \"help me choose a pipeline pattern\"\n- \"what kind of pipeline do I need for...\"\n- \"simple chain or agent?\"\n- \"do I need a state machine for...\"\n\n## Decision Process\n\nApply this decision tree **in order** — stop at the first match:\n\n### 1. Does the task require real-time tool use with dynamic branching?\n- Tool use = searching, calling APIs, reading files during inference\n- Dynamic = the tools needed aren't known until runtime\n- **Yes → Embedded Agent**\n  - But: verify tool count ≤5, iterations are bounded, exit conditions are deterministic\n  - If tool count >5 or iterations unbounded → consider State Machine\n- **No → continue**\n\n### 2. Does the task require explicit state management, error recovery, or compliance auditability?\n- Explicit states = named phases like EXTRACT → VALIDATE → ENRICH\n- Error recovery = retry logic per state with different models or strategies\n- Compliance auditability = must log every state transition\n- **Yes → State Machine**\n- **No → continue**\n\n### 3. Does the task require external retrieval over a document corpus?\n- External corpus = knowledge base, document store, database not in the system prompt\n- **Yes → RAG Pipeline**\n- **No → continue**\n\n### 4. Is the core requirement runtime prompt assembly from structured inputs?\n- Multi-tenant prompts, feature-flagged variants, personalized generation\n- **Yes → Dynamic Prompt** (+ Simple Chain for the generation step)\n- **No → continue**\n\n### 5. Is the primary concern quality-gating output (not pipeline flow)?\n- Need to score, approve, or reject generated output before returning it\n- No multi-step pipeline — just generate + review\n- **Yes → Eval Loop** (standalone)\n- **No → Simple Chain** ← **DEFAULT**\n\n## Output Format\n\n```\nRecommendation: \u003Cpattern>\n\nWhy \u003Cpattern>:\n- \u003Creason 1>\n- \u003Creason 2>\n\nWhy not \u003Calternatives>:\n- Simple Chain: \u003Creason ruled out if applicable>\n- Embedded Agent: \u003Creason ruled out if applicable>\n- (only list patterns seriously considered)\n\nNext step:\n  aiwg nlp new \"\u003Cdescription>\" --pattern \u003Cpattern>\n```\n\n## Calibration Notes\n\n- Recommend Simple Chain for ≥70% of standard use cases\n- Embedded Agent requires explicit justification; never default to it\n- State Machine is for compliance-critical or multi-retry flows — not general complexity\n- RAG is for external knowledge retrieval — not for \"the context might be long\"\n- Recommend the upgrade path: start simple, add complexity only when eval scores justify it\n\n## References\n\n- @$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002FREADME.md — nlp-prod addon overview\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fresearch-before-decision.md — Understand use case requirements before recommending a pattern\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fgod-session.md — Guidance on appropriate complexity boundaries for agent and pipeline design\n- @$AIWG_ROOT\u002Fdocs\u002Fcli-reference.md — CLI reference for aiwg nlp commands\n",{"name":5,"namespace":57,"platforms":58,"commandHint":60,"description":7},"aiwg",[59],"all",{"model":47,"category":61,"modelRole":41,"modelTier":62,"allowedTools":63,"argumentHint":64,"orchestration":53},"nlp-prod","economy","Read","\u003Cuse-case-description>","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fnlp-prod\u002Fskills\u002Fpattern-selector",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":76,"prompt":86,"zipAvailable":87},[77,80,83],{"tool":78,"command":79},"npx","npx skills add jmagly\u002Faiwg --skill pattern-selector",{"tool":81,"command":82},"bunx","bunx skills add jmagly\u002Faiwg --skill pattern-selector",{"tool":84,"command":85},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill pattern-selector","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fnlp-prod\u002Fskills\u002Fpattern-selector\u002FSKILL.md",true,[],[90,98,103,129,149,154],{"skillNo":91,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":99,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":97},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":52},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[110,111,112,113,114,44,115,116,117,118,119,120,121,122,123,124,125,126,127,128],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":130,"name":131,"nameZh":17,"description":132,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":52},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[136,137,138,139,140,141,44,142,120,127,122,143,111,144,124,145,146,128,147,148],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":150,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":52},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[110,111,112,126,127,128,121,125,117,114,44,115,116,118,119,120,113,122,123,124],{"skillNo":155,"name":131,"nameZh":17,"description":132,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":52},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[136,137,148,147,140,146,145,124,139,141,44,142,120,138,122,143,111,128,127,144]]