$npx -y skills add DNYoussef/context-cascade --skill when-collaborative-coding-use-pair-programming/*============================================================================*/ /* 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 Collaborative Coding Use Pair Programming |
| 60 | |
| 61 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 62 | Kaynak dogrulama modu etkin. |
| 63 | |
| 64 | |
| 65 | |
| 66 | --- |
| 67 | name: when-collaborative-coding-use-pair-programming |
| 68 | trigger: "when user requests collaborative coding, real-time code review, or paired development session" |
| 69 | description: "AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing support" |
| 70 | version: 2.0.0 |
| 71 | author: Base Template Generator |
| 72 | category: development |
| 73 | tags: |
| 74 | - pair-programming |
| 75 | - collaborative |
| 76 | - tdd |
| 77 | - code-review |
| 78 | - quality-assurance |
| 79 | agents: |
| 80 | - coder (driver) |
| 81 | - reviewer (navigator) |
| 82 | - tester |
| 83 | - performance-analyzer |
| 84 | coordinator: adaptive-coordinator |
| 85 | memory_patterns: |
| 86 | - swarm/pair-programming/session-state |
| 87 | - swarm/pair-programming/code-changes |
| 88 | - swarm/pair-programming/review-feedback |
| 89 | - swarm/pair-programming/test-results |
| 90 | - swarm/pair-programming/metrics |
| 91 | success_criteria: |
| 92 | - Code changes reviewed in real-time |
| 93 | - All tests passing after each change |
| 94 | - Code quality maintained above threshold |
| 95 | - Performance metrics within acceptable range |
| 96 | - No security vulnerabilities introduced |
| 97 | --- |
| 98 | |
| 99 | ## Trigger Conditions |
| 100 | |
| 101 | Use this skill when: |
| 102 | - User requests pair programming session |
| 103 | - Real-time collaborative coding needed |
| 104 | - Code review required during development |
| 105 | - TDD workflow with immediate feedback desired |
| 106 | - Learning/mentoring session for coding practices |
| 107 | - Debugging complex issues with second perspective |
| 108 | - Refactoring with continuous quality checks |
| 109 | |
| 110 | ## Skill Overview |
| 111 | |
| 112 | This skill provides AI-assisted pair programming with three distinct modes: Driver/Navigator (traditional pairing), Switch Mode (role reversal), and TDD Mode (test-first development). Real-time quality monitoring, security scanning, and performance optimization ensure high-quality code output. |
| 113 | |
| 114 | ## 7-Phase Skill-Forge Methodology |
| 115 | |
| 116 | ### Phase 1: Session Initialization |
| 117 | |
| 118 | **Objective**: Set up pair programming environment and establish session parameters |
| 119 | |
| 120 | **Agent**: `coder` (session lead) |
| 121 | |
| 122 | **Activities**: |
| 123 | - Initialize pair programming session |
| 124 | - Determine programming mode (driver/navigator/switch/tdd) |
| 125 | - Set up shared workspace and memory |
| 126 | - Configure quality thresholds and monitoring |
| 127 | - Establish coding standards and conventions |
| 128 | - Define session goals and success criteria |
| 129 | |
| 130 | **Memory Keys**: |
| 131 | - `swarm/pair-programming/session-state/mode` |
| 132 | - `swarm/pair-programming/session-state/goals` |
| 133 | - `swarm/pair-programming/session-state/standards` |
| 134 | - `swarm/pair-programming/session-state/thresholds` |
| 135 | |
| 136 | **Script**: |
| 137 | ```bash |
| 138 | npx claude-flow@alpha hooks pre-task --description "Pair programming session init" |
| 139 | npx claude-flow@alpha hooks session-restore --session-id "pair-prog-${SESSION_ID}" |
| 140 | # Initialize session |
| 141 | npx claude-flow@alpha memory store |