@dzhechkov/skills-bto 1.0.0 → 1.0.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 (2) hide show
  1. package/README.md +159 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,159 @@
1
+ # @dzhechkov/skills-bto
2
+
3
+ **Build-Test-Optimize skill pack for Claude Code**
4
+
5
+ Multi-agent evaluation and iterative optimization pipeline for Claude Code skills, commands, and prompts. Part of the [Keysarium](https://www.npmjs.com/package/@dzhechkov/keysarium) ecosystem.
6
+
7
+ ---
8
+
9
+ ## Quick Start
10
+
11
+ ```bash
12
+ # One-command install via npx
13
+ npx @dzhechkov/skills-bto
14
+
15
+ # Or install globally
16
+ npm install -g @dzhechkov/skills-bto
17
+ skills-bto init
18
+
19
+ # Install into a project that already has @dzhechkov/keysarium
20
+ npx @dzhechkov/skills-bto init
21
+ ```
22
+
23
+ After installation, open Claude Code in your project directory and start using BTO commands.
24
+
25
+ ---
26
+
27
+ ## What You Get
28
+
29
+ | Component | Count | Description |
30
+ |-----------|-------|-------------|
31
+ | **Skill** | 1 | `bto` — core Build-Test-Optimize skill with modules (build, test, optimize) |
32
+ | **Commands** | 4 | `/bto`, `/bto-build`, `/bto-test`, `/bto-optimize` |
33
+ | **Rules** | 1 | `bto-quality-gates` — quality gate enforcement |
34
+ | **Agent Templates** | 2 | `bto-judge-panel`, `bto-optimizer-worker` |
35
+ | **References** | 4 | Eval patterns, judge rubrics, optimization methods, quality checklist |
36
+ | **Examples** | 1 | Sample evaluation report |
37
+
38
+ Everything is installed into your project's `.claude/` directory and works natively with Claude Code.
39
+
40
+ ---
41
+
42
+ ## Commands
43
+
44
+ ```bash
45
+ npx @dzhechkov/skills-bto # Full install (interactive, same as init)
46
+ npx @dzhechkov/skills-bto init # Install all components
47
+ npx @dzhechkov/skills-bto init --force # Overwrite existing files
48
+ npx @dzhechkov/skills-bto init --dry-run # Preview without making changes
49
+ npx @dzhechkov/skills-bto update # Update to latest version
50
+ npx @dzhechkov/skills-bto remove # Clean uninstall
51
+ npx @dzhechkov/skills-bto list # Show installed components
52
+ npx @dzhechkov/skills-bto doctor # Health check
53
+ ```
54
+
55
+ ---
56
+
57
+ ## BTO Pipeline
58
+
59
+ ```
60
+ BUILD ──→ TEST ──→ OPTIMIZE
61
+ │ │ │
62
+ │ │ └── Evolutionary mutation + re-evaluation (3 rounds)
63
+ │ └── Multi-layer evaluation: Layer 0 → Layer 1 → Layer 2
64
+ └── Generate skill/command from description
65
+ ```
66
+
67
+ ### Usage in Claude Code
68
+
69
+ ```bash
70
+ # Full BTO cycle: build → test → optimize
71
+ /bto Create a skill for code review automation
72
+
73
+ # Build only — generate a new skill or command
74
+ /bto-build Create a skill that analyzes git commit patterns
75
+
76
+ # Test only — evaluate an existing artifact
77
+ /bto-test .claude/skills/my-skill/SKILL.md
78
+
79
+ # Optimize only — iteratively improve an artifact
80
+ /bto-optimize .claude/skills/my-skill/SKILL.md
81
+ ```
82
+
83
+ ---
84
+
85
+ ## Evaluation Architecture
86
+
87
+ ### Layer Model
88
+
89
+ | Layer | Agents | Model | Purpose |
90
+ |-------|--------|-------|---------|
91
+ | **Layer 0** | 0 | — | Deterministic pre-checks (structure, completeness, encoding) |
92
+ | **Layer 1** | 1 | haiku | Fast semantic evaluation across 5 dimensions |
93
+ | **Layer 2** | 3 | sonnet | Full judge panel: Domain Expert + Critic + Completeness Auditor |
94
+ | **Meta** | 1 | opus | Disagreement resolution (triggered when score delta > 3) |
95
+
96
+ ### Judge Panel
97
+
98
+ - **3 independent judges** evaluate each artifact in isolation
99
+ - Judges never see each other's scores before submitting
100
+ - Standard weights: Domain Expert (0.4) / Critic (0.3) / Completeness Auditor (0.3)
101
+ - If `max_score - min_score > 3` → meta-judge escalation
102
+
103
+ ### Quality Gates
104
+
105
+ - Layer 0 must pass before Layer 1
106
+ - Layer 1 must pass before Layer 2
107
+ - Optimization accepted only if `new_score - prev_score > 0.5`
108
+ - 3 consecutive iterations with delta ≤ 0.5 → convergence declared
109
+ - Score decrease > 1.0 → automatic rollback to previous best
110
+
111
+ ---
112
+
113
+ ## Optimization Process
114
+
115
+ The optimizer runs up to 3 rounds of evolutionary improvement:
116
+
117
+ 1. **Round 1** — 5 parallel haiku agents generate mutations, fast-rank variants
118
+ 2. **Round 2** — Top variants evaluated by sonnet judge panel
119
+ 3. **Round 3** — 3×3 parallel sonnet agents for full Layer 2 evaluation of finalists
120
+
121
+ Each round selects the best-performing variant and uses it as the base for the next iteration.
122
+
123
+ ---
124
+
125
+ ## Integration with Keysarium
126
+
127
+ BTO works standalone but integrates seamlessly with `@dzhechkov/keysarium`:
128
+
129
+ ```bash
130
+ # Install Keysarium first (optional)
131
+ npx @dzhechkov/keysarium init
132
+
133
+ # Then add BTO — it detects Keysarium automatically
134
+ npx @dzhechkov/skills-bto init
135
+ ```
136
+
137
+ When installed alongside Keysarium, BTO can evaluate and optimize any skill or command in the Keysarium toolkit.
138
+
139
+ ---
140
+
141
+ ## Requirements
142
+
143
+ - **Claude Code CLI** — installed and configured ([installation guide](https://docs.anthropic.com/en/docs/claude-code))
144
+ - **Node.js >= 16.0.0** — required for the npm install method
145
+
146
+ ---
147
+
148
+ ## License
149
+
150
+ [MIT](https://opensource.org/licenses/MIT)
151
+
152
+ ---
153
+
154
+ ## Links
155
+
156
+ - **GitHub:** [https://github.com/dzhechko/product-keysarium-2026](https://github.com/dzhechko/product-keysarium-2026)
157
+ - **Issues:** [https://github.com/dzhechko/product-keysarium-2026/issues](https://github.com/dzhechko/product-keysarium-2026/issues)
158
+ - **npm:** [https://www.npmjs.com/package/@dzhechkov/skills-bto](https://www.npmjs.com/package/@dzhechkov/skills-bto)
159
+ - **Keysarium:** [https://www.npmjs.com/package/@dzhechkov/keysarium](https://www.npmjs.com/package/@dzhechkov/keysarium)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhechkov/skills-bto",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Build-Test-Optimize skill pack for Claude Code — structured BTO pipeline with quality gates, testing strategies, and optimization workflows",
5
5
  "main": "src/cli.js",
6
6
  "bin": {