$npx -y skills add DNYoussef/context-cascade --skill when-fixing-complex-bug-use-smart-bug-fix/*============================================================================*/ /* SKILL SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* SKILL SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: skill |
| 7 | version: 1.0.0 |
| 8 | description: | |
| 9 | [assert|neutral] skill skill for delivery workflows [ground:given] [conf:0.95] [state:confirmed] |
| 10 | category: delivery |
| 11 | tags: |
| 12 | - general |
| 13 | author: system |
| 14 | cognitive_frame: |
| 15 | primary: aspectual |
| 16 | goal_analysis: |
| 17 | first_order: "Execute skill workflow" |
| 18 | second_order: "Ensure quality and consistency" |
| 19 | third_order: "Enable systematic delivery processes" |
| 20 | --- |
| 21 | |
| 22 | /*----------------------------------------------------------------------------*/ |
| 23 | /* S0 META-IDENTITY */ |
| 24 | /*----------------------------------------------------------------------------*/ |
| 25 | |
| 26 | [define|neutral] SKILL := { |
| 27 | name: "skill", |
| 28 | category: "delivery", |
| 29 | version: "1.0.0", |
| 30 | layer: L1 |
| 31 | } [ground:given] [conf:1.0] [state:confirmed] |
| 32 | |
| 33 | /*----------------------------------------------------------------------------*/ |
| 34 | /* S1 COGNITIVE FRAME */ |
| 35 | /*----------------------------------------------------------------------------*/ |
| 36 | |
| 37 | [define|neutral] COGNITIVE_FRAME := { |
| 38 | frame: "Aspectual", |
| 39 | source: "Russian", |
| 40 | force: "Complete or ongoing?" |
| 41 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 42 | |
| 43 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 44 | Kaynak dogrulama modu etkin. |
| 45 | |
| 46 | /*----------------------------------------------------------------------------*/ |
| 47 | /* S2 TRIGGER CONDITIONS */ |
| 48 | /*----------------------------------------------------------------------------*/ |
| 49 | |
| 50 | [define|neutral] TRIGGER_POSITIVE := { |
| 51 | keywords: ["skill", "delivery", "workflow"], |
| 52 | context: "user needs skill capability" |
| 53 | } [ground:given] [conf:1.0] [state:confirmed] |
| 54 | |
| 55 | /*----------------------------------------------------------------------------*/ |
| 56 | /* S3 CORE CONTENT */ |
| 57 | /*----------------------------------------------------------------------------*/ |
| 58 | |
| 59 | # When Fixing Complex Bug Use Smart Bug Fix |
| 60 | |
| 61 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 62 | Kaynak dogrulama modu etkin. |
| 63 | |
| 64 | |
| 65 | |
| 66 | --- |
| 67 | name: when-fixing-complex-bug-use-smart-bug-fix |
| 68 | trigger: "when user reports complex bug, production issue, or requests systematic debugging" |
| 69 | description: "Intelligent bug fixing workflow combining root cause analysis, multi-model reasoning, automated testing, and validation to systematically fix bugs" |
| 70 | version: 2.0.0 |
| 71 | author: Base Template Generator |
| 72 | category: debugging |
| 73 | tags: |
| 74 | - bug-fix |
| 75 | - debugging |
| 76 | - root-cause-analysis |
| 77 | - testing |
| 78 | - validation |
| 79 | agents: |
| 80 | - researcher (RCA specialist) |
| 81 | - coder (fix implementer) |
| 82 | - tester (validation specialist) |
| 83 | - reviewer (quality assurance) |
| 84 | - performance-analyzer |
| 85 | coordinator: hierarchical-coordinator |
| 86 | memory_patterns: |
| 87 | - swarm/bug-fix/issue-report |
| 88 | - swarm/bug-fix/rca-findings |
| 89 | - swarm/bug-fix/fix-implementation |
| 90 | - swarm/bug-fix/test-validation |
| 91 | - swarm/bug-fix/verification |
| 92 | success_criteria: |
| 93 | - Root cause identified and documented |
| 94 | - Fix implemented without introducing regressions |
| 95 | - All tests passing including new regression tests |
| 96 | - Bug verified resolved in production-like environment |
| 97 | - Documentation updated with fix details |
| 98 | --- |
| 99 | |
| 100 | ## Assigned Agents |
| 101 | |
| 102 | ### Primary Agent |
| 103 | - **researcher (RCA specialist)** - Best match for root cause analysis (RCA). Expert in systematic bug investigation using 5 Whys technique, git blame analysis, debugging tools, and hypothesis formation. Leads initial issue analysis, reproduction, deep RCA (Phase 1-2), and final verification (Phase 7). |
| 104 | |
| 105 | ### Secondary Agents |
| 106 | - **coder (fix implementer)** - Phase 4: Implements bug fix addressing validated root cause with minimal code changes |
| 107 | - **tester (validation specialist)** - Phase 3 & 5: Hypothesis validation and comprehensive test suite execution |
| 108 | - **reviewer (quality assurance)** - Phase 6: Code review, security scan, performance impact analysis |
| 109 | - **performance-analyzer** - Phase 6: Performance monitoring and regression detection |
| 110 | |
| 111 | ### Fallback Agents |
| 112 | - **code-analyzer** - Alternative for code analysis if researcher needs support |
| 113 | - **production-validator** - Alternative for production verification if reviewer unavailable |
| 114 | - **backend-dev** - Alternative implementation if coder unavailable |
| 115 | |
| 116 | ### Coordination Pattern |
| 117 | **Pattern**: Hierarchical RCA Workflow (7 phases with validation loops) |
| 118 | **Topology**: Hierarchical coordination with hypothesis-driven development |
| 119 | **Memory Namespace**: `swarm/bug-fix/*` (issue-report, rca-findings, fix-implementation, test-validation, verification) |
| 120 | |
| 121 | **Agent Collaboration**: |
| 122 | 1. **RCA Investigation**: Researcher performs deep root cause analysis before any fix |
| 123 | 2. **Hypothesis Validation**: Tester validates hypothesis before coder implements fix |
| 124 | 3. **Feedback Loops**: If hypothesis fai |