@dzhechkov/keysarium 1.4.0 → 1.5.0
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.
- package/README.md +50 -3
- package/bin/cli.js +0 -0
- package/package.json +5 -3
- package/templates/.claude/commands/analyst-manual.md +38 -0
- package/templates/.claude/commands/casarium.md +55 -4
- package/templates/.claude/commands/feature-adr.md +8 -0
- package/templates/.claude/rules/trust-tiers.md +5 -0
- package/templates/.claude/shards/feature-adr.shard.md +64 -10
- package/templates/.claude/shards/phase-ai-factory.shard.md +109 -0
- package/templates/.claude/skills/ai-factory-mapper/README.md +90 -0
- package/templates/.claude/skills/ai-factory-mapper/SKILL.md +309 -0
- package/templates/.claude/skills/ai-factory-mapper/assets/report-template.md +123 -0
- package/templates/.claude/skills/ai-factory-mapper/references/catalog.md +230 -0
- package/templates/.claude/skills/ai-factory-mapper/references/coverage-formula.md +219 -0
- package/templates/.claude/skills/ai-factory-mapper/references/decomposition-checklist.md +183 -0
- package/templates/.claude/skills/ai-factory-mapper/references/pattern-library.md +312 -0
- package/templates/.claude/skills/ai-factory-mapper/scripts/build_docx_report.js +423 -0
- package/templates/.claude/skills/analyst-manual-full/SKILL.md +286 -0
- package/templates/.claude/skills/edu-site-generator/SKILL.md +254 -0
- package/templates/.claude/skills/edu-site-generator/examples/sample-course-structure.md +116 -0
- package/templates/.claude/skills/edu-site-generator/modules/00-content-analysis.md +84 -0
- package/templates/.claude/skills/edu-site-generator/modules/01-course-structure.md +75 -0
- package/templates/.claude/skills/edu-site-generator/modules/02-data-generation.md +186 -0
- package/templates/.claude/skills/edu-site-generator/modules/03-scaffold.md +249 -0
- package/templates/.claude/skills/edu-site-generator/modules/04-components.md +130 -0
- package/templates/.claude/skills/edu-site-generator/modules/05-gamification.md +163 -0
- package/templates/.claude/skills/edu-site-generator/modules/06-deploy.md +88 -0
- package/templates/.claude/skills/edu-site-generator/modules/07-verification.md +97 -0
- package/templates/.claude/skills/edu-site-generator/references/component-templates.md +436 -0
- package/templates/.claude/skills/edu-site-generator/references/data-schemas.md +164 -0
- package/templates/.claude/skills/edu-site-generator/references/exercise-catalog.md +110 -0
- package/templates/.claude/skills/edu-site-generator/references/tech-stack.md +69 -0
- package/templates/.claude/skills/feature-adr/SKILL.md +245 -59
- package/templates/.claude/skills/feature-adr/modules/03-adr.md +43 -0
- package/templates/.claude/skills/feature-adr/modules/03.5-ideation-swarm.md +180 -0
- package/templates/.claude/skills/feature-adr/modules/06-implementation-plan.md +56 -7
- package/templates/.claude/skills/feature-adr/modules/08-qe.md +87 -23
- package/templates/.claude/skills/feature-adr/modules/09-fleet-qe.md +305 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/README.md +143 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/brutal-honesty-review.md +240 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/chaos-engineering-resilience.md +163 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/code-goal-planner.md +446 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/enterprise-integration-testing.md +111 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/mutation-testing.md +236 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/performance-testing.md +315 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-ideation-swarm.md +126 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-production-swarm.md +108 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-coverage-analysis.md +193 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-requirements-validation.md +254 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/regression-testing.md +233 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/risk-based-testing.md +212 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/security-testing.md +311 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/shift-left-testing.md +231 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/tdd-london-chicago.md +249 -0
- package/templates/.claude/skills/transcript-site-generator/SKILL.md +287 -0
- package/templates/.claude/skills/transcript-site-generator/examples/sample-text-only-site.md +123 -0
- package/templates/.claude/skills/transcript-site-generator/examples/sample-transcript-site.md +134 -0
- package/templates/.claude/skills/transcript-site-generator/modules/00-input-analysis.md +132 -0
- package/templates/.claude/skills/transcript-site-generator/modules/01-content-parsing.md +117 -0
- package/templates/.claude/skills/transcript-site-generator/modules/02-site-generation.md +293 -0
- package/templates/.claude/skills/transcript-site-generator/modules/03-interactivity.md +406 -0
- package/templates/.claude/skills/transcript-site-generator/modules/04-deploy.md +130 -0
- package/templates/.claude/skills/transcript-site-generator/modules/05-verification.md +155 -0
- package/templates/.claude/skills/transcript-site-generator/references/component-catalog.md +86 -0
- package/templates/.claude/skills/transcript-site-generator/references/data-schemas.md +123 -0
- package/templates/.claude/skills/transcript-site-generator/references/tech-stack.md +132 -0
- package/templates/CLAUDE.md +9 -2
- package/templates/docs/edu-site-generator/01-deployment-guide.md +911 -0
- package/templates/docs/edu-site-generator/02-admin-guide.md +901 -0
- package/templates/docs/edu-site-generator/03-user-guide.md +1008 -0
- package/templates/docs/edu-site-generator/04-infrastructure-requirements.md +489 -0
- package/templates/docs/edu-site-generator/05-architecture.md +902 -0
- package/templates/docs/edu-site-generator/06-user-flows.md +759 -0
- package/templates/docs/transcript-site-generator/01-deployment-guide.md +1042 -0
- package/templates/docs/transcript-site-generator/02-admin-guide.md +918 -0
- package/templates/docs/transcript-site-generator/03-user-guide.md +925 -0
- package/templates/docs/transcript-site-generator/04-infrastructure-requirements.md +482 -0
- package/templates/docs/transcript-site-generator/05-architecture.md +1068 -0
- package/templates/docs/transcript-site-generator/06-user-flows.md +855 -0
package/README.md
CHANGED
|
@@ -28,10 +28,10 @@ After installation, open Claude Code in your project directory and start using s
|
|
|
28
28
|
|
|
29
29
|
| Component | Count | Description |
|
|
30
30
|
|-----------|-------|-------------|
|
|
31
|
-
| **Skills** |
|
|
31
|
+
| **Skills** | 9 | `explore`, `frontend-design`, `goap-research`, `presentation-storyteller`, `problem-solver`, `reverse-engineering`, `bto`, `knowledge-extractor`, `ai-factory-mapper` |
|
|
32
32
|
| **Commands** | 24 | `/casarium`, `/new-research`, `/parallel-research`, `/discovery`, `/explore-case`, `/research`, `/cjm-prototype`, `/solve`, `/architecture-phase`, `/presentation`, `/harvest`, `/brain-export`, `/brain-import`, `/bto`, `/bto-build`, `/bto-test`, `/bto-optimize`, `/bto-benchmark`, `/feature-adr`, `/init-platform`, `/learning-stats`, `/dream`, `/workers`, `/verify-chain` |
|
|
33
33
|
| **Rules** | 16 | `research-quality`, `checkpoint-protocol`, `agent-swarm`, `domain-specific`, `anti-patterns`, `file-conventions`, `modular-reuse`, `feedback-loops`, `model-routing`, `trust-tiers`, `bto-quality-gates`, `background-workers`, `dream-cycles`, `reward-learning`, `witness-chain`, `feature-adr-conventions` |
|
|
34
|
-
| **Shards** |
|
|
34
|
+
| **Shards** | 10 | Context shards for each phase: `phase-0-discovery`, `phase-1-explore`, `phase-2-research`, `phase-25-cjm`, `phase-3-solve`, `phase-4-architecture`, `phase-5-presentation`, `phase-ai-factory`, `bto-evaluation`, `feature-adr` |
|
|
35
35
|
| **Agent Templates** | 5 | `discovery-worker`, `research-worker`, `cjm-variant-worker`, `presentation-worker`, `parallel-research-orchestrator` |
|
|
36
36
|
| **Library** | 4 | `phase-utils`, `agent-patterns`, `skill-loader`, `domain-templates` |
|
|
37
37
|
| **Documentation** | 12 | Deployment, admin, user guide, infrastructure, architecture, flows (for Keysarium and BTO) |
|
|
@@ -95,6 +95,9 @@ claude
|
|
|
95
95
|
|
|
96
96
|
# Start a full case study (runs all 7 phases with checkpoints)
|
|
97
97
|
/casarium Analyze how AI can automate customer support in banking
|
|
98
|
+
|
|
99
|
+
# Same pipeline + Cloud.ru AI Factory mapping on every phase
|
|
100
|
+
/casarium --ai-factory Analyze how AI can automate customer support in banking
|
|
98
101
|
```
|
|
99
102
|
|
|
100
103
|
### Individual Phases
|
|
@@ -134,12 +137,52 @@ claude
|
|
|
134
137
|
|
|
135
138
|
```bash
|
|
136
139
|
/casarium Как AI может автоматизировать процесс обработки обращений клиентов в банке, сократив время ответа с 4 часов до 15 минут?
|
|
140
|
+
|
|
141
|
+
# Same case + AI Factory service mapping
|
|
142
|
+
/casarium --ai-factory Как AI может автоматизировать процесс обработки обращений клиентов в банке, сократив время ответа с 4 часов до 15 минут?
|
|
137
143
|
```
|
|
138
144
|
|
|
139
145
|
The toolkit processes cases in any language and adapts domain rules accordingly.
|
|
140
146
|
|
|
141
147
|
---
|
|
142
148
|
|
|
149
|
+
## Cloud.ru AI Factory Mode (`--ai-factory`)
|
|
150
|
+
|
|
151
|
+
Add the `--ai-factory` flag to `/casarium` to get full Cloud.ru Evolution AI Factory mapping integrated across all phases of the pipeline.
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
/casarium --ai-factory <case text>
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### What it adds
|
|
158
|
+
|
|
159
|
+
| Phase | Addition |
|
|
160
|
+
|-------|----------|
|
|
161
|
+
| **Phase 0** | AI Factory applicability assessment appended to `00_product_discovery.md` |
|
|
162
|
+
| **Phase 1** | AI Factory context paragraph in `01_case_brief.md` |
|
|
163
|
+
| **Phase 2** | Full ai-factory-mapper workflow (catalog sync + decomposition + mapping) → new artifact `02.6_ai_factory_mapping.md` |
|
|
164
|
+
| **Phase 2.5** | Each CJM step annotated with the AI Factory service that handles it |
|
|
165
|
+
| **Phase 3** | Gap analysis + coverage scoring (%) appended to `03_solution_strategy.md` |
|
|
166
|
+
| **Phase 4** | AI Factory services named in C4 diagram + new `diagrams/ai-factory-pipeline.mermaid` |
|
|
167
|
+
| **Phase 5** | Full AI Factory report (`ai_factory_analysis.md`) + "AI Factory Coverage" slide |
|
|
168
|
+
|
|
169
|
+
### Additional artifacts (--ai-factory only)
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
researches/<case-slug>/
|
|
173
|
+
├── 02.6_ai_factory_mapping.md # Step→service mapping with ✅/⚠️/❌
|
|
174
|
+
├── ai_factory_analysis.md # Full analysis report
|
|
175
|
+
├── ai_factory_analysis.docx # DOCX report (if Node.js available)
|
|
176
|
+
└── diagrams/
|
|
177
|
+
└── ai-factory-pipeline.mermaid # Mermaid flowchart of the AI Factory pipeline
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Zero-degradation guarantee
|
|
181
|
+
|
|
182
|
+
Without `--ai-factory`, the pipeline is **identical** to v1.4. The flag is purely additive — no existing artifacts are modified or removed, no phases are altered, no checkpoints are changed.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
143
186
|
## Domain Support
|
|
144
187
|
|
|
145
188
|
The toolkit automatically detects the domain from the case description and applies domain-specific rules:
|
|
@@ -205,19 +248,23 @@ researches/<case-slug>/
|
|
|
205
248
|
├── 01_case_brief.md # Phase 1 output
|
|
206
249
|
├── 02_research_findings.md # Phase 2 output
|
|
207
250
|
├── 02.5_trend_brief.md # Phase 2.5 output
|
|
251
|
+
├── 02.6_ai_factory_mapping.md # Phase 2 output (--ai-factory only)
|
|
208
252
|
├── 03_solution_strategy.md # Phase 3 output
|
|
209
253
|
├── 04_architecture.md # Phase 4 output
|
|
210
254
|
├── 05_presentation_content.md # Phase 5 output
|
|
211
255
|
├── 06_speaker_script.md # Phase 5 output
|
|
212
256
|
├── 07_qa_preparation.md # Phase 5 output
|
|
213
257
|
├── 08_executive_summary.md # Phase 5 output (mandatory)
|
|
258
|
+
├── ai_factory_analysis.md # Phase 5 output (--ai-factory only)
|
|
259
|
+
├── ai_factory_analysis.docx # Phase 5 output (--ai-factory only, if Node.js available)
|
|
214
260
|
├── prototype/
|
|
215
261
|
│ └── cjm-prototype.jsx # Phase 2.5 React prototype
|
|
216
262
|
├── diagrams/
|
|
217
263
|
│ ├── architecture-c4.mermaid
|
|
218
264
|
│ ├── sequence-main-flow.mermaid
|
|
219
265
|
│ ├── process-as-is.mermaid
|
|
220
|
-
│
|
|
266
|
+
│ ├── process-to-be.mermaid
|
|
267
|
+
│ └── ai-factory-pipeline.mermaid # Phase 4 output (--ai-factory only)
|
|
221
268
|
└── README.md
|
|
222
269
|
```
|
|
223
270
|
|
package/bin/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzhechkov/keysarium",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "AI Case Research Toolkit for Claude Code — full 7-phase pipeline with feature-adr, dream cycles, background workers, multi-platform support, and
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "AI Case Research Toolkit for Claude Code — full 7-phase pipeline with feature-adr, dream cycles, background workers, multi-platform support, reward learning, and Cloud.ru AI Factory mapping (--ai-factory flag)",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"keysarium": "./bin/cli.js"
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"skills",
|
|
26
26
|
"pipeline",
|
|
27
27
|
"keysarium",
|
|
28
|
-
"product-research"
|
|
28
|
+
"product-research",
|
|
29
|
+
"ai-factory",
|
|
30
|
+
"cloud-ru"
|
|
29
31
|
],
|
|
30
32
|
"author": "dzhechko",
|
|
31
33
|
"license": "MIT",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Analyst Manual: Стратегический анализ с контрольными точками
|
|
2
|
+
|
|
3
|
+
## Использование
|
|
4
|
+
```
|
|
5
|
+
/analyst-manual [тема или задача для анализа]
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## Аргумент
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Действия
|
|
12
|
+
|
|
13
|
+
1. **Загрузи скилл:** Прочитай `.claude/skills/analyst-manual-full/SKILL.md`
|
|
14
|
+
2. **Оцени ясность задачи** (Gate: Task Clarity Assessment)
|
|
15
|
+
- Задача ясна → пропустить Explore, сформировать Task Brief
|
|
16
|
+
- Задача не ясна → Phase 1: Explore
|
|
17
|
+
|
|
18
|
+
3. **Phase 1: Explore** (если нужен)
|
|
19
|
+
- Кларификация задачи, формирование Task Brief
|
|
20
|
+
- Output: `01_task_brief.md`
|
|
21
|
+
- ⏸️ **CHECKPOINT 1:** Подтверждение Task Brief + выбор verification mode
|
|
22
|
+
|
|
23
|
+
4. **Phase 2: Verified Research** (goap-research-ed25519)
|
|
24
|
+
- Используй `scripts/goap_planner.py` и `scripts/ed25519_verifier.py`
|
|
25
|
+
- Режим: выбранный на CHECKPOINT 1 (moderate/strict/paranoid)
|
|
26
|
+
- Output: `02_research_findings.md`
|
|
27
|
+
- ⏸️ **CHECKPOINT 2:** Подтверждение findings
|
|
28
|
+
|
|
29
|
+
5. **Phase 3: Solve** (problem-solver-enhanced)
|
|
30
|
+
- 9-модульный framework (First Principles, TRIZ, Game Theory, OODA)
|
|
31
|
+
- Output: `03_solution.md`
|
|
32
|
+
- ⏸️ **CHECKPOINT 3:** Подтверждение решения
|
|
33
|
+
|
|
34
|
+
6. **Synthesis:** Финальный summary всех фаз
|
|
35
|
+
- Output: `04_final_summary.md`
|
|
36
|
+
|
|
37
|
+
## Режим
|
|
38
|
+
**MANUAL** — подтверждение между каждой фазой обязательно.
|
|
@@ -6,14 +6,28 @@
|
|
|
6
6
|
## Использование
|
|
7
7
|
```
|
|
8
8
|
/casarium [текст кейса или ссылка]
|
|
9
|
+
/casarium --ai-factory [текст кейса или ссылка]
|
|
9
10
|
```
|
|
10
11
|
|
|
12
|
+
Флаг `--ai-factory`: активирует интеграцию с Cloud.ru Evolution AI Factory на всех фазах.
|
|
13
|
+
Без флага: поведение полностью идентично предыдущим версиям (нулевая деградация).
|
|
14
|
+
|
|
11
15
|
## КРИТИЧЕСКОЕ ПРАВИЛО: ФАЙЛЫ СОЗДАЮТСЯ В МОМЕНТ ФАЗЫ
|
|
12
16
|
В конце каждой фазы **немедленно создай** файл. Не откладывай.
|
|
13
17
|
|
|
14
18
|
## Режим работы
|
|
15
19
|
Аргумент: $ARGUMENTS
|
|
16
20
|
|
|
21
|
+
### Детекция флага --ai-factory
|
|
22
|
+
```
|
|
23
|
+
AI_FACTORY_MODE = "--ai-factory" присутствует в $ARGUMENTS
|
|
24
|
+
```
|
|
25
|
+
Если `AI_FACTORY_MODE = true`:
|
|
26
|
+
1. Прочитай `.claude/shards/phase-ai-factory.shard.md` — это governance shard для AI Factory режима.
|
|
27
|
+
2. Прочитай `.claude/skills/ai-factory-mapper/SKILL.md` — загрузи скилл.
|
|
28
|
+
3. Закешируй в working memory каталог AI Factory из `.claude/skills/ai-factory-mapper/references/catalog.md`.
|
|
29
|
+
4. Сообщи пользователю: "Режим --ai-factory активирован. AI Factory маппинг будет интегрирован во все фазы."
|
|
30
|
+
|
|
17
31
|
Если аргумент содержит текст кейса — начинай работу. Если аргумент пустой — спроси текст кейса, тайминг, домен.
|
|
18
32
|
|
|
19
33
|
## Инициализация
|
|
@@ -21,7 +35,7 @@
|
|
|
21
35
|
1. Определи название кейса → `CASE_NAME`
|
|
22
36
|
2. Создай рабочую директорию: `researches/CASE_NAME/`
|
|
23
37
|
3. Определи тайминг (часов на кейс, по умолчанию 4)
|
|
24
|
-
4. Кратко объясни 7 фаз + ожидаемые артефакты
|
|
38
|
+
4. Кратко объясни 7 фаз + ожидаемые артефакты (если `AI_FACTORY_MODE`, добавь AI Factory артефакты)
|
|
25
39
|
5. Распредели время:
|
|
26
40
|
- Phase 0: 15% | Phase 1: 5% | Phase 2: 15% | Phase 2.5: 10% ⭐ | Phase 3: 15% | Phase 4: 15% | Phase 5: 20% | Buffer: 5%
|
|
27
41
|
|
|
@@ -45,6 +59,12 @@ ARTIFACTS (researches/CASE_NAME/):
|
|
|
45
59
|
[ ] diagrams/process-as-is.mermaid ← Phase 3
|
|
46
60
|
[ ] diagrams/process-to-be.mermaid ← Phase 3
|
|
47
61
|
[ ] README.md ← Phase 6
|
|
62
|
+
|
|
63
|
+
# Только при --ai-factory:
|
|
64
|
+
[ ] 02.6_ai_factory_mapping.md ← Phase 2 (--ai-factory)
|
|
65
|
+
[ ] diagrams/ai-factory-pipeline.mermaid ← Phase 4 (--ai-factory)
|
|
66
|
+
[ ] ai_factory_analysis.md ← Phase 5 (--ai-factory)
|
|
67
|
+
[ ] ai_factory_analysis.docx ← Phase 5 (--ai-factory, если Node.js доступен)
|
|
48
68
|
```
|
|
49
69
|
|
|
50
70
|
## Pipeline
|
|
@@ -65,6 +85,10 @@ INPUT → DISCOVERY → EXPLORE → RESEARCH → CJM PROTO → SOLVE → ARCHITE
|
|
|
65
85
|
- Phase 4: Встроенные шаблоны архитектуры
|
|
66
86
|
- Phase 5: `.claude/skills/presentation-storyteller/SKILL.md`
|
|
67
87
|
|
|
88
|
+
Если `AI_FACTORY_MODE = true`, дополнительно при инициализации (до Phase 0):
|
|
89
|
+
- `.claude/skills/ai-factory-mapper/SKILL.md`
|
|
90
|
+
- `.claude/skills/ai-factory-mapper/references/catalog.md` (закешировать в working memory)
|
|
91
|
+
|
|
68
92
|
## Стратегия параллелизации (Agent Swarm)
|
|
69
93
|
|
|
70
94
|
Для ускорения используй Agent tool для параллельных задач:
|
|
@@ -93,14 +117,29 @@ INPUT → DISCOVERY → EXPLORE → RESEARCH → CJM PROTO → SOLVE → ARCHITE
|
|
|
93
117
|
Последовательно выполняй фазы, в каждой:
|
|
94
118
|
1. Прочитай соответствующий SKILL.md
|
|
95
119
|
2. Выполни фазу, создай артефакт
|
|
96
|
-
3.
|
|
97
|
-
4.
|
|
98
|
-
5.
|
|
120
|
+
3. Если `AI_FACTORY_MODE = true` — выполни AI Factory шаг для данной фазы (см. `.claude/shards/phase-ai-factory.shard.md`)
|
|
121
|
+
4. Покажи Checkpoint
|
|
122
|
+
5. Дождись "ок" или корректировки от пользователя
|
|
123
|
+
6. Перейди к следующей фазе
|
|
99
124
|
|
|
100
125
|
## Phase 0-6: Детали
|
|
101
126
|
|
|
102
127
|
Детальные инструкции для каждой фазы находятся в CLAUDE.md проекта и в SKILL.md соответствующих скиллов. Следуй им строго.
|
|
103
128
|
|
|
129
|
+
### AI Factory интеграция по фазам (только при --ai-factory)
|
|
130
|
+
|
|
131
|
+
| Фаза | Что добавляется |
|
|
132
|
+
|------|----------------|
|
|
133
|
+
| Phase 0 | Секция "AI Factory Applicability" в `00_product_discovery.md` |
|
|
134
|
+
| Phase 1 | 1 параграф AI Factory контекст в `01_case_brief.md`, установить `{AI_FACTORY_SCENARIO}` |
|
|
135
|
+
| Phase 2 | Запуск ai-factory-mapper фаз 1–3 → новый артефакт `02.6_ai_factory_mapping.md` |
|
|
136
|
+
| Phase 2.5 | Аннотация каждого шага CJM-вариантов AI Factory сервисом (из `02.6_ai_factory_mapping.md`) |
|
|
137
|
+
| Phase 3 | Запуск ai-factory-mapper фаз 4–5 → секция "AI Factory Coverage" в `03_solution_strategy.md` |
|
|
138
|
+
| Phase 4 | AI Factory сервисы в C4-диаграмме + новый артефакт `diagrams/ai-factory-pipeline.mermaid` |
|
|
139
|
+
| Phase 5 | Запуск ai-factory-mapper фазы 6 → `ai_factory_analysis.md` + слайд "AI Factory Coverage" |
|
|
140
|
+
|
|
141
|
+
Полные инструкции — в `.claude/shards/phase-ai-factory.shard.md`.
|
|
142
|
+
|
|
104
143
|
## Checkpoint формат
|
|
105
144
|
|
|
106
145
|
После каждой фазы покажи:
|
|
@@ -161,3 +200,15 @@ researches/CASE_NAME/
|
|
|
161
200
|
- Если банк: on-premise, ФЗ-152, ЦБ, GigaChat/YandexGPT
|
|
162
201
|
- Если мало времени: Quick Mode
|
|
163
202
|
- Все артефакты в директории `researches/CASE_NAME/`
|
|
203
|
+
|
|
204
|
+
## AI Factory Rules (только при --ai-factory)
|
|
205
|
+
|
|
206
|
+
- `{AI_FACTORY_MODE}` устанавливается один раз при инициализации и не изменяется
|
|
207
|
+
- AI Factory шаги **аддитивны**: они расширяют существующие артефакты, не заменяют их
|
|
208
|
+
- Catalog sync (`web_search`) обязателен в Phase 2 — не пропускать
|
|
209
|
+
- Все шаги workflow должны быть разбиты на 7–12 (правило ai-factory-mapper)
|
|
210
|
+
- Каждый шаг должен иметь явное ✅ / ⚠️ / ❌ без "скорее всего"
|
|
211
|
+
- Coverage % округляется до 5%
|
|
212
|
+
- `02.6_ai_factory_mapping.md` должен быть готов до начала Phase 3
|
|
213
|
+
- AI Factory работа в Phase 2 может быть запущена **параллельно** с основными research-агентами
|
|
214
|
+
- Без `--ai-factory` ни один из этих шагов не выполняется и ни один файл не создаётся
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
## Использование
|
|
4
4
|
```
|
|
5
5
|
/feature-adr [описание фичи или путь к issue]
|
|
6
|
+
/feature-adr --full-qe [описание фичи] # Direct Mode: полные протоколы agentic-qe
|
|
7
|
+
/feature-adr --full-qe-extended [описание фичи] # Direct Extended: полные протоколы + доп. скиллы
|
|
6
8
|
```
|
|
7
9
|
|
|
8
10
|
## Аргумент
|
|
@@ -16,6 +18,12 @@ $ARGUMENTS
|
|
|
16
18
|
3. **Step 0 — Complexity Router:**
|
|
17
19
|
- Прочитай `modules/00-complexity-router.md` и `references/complexity-matrix.md`
|
|
18
20
|
- Классифицируй фичу в S/M/L/XL
|
|
21
|
+
- **Проверь agentic-qe флаги:**
|
|
22
|
+
- `--full-qe` → проверь `which aqe` или `node_modules/agentic-qe/`.
|
|
23
|
+
Если найден → `{AGENTIC_QE_MODE}=direct`. Если нет → WARN, fallback to reference.
|
|
24
|
+
- `--full-qe-extended` → то же + `{AGENTIC_QE_MODE}=direct-extended`.
|
|
25
|
+
Активирует доп. скиллы (chaos, security, performance, mutation, TDD, production-swarm).
|
|
26
|
+
- Без флагов → `{AGENTIC_QE_MODE}=reference` (condensed копии, без установки).
|
|
19
27
|
- Определи `{ACTIVE_STEPS}` и `{TIME_BUDGET}`
|
|
20
28
|
- Покажи Checkpoint 0 и **жди подтверждения tier**
|
|
21
29
|
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
| reverse-engineering-unicorn | 1 | Structured | SKILL.md + modules/ + references/ + examples/ |
|
|
22
22
|
| bto | 1 | Structured | SKILL.md + modules/ + references/ + examples/ |
|
|
23
23
|
| knowledge-extractor | 2 | Validated | /bto-test Layer 2 score 7.5, optimized 2026-03-03 |
|
|
24
|
+
| analyst-manual-full | 0 | Advisory | SKILL.md only (composite orchestrator, depends on explore + goap-research + problem-solver) |
|
|
25
|
+
| feature-adr | 1 | Structured | SKILL.md + modules/ + references/ + examples/ |
|
|
26
|
+
| edu-site-generator | 1 | Structured | SKILL.md + modules/ + references/ + examples/ |
|
|
27
|
+
| transcript-site-generator | 2 | Validated | /bto-test Layer 2 score 7.82 |
|
|
28
|
+
| ai-factory-mapper | 1 | Structured | SKILL.md + references/ + assets/ + scripts/ (v1.0, апрель 2026) |
|
|
24
29
|
|
|
25
30
|
## Tier Enforcement
|
|
26
31
|
|
|
@@ -19,6 +19,7 @@ Load: `.claude/skills/feature-adr/SKILL.md`
|
|
|
19
19
|
All of S, plus:
|
|
20
20
|
- `features/<slug>/01_requirements.md`
|
|
21
21
|
- `features/<slug>/03_adr/001-*.md`
|
|
22
|
+
- `features/<slug>/03.5_ideation_report.md` (QCSD quality swarm)
|
|
22
23
|
- `features/<slug>/05_architecture.md`
|
|
23
24
|
- `features/<slug>/07_code_changes/change_manifest.md`
|
|
24
25
|
- `features/<slug>/diagrams/` (component diagram)
|
|
@@ -27,6 +28,7 @@ All of S, plus:
|
|
|
27
28
|
All of M, plus:
|
|
28
29
|
- `features/<slug>/02_research.md`
|
|
29
30
|
- `features/<slug>/04_domain_model.md`
|
|
31
|
+
- `features/<slug>/09_fleet_qe_assessment.md` (fleet QE)
|
|
30
32
|
- `features/<slug>/diagrams/domain-model.mermaid`
|
|
31
33
|
- `features/<slug>/diagrams/architecture-c4.mermaid`
|
|
32
34
|
- `features/<slug>/diagrams/sequence-*.mermaid`
|
|
@@ -41,27 +43,70 @@ All of L (full depth on every artifact)
|
|
|
41
43
|
| 0 | Tier classification justified with dimension scores |
|
|
42
44
|
| 1 | All requirements have acceptance criteria (M+) |
|
|
43
45
|
| 2 | Research findings verified, not hallucinated (L/XL) |
|
|
44
|
-
| 3 | Every ADR has ≥2 alternatives (M+) |
|
|
46
|
+
| 3 | Every ADR has ≥2 alternatives + shift-left testability check (M+) |
|
|
47
|
+
| 3.5 | QCSD ideation: 3 core agents + GO/CONDITIONAL/NO-GO verdict (M+) |
|
|
45
48
|
| 4 | Domain model compatible with existing codebase (L/XL) |
|
|
46
49
|
| 5 | Mermaid diagrams valid syntax (M+) |
|
|
47
|
-
| 6 | Task dependencies form valid DAG |
|
|
50
|
+
| 6 | Task dependencies form valid DAG + SPARC-GOAP goal state defined |
|
|
48
51
|
| 7 | Code follows existing codebase conventions |
|
|
49
|
-
| 8 |
|
|
52
|
+
| 8 | Brutal-honesty review complete, gap loop closed, all MUST requirements pass |
|
|
53
|
+
| 9 | Fleet QE: 4 agents, traceability matrix complete (L/XL) |
|
|
54
|
+
|
|
55
|
+
## Agentic QE Integration
|
|
56
|
+
|
|
57
|
+
Skills from [agentic-qe](https://github.com/proffesor-for-testing/agentic-qe) loaded from `references/agentic-qe/`.
|
|
58
|
+
|
|
59
|
+
### Three Modes
|
|
60
|
+
|
|
61
|
+
| Mode | Flag | `{AGENTIC_QE_MODE}` | Skills | Requires install |
|
|
62
|
+
|------|------|---------------------|--------|-----------------|
|
|
63
|
+
| Reference | (none) | `reference` | 9 core (condensed) | No |
|
|
64
|
+
| Direct | `--full-qe` | `direct` | 9 core (full protocols) | `npm i -g agentic-qe` |
|
|
65
|
+
| Direct Extended | `--full-qe-extended` | `direct-extended` | 15 (9 core + 6 extended) | `npm i -g agentic-qe` |
|
|
66
|
+
|
|
67
|
+
### Core Skills (all modes)
|
|
68
|
+
|
|
69
|
+
| Step | Skill | Protocol |
|
|
70
|
+
|------|-------|----------|
|
|
71
|
+
| 3 | shift-left-testing | Level 4: Risk Analysis in Design — testability questions + BDD scenarios per ADR |
|
|
72
|
+
| 3.5 | qcsd-ideation-swarm | 3 core agents (HTSM + SFDIPOT + Testability) + conditional agents per flags |
|
|
73
|
+
| 6 | code-goal-planner | SPARC-GOAP: Specification → Pseudocode → Architecture → Refinement → Completion |
|
|
74
|
+
| 8 | brutal-honesty-review | Linus mode (code) + Ramsay mode (tests) + gap detection loop |
|
|
75
|
+
| 9 (Agent 1) | qe-requirements-validation | SMART validation + traceability matrix + orphan test detection |
|
|
76
|
+
| 9 (Agent 2) | risk-based-testing | Probability×Impact 5×5 + 4-tier effort allocation |
|
|
77
|
+
| 9 (Agent 3) | enterprise-integration-testing | Contract testing + E2E flow validation + data consistency |
|
|
78
|
+
| 9 (Agent 4) | regression-testing | Change-based test selection + impact analysis + regression pyramid |
|
|
79
|
+
| 9 (shared) | qe-coverage-analysis | Risk-weighted coverage scoring + differential coverage |
|
|
80
|
+
|
|
81
|
+
### Extended Skills (`--full-qe-extended` only)
|
|
82
|
+
|
|
83
|
+
| Step | Skill | Condition |
|
|
84
|
+
|------|-------|-----------|
|
|
85
|
+
| 7 | tdd-london-chicago | Always — guides test-first coding |
|
|
86
|
+
| 8 | mutation-testing | If test suite exists |
|
|
87
|
+
| 8, 9 | security-testing | If `HAS_AUTH` or `HAS_EXTERNAL_API` |
|
|
88
|
+
| 8, 9 | performance-testing | If `HAS_PERFORMANCE_SLA` |
|
|
89
|
+
| 9 | chaos-engineering-resilience | If `HAS_INFRASTRUCTURE_CHANGE` |
|
|
90
|
+
| Post-9 | qcsd-production-swarm | Advisory — feedback loops for future runs |
|
|
50
91
|
|
|
51
92
|
## Agent Swarm
|
|
52
93
|
|
|
53
94
|
### S/M tier
|
|
54
|
-
Sequential execution.
|
|
95
|
+
Sequential execution. Step 3.5 spawns 3 core agents for M tier.
|
|
55
96
|
|
|
56
97
|
### L tier
|
|
57
98
|
- Steps 2+3: 2 parallel agents (sonnet + opus)
|
|
58
|
-
- Step
|
|
99
|
+
- Step 3.5: 3-9 parallel agents (core + conditional)
|
|
100
|
+
- Step 8: 3 parallel agents (brutal-honesty review panel)
|
|
101
|
+
- Step 9: 4 parallel agents (fleet QE); 4-7 with `--full-qe-extended`
|
|
59
102
|
|
|
60
103
|
### XL tier
|
|
61
104
|
- Steps 2+3: 2 parallel agents
|
|
62
|
-
-
|
|
105
|
+
- Step 3.5: 3-9 parallel agents (core + conditional)
|
|
106
|
+
- Steps 4+5: 2 parallel agents (if Step 3.5 done)
|
|
63
107
|
- Step 7: N parallel agents (per module)
|
|
64
108
|
- Step 8: 3 parallel agents (review panel)
|
|
109
|
+
- Step 9: 4 parallel agents (fleet QE); 4-7 with `--full-qe-extended`
|
|
65
110
|
|
|
66
111
|
## Model Routing
|
|
67
112
|
|
|
@@ -70,12 +115,14 @@ Sequential execution. No parallel agents needed.
|
|
|
70
115
|
| 0 | haiku | Simple classification |
|
|
71
116
|
| 1 | sonnet | Analytical requirements |
|
|
72
117
|
| 2 | sonnet | Research synthesis |
|
|
73
|
-
| 3 | opus | Complex trade-off reasoning |
|
|
118
|
+
| 3 | opus | Complex trade-off reasoning + shift-left |
|
|
119
|
+
| 3.5 | sonnet | QCSD swarm (multiple parallel agents) |
|
|
74
120
|
| 4 | opus | Domain modeling |
|
|
75
121
|
| 5 | opus | System design |
|
|
76
|
-
| 6 | sonnet |
|
|
122
|
+
| 6 | sonnet | SPARC-GOAP task decomposition |
|
|
77
123
|
| 7 | opus | Code generation |
|
|
78
|
-
| 8 | sonnet |
|
|
124
|
+
| 8 | sonnet | Brutal-honesty review + gap loop |
|
|
125
|
+
| 9 | sonnet | Fleet QE assessment (4 parallel agents) |
|
|
79
126
|
|
|
80
127
|
## Promise Tags
|
|
81
128
|
|
|
@@ -83,16 +130,23 @@ Sequential execution. No parallel agents needed.
|
|
|
83
130
|
|------|---------|
|
|
84
131
|
| 0 | `<promise>FEATURE_ADR_ROUTED</promise>` |
|
|
85
132
|
| 1 | `<promise>FEATURE_ADR_REQUIREMENTS_GATHERED</promise>` |
|
|
86
|
-
| 2-
|
|
133
|
+
| 2-3 | `<promise>FEATURE_ADR_DESIGNED</promise>` |
|
|
134
|
+
| 3.5 | `<promise>FEATURE_ADR_QUALITY_ASSESSED</promise>` |
|
|
135
|
+
| 4-5 | `<promise>FEATURE_ADR_ARCHITECTED</promise>` |
|
|
87
136
|
| 6 | `<promise>FEATURE_ADR_PLANNED</promise>` |
|
|
88
137
|
| 7 | `<promise>FEATURE_ADR_IMPLEMENTED</promise>` |
|
|
89
138
|
| 8 | `<promise>FEATURE_ADR_VERIFIED</promise>` |
|
|
139
|
+
| 9 | `<promise>FEATURE_ADR_FLEET_VERIFIED</promise>` |
|
|
90
140
|
|
|
91
141
|
## Anti-Patterns to Check
|
|
92
142
|
|
|
93
143
|
- Skip Step 0 → BLOCK
|
|
94
144
|
- Code without plan (skip Step 6) → BLOCK
|
|
95
145
|
- No QE (skip Step 8) → BLOCK
|
|
146
|
+
- Skip QCSD ideation (skip Step 3.5 for M+) → BLOCK
|
|
147
|
+
- Ignore NO-GO verdict from Step 3.5 → BLOCK
|
|
148
|
+
- Skip fleet QE for L/XL (skip Step 9) → BLOCK
|
|
96
149
|
- Over-engineer S-tier (run full pipeline for trivial change) → FLAG
|
|
97
150
|
- Under-engineer XL-tier (skip ADR/DDD) → FLAG
|
|
98
151
|
- ADR with only 1 alternative → FLAG
|
|
152
|
+
- Gap loop skipped in Step 8 → FLAG
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# AI Factory Mode — Governance Shard
|
|
2
|
+
|
|
3
|
+
## Activation
|
|
4
|
+
This shard is active ONLY when `/casarium --ai-factory` flag is present.
|
|
5
|
+
Without `--ai-factory`: this shard is completely ignored.
|
|
6
|
+
|
|
7
|
+
## Skill
|
|
8
|
+
Load: `.claude/skills/ai-factory-mapper/SKILL.md` at init, before Phase 0.
|
|
9
|
+
Also load: `.claude/skills/ai-factory-mapper/references/catalog.md` (cache in working memory).
|
|
10
|
+
|
|
11
|
+
## Variable
|
|
12
|
+
`{AI_FACTORY_MODE}` = `true` — set at casarium init when flag detected.
|
|
13
|
+
|
|
14
|
+
## Per-Phase Integration
|
|
15
|
+
|
|
16
|
+
### Phase 0 — Discovery
|
|
17
|
+
After standard JTBD + competitor analysis completes:
|
|
18
|
+
- Identify which AI Factory service tiers map to each JTBD segment (Advisory, based on cached catalog.md).
|
|
19
|
+
- Add section `## AI Factory Applicability` to `00_product_discovery.md`:
|
|
20
|
+
- 2–3 sentences: which platform layer (Foundation Models / ML Inference / Managed RAG / AI Agents / AI Workflows) is most relevant.
|
|
21
|
+
- No deep analysis yet — this is orientation only.
|
|
22
|
+
|
|
23
|
+
### Phase 1 — Explore
|
|
24
|
+
After case brief is written:
|
|
25
|
+
- Add 1-paragraph note to `01_case_brief.md`: which AI Factory capabilities are likely load-bearing for the proposed solution.
|
|
26
|
+
- Set `{AI_FACTORY_SCENARIO}` = concise 2–3 sentence description of the case as an AI Factory scenario (used in Phase 3).
|
|
27
|
+
|
|
28
|
+
### Phase 2 — Research
|
|
29
|
+
After standard research completes:
|
|
30
|
+
**Run ai-factory-mapper Phases 1–3** (catalog sync + decomposition + mapping):
|
|
31
|
+
1. Read `.claude/skills/ai-factory-mapper/references/catalog.md`.
|
|
32
|
+
2. Run `web_search "Cloud.ru Evolution AI Factory новые сервисы {CURRENT_YEAR}"` to check for updates.
|
|
33
|
+
3. Decompose `{AI_FACTORY_SCENARIO}` into 7–12 workflow steps using `decomposition-checklist.md`.
|
|
34
|
+
4. Map each step → AI Factory service → ✅ / ⚠️ / ❌.
|
|
35
|
+
5. Create artifact: `researches/{CASE_NAME}/02.6_ai_factory_mapping.md`.
|
|
36
|
+
|
|
37
|
+
### Phase 2.5 — CJM Prototype
|
|
38
|
+
In each CJM variant (A / B / C / D):
|
|
39
|
+
- Annotate each CJM step with the AI Factory service that handles it (1 line per step).
|
|
40
|
+
- Use the mapping from `02.6_ai_factory_mapping.md` — no re-analysis needed.
|
|
41
|
+
|
|
42
|
+
### Phase 3 — Solve
|
|
43
|
+
After solution strategy is drafted:
|
|
44
|
+
**Run ai-factory-mapper Phases 4–5** (gap identification + coverage scoring):
|
|
45
|
+
1. Enumerate all ❌ and ⚠️ steps from `02.6_ai_factory_mapping.md`.
|
|
46
|
+
2. For each gap: what is missing, why, and the 5 closure options (a–e from skill).
|
|
47
|
+
3. Apply `coverage-formula.md` → round to nearest 5%.
|
|
48
|
+
4. Add section `## AI Factory Coverage` to `03_solution_strategy.md`:
|
|
49
|
+
- Coverage score (e.g. "~75%")
|
|
50
|
+
- Top 2–3 priority gaps with closure recommendations.
|
|
51
|
+
|
|
52
|
+
### Phase 4 — Architecture
|
|
53
|
+
In architecture diagrams:
|
|
54
|
+
- C4 Container diagram: show AI Factory services as named external systems or containers (use their official names: "Cloud.ru Foundation Models", "Cloud.ru Managed RAG", etc.).
|
|
55
|
+
- Add `diagrams/ai-factory-pipeline.mermaid` — flowchart of the solution pipeline mapped to AI Factory services (reuse Mermaid structure from ai-factory-mapper Phase 6 output).
|
|
56
|
+
|
|
57
|
+
### Phase 5 — Presentation
|
|
58
|
+
**Run ai-factory-mapper Phase 6** (synthesis + full output):
|
|
59
|
+
1. Build structured JSON from the analysis accumulated across Phases 2–4.
|
|
60
|
+
2. Generate `ai_factory_analysis.md` (Markdown report per `assets/report-template.md`).
|
|
61
|
+
3. Attempt DOCX generation via `node .claude/skills/ai-factory-mapper/scripts/build_docx_report.js`.
|
|
62
|
+
4. Add "AI Factory Coverage" slide to presentation (`05_presentation_content.md`):
|
|
63
|
+
- Coverage % badge, top services used, top gaps.
|
|
64
|
+
5. Add "Platform Architecture" talking point to `06_speaker_script.md`.
|
|
65
|
+
|
|
66
|
+
## Artifact Inventory (--ai-factory additions)
|
|
67
|
+
|
|
68
|
+
| Artifact | Phase | Always? |
|
|
69
|
+
|----------|-------|---------|
|
|
70
|
+
| `02.6_ai_factory_mapping.md` | Phase 2 | ✅ |
|
|
71
|
+
| `diagrams/ai-factory-pipeline.mermaid` | Phase 4 | ✅ |
|
|
72
|
+
| `ai_factory_analysis.md` | Phase 5 | ✅ |
|
|
73
|
+
| `ai_factory_analysis.docx` | Phase 5 | If Node.js + docx available |
|
|
74
|
+
|
|
75
|
+
## Promise Tags
|
|
76
|
+
|
|
77
|
+
| Milestone | Promise |
|
|
78
|
+
|-----------|---------|
|
|
79
|
+
| Phase 2 mapping done | `<promise>AI_FACTORY_MAPPED</promise>` |
|
|
80
|
+
| Phase 3 gap analysis done | `<promise>AI_FACTORY_GAPS_IDENTIFIED</promise>` |
|
|
81
|
+
| Phase 5 report done | `<promise>AI_FACTORY_REPORT_READY</promise>` |
|
|
82
|
+
|
|
83
|
+
## Quality Gates
|
|
84
|
+
|
|
85
|
+
- [ ] Catalog sync performed (web_search + catalog.md read)
|
|
86
|
+
- [ ] Scenario decomposed into 7–12 steps (not more, not less)
|
|
87
|
+
- [ ] Every step has ✅ / ⚠️ / ❌ (no "probably")
|
|
88
|
+
- [ ] Coverage % rounded to 5%
|
|
89
|
+
- [ ] `02.6_ai_factory_mapping.md` exists before Phase 3 starts
|
|
90
|
+
- [ ] CJM variants annotated with AI Factory services (Phase 2.5)
|
|
91
|
+
- [ ] `ai-factory-pipeline.mermaid` valid Mermaid syntax
|
|
92
|
+
|
|
93
|
+
## Model Routing
|
|
94
|
+
|
|
95
|
+
| Task | Model |
|
|
96
|
+
|------|-------|
|
|
97
|
+
| Catalog sync + decomposition | sonnet |
|
|
98
|
+
| Mapping + gap analysis | sonnet |
|
|
99
|
+
| Coverage scoring | haiku |
|
|
100
|
+
| Report synthesis | sonnet |
|
|
101
|
+
| DOCX generation | haiku (Node.js subprocess) |
|
|
102
|
+
|
|
103
|
+
## Non-Degradation Contract
|
|
104
|
+
|
|
105
|
+
This shard MUST NOT be loaded when `--ai-factory` is absent.
|
|
106
|
+
All `--ai-factory` additions are purely additive:
|
|
107
|
+
- Existing phase artifacts are extended (new sections appended), never replaced.
|
|
108
|
+
- Existing checkpoints are unchanged; AI Factory checkpoint is appended at the end of Phase 2 and Phase 5 checkpoints.
|
|
109
|
+
- Phase timing remains the same; AI Factory work is parallelised where possible (e.g. alongside Phase 2 research agents).
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# ai-factory-mapper
|
|
2
|
+
|
|
3
|
+
Скилл для Claude Code / Claude Desktop, который декомпозирует любую бизнес-задачу на оптимальный пайплайн из сервисов **Cloud.ru Evolution AI Factory** (Foundation Models, ML Inference, Managed RAG, ML Finetuning, Notebooks, AI Agents, AI Workflows + 50+ MCP-серверов и 21 готовый агент).
|
|
4
|
+
|
|
5
|
+
## Что делает
|
|
6
|
+
|
|
7
|
+
На входе — бизнес-сценарий (агент поддержки, обработка документов, маркетинг, discovery и т.д.).
|
|
8
|
+
На выходе:
|
|
9
|
+
1. Декомпозиция workflow на 7–12 шагов
|
|
10
|
+
2. Маппинг каждого шага на сервисы AI Factory
|
|
11
|
+
3. Категоризация покрытия: ✅ Полное / ⚠️ Частичное / ❌ Нет
|
|
12
|
+
4. Список gap'ов с вариантами закрытия
|
|
13
|
+
5. Воспроизводимая оценка покрытия в %
|
|
14
|
+
6. Mermaid-диаграмма пайплайна
|
|
15
|
+
7. Готовый Markdown + DOCX-отчёт
|
|
16
|
+
8. Если сценариев несколько — сводная таблица ранжирования
|
|
17
|
+
|
|
18
|
+
## Философия: оркестрация, а не копирование
|
|
19
|
+
|
|
20
|
+
Скилл **не дублирует** функционал других скиллов — он вызывает их через `view()`:
|
|
21
|
+
- `explore` — если задача сформулирована нечётко
|
|
22
|
+
- `problem-solver-enhanced` — для first-principles декомпозиции
|
|
23
|
+
- `goap-research-ed25519` — для верификации актуальности каталога
|
|
24
|
+
- `docx` — для генерации финального отчёта
|
|
25
|
+
- `analyst-manual-full` — для комплексных кейсов с checkpoints
|
|
26
|
+
|
|
27
|
+
Получает обновления этих скиллов автоматически.
|
|
28
|
+
|
|
29
|
+
## Структура
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
ai-factory-mapper/
|
|
33
|
+
├── SKILL.md # workflow и оркестрация (470 строк)
|
|
34
|
+
├── references/
|
|
35
|
+
│ ├── catalog.md # актуальный каталог AI Factory
|
|
36
|
+
│ ├── decomposition-checklist.md # 10-пунктов чек-лист
|
|
37
|
+
│ ├── coverage-formula.md # воспроизводимая формула %
|
|
38
|
+
│ └── pattern-library.md # 10 типовых паттернов
|
|
39
|
+
├── assets/
|
|
40
|
+
│ └── report-template.md # шаблон отчёта
|
|
41
|
+
├── scripts/
|
|
42
|
+
│ └── build_docx_report.js # генератор DOCX из JSON
|
|
43
|
+
└── evals/
|
|
44
|
+
├── evals.json # тест-кейсы
|
|
45
|
+
├── smoke_test_input.json # минимальный smoke-тест
|
|
46
|
+
└── real_case_input.json # полный тест на 5 сценариях
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Триггеры
|
|
50
|
+
|
|
51
|
+
Скилл активируется на фразы вроде:
|
|
52
|
+
- «Разложи задачу X на сервисы AI Factory»
|
|
53
|
+
- «Какие сервисы Cloud.ru нужны для агента поддержки?»
|
|
54
|
+
- «Можно ли реализовать X на Evolution AI Factory?»
|
|
55
|
+
- «Собери пайплайн на AI Factory»
|
|
56
|
+
- «Какое покрытие у сценария X сервисами Cloud.ru?»
|
|
57
|
+
- «Сравни сценарии по покрытию AI Factory»
|
|
58
|
+
|
|
59
|
+
## Quick test
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
cd ai-factory-mapper
|
|
63
|
+
node scripts/build_docx_report.js evals/smoke_test_input.json /tmp/smoke.docx
|
|
64
|
+
# → ✅ DOCX создан: /tmp/smoke.docx
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Для полной проверки:
|
|
68
|
+
```bash
|
|
69
|
+
node scripts/build_docx_report.js evals/real_case_input.json /tmp/real.docx
|
|
70
|
+
python3 <path-to-docx-skill>/scripts/office/validate.py /tmp/real.docx
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Maintenance
|
|
74
|
+
|
|
75
|
+
Раз в 1–2 месяца обновляй `references/catalog.md`:
|
|
76
|
+
1. Проверь `cloud.ru/products/evolution-ai-factory` на новые сервисы
|
|
77
|
+
2. Пройдись по Evolution Agents Marketplace
|
|
78
|
+
3. Обнови дату в шапке catalog.md
|
|
79
|
+
|
|
80
|
+
Если появились фундаментально новые категории — добавь паттерны в `pattern-library.md`.
|
|
81
|
+
|
|
82
|
+
## Dependencies
|
|
83
|
+
|
|
84
|
+
- Node.js + `docx` package (`npm install -g docx`)
|
|
85
|
+
- Python 3 для валидации DOCX
|
|
86
|
+
- Зависит от скиллов: `explore`, `problem-solver-enhanced`, `goap-research-ed25519`, `docx`, `analyst-manual-full`
|
|
87
|
+
|
|
88
|
+
## Версия
|
|
89
|
+
|
|
90
|
+
v1.0 — апрель 2026
|