$npx -y skills add DNYoussef/context-cascade --skill base-template-generator/*============================================================================*/ /* BASE-TEMPLATE-GENERATOR SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* BASE-TEMPLATE-GENERATOR SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: base-template-generator |
| 7 | version: 2.0.0 |
| 8 | description: | |
| 9 | [assert|neutral] Generate clean, production-ready boilerplate templates for Node.js, Python, Go, React, Vue, and other frameworks. Use when starting new projects or creating consistent foundational code structures. Pr [ground:given] [conf:0.95] [state:confirmed] |
| 10 | category: foundry |
| 11 | tags: |
| 12 | - foundry |
| 13 | - creation |
| 14 | - meta-tools |
| 15 | author: ruv |
| 16 | cognitive_frame: |
| 17 | primary: compositional |
| 18 | goal_analysis: |
| 19 | first_order: "Execute base-template-generator workflow" |
| 20 | second_order: "Ensure quality and consistency" |
| 21 | third_order: "Enable systematic foundry processes" |
| 22 | --- |
| 23 | |
| 24 | /*----------------------------------------------------------------------------*/ |
| 25 | /* S0 META-IDENTITY */ |
| 26 | /*----------------------------------------------------------------------------*/ |
| 27 | |
| 28 | [define|neutral] SKILL := { |
| 29 | name: "base-template-generator", |
| 30 | category: "foundry", |
| 31 | version: "2.0.0", |
| 32 | layer: L1 |
| 33 | } [ground:given] [conf:1.0] [state:confirmed] |
| 34 | |
| 35 | /*----------------------------------------------------------------------------*/ |
| 36 | /* S1 COGNITIVE FRAME */ |
| 37 | /*----------------------------------------------------------------------------*/ |
| 38 | |
| 39 | [define|neutral] COGNITIVE_FRAME := { |
| 40 | frame: "Compositional", |
| 41 | source: "German", |
| 42 | force: "Build from primitives?" |
| 43 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 44 | |
| 45 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 46 | Kaynak dogrulama modu etkin. |
| 47 | |
| 48 | /*----------------------------------------------------------------------------*/ |
| 49 | /* S2 TRIGGER CONDITIONS */ |
| 50 | /*----------------------------------------------------------------------------*/ |
| 51 | |
| 52 | [define|neutral] TRIGGER_POSITIVE := { |
| 53 | keywords: ["base-template-generator", "foundry", "workflow"], |
| 54 | context: "user needs base-template-generator capability" |
| 55 | } [ground:given] [conf:1.0] [state:confirmed] |
| 56 | |
| 57 | /*----------------------------------------------------------------------------*/ |
| 58 | /* S3 CORE CONTENT */ |
| 59 | /*----------------------------------------------------------------------------*/ |
| 60 | |
| 61 | <!-- SKILL SOP IMPROVEMENT v1.0 --> |
| 62 | ## Skill Execution Criteria |
| 63 | |
| 64 | ### When to Use This Skill |
| 65 | - Starting new projects requiring solid foundational structure |
| 66 | - Creating consistent boilerplate across team projects |
| 67 | - Scaffolding microservices or API backends |
| 68 | - Setting up frontend applications with modern tooling |
| 69 | - Need Docker and CI/CD ready out-of-box |
| 70 | - Require automated validation and quality checks |
| 71 | |
| 72 | ### When NOT to Use This Skill |
| 73 | - For existing projects (use refactoring skills instead) |
| 74 | - When custom architecture is required (templates enforce patterns) |
| 75 | - For prototypes that won't reach production |
| 76 | - When dependencies must be minimized beyond template defaults |
| 77 | |
| 78 | ### Success Criteria |
| 79 | - [assert|neutral] primary_outcome: "Production-ready project template with modern tooling, automated validation, Docker support, and CI/CD integration" [ground:acceptance-criteria] [conf:0.90] [state:provisional] |
| 80 | - [assert|neutral] quality_threshold: 0.88 [ground:acceptance-criteria] [conf:0.90] [state:provisional] |
| 81 | - [assert|neutral] verification_method: "Template generates successfully, passes validation scripts, builds without errors, includes working tests and CI/CD pipeline" [ground:acceptance-criteria] [conf:0.90] [state:provisional] |
| 82 | |
| 83 | ### Edge Cases |
| 84 | - case: "Template type not supported (not in 6 core types)" |
| 85 | handling: "Identify closest template match, customize post-generation, or request new template type" |
| 86 | - case: "Conflicting dependency requirements" |
| 87 | handling: "Document conflicts, provide manual override instructions, suggest alternative template" |
| 88 | - case: "Custom project structure needed" |
| 89 | handling: "Use base template as starting point, document customizations, consider creating new template variant" |
| 90 | |
| 91 | ### Skill Guardrails |
| 92 | NEVER: |
| 93 | - "Generate templates with excessive dependencies (minimal deps philosophy)" |
| 94 | - "Skip validation scripts (automated quality checks required)" |
| 95 | - "Omit Docker/CI/CD support (production-readiness requirement)" |
| 96 | - "Use outdated patterns (modern best practices enforced)" |
| 97 | ALWAYS: |
| 98 | - "Include automated validation tools and quality checks" |
| 99 | - "Provide Docker support and CI/CD integration out-of-box" |
| 100 | - "Use modern ES modules, async/await, type hints per language" |
| 101 | - "Follow standard layout (cmd/internal/pkg for Go, src/tests for others)" |
| 102 | - "Include comprehensive README with setup and usage instructions" |
| 103 | |
| 104 | ### Evidence-Based Execution |
| 105 | self_consistency: "After template generation, validate structure matches specification, all scripts execute successfull |