[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAYN9KMB97PCPD5D8YWC5G":3,"skill-same:01M6CAYN9KMB97PCPD5D8YWC5G":146},{"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":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6CAYN9KMB97PCPD5D8YWC5G","nl-router","自然语言请求路由","Route natural language requests to appropriate skills and workflows by parsing intent and matching trigger patterns","通过解析意图并匹配触发模式，将自然语言请求路由到相应的技能和工作流。","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\u002Futils\u002Fskills\u002Fnl-router\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43],"nl router","router","nl","workflows","parsing","intent","language","patterns","natural language","route","matching","trigger","requests","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: nl-router\nplatforms: [all]\ndescription: Route natural language requests to appropriate skills and workflows by parsing intent and matching trigger patterns\n---\n\n# nl-router\n\nRoute natural language requests to appropriate skills and workflows.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"route this\" → explicit NL routing request\n- \"what skill handles [X]\" → skill discovery\n\n## Purpose\n\nThis skill interprets natural language requests and routes them to the appropriate skills or workflows by:\n- Parsing user intent from natural language\n- Matching to available skills and commands\n- Handling ambiguous requests with clarification\n- Suggesting relevant actions\n- Learning from routing patterns\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Parses user intent**:\n   - Extract action verbs\n   - Identify objects\u002Ftargets\n   - Detect qualifiers and constraints\n   - Recognize context from conversation\n\n2. **Matches to skills**:\n   - Search skill trigger patterns\n   - Score match confidence\n   - Consider context relevance\n\n3. **Routes request**:\n   - High confidence: Route directly\n   - Medium confidence: Confirm with user\n   - Low confidence: Offer options\n   - No match: Suggest alternatives\n\n4. **Handles follow-ups**:\n   - Track routing context\n   - Enable corrections\n   - Learn from feedback\n\n## Routing Patterns\n\n### SDLC Workflows\n\n```yaml\nsdlc_patterns:\n  phase_transitions:\n    patterns:\n      - \"transition to {phase}\"\n      - \"move to {phase}\"\n      - \"start {phase}\"\n      - \"begin {phase}\"\n      - \"ready for {phase}\"\n    routes_to: flow-{from}-to-{to}\n    extract: [from_phase, to_phase]\n\n  gate_checks:\n    patterns:\n      - \"check gate\"\n      - \"can we transition\"\n      - \"ready for {phase}\"\n      - \"validate {gate}\"\n      - \"gate check\"\n    routes_to: gate-evaluation\n    extract: [gate_name, phase]\n\n  project_status:\n    patterns:\n      - \"where are we\"\n      - \"what's next\"\n      - \"project status\"\n      - \"current phase\"\n      - \"status update\"\n    routes_to: project-awareness\n    action: status_report\n\n  risk_management:\n    patterns:\n      - \"update risks\"\n      - \"risk review\"\n      - \"new risk\"\n      - \"mitigate {risk}\"\n    routes_to: risk-cycle\n    extract: [risk_id, action]\n\n  security_review:\n    patterns:\n      - \"security review\"\n      - \"run security\"\n      - \"threat model\"\n      - \"security scan\"\n    routes_to: security-assessment\n    extract: [scope]\n```\n\n### Artifact Operations\n\n```yaml\nartifact_patterns:\n  create:\n    patterns:\n      - \"create {artifact}\"\n      - \"generate {artifact}\"\n      - \"new {artifact}\"\n      - \"draft {artifact}\"\n    routes_to: artifact-orchestration\n    extract: [artifact_type]\n\n  review:\n    patterns:\n      - \"review {artifact}\"\n      - \"check {artifact}\"\n      - \"validate {artifact}\"\n    routes_to: artifact_type_specific_review\n    extract: [artifact_type]\n\n  trace:\n    patterns:\n      - \"trace {requirement}\"\n      - \"what implements {id}\"\n      - \"coverage for {id}\"\n    routes_to: traceability-check\n    extract: [requirement_id]\n```\n\n### Marketing Workflows\n\n```yaml\nmarketing_patterns:\n  brand_review:\n    patterns:\n      - \"brand review\"\n      - \"check brand compliance\"\n      - \"is this on-brand\"\n      - \"brand audit\"\n    routes_to: brand-compliance\n    extract: [asset_path]\n\n  approval:\n    patterns:\n      - \"submit for approval\"\n      - \"approval workflow\"\n      - \"get sign-off\"\n      - \"approval status\"\n    routes_to: approval-workflow\n    extract: [asset_id]\n\n  performance:\n    patterns:\n      - \"how are we doing\"\n      - \"marketing report\"\n      - \"performance summary\"\n      - \"campaign results\"\n    routes_to: performance-digest\n    extract: [period, channel]\n\n  competitive:\n    patterns:\n      - \"competitor analysis\"\n      - \"what are competitors doing\"\n      - \"competitive landscape\"\n    routes_to: competitive-intel\n    extract: [competitor_name]\n```\n\n### Research & Investigation\n\n```yaml\nresearch_patterns:\n  lookup:\n    patterns:\n      - \"look up {topic}\"\n      - \"what does {thing} do\"\n      - \"how does {thing} work\"\n      - \"find documentation for {topic}\"\n      - \"search for {query}\"\n      - \"check the docs for {topic}\"\n      - \"read about {topic}\"\n      - \"research {topic}\"\n    routes_to: research-investigation\n    extract: [topic, scope]\n    rule_activation: research-before-decision\n\n  codebase_exploration:\n    patterns:\n      - \"how is {feature} implemented\"\n      - \"where is {thing} defined\"\n      - \"find {pattern} in the codebase\"\n      - \"what pattern does this project use for {thing}\"\n      - \"show me examples of {pattern}\"\n    routes_to: codebase-exploration\n    extract: [feature, pattern]\n    rule_activation: research-before-decision\n\n  error_investigation:\n    patterns:\n      - \"why is {thing} failing\"\n      - \"investigate {error}\"\n      - \"debug {issue}\"\n      - \"what's causing {problem}\"\n      - \"root cause of {error}\"\n    routes_to: error-diagnosis\n    extract: [error, context]\n    rule_activation: research-before-decision\n```\n\n### Planning & Strategy\n\n```yaml\nplanning_patterns:\n  approach_planning:\n    patterns:\n      - \"plan how to {task}\"\n      - \"design approach for {task}\"\n      - \"think through {task}\"\n      - \"strategize {task}\"\n      - \"how should I approach {task}\"\n      - \"what's the best way to {task}\"\n    routes_to: approach-planning\n    extract: [task, constraints]\n\n  implementation_planning:\n    patterns:\n      - \"plan the implementation of {feature}\"\n      - \"break down {task}\"\n      - \"outline the steps for {task}\"\n      - \"what do I need to do for {task}\"\n    routes_to: implementation-planning\n    extract: [feature, scope]\n\n  decision_support:\n    patterns:\n      - \"help me decide between {options}\"\n      - \"compare {a} and {b}\"\n      - \"trade-off analysis for {topic}\"\n      - \"which should I choose\"\n      - \"pros and cons of {approach}\"\n    routes_to: decision-support\n    extract: [decision_topic, options]\n```\n\n### Clarification & Recovery\n\n```yaml\nclarification_patterns:\n  re_read:\n    patterns:\n      - \"re-read my instructions\"\n      - \"that's not what I asked\"\n      - \"I said {correction}\"\n      - \"go back and read what I wrote\"\n      - \"you missed {thing}\"\n      - \"I already told you {thing}\"\n    routes_to: instruction-reparse\n    rule_activation: instruction-comprehension\n    priority: high\n\n  confusion:\n    patterns:\n      - \"I'm confused about {topic}\"\n      - \"can you explain {thing}\"\n      - \"what do you mean by {thing}\"\n      - \"I don't understand {thing}\"\n    routes_to: clarification\n    extract: [topic]\n\n  correction:\n    patterns:\n      - \"no, I meant {correction}\"\n      - \"not {wrong}, use {right}\"\n      - \"change that to {correction}\"\n      - \"that's wrong, it should be {correction}\"\n    routes_to: instruction-correction\n    rule_activation: instruction-comprehension\n    priority: high\n    extract: [correction]\n```\n\n### Utility Operations\n\n```yaml\nutility_patterns:\n  decision:\n    patterns:\n      - \"help me decide\"\n      - \"compare options\"\n      - \"trade-off analysis\"\n      - \"which should I choose\"\n    routes_to: decision-support\n    extract: [decision_topic]\n\n  test_coverage:\n    patterns:\n      - \"test coverage\"\n      - \"what's not tested\"\n      - \"coverage report\"\n    routes_to: test-coverage\n    extract: [scope]\n\n  incident:\n    patterns:\n      - \"production issue\"\n      - \"system down\"\n      - \"incident\"\n      - \"P0\"\n      - \"SEV1\"\n    routes_to: incident-triage\n    priority: urgent\n\n  config:\n    patterns:\n      - \"validate config\"\n      - \"check setup\"\n      - \"config issues\"\n    routes_to: config-validator\n```\n\n## Intent Classification\n\n### Action Verbs\n\n```yaml\naction_verbs:\n  create:\n    words: [create, generate, new, draft, make, build, write]\n    intent: creation\n\n  review:\n    words: [review, check, validate, verify, audit, assess]\n    intent: validation\n\n  update:\n    words: [update, change, modify, edit, revise]\n    intent: modification\n\n  delete:\n    words: [delete, remove, deprecate, archive]\n    intent: removal\n\n  analyze:\n    words: [analyze, understand, explain, investigate, explore]\n    intent: analysis\n\n  research:\n    words: [research, look up, find out, search for, read about, check docs]\n    intent: investigation\n    rule_activation: research-before-decision\n\n  plan:\n    words: [plan, design, strategize, outline, think through, approach]\n    intent: planning\n\n  clarify:\n    words: [clarify, re-read, explain, what did I, I said, not what I asked]\n    intent: clarification\n    rule_activation: instruction-comprehension\n\n  transition:\n    words: [transition, move, progress, advance, start, begin]\n    intent: workflow_progression\n\n  compare:\n    words: [compare, contrast, versus, vs, trade-off]\n    intent: comparison\n```\n\n### Object Mappings\n\n```yaml\nobject_mappings:\n  artifacts:\n    sad: software-architecture-document\n    adr: architecture-decision-record\n    test_plan: test-plan\n    requirements: software-requirements-spec\n    threat_model: threat-model\n\n  phases:\n    inception: inception\n    elaboration: elaboration\n    construction: construction\n    transition: transition\n    production: production\n\n  gates:\n    lom: lifecycle-objective-milestone\n    abm: architecture-baseline-milestone\n    ioc: initial-operational-capability\n    prm: product-release-milestone\n```\n\n## Confidence Scoring\n\n```yaml\nconfidence_levels:\n  high:\n    threshold: 0.85\n    action: route_directly\n    example: \"create SAD\" → artifact-orchestration (SAD)\n\n  medium:\n    threshold: 0.60\n    action: confirm_before_routing\n    example: \"review this\" → \"Did you mean brand review or code review?\"\n\n  low:\n    threshold: 0.40\n    action: offer_options\n    example: \"help\" → \"Here are things I can help with...\"\n\n  none:\n    threshold: 0.0\n    action: clarify\n    example: \"do the thing\" → \"I'm not sure what you'd like to do. Can you clarify?\"\n```\n\n## Routing Response Format\n\n### Direct Route (High Confidence)\n\n```yaml\nrouting_response:\n  confidence: high\n  matched_skill: artifact-orchestration\n  extracted_params:\n    artifact_type: sad\n  message: \"Creating Software Architecture Document...\"\n  next_action: invoke_skill\n```\n\n### Confirmation Route (Medium Confidence)\n\n```yaml\nrouting_response:\n  confidence: medium\n  candidates:\n    - skill: brand-compliance\n      confidence: 0.72\n      reason: \"brand\" keyword matched\n    - skill: code-reviewer\n      confidence: 0.65\n      reason: \"review\" action detected\n  message: \"I found multiple possible actions. Did you mean...\"\n  next_action: await_clarification\n```\n\n### Options Route (Low Confidence)\n\n```yaml\nrouting_response:\n  confidence: low\n  suggestions:\n    - category: Documentation\n      actions: [create SAD, generate ADR, draft requirements]\n    - category: Review\n      actions: [brand review, code review, security review]\n    - category: Status\n      actions: [project status, coverage report, risk review]\n  message: \"I'm not sure what you'd like to do. Here are some options...\"\n  next_action: await_selection\n```\n\n## Usage Examples\n\n### Clear Intent\n\n```\nUser: \"Generate the architecture document\"\n\nSkill routes:\n- Intent: create\n- Object: architecture document → SAD\n- Confidence: 0.95 (high)\n\nOutput:\n\"Routing to artifact-orchestration to generate Software Architecture Document.\n\nStarting SAD generation...\"\n\n[Invokes artifact-orchestration with artifact_type=sad]\n```\n\n### Ambiguous Intent\n\n```\nUser: \"Review the landing page\"\n\nSkill analyzes:\n- Intent: review\n- Object: landing page\n- Possible skills: brand-compliance, qa-protocol, code-reviewer\n- Confidence: 0.65 (medium)\n\nOutput:\n\"I found a few review options for 'landing page':\n\n1. **Brand Review** - Check brand compliance\n2. **QA Review** - Check quality and specs\n3. **Content Review** - Check copy and messaging\n\nWhich would you like?\"\n```\n\n### Unclear Intent\n\n```\nUser: \"Help with the project\"\n\nSkill analyzes:\n- Intent: unclear\n- Object: project (generic)\n- Confidence: 0.30 (low)\n\nOutput:\n\"I can help with many things! Here are some common actions:\n\n**Project Status**\n- Where are we? → Project status\n- What's next? → Phase recommendations\n\n**Documentation**\n- Create SAD → Architecture document\n- Generate ADR → Decision record\n\n**Reviews**\n- Security review → Threat assessment\n- Brand review → Compliance check\n\nWhat would you like to do?\"\n```\n\n### Contextual Routing\n\n```\nUser: (After discussing a bug) \"Create a ticket for this\"\n\nSkill analyzes:\n- Context: Bug discussion\n- Intent: create\n- Object: ticket\n- Inference: incident or defect ticket\n- Confidence: 0.80 (high with context)\n\nOutput:\n\"Based on our discussion, I'll create an incident ticket for the authentication issue.\n\nRouting to incident-triage...\"\n```\n\n## Integration\n\nThis skill is the central router and integrates with all other skills:\n- All SDLC skills\n- All MMK skills\n- All utility skills\n- All workflow commands\n\n## Configuration\n\n### Custom Patterns\n\nAdd custom routing patterns in `.aiwg\u002Fconfig\u002Frouting.yaml`:\n\n```yaml\ncustom_patterns:\n  - trigger: \"standup update\"\n    routes_to: project-awareness\n    action: standup_summary\n\n  - trigger: \"weekly report\"\n    routes_to: performance-digest\n    params:\n      period: weekly\n```\n\n### Priority Overrides\n\n```yaml\npriority_overrides:\n  # Urgent patterns always match first\n  urgent:\n    - \"production down\"\n    - \"SEV1\"\n    - \"security breach\"\n\n  # Exact matches before fuzzy\n  exact_first: true\n\n  # Prefer skill in current context\n  context_boost: 0.15\n```\n\n## Output Locations\n\n- Routing logs: `.aiwg\u002Flogs\u002Frouting\u002F`\n- Pattern analytics: `.aiwg\u002Fanalytics\u002Frouting-patterns.json`\n\n## References\n\n- Skill catalog: Available skills from all frameworks\n- Command catalog: Available workflow commands\n- Translation table: docs\u002Fsimple-language-translations.md\n","# nl-router\n\nRoute natural language requests to appropriate skills and workflows.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"route this\" → explicit NL routing request\n- \"what skill handles [X]\" → skill discovery\n\n## Purpose\n\nThis skill interprets natural language requests and routes them to the appropriate skills or workflows by:\n- Parsing user intent from natural language\n- Matching to available skills and commands\n- Handling ambiguous requests with clarification\n- Suggesting relevant actions\n- Learning from routing patterns\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Parses user intent**:\n   - Extract action verbs\n   - Identify objects\u002Ftargets\n   - Detect qualifiers and constraints\n   - Recognize context from conversation\n\n2. **Matches to skills**:\n   - Search skill trigger patterns\n   - Score match confidence\n   - Consider context relevance\n\n3. **Routes request**:\n   - High confidence: Route directly\n   - Medium confidence: Confirm with user\n   - Low confidence: Offer options\n   - No match: Suggest alternatives\n\n4. **Handles follow-ups**:\n   - Track routing context\n   - Enable corrections\n   - Learn from feedback\n\n## Routing Patterns\n\n### SDLC Workflows\n\n```yaml\nsdlc_patterns:\n  phase_transitions:\n    patterns:\n      - \"transition to {phase}\"\n      - \"move to {phase}\"\n      - \"start {phase}\"\n      - \"begin {phase}\"\n      - \"ready for {phase}\"\n    routes_to: flow-{from}-to-{to}\n    extract: [from_phase, to_phase]\n\n  gate_checks:\n    patterns:\n      - \"check gate\"\n      - \"can we transition\"\n      - \"ready for {phase}\"\n      - \"validate {gate}\"\n      - \"gate check\"\n    routes_to: gate-evaluation\n    extract: [gate_name, phase]\n\n  project_status:\n    patterns:\n      - \"where are we\"\n      - \"what's next\"\n      - \"project status\"\n      - \"current phase\"\n      - \"status update\"\n    routes_to: project-awareness\n    action: status_report\n\n  risk_management:\n    patterns:\n      - \"update risks\"\n      - \"risk review\"\n      - \"new risk\"\n      - \"mitigate {risk}\"\n    routes_to: risk-cycle\n    extract: [risk_id, action]\n\n  security_review:\n    patterns:\n      - \"security review\"\n      - \"run security\"\n      - \"threat model\"\n      - \"security scan\"\n    routes_to: security-assessment\n    extract: [scope]\n```\n\n### Artifact Operations\n\n```yaml\nartifact_patterns:\n  create:\n    patterns:\n      - \"create {artifact}\"\n      - \"generate {artifact}\"\n      - \"new {artifact}\"\n      - \"draft {artifact}\"\n    routes_to: artifact-orchestration\n    extract: [artifact_type]\n\n  review:\n    patterns:\n      - \"review {artifact}\"\n      - \"check {artifact}\"\n      - \"validate {artifact}\"\n    routes_to: artifact_type_specific_review\n    extract: [artifact_type]\n\n  trace:\n    patterns:\n      - \"trace {requirement}\"\n      - \"what implements {id}\"\n      - \"coverage for {id}\"\n    routes_to: traceability-check\n    extract: [requirement_id]\n```\n\n### Marketing Workflows\n\n```yaml\nmarketing_patterns:\n  brand_review:\n    patterns:\n      - \"brand review\"\n      - \"check brand compliance\"\n      - \"is this on-brand\"\n      - \"brand audit\"\n    routes_to: brand-compliance\n    extract: [asset_path]\n\n  approval:\n    patterns:\n      - \"submit for approval\"\n      - \"approval workflow\"\n      - \"get sign-off\"\n      - \"approval status\"\n    routes_to: approval-workflow\n    extract: [asset_id]\n\n  performance:\n    patterns:\n      - \"how are we doing\"\n      - \"marketing report\"\n      - \"performance summary\"\n      - \"campaign results\"\n    routes_to: performance-digest\n    extract: [period, channel]\n\n  competitive:\n    patterns:\n      - \"competitor analysis\"\n      - \"what are competitors doing\"\n      - \"competitive landscape\"\n    routes_to: competitive-intel\n    extract: [competitor_name]\n```\n\n### Research & Investigation\n\n```yaml\nresearch_patterns:\n  lookup:\n    patterns:\n      - \"look up {topic}\"\n      - \"what does {thing} do\"\n      - \"how does {thing} work\"\n      - \"find documentation for {topic}\"\n      - \"search for {query}\"\n      - \"check the docs for {topic}\"\n      - \"read about {topic}\"\n      - \"research {topic}\"\n    routes_to: research-investigation\n    extract: [topic, scope]\n    rule_activation: research-before-decision\n\n  codebase_exploration:\n    patterns:\n      - \"how is {feature} implemented\"\n      - \"where is {thing} defined\"\n      - \"find {pattern} in the codebase\"\n      - \"what pattern does this project use for {thing}\"\n      - \"show me examples of {pattern}\"\n    routes_to: codebase-exploration\n    extract: [feature, pattern]\n    rule_activation: research-before-decision\n\n  error_investigation:\n    patterns:\n      - \"why is {thing} failing\"\n      - \"investigate {error}\"\n      - \"debug {issue}\"\n      - \"what's causing {problem}\"\n      - \"root cause of {error}\"\n    routes_to: error-diagnosis\n    extract: [error, context]\n    rule_activation: research-before-decision\n```\n\n### Planning & Strategy\n\n```yaml\nplanning_patterns:\n  approach_planning:\n    patterns:\n      - \"plan how to {task}\"\n      - \"design approach for {task}\"\n      - \"think through {task}\"\n      - \"strategize {task}\"\n      - \"how should I approach {task}\"\n      - \"what's the best way to {task}\"\n    routes_to: approach-planning\n    extract: [task, constraints]\n\n  implementation_planning:\n    patterns:\n      - \"plan the implementation of {feature}\"\n      - \"break down {task}\"\n      - \"outline the steps for {task}\"\n      - \"what do I need to do for {task}\"\n    routes_to: implementation-planning\n    extract: [feature, scope]\n\n  decision_support:\n    patterns:\n      - \"help me decide between {options}\"\n      - \"compare {a} and {b}\"\n      - \"trade-off analysis for {topic}\"\n      - \"which should I choose\"\n      - \"pros and cons of {approach}\"\n    routes_to: decision-support\n    extract: [decision_topic, options]\n```\n\n### Clarification & Recovery\n\n```yaml\nclarification_patterns:\n  re_read:\n    patterns:\n      - \"re-read my instructions\"\n      - \"that's not what I asked\"\n      - \"I said {correction}\"\n      - \"go back and read what I wrote\"\n      - \"you missed {thing}\"\n      - \"I already told you {thing}\"\n    routes_to: instruction-reparse\n    rule_activation: instruction-comprehension\n    priority: high\n\n  confusion:\n    patterns:\n      - \"I'm confused about {topic}\"\n      - \"can you explain {thing}\"\n      - \"what do you mean by {thing}\"\n      - \"I don't understand {thing}\"\n    routes_to: clarification\n    extract: [topic]\n\n  correction:\n    patterns:\n      - \"no, I meant {correction}\"\n      - \"not {wrong}, use {right}\"\n      - \"change that to {correction}\"\n      - \"that's wrong, it should be {correction}\"\n    routes_to: instruction-correction\n    rule_activation: instruction-comprehension\n    priority: high\n    extract: [correction]\n```\n\n### Utility Operations\n\n```yaml\nutility_patterns:\n  decision:\n    patterns:\n      - \"help me decide\"\n      - \"compare options\"\n      - \"trade-off analysis\"\n      - \"which should I choose\"\n    routes_to: decision-support\n    extract: [decision_topic]\n\n  test_coverage:\n    patterns:\n      - \"test coverage\"\n      - \"what's not tested\"\n      - \"coverage report\"\n    routes_to: test-coverage\n    extract: [scope]\n\n  incident:\n    patterns:\n      - \"production issue\"\n      - \"system down\"\n      - \"incident\"\n      - \"P0\"\n      - \"SEV1\"\n    routes_to: incident-triage\n    priority: urgent\n\n  config:\n    patterns:\n      - \"validate config\"\n      - \"check setup\"\n      - \"config issues\"\n    routes_to: config-validator\n```\n\n## Intent Classification\n\n### Action Verbs\n\n```yaml\naction_verbs:\n  create:\n    words: [create, generate, new, draft, make, build, write]\n    intent: creation\n\n  review:\n    words: [review, check, validate, verify, audit, assess]\n    intent: validation\n\n  update:\n    words: [update, change, modify, edit, revise]\n    intent: modification\n\n  delete:\n    words: [delete, remove, deprecate, archive]\n    intent: removal\n\n  analyze:\n    words: [analyze, understand, explain, investigate, explore]\n    intent: analysis\n\n  research:\n    words: [research, look up, find out, search for, read about, check docs]\n    intent: investigation\n    rule_activation: research-before-decision\n\n  plan:\n    words: [plan, design, strategize, outline, think through, approach]\n    intent: planning\n\n  clarify:\n    words: [clarify, re-read, explain, what did I, I said, not what I asked]\n    intent: clarification\n    rule_activation: instruction-comprehension\n\n  transition:\n    words: [transition, move, progress, advance, start, begin]\n    intent: workflow_progression\n\n  compare:\n    words: [compare, contrast, versus, vs, trade-off]\n    intent: comparison\n```\n\n### Object Mappings\n\n```yaml\nobject_mappings:\n  artifacts:\n    sad: software-architecture-document\n    adr: architecture-decision-record\n    test_plan: test-plan\n    requirements: software-requirements-spec\n    threat_model: threat-model\n\n  phases:\n    inception: inception\n    elaboration: elaboration\n    construction: construction\n    transition: transition\n    production: production\n\n  gates:\n    lom: lifecycle-objective-milestone\n    abm: architecture-baseline-milestone\n    ioc: initial-operational-capability\n    prm: product-release-milestone\n```\n\n## Confidence Scoring\n\n```yaml\nconfidence_levels:\n  high:\n    threshold: 0.85\n    action: route_directly\n    example: \"create SAD\" → artifact-orchestration (SAD)\n\n  medium:\n    threshold: 0.60\n    action: confirm_before_routing\n    example: \"review this\" → \"Did you mean brand review or code review?\"\n\n  low:\n    threshold: 0.40\n    action: offer_options\n    example: \"help\" → \"Here are things I can help with...\"\n\n  none:\n    threshold: 0.0\n    action: clarify\n    example: \"do the thing\" → \"I'm not sure what you'd like to do. Can you clarify?\"\n```\n\n## Routing Response Format\n\n### Direct Route (High Confidence)\n\n```yaml\nrouting_response:\n  confidence: high\n  matched_skill: artifact-orchestration\n  extracted_params:\n    artifact_type: sad\n  message: \"Creating Software Architecture Document...\"\n  next_action: invoke_skill\n```\n\n### Confirmation Route (Medium Confidence)\n\n```yaml\nrouting_response:\n  confidence: medium\n  candidates:\n    - skill: brand-compliance\n      confidence: 0.72\n      reason: \"brand\" keyword matched\n    - skill: code-reviewer\n      confidence: 0.65\n      reason: \"review\" action detected\n  message: \"I found multiple possible actions. Did you mean...\"\n  next_action: await_clarification\n```\n\n### Options Route (Low Confidence)\n\n```yaml\nrouting_response:\n  confidence: low\n  suggestions:\n    - category: Documentation\n      actions: [create SAD, generate ADR, draft requirements]\n    - category: Review\n      actions: [brand review, code review, security review]\n    - category: Status\n      actions: [project status, coverage report, risk review]\n  message: \"I'm not sure what you'd like to do. Here are some options...\"\n  next_action: await_selection\n```\n\n## Usage Examples\n\n### Clear Intent\n\n```\nUser: \"Generate the architecture document\"\n\nSkill routes:\n- Intent: create\n- Object: architecture document → SAD\n- Confidence: 0.95 (high)\n\nOutput:\n\"Routing to artifact-orchestration to generate Software Architecture Document.\n\nStarting SAD generation...\"\n\n[Invokes artifact-orchestration with artifact_type=sad]\n```\n\n### Ambiguous Intent\n\n```\nUser: \"Review the landing page\"\n\nSkill analyzes:\n- Intent: review\n- Object: landing page\n- Possible skills: brand-compliance, qa-protocol, code-reviewer\n- Confidence: 0.65 (medium)\n\nOutput:\n\"I found a few review options for 'landing page':\n\n1. **Brand Review** - Check brand compliance\n2. **QA Review** - Check quality and specs\n3. **Content Review** - Check copy and messaging\n\nWhich would you like?\"\n```\n\n### Unclear Intent\n\n```\nUser: \"Help with the project\"\n\nSkill analyzes:\n- Intent: unclear\n- Object: project (generic)\n- Confidence: 0.30 (low)\n\nOutput:\n\"I can help with many things! Here are some common actions:\n\n**Project Status**\n- Where are we? → Project status\n- What's next? → Phase recommendations\n\n**Documentation**\n- Create SAD → Architecture document\n- Generate ADR → Decision record\n\n**Reviews**\n- Security review → Threat assessment\n- Brand review → Compliance check\n\nWhat would you like to do?\"\n```\n\n### Contextual Routing\n\n```\nUser: (After discussing a bug) \"Create a ticket for this\"\n\nSkill analyzes:\n- Context: Bug discussion\n- Intent: create\n- Object: ticket\n- Inference: incident or defect ticket\n- Confidence: 0.80 (high with context)\n\nOutput:\n\"Based on our discussion, I'll create an incident ticket for the authentication issue.\n\nRouting to incident-triage...\"\n```\n\n## Integration\n\nThis skill is the central router and integrates with all other skills:\n- All SDLC skills\n- All MMK skills\n- All utility skills\n- All workflow commands\n\n## Configuration\n\n### Custom Patterns\n\nAdd custom routing patterns in `.aiwg\u002Fconfig\u002Frouting.yaml`:\n\n```yaml\ncustom_patterns:\n  - trigger: \"standup update\"\n    routes_to: project-awareness\n    action: standup_summary\n\n  - trigger: \"weekly report\"\n    routes_to: performance-digest\n    params:\n      period: weekly\n```\n\n### Priority Overrides\n\n```yaml\npriority_overrides:\n  # Urgent patterns always match first\n  urgent:\n    - \"production down\"\n    - \"SEV1\"\n    - \"security breach\"\n\n  # Exact matches before fuzzy\n  exact_first: true\n\n  # Prefer skill in current context\n  context_boost: 0.15\n```\n\n## Output Locations\n\n- Routing logs: `.aiwg\u002Flogs\u002Frouting\u002F`\n- Pattern analytics: `.aiwg\u002Fanalytics\u002Frouting-patterns.json`\n\n## References\n\n- Skill catalog: Available skills from all frameworks\n- Command catalog: Available workflow commands\n- Translation table: docs\u002Fsimple-language-translations.md\n",{"name":5,"namespace":49,"platforms":50,"description":7},"aiwg",[51],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fnl-router",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":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add jmagly\u002Faiwg --skill nl-router",{"tool":68,"command":69},"bunx","bunx skills add jmagly\u002Faiwg --skill nl-router",{"tool":71,"command":72},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill nl-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fnl-router\u002FSKILL.md",true,[76,82,86,90,94,98,104,108,112,116,120,124,130,134,138,142],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"assets\u002Fbeamer_template_conference.tex","ASSET","资产文件",9983,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fassets\u002Fbeamer_template_conference.tex",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"assets\u002Fbeamer_template_defense.tex",26503,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fassets\u002Fbeamer_template_defense.tex",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"assets\u002Fbeamer_template_seminar.tex",23247,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fassets\u002Fbeamer_template_seminar.tex",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"assets\u002Fpowerpoint_design_guide.md",18989,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fassets\u002Fpowerpoint_design_guide.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"assets\u002Ftiming_guidelines.md",14723,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fassets\u002Ftiming_guidelines.md",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fbeamer_guide.md","REFERENCE","参考文档",19321,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Fbeamer_guide.md",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fdata_visualization_slides.md",17863,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Fdata_visualization_slides.md",{"path":109,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fpresentation_structure.md",22220,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Fpresentation_structure.md",{"path":113,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fslide_design_principles.md",23878,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Fslide_design_principles.md",{"path":117,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Ftalk_types_guide.md",20146,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Ftalk_types_guide.md",{"path":121,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Fvisual_review_workflow.md",20170,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Freferences\u002Fvisual_review_workflow.md",{"path":125,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fgenerate_slide_image_ai.py","SCRIPT","脚本",29060,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fscripts\u002Fgenerate_slide_image_ai.py",{"path":131,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fgenerate_slide_image.py",5309,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fscripts\u002Fgenerate_slide_image.py",{"path":135,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":136,"sourceHtmlUrl":137},"scripts\u002Fpdf_to_images.py",6644,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fscripts\u002Fpdf_to_images.py",{"path":139,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":140,"sourceHtmlUrl":141},"scripts\u002Fslides_to_pdf.py",7423,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fscripts\u002Fslides_to_pdf.py",{"path":143,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":144,"sourceHtmlUrl":145},"scripts\u002Fvalidate_presentation.py",13115,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fscientific-slides\u002Fscripts\u002Fvalidate_presentation.py",[147,155,160,187,207,212],{"skillNo":148,"name":149,"nameZh":17,"description":150,"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":154},"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":156,"name":149,"nameZh":17,"description":150,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":154},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":161,"name":162,"nameZh":17,"description":163,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":44},"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",[],[167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":188,"name":189,"nameZh":17,"description":190,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":44},"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",[],[194,195,196,197,198,199,172,200,178,185,180,201,168,202,182,203,204,186,205,206],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":208,"name":162,"nameZh":17,"description":163,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":44},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[167,168,169,184,185,186,179,183,175,171,172,173,174,176,177,178,170,180,181,182],{"skillNo":213,"name":189,"nameZh":17,"description":190,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":214,"categories":215,"keywords":216,"publishedAt":44},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[194,195,206,205,198,204,203,182,197,199,172,200,178,196,180,201,168,186,185,202]]