azclaude-copilot 0.1.4 → 0.1.6

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 CHANGED
@@ -424,7 +424,7 @@ azclaude-copilot/
424
424
  ├── DOCS.md <- full user guide
425
425
  ├── SECURITY.md <- security policy + architecture
426
426
  ├── tests/
427
- │ └── test-features.sh ← 1041 tests
427
+ │ └── test-features.sh ← 1048 tests
428
428
  ```
429
429
 
430
430
  ---
@@ -450,11 +450,11 @@ The runner is stateless. These files ARE the state.
450
450
 
451
451
  ## Verified
452
452
 
453
- 1041 tests. Every template, command, capability, agent, and CLI feature verified.
453
+ 1048 tests. Every template, command, capability, agent, and CLI feature verified.
454
454
 
455
455
  ```bash
456
456
  bash tests/test-features.sh
457
- # Results: 1041 passed, 0 failed, 1041 total
457
+ # Results: 1048 passed, 0 failed, 1048 total
458
458
  ```
459
459
 
460
460
  ---
package/bin/cli.js CHANGED
@@ -287,7 +287,7 @@ function installGlobalHooks(cli) {
287
287
  // ─── Capabilities ─────────────────────────────────────────────────────────────
288
288
 
289
289
  // Core capability dirs installed by default; advanced dirs only with --full
290
- const CORE_CAP_DIRS = ['shared', 'level-builders'];
290
+ const CORE_CAP_DIRS = ['shared', 'level-builders', 'evolution'];
291
291
  const FULL_CAP_DIRS = ['shared', 'level-builders', 'evolution', 'intelligence'];
292
292
 
293
293
  function installCapabilities(projectDir, cfg, full) {
@@ -317,7 +317,7 @@ function installCapabilities(projectDir, cfg, full) {
317
317
  copyDir(path.join(src, dir), path.join(dst, dir));
318
318
  }
319
319
  ok(`Capabilities installed (${cfg}/capabilities/) — ${full ? 'full' : 'core'}`);
320
- if (!full) info('Run npx azclaude --full to add evolution + intelligence capabilities');
320
+ if (!full) info('Run npx azclaude --full to add intelligence capabilities (debate, pipeline, ELO)');
321
321
  info('manifest.md is your capability index — read it to find what to load');
322
322
  }
323
323
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Autonomous product builder. Describe once, AZCLAUDE builds it across sessions — planning, implementing, testing, evolving, deploying. Zero human input.",
5
5
  "bin": {
6
6
  "azclaude": "./bin/cli.js",
@@ -32,13 +32,15 @@ If $ARGUMENTS is blank or "full": run all cycles below.
32
32
  ls .claude/agents/loop-controller.md 2>/dev/null
33
33
  ```
34
34
 
35
- **If loop-controller.md exists**: delegate ALL evolution work to it via Agent tool:
35
+ **If loop-controller.md exists**: delegate evolution work to it via Agent tool:
36
36
  ```
37
37
  Run a full evolution cycle: re-derivation check, then Cycle 1 (detect/generate/evaluate),
38
38
  Cycle 2 (knowledge consolidation if 3+ sessions), Cycle 3 (topology if friction detected).
39
39
  Show the full cycle report when done.
40
40
  ```
41
- **STOP HERE** do not run the steps below.
41
+ **After loop-controller finishes**: continue to Step 7 (Generate Project-Specific Skills and Agents).
42
+ The loop-controller handles gap detection and code fixes, but skill/agent generation requires
43
+ reading level-builders which the loop-controller does not do.
42
44
 
43
45
  ---
44
46
 
@@ -150,7 +152,37 @@ If the file doesn't exist, create it with this header:
150
152
 
151
153
  ---
152
154
 
153
- ## Step 7: Promote GENERAL Skills
155
+ ## Step 7: Generate Project-Specific Skills and Agents from Evidence
156
+
157
+ ### Skills from git evidence
158
+ ```bash
159
+ git log --name-only --format="" --diff-filter=AM | sort | uniq -c | sort -rn | head -20
160
+ ```
161
+ If a file pattern appears 5+ times (e.g., `src/components/*.tsx`, `content/*.md`, `api/routes/*.py`):
162
+ 1. Read `.claude/capabilities/level-builders/level3-skills.md`
163
+ 2. Create a skill that encodes the workflow for that pattern
164
+ 3. Save to `.claude/commands/{skill-name}.md`
165
+ 4. Only create if no existing skill covers this workflow
166
+
167
+ ### Agents from co-change clusters
168
+ ```bash
169
+ git log --name-only --format="" --diff-filter=M | sort | uniq -c | sort -rn | head -30
170
+ ```
171
+ If 3+ files in the same directory change together across 3+ commits:
172
+ 1. Read `.claude/capabilities/level-builders/level5-agents.md`
173
+ 2. Create an agent with all 5 layers in `.claude/agents/cc-{name}.md`
174
+ 3. Use co-change data for scope boundaries
175
+ 4. Only create if no existing agent covers this cluster
176
+
177
+ ### Check existing before creating
178
+ ```bash
179
+ ls .claude/commands/*.md .claude/agents/*.md 2>/dev/null
180
+ ```
181
+ Skip creation if a skill/agent already covers the same workflow.
182
+
183
+ ---
184
+
185
+ ## Step 8: Promote GENERAL Skills
154
186
 
155
187
  For any fix tagged GENERAL in EVALUATE:
156
188
  1. Copy to `~/shared-skills/{name}.md`
@@ -70,7 +70,49 @@ The orchestrator-init agent:
70
70
 
71
71
  ---
72
72
 
73
- ## Step 5: Quality Gate
73
+ ## Step 5: Generate Project-Specific Skills
74
+
75
+ Read `.claude/capabilities/level-builders/level3-skills.md` for the skill design guide.
76
+
77
+ Analyze the project's domain, stack, and recurring workflows:
78
+ 1. Check what file types and patterns exist (endpoints, pages, components, schemas, tests)
79
+ 2. Check git log for repeated commit patterns (what work is done most often)
80
+ 3. Identify 2-4 project-specific skills that would encode the most common workflows
81
+
82
+ For each skill:
83
+ - Create `.claude/commands/{skill-name}.md` with pushy description (3+ trigger variants)
84
+ - Follow RECIPE pattern (steps to do something, not documentation)
85
+ - Include completion rule
86
+ - ≤ 500 lines (references/ subdir for overflow)
87
+
88
+ **Stack-specific defaults** (generate if stack detected):
89
+ | Stack | Generate |
90
+ |-------|---------|
91
+ | Next.js / React | `new-page.md`, `new-component.md` |
92
+ | Express / FastAPI | `new-endpoint.md` |
93
+ | Any DB | `migrate.md` |
94
+ | Any deploy config | `deploy.md` |
95
+ | Markdown content | `new-content.md`, `validate-content.md` |
96
+ | Exam / quiz | `new-exam.md`, `validate-exam.md` |
97
+
98
+ **TaskUpdate → completed** for Create skills.
99
+
100
+ ---
101
+
102
+ ## Step 6: Generate Project-Specific Agents (if project has 10+ files)
103
+
104
+ Read `.claude/capabilities/level-builders/level5-agents.md` for agent design guide.
105
+
106
+ 1. Run co-change analysis: `git log --name-only --format="" --diff-filter=M | sort | uniq -c | sort -rn | head -30`
107
+ 2. Identify file clusters that change independently → each cluster = potential agent
108
+ 3. Create 1-3 agents in `.claude/agents/cc-{name}.md` with all 5 layers
109
+ 4. Prefix all agents with `cc-` to avoid framework collisions
110
+
111
+ Skip if project has < 10 files or < 5 commits.
112
+
113
+ ---
114
+
115
+ ## Step 7: Quality Gate
74
116
 
75
117
  Load `capabilities/shared/quality-check.md` and run the full environment check.
76
118