@dzhechkov/keysarium 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +52 -5
  2. package/README.ru.md +541 -0
  3. package/bin/cli.js +0 -0
  4. package/package.json +11 -9
  5. package/templates/.claude/commands/analyst-manual.md +38 -0
  6. package/templates/.claude/commands/casarium.md +55 -4
  7. package/templates/.claude/commands/feature-adr.md +8 -0
  8. package/templates/.claude/rules/trust-tiers.md +5 -0
  9. package/templates/.claude/shards/feature-adr.shard.md +64 -10
  10. package/templates/.claude/shards/phase-ai-factory.shard.md +109 -0
  11. package/templates/.claude/skills/ai-factory-mapper/README.md +90 -0
  12. package/templates/.claude/skills/ai-factory-mapper/SKILL.md +309 -0
  13. package/templates/.claude/skills/ai-factory-mapper/assets/report-template.md +123 -0
  14. package/templates/.claude/skills/ai-factory-mapper/references/catalog.md +230 -0
  15. package/templates/.claude/skills/ai-factory-mapper/references/coverage-formula.md +219 -0
  16. package/templates/.claude/skills/ai-factory-mapper/references/decomposition-checklist.md +183 -0
  17. package/templates/.claude/skills/ai-factory-mapper/references/pattern-library.md +312 -0
  18. package/templates/.claude/skills/ai-factory-mapper/scripts/build_docx_report.js +423 -0
  19. package/templates/.claude/skills/analyst-manual-full/SKILL.md +286 -0
  20. package/templates/.claude/skills/edu-site-generator/SKILL.md +254 -0
  21. package/templates/.claude/skills/edu-site-generator/examples/sample-course-structure.md +116 -0
  22. package/templates/.claude/skills/edu-site-generator/modules/00-content-analysis.md +84 -0
  23. package/templates/.claude/skills/edu-site-generator/modules/01-course-structure.md +75 -0
  24. package/templates/.claude/skills/edu-site-generator/modules/02-data-generation.md +186 -0
  25. package/templates/.claude/skills/edu-site-generator/modules/03-scaffold.md +249 -0
  26. package/templates/.claude/skills/edu-site-generator/modules/04-components.md +130 -0
  27. package/templates/.claude/skills/edu-site-generator/modules/05-gamification.md +163 -0
  28. package/templates/.claude/skills/edu-site-generator/modules/06-deploy.md +88 -0
  29. package/templates/.claude/skills/edu-site-generator/modules/07-verification.md +97 -0
  30. package/templates/.claude/skills/edu-site-generator/references/component-templates.md +436 -0
  31. package/templates/.claude/skills/edu-site-generator/references/data-schemas.md +164 -0
  32. package/templates/.claude/skills/edu-site-generator/references/exercise-catalog.md +110 -0
  33. package/templates/.claude/skills/edu-site-generator/references/tech-stack.md +69 -0
  34. package/templates/.claude/skills/feature-adr/SKILL.md +245 -59
  35. package/templates/.claude/skills/feature-adr/modules/03-adr.md +43 -0
  36. package/templates/.claude/skills/feature-adr/modules/03.5-ideation-swarm.md +180 -0
  37. package/templates/.claude/skills/feature-adr/modules/06-implementation-plan.md +56 -7
  38. package/templates/.claude/skills/feature-adr/modules/08-qe.md +87 -23
  39. package/templates/.claude/skills/feature-adr/modules/09-fleet-qe.md +305 -0
  40. package/templates/.claude/skills/feature-adr/references/agentic-qe/README.md +143 -0
  41. package/templates/.claude/skills/feature-adr/references/agentic-qe/brutal-honesty-review.md +240 -0
  42. package/templates/.claude/skills/feature-adr/references/agentic-qe/chaos-engineering-resilience.md +163 -0
  43. package/templates/.claude/skills/feature-adr/references/agentic-qe/code-goal-planner.md +446 -0
  44. package/templates/.claude/skills/feature-adr/references/agentic-qe/enterprise-integration-testing.md +111 -0
  45. package/templates/.claude/skills/feature-adr/references/agentic-qe/mutation-testing.md +236 -0
  46. package/templates/.claude/skills/feature-adr/references/agentic-qe/performance-testing.md +315 -0
  47. package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-ideation-swarm.md +126 -0
  48. package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-production-swarm.md +108 -0
  49. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-coverage-analysis.md +193 -0
  50. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-requirements-validation.md +254 -0
  51. package/templates/.claude/skills/feature-adr/references/agentic-qe/regression-testing.md +233 -0
  52. package/templates/.claude/skills/feature-adr/references/agentic-qe/risk-based-testing.md +212 -0
  53. package/templates/.claude/skills/feature-adr/references/agentic-qe/security-testing.md +311 -0
  54. package/templates/.claude/skills/feature-adr/references/agentic-qe/shift-left-testing.md +231 -0
  55. package/templates/.claude/skills/feature-adr/references/agentic-qe/tdd-london-chicago.md +249 -0
  56. package/templates/.claude/skills/transcript-site-generator/SKILL.md +287 -0
  57. package/templates/.claude/skills/transcript-site-generator/examples/sample-text-only-site.md +123 -0
  58. package/templates/.claude/skills/transcript-site-generator/examples/sample-transcript-site.md +134 -0
  59. package/templates/.claude/skills/transcript-site-generator/modules/00-input-analysis.md +132 -0
  60. package/templates/.claude/skills/transcript-site-generator/modules/01-content-parsing.md +117 -0
  61. package/templates/.claude/skills/transcript-site-generator/modules/02-site-generation.md +293 -0
  62. package/templates/.claude/skills/transcript-site-generator/modules/03-interactivity.md +406 -0
  63. package/templates/.claude/skills/transcript-site-generator/modules/04-deploy.md +130 -0
  64. package/templates/.claude/skills/transcript-site-generator/modules/05-verification.md +155 -0
  65. package/templates/.claude/skills/transcript-site-generator/references/component-catalog.md +86 -0
  66. package/templates/.claude/skills/transcript-site-generator/references/data-schemas.md +123 -0
  67. package/templates/.claude/skills/transcript-site-generator/references/tech-stack.md +132 -0
  68. package/templates/CLAUDE.md +9 -2
  69. package/templates/docs/edu-site-generator/01-deployment-guide.md +911 -0
  70. package/templates/docs/edu-site-generator/02-admin-guide.md +901 -0
  71. package/templates/docs/edu-site-generator/03-user-guide.md +1008 -0
  72. package/templates/docs/edu-site-generator/04-infrastructure-requirements.md +489 -0
  73. package/templates/docs/edu-site-generator/05-architecture.md +902 -0
  74. package/templates/docs/edu-site-generator/06-user-flows.md +759 -0
  75. package/templates/docs/transcript-site-generator/01-deployment-guide.md +1042 -0
  76. package/templates/docs/transcript-site-generator/02-admin-guide.md +918 -0
  77. package/templates/docs/transcript-site-generator/03-user-guide.md +925 -0
  78. package/templates/docs/transcript-site-generator/04-infrastructure-requirements.md +482 -0
  79. package/templates/docs/transcript-site-generator/05-architecture.md +1068 -0
  80. package/templates/docs/transcript-site-generator/06-user-flows.md +855 -0
@@ -0,0 +1,286 @@
1
+ ---
2
+ name: analyst-manual-full
3
+ description: >
4
+ Композитный скилл-оркестратор для продакт-менеджера с контрольными точками.
5
+ Объединяет explore, goap-research-ed25519 и problem-solver-enhanced в единый
6
+ manual pipeline. Запрашивает подтверждение между фазами. Используй для:
7
+ стратегических продуктовых задач, ценообразования, позиционирования,
8
+ конкурентного анализа, GTM-стратегии.
9
+ Режим MANUAL — подтверждение между каждой фазой.
10
+ trust_tier: 1
11
+ trust_tier_label: "Structured"
12
+ trust_tier_note: "Composite skill — depends on explore, goap-research-ed25519, problem-solver-enhanced"
13
+ ---
14
+
15
+ # Analyst Manual Full: Strategic Analysis with Checkpoints
16
+
17
+ Композитный скилл-оркестратор для решения комплексных продуктовых задач. Запрашивает подтверждение после каждой фазы.
18
+
19
+ ## Dependent Skills
20
+
21
+ Этот скилл оркестрирует три атомарных скилла. Перед каждой фазой загружай соответствующий SKILL.md:
22
+
23
+ | Phase | Skill | Path |
24
+ |-------|-------|------|
25
+ | Phase 1: Explore | explore | `.claude/skills/explore/SKILL.md` |
26
+ | Phase 2: Research | goap-research-ed25519 | `.claude/skills/goap-research-ed25519/SKILL.md` |
27
+ | Phase 3: Solve | problem-solver-enhanced | `.claude/skills/problem-solver-enhanced/SKILL.md` |
28
+
29
+ Scripts и references для Phase 2 находятся в:
30
+ - `.claude/skills/goap-research-ed25519/scripts/goap_planner.py`
31
+ - `.claude/skills/goap-research-ed25519/scripts/ed25519_verifier.py`
32
+ - `.claude/skills/goap-research-ed25519/references/`
33
+
34
+ ## Core Philosophy
35
+
36
+ **Контрольные точки:** После каждой фазы скилл останавливается для подтверждения. Пользователь может скорректировать направление или продолжить.
37
+
38
+ **Cryptographic Verification:** Ed25519 подписи для верификации источников (через goap-research-ed25519).
39
+
40
+ ## Workflow Architecture
41
+
42
+ ```
43
+ ┌─────────────────────────────────────────────────────────────────┐
44
+ │ INPUT: Задача пользователя │
45
+ │ ↓ │
46
+ │ GATE: Оценка ясности задачи │
47
+ │ → Ясна? → Пропустить Explore │
48
+ │ → Не ясна? → Phase 1: Explore │
49
+ │ ↓ │
50
+ │ Phase 1: EXPLORE (если нужен) │
51
+ │ → Загрузи: .claude/skills/explore/SKILL.md │
52
+ │ → Output: Task Brief │
53
+ │ → ⏸️ CHECKPOINT 1: "Подтвердите Task Brief" │
54
+ │ ↓ │
55
+ │ Phase 2: RESEARCH (Ed25519 Verified) │
56
+ │ → Загрузи: .claude/skills/goap-research-ed25519/SKILL.md │
57
+ │ → Output: Verified Research Findings │
58
+ │ → ⏸️ CHECKPOINT 2: "Подтвердите findings" │
59
+ │ ↓ │
60
+ │ Phase 3: SOLVE │
61
+ │ → Загрузи: .claude/skills/problem-solver-enhanced/SKILL.md │
62
+ │ → Output: Solution & Action Plan │
63
+ │ → ⏸️ CHECKPOINT 3: "Подтвердите решение" │
64
+ │ ↓ │
65
+ │ SYNTHESIS: Final Summary + All Artifacts │
66
+ │ ↓ │
67
+ │ OUTPUT: 4 документа × 2 формата (md + docx) │
68
+ └─────────────────────────────────────────────────────────────────┘
69
+ ```
70
+
71
+ ## Phase Execution Protocol
72
+
73
+ ### Gate: Task Clarity Assessment
74
+
75
+ **При пропуске Explore уведоми:**
76
+ ```
77
+ ⚡ Фаза Explore пропущена — задача достаточно ясна.
78
+ Сформирован Task Brief на основе вашего запроса.
79
+ [показать Task Brief]
80
+
81
+ ⏸️ CHECKPOINT 1: Подтвердите Task Brief или внесите коррективы.
82
+ ```
83
+
84
+ ### Phase 1: Explore
85
+
86
+ **Загрузи:** Прочитай `.claude/skills/explore/SKILL.md` и выполни по его инструкциям.
87
+
88
+ **Output — Task Brief:**
89
+ ```markdown
90
+ ## Task Brief
91
+
92
+ **Objective:** [Чёткая формулировка цели]
93
+ **Context:** [Релевантный контекст]
94
+ **Success Criteria:** [Измеримые критерии]
95
+ **Constraints:** [Жёсткие ограничения]
96
+ **Timeline:** [Дедлайн]
97
+ **Out of Scope:** [Что исключено]
98
+ ```
99
+
100
+ **⏸️ CHECKPOINT 1:**
101
+ ```
102
+ ═══════════════════════════════════════════════════════════════
103
+ ⏸️ CHECKPOINT 1: Task Brief Complete
104
+
105
+ [показать Task Brief]
106
+
107
+ Варианты действий:
108
+ • "ок" — перейти к Verified Research (moderate mode)
109
+ • "режим strict" — research с порогом 0.95
110
+ • "режим paranoid" — research с порогом 0.99
111
+ • "скорректируй X" — внести изменения
112
+
113
+ Что выберете?
114
+ ═══════════════════════════════════════════════════════════════
115
+ ```
116
+
117
+ ### Phase 2: Research (goap-research-ed25519)
118
+
119
+ **Загрузи:** Прочитай `.claude/skills/goap-research-ed25519/SKILL.md` и выполни по его инструкциям.
120
+
121
+ **Verification Modes (выбор на CHECKPOINT 1):**
122
+
123
+ | Mode | Threshold | Команда на checkpoint |
124
+ |------|-----------|----------------------|
125
+ | `moderate` | 0.85 | "ок" или "продолжай" |
126
+ | `strict` | 0.95 | "режим strict" |
127
+ | `paranoid` | 0.99 | "режим paranoid" |
128
+
129
+ **Output — Verified Research Findings:**
130
+ ```markdown
131
+ ## Verified Research Findings
132
+
133
+ ### Verification Status
134
+ - **Mode:** [selected_mode] ([threshold] threshold)
135
+ - **Chain Integrity:** ✅ VERIFIED (ed25519)
136
+ - **Unsigned Claims:** 0
137
+ - **Total Citations:** [число]
138
+
139
+ ### Verified Findings
140
+ [Findings с signed citations]
141
+
142
+ ### Confidence Assessment
143
+ - **Cryptographically Verified (≥0.95):** [список]
144
+ - **Cross-Reference Verified (0.85-0.95):** [список]
145
+
146
+ ### Citation Chain
147
+ [Ed25519 verified chain — см. Appendix]
148
+ ```
149
+
150
+ **⏸️ CHECKPOINT 2:**
151
+ ```
152
+ ═══════════════════════════════════════════════════════════════
153
+ ⏸️ CHECKPOINT 2: Verified Research Complete
154
+
155
+ **Verification Status:**
156
+ - Mode: [strict/moderate/paranoid]
157
+ - Unsigned Claims: 0 ✅
158
+ - Citation Chain: VERIFIED (Ed25519) ✅
159
+
160
+ **Ключевые находки:**
161
+ [краткое summary]
162
+
163
+ **Области с confidence < 0.95:**
164
+ [список, если есть]
165
+
166
+ Варианты действий:
167
+ • "ок" — перейти к Solution
168
+ • "исследуй глубже X" — дополнительный verified research
169
+ • "повысь confidence для Y" — найти больше источников
170
+
171
+ Что выберете?
172
+ ═══════════════════════════════════════════════════════════════
173
+ ```
174
+
175
+ ### Phase 3: Solve (problem-solver-enhanced)
176
+
177
+ **Загрузи:** Прочитай `.claude/skills/problem-solver-enhanced/SKILL.md` и выполни по его инструкциям.
178
+
179
+ **9-Module Framework:**
180
+ 1. First Principles Breakdown
181
+ 2. Root Cause Analysis (5 Whys)
182
+ 3. SCQA Framework
183
+ 4. Game Theory Analysis
184
+ 5. Second-Order Thinking
185
+ 6. Contradiction Analysis (TRIZ)
186
+ 7. Design Thinking
187
+ 8. OODA Loop
188
+ 9. Solution Synthesis
189
+
190
+ **Output — Solution:**
191
+ ```markdown
192
+ ## Solution & Action Plan
193
+
194
+ ### Problem Statement (SCQA)
195
+ ### Root Cause Analysis
196
+ ### Strategic Analysis
197
+ ### Contradictions Resolved (TRIZ)
198
+ ### Recommended Solution
199
+ ### Action Plan
200
+ ### Risk Mitigation
201
+ ### Success Metrics
202
+ ```
203
+
204
+ **⏸️ CHECKPOINT 3:**
205
+ ```
206
+ ═══════════════════════════════════════════════════════════════
207
+ ⏸️ CHECKPOINT 3: Solution Complete
208
+
209
+ **Ключевые рекомендации:**
210
+ [краткое summary]
211
+
212
+ **Data Quality:**
213
+ - Все рекомендации основаны на verified research ✅
214
+ - Citation chain integrity: VERIFIED (Ed25519) ✅
215
+
216
+ Варианты действий:
217
+ • "ок" — создать все документы
218
+ • "альтернатива для X" — другой подход
219
+ • "детализируй Y" — углубить аспект
220
+
221
+ Что выберете?
222
+ ═══════════════════════════════════════════════════════════════
223
+ ```
224
+
225
+ ### Synthesis: Final Summary
226
+
227
+ ```markdown
228
+ ## Strategic Analysis: [Название задачи]
229
+
230
+ ### Executive Summary
231
+ ### Verification Status (Ed25519)
232
+ - Research Mode: [mode]
233
+ - All Claims Verified: ✅
234
+ - Citation Chain: CRYPTOGRAPHICALLY VERIFIED ✅
235
+
236
+ ### Key Research Insights
237
+ ### Recommended Strategy
238
+ ### Immediate Next Steps
239
+ ```
240
+
241
+ ## Checkpoint Interaction Rules
242
+
243
+ **Команды на checkpoint:**
244
+
245
+ | Команда | Действие |
246
+ |---------|----------|
247
+ | `ок`, `продолжай` | Следующая фаза |
248
+ | `режим strict` | Изменить verification mode (CHECKPOINT 1) |
249
+ | `режим paranoid` | Изменить verification mode (CHECKPOINT 1) |
250
+ | `скорректируй X` | Изменить артефакт |
251
+ | `исследуй глубже X` | Доп. research (CHECKPOINT 2) |
252
+ | `повысь confidence для X` | Больше источников (CHECKPOINT 2) |
253
+ | `альтернатива для X` | Другое решение (CHECKPOINT 3) |
254
+ | `стоп` | Пауза с сохранением |
255
+
256
+ ## Output Generation
257
+
258
+ | Документ | Файлы |
259
+ |----------|-------|
260
+ | Task Brief | `01_task_brief.md`, `01_task_brief.docx` |
261
+ | Verified Research | `02_research_findings.md`, `02_research_findings.docx` |
262
+ | Solution | `03_solution.md`, `03_solution.docx` |
263
+ | Final Summary | `04_final_summary.md`, `04_final_summary.docx` |
264
+
265
+ ## Quality Standards
266
+
267
+ **Anti-Hallucination Checks:**
268
+ - [ ] 100% claims имеют citations
269
+ - [ ] Citation chain cryptographically verified (Ed25519)
270
+ - [ ] Нет утверждений без DOI/URL
271
+ - [ ] Confidence levels для всех findings
272
+
273
+ **Completeness:**
274
+ - [ ] Все 9 модулей problem-solver пройдены
275
+ - [ ] Подтверждение на каждом checkpoint получено
276
+
277
+ ## Dependencies
278
+
279
+ **Required skills** (must be installed in `.claude/skills/`):
280
+ - `explore` — task clarification and brief generation
281
+ - `goap-research-ed25519` — verified research with Ed25519 (includes scripts/ and references/)
282
+ - `problem-solver-enhanced` — 9-module problem solving with TRIZ
283
+
284
+ **Runtime:**
285
+ - Python 3.9+ (for Ed25519 scripts in goap-research-ed25519)
286
+ - `cryptography` package for Ed25519
@@ -0,0 +1,254 @@
1
+ # edu-site-generator — Gamified Educational Site Generator
2
+
3
+ <!-- Trust Tier: 1 — Structured | Path to Tier 2: Run /bto-test for self-evaluation -->
4
+
5
+ > Generate a complete gamified educational SPA from documentation/content, optimized for GitHub Pages deployment.
6
+
7
+ ## When To Activate
8
+
9
+ Trigger on:
10
+ - "generate edu site from [docs]"
11
+ - "create learning site [topic]"
12
+ - "build educational app [topic]"
13
+ - "gamified site from documentation"
14
+ - `/edu-site [topic or docs path]`
15
+
16
+ ## Overview
17
+
18
+ This skill takes documentation, guides, or structured content and produces a fully functional interactive educational single-page application with:
19
+
20
+ - **6 exercise types:** Quiz, Flashcards (toggle flip), Matching, Drag-to-Order, Command Builder, Scenario Game
21
+ - **Gamification:** Points, achievements, progress tracking, toast notifications
22
+ - **Final assessment:** Comprehensive test with per-section results
23
+ - **Dark mode** + responsive design + **swipe gesture navigation** on mobile
24
+ - **SEO optimized:** meta tags, Open Graph, Twitter Cards, JSON-LD, **sitemap.xml**, **robots.txt**
25
+ - **GitHub Pages** auto-deployment via GitHub Actions
26
+ - **localStorage** persistence for progress
27
+
28
+ ## Architecture
29
+
30
+ ```
31
+ .claude/skills/edu-site-generator/
32
+ ├── SKILL.md <- This file (orchestrator)
33
+ ├── modules/
34
+ │ ├── 00-content-analysis.md <- Step 0: Analyze source docs
35
+ │ ├── 01-course-structure.md <- Step 1: Split into sections + pick exercise types
36
+ │ ├── 02-data-generation.md <- Step 2: Generate all data files
37
+ │ ├── 03-scaffold.md <- Step 3: Project scaffold + config
38
+ │ ├── 04-components.md <- Step 4: Generate components
39
+ │ ├── 05-gamification.md <- Step 5: Achievements + progress
40
+ │ ├── 06-deploy.md <- Step 6: GitHub Pages deployment
41
+ │ └── 07-verification.md <- Step 7: Build + verify
42
+ ├── references/
43
+ │ ├── tech-stack.md <- Stack versions and config
44
+ │ ├── data-schemas.md <- All data structure schemas
45
+ │ ├── exercise-catalog.md <- Exercise type descriptions + when to use
46
+ │ └── component-templates.md <- Code templates for all components
47
+ └── examples/
48
+ └── sample-course-structure.md <- Example output for a 5-section course
49
+ ```
50
+
51
+ ## Pipeline
52
+
53
+ ```
54
+ Step 0 Step 1 Step 2 Step 3
55
+ ANALYZE -> STRUCTURE -> DATA GEN -> SCAFFOLD
56
+ (read docs) (sections + (sections.js (vite + tailwind
57
+ exercise types) exercises.js + packages)
58
+ quizzes.js
59
+ achievements.js)
60
+ |
61
+ v
62
+ Step 4 Step 5 Step 6 Step 7
63
+ COMPONENTS -> GAMIFICATION -> DEPLOY -> VERIFY
64
+ (layout + (achievements (GH Actions (npm run build
65
+ sections + + progress workflow + + check)
66
+ interactive) + store) index.html)
67
+ ```
68
+
69
+ ## Input Requirements
70
+
71
+ The skill accepts one of:
72
+ 1. **Documentation URL(s)** — fetched and parsed
73
+ 2. **Local file path(s)** — read directly
74
+ 3. **Pasted text** — used as-is
75
+ 4. **Topic description** — generates content from knowledge
76
+
77
+ Minimum: enough content for 3 sections. Maximum recommended: 20 sections.
78
+
79
+ ## Output
80
+
81
+ A complete, deployable SPA in the current repository:
82
+
83
+ ```
84
+ <project-root>/
85
+ ├── .github/workflows/deploy.yml
86
+ ├── index.html (SEO meta, OG tags, JSON-LD)
87
+ ├── vite.config.js
88
+ ├── package.json
89
+ ├── eslint.config.js
90
+ ├── src/
91
+ │ ├── main.jsx
92
+ │ ├── App.jsx
93
+ │ ├── index.css (TailwindCSS v4 + theme tokens)
94
+ │ ├── data/
95
+ │ │ ├── sections.js
96
+ │ │ ├── exercises.js
97
+ │ │ ├── quizQuestions.js
98
+ │ │ └── achievements.js
99
+ │ ├── store/
100
+ │ │ └── useAppStore.js
101
+ │ ├── hooks/
102
+ │ │ ├── useProgress.js
103
+ │ │ └── useAchievements.js
104
+ │ ├── components/
105
+ │ │ ├── layout/
106
+ │ │ │ ├── Header.jsx
107
+ │ │ │ ├── Footer.jsx
108
+ │ │ │ ├── Navigation.jsx
109
+ │ │ │ ├── ProgressBar.jsx
110
+ │ │ │ └── SectionLayout.jsx
111
+ │ │ ├── interactive/
112
+ │ │ │ ├── Quiz.jsx
113
+ │ │ │ ├── Flashcard.jsx
114
+ │ │ │ ├── MatchingExercise.jsx
115
+ │ │ │ ├── DragOrder.jsx
116
+ │ │ │ ├── CommandBuilder.jsx
117
+ │ │ │ └── ScenarioGame.jsx
118
+ │ │ ├── common/
119
+ │ │ │ ├── Accordion.jsx
120
+ │ │ │ ├── AchievementsPanel.jsx
121
+ │ │ │ └── Toast.jsx
122
+ │ │ ├── final-test/
123
+ │ │ │ ├── FinalTest.jsx
124
+ │ │ │ └── TestResults.jsx
125
+ │ │ └── sections/
126
+ │ │ └── Section1..N.jsx
127
+ │ └── pages/
128
+ │ ├── HomePage.jsx
129
+ │ └── FinalTestPage.jsx
130
+ └── public/
131
+ ```
132
+
133
+ ## Execution Protocol
134
+
135
+ ### Step 0: Content Analysis
136
+ ```
137
+ Read: modules/00-content-analysis.md
138
+ ```
139
+ - Read/fetch source documentation
140
+ - Identify distinct topics/concepts
141
+ - Estimate section count
142
+ - Determine language (Russian/English)
143
+ - **Output:** Topic list with descriptions
144
+
145
+ ### Step 1: Course Structure
146
+ ```
147
+ Read: modules/01-course-structure.md
148
+ Read: references/exercise-catalog.md
149
+ ```
150
+ - Split content into 3-20 sections
151
+ - Assign exercise type per section based on content nature
152
+ - Define section order (simple -> complex)
153
+ - Write theory text per section
154
+ - **Output:** Section definitions + exercise assignments
155
+
156
+ ### Step 2: Data Generation
157
+ ```
158
+ Read: modules/02-data-generation.md
159
+ Read: references/data-schemas.md
160
+ ```
161
+ - Generate `sections.js` with all section metadata
162
+ - Generate `exercises.js` with exercise data per type
163
+ - Generate `quizQuestions.js` with per-section quizzes + final test
164
+ - Generate `achievements.js` with course-specific achievements
165
+ - **Output:** All 4 data files
166
+
167
+ ### Step 3: Project Scaffold
168
+ ```
169
+ Read: modules/03-scaffold.md
170
+ Read: references/tech-stack.md
171
+ ```
172
+ - Initialize package.json with dependencies
173
+ - Create vite.config.js with correct `base` path
174
+ - Create index.html with SEO meta
175
+ - Create index.css with TailwindCSS v4 theme
176
+ - Create eslint.config.js
177
+ - Run `npm install`
178
+ - **Output:** Buildable project skeleton
179
+
180
+ ### Step 4: Components
181
+ ```
182
+ Read: modules/04-components.md
183
+ Read: references/component-templates.md
184
+ ```
185
+ - Generate layout components (Header, Footer, Navigation, etc.)
186
+ - Generate interactive components (all 6 types)
187
+ - Generate section components (one per section)
188
+ - Generate page components (Home, FinalTest)
189
+ - Generate common components (Accordion, Toast, AchievementsPanel)
190
+ - **Output:** All JSX components
191
+
192
+ ### Step 5: Gamification
193
+ ```
194
+ Read: modules/05-gamification.md
195
+ ```
196
+ - Generate Zustand store with persist middleware
197
+ - Generate useProgress hook
198
+ - Generate useAchievements hook
199
+ - Wire up Toast notifications
200
+ - **Output:** State management + gamification logic
201
+
202
+ ### Step 6: Deployment
203
+ ```
204
+ Read: modules/06-deploy.md
205
+ ```
206
+ - Create `.github/workflows/deploy.yml`
207
+ - Configure GitHub Pages in workflow
208
+ - Set correct `base` in vite.config.js
209
+ - **Output:** CI/CD pipeline
210
+
211
+ ### Step 7: Verification
212
+ ```
213
+ Read: modules/07-verification.md
214
+ ```
215
+ - Run `npm run build`
216
+ - Verify no build errors
217
+ - Check all imports resolve
218
+ - Verify section count matches data
219
+ - **Output:** Build success confirmation
220
+
221
+ ## Customization Points
222
+
223
+ | Parameter | Default | Description |
224
+ |-----------|---------|-------------|
225
+ | Language | auto-detect | UI language (ru/en) |
226
+ | Repo name | from git remote | For `base` path in vite |
227
+ | Theme colors | Blue primary | Primary color palette |
228
+ | Exercise types | auto-assigned | Override per section |
229
+ | Achievement count | ~8-12 | Based on section count |
230
+ | Final test | yes | Include final assessment |
231
+ | FAQ section | yes | Include FAQ at bottom |
232
+ | Footer link | none | Optional social/channel link |
233
+
234
+ ## Anti-Patterns
235
+
236
+ | Anti-Pattern | Detection | Fix |
237
+ |-------------|-----------|-----|
238
+ | Too few sections (<3) | Not enough content for gamification | Combine with more docs or split deeper |
239
+ | All same exercise type | Monotonous UX | Vary types based on content nature |
240
+ | Theory too long | >500 words per section | Split into subsections or use accordion |
241
+ | Quiz questions too easy | All obvious answers | Include plausible distractors |
242
+ | No wrong-answer feedback | Just "wrong" message | Add explanations to quiz answers |
243
+ | Hardcoded content | Content in JSX instead of data/ | All content must live in data/ files |
244
+ | Missing dark mode | No .dark CSS vars | Always include dark theme tokens |
245
+ | Wrong base path | 404 on GitHub Pages | Derive from repo name |
246
+
247
+ ## Checkpoint Protocol
248
+
249
+ After each step, output:
250
+ ```
251
+ Step N/7: [Name] Complete
252
+ Artifacts: [list]
253
+ "ok" to continue | "[feedback]" to adjust
254
+ ```
@@ -0,0 +1,116 @@
1
+ # Example: 5-Section Course on "Git Best Practices"
2
+
3
+ ## Step 0 Output: Content Analysis
4
+
5
+ ```
6
+ Language: en
7
+ Course Title: Git Best Practices
8
+ Course Description: 5 essential Git practices for productive collaboration
9
+
10
+ Topics:
11
+ 1. Commit Messages — writing clear, meaningful commits
12
+ 2. Branching Strategy — when to branch and naming conventions
13
+ 3. Code Review — effective PR review workflow
14
+ 4. Merge vs Rebase — choosing the right integration strategy
15
+ 5. Git Hooks — automating quality checks
16
+ ```
17
+
18
+ ## Step 1 Output: Course Structure
19
+
20
+ | # | Icon | Title | Short Title | Exercise Type |
21
+ |---|------|-------|-------------|---------------|
22
+ | 1 | "message icon" | 1. Writing Good Commit Messages | Commit Messages | quiz |
23
+ | 2 | "branch icon" | 2. Branching Strategy | Branching | flashcards |
24
+ | 3 | "review icon" | 3. Effective Code Review | Code Review | matching |
25
+ | 4 | "merge icon" | 4. Merge vs Rebase | Merge/Rebase | scenario |
26
+ | 5 | "hook icon" | 5. Git Hooks for Quality | Git Hooks | drag-and-drop |
27
+
28
+ ## Step 2 Output: Data Files
29
+
30
+ ### sections.js (excerpt)
31
+ ```javascript
32
+ export const SECTIONS = [
33
+ {
34
+ id: 'commit-messages',
35
+ order: 1,
36
+ title: '1. Writing Good Commit Messages',
37
+ shortTitle: 'Commit Messages',
38
+ description: 'Learn to write clear, meaningful commit messages',
39
+ icon: 'icon',
40
+ interactiveType: 'quiz',
41
+ theory: `A good commit message explains WHY a change was made...`
42
+ },
43
+ // ... 4 more sections
44
+ ]
45
+ export const TOTAL_SECTIONS = 5
46
+ ```
47
+
48
+ ### quizQuestions.js (excerpt)
49
+ ```javascript
50
+ export const quizQuestions = {
51
+ 'commit-messages': [
52
+ {
53
+ id: 'cm-q1',
54
+ question: 'What should the first line of a commit message contain?',
55
+ options: [
56
+ 'The full diff of changes',
57
+ 'A concise summary of the change (50 chars or less)',
58
+ 'The ticket number only',
59
+ 'The author name and date'
60
+ ],
61
+ correctAnswer: 1,
62
+ explanation: 'The first line should be a brief summary...'
63
+ },
64
+ // ... more questions
65
+ ]
66
+ }
67
+
68
+ export const finalTestQuestions = [
69
+ {
70
+ id: 'final-commit-messages',
71
+ sectionId: 'commit-messages',
72
+ question: 'Which commit message follows best practices?',
73
+ options: ['fix', 'Fix login redirect for OAuth users', 'fixed stuff', 'WIP'],
74
+ correctAnswer: 1
75
+ },
76
+ // ... one per section
77
+ ]
78
+ ```
79
+
80
+ ### achievements.js (excerpt)
81
+ ```javascript
82
+ export const ACHIEVEMENTS = [
83
+ {
84
+ id: 'first-step',
85
+ title: 'First Commit',
86
+ description: 'Complete your first section',
87
+ icon: 'icon',
88
+ condition: (s) => Object.keys(s.completedSections).length >= 1
89
+ },
90
+ {
91
+ id: 'halfway',
92
+ title: 'Branch Out',
93
+ description: 'Complete 3 of 5 sections',
94
+ icon: 'icon',
95
+ condition: (s) => Object.keys(s.completedSections).length >= 3
96
+ },
97
+ {
98
+ id: 'merge-master',
99
+ title: 'Merge Master',
100
+ description: 'Complete the Merge/Rebase section',
101
+ icon: 'icon',
102
+ condition: (s) => s.completedSections['merge-rebase']
103
+ },
104
+ // ... more achievements
105
+ ]
106
+ ```
107
+
108
+ ## Final Output
109
+
110
+ - 5 sections with varied exercise types
111
+ - 10+ quiz questions across quiz sections
112
+ - 5 final test questions
113
+ - 8 achievements
114
+ - Full SPA with Header, Navigation, Progress, Dark Mode
115
+ - GitHub Pages deployment via Actions
116
+ - localStorage progress persistence