azclaude-copilot 0.1.8 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
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",
@@ -44,8 +44,16 @@ Sparse documentation is a signal, not a gap to fill with code.
44
44
 
45
45
  ### Step 3: Generate the File
46
46
 
47
- Write the capability file following the architecture rules:
48
- - 150 lines
47
+ **If generating a skill/command**: read `capabilities/level-builders/level3-skills.md` first.
48
+ Follow the Pushy Description Rule (10+ trigger scenarios), RECIPE pattern (steps not docs),
49
+ and CE 2.0 Self-Correction layers. Skills go in `.claude/commands/{name}.md`.
50
+
51
+ **If generating an agent**: read `capabilities/level-builders/level5-agents.md` first.
52
+ Follow the 5-layer structure (Persona, Scope, Tools, Constraints, Domain Context).
53
+ Use co-change analysis for scope boundaries. Agents go in `.claude/agents/cc-{name}.md`.
54
+
55
+ **For all capability files** — follow these architecture rules:
56
+ - ≤ 150 lines (overflow goes to references/ subdir)
49
57
  - YAML frontmatter required (name, description, tokens estimate)
50
58
  - One capability per file — if it's growing beyond 150 lines, split it
51
59
  - No file reads another file by default — explicit pointers only
@@ -152,23 +152,45 @@ If the file doesn't exist, create it with this header:
152
152
 
153
153
  ---
154
154
 
155
- ## Step 7: Generate Project-Specific Skills and Agents from Evidence
155
+ ## Step 7: Generate or Update Project-Specific Skills and Agents
156
156
 
157
- ### Skills from git evidence
157
+ **Principle**: Never let Claude work without project-specific skills. Generate minimum viable skills early, then improve them as evidence accumulates.
158
+
159
+ ### 7a: Ensure minimum skills exist
160
+ ```bash
161
+ ls .claude/commands/*.md 2>/dev/null | wc -l
162
+ ls .claude/skills/*/SKILL.md 2>/dev/null | wc -l
163
+ ```
164
+ If project has ZERO project-specific skills (only the 26 standard commands):
165
+ 1. Read `.claude/capabilities/level-builders/level3-skills.md`
166
+ 2. Analyze the project's stack, domain, and file structure
167
+ 3. Generate at least 2 skills immediately — even with zero git history
168
+ 4. Focus on: what file types exist → what workflow creates more of them
169
+
170
+ ### 7b: Generate new skills from git evidence
158
171
  ```bash
159
172
  git log --name-only --format="" --diff-filter=AM | sort | uniq -c | sort -rn | head -20
160
173
  ```
161
- If a file pattern appears 5+ times (e.g., `src/components/*.tsx`, `content/*.md`, `api/routes/*.py`):
174
+ **Threshold: 2+ occurrences** (not 5 skills should appear early, not late):
162
175
  1. Read `.claude/capabilities/level-builders/level3-skills.md`
163
176
  2. Create a skill that encodes the workflow for that pattern
164
177
  3. Save to `.claude/commands/{skill-name}.md`
165
178
  4. Only create if no existing skill covers this workflow
166
179
 
167
- ### Agents from co-change clusters
180
+ ### 7c: Update existing skills from session learnings
181
+ ```bash
182
+ ls .claude/memory/sessions/*.md 2>/dev/null | tail -3
183
+ ```
184
+ If session files exist, scan for patterns that existing skills missed:
185
+ - Repeated manual steps that should be in a skill → add them
186
+ - Skill triggered but missing a step → update the skill
187
+ - New conventions emerged → update skill's Rules section
188
+
189
+ ### 7d: Generate agents from co-change clusters
168
190
  ```bash
169
191
  git log --name-only --format="" --diff-filter=M | sort | uniq -c | sort -rn | head -30
170
192
  ```
171
- If 3+ files in the same directory change together across 3+ commits:
193
+ If 3+ files in the same directory change together across 2+ commits:
172
194
  1. Read `.claude/capabilities/level-builders/level5-agents.md`
173
195
  2. Create an agent with all 5 layers in `.claude/agents/cc-{name}.md`
174
196
  3. Use co-change data for scope boundaries
@@ -176,9 +198,10 @@ If 3+ files in the same directory change together across 3+ commits:
176
198
 
177
199
  ### Check existing before creating
178
200
  ```bash
179
- ls .claude/commands/*.md .claude/agents/*.md 2>/dev/null
201
+ ls .claude/commands/*.md .claude/agents/*.md .claude/skills/*/SKILL.md 2>/dev/null
180
202
  ```
181
203
  Skip creation if a skill/agent already covers the same workflow.
204
+ Update existing ones if they're missing steps discovered in recent sessions.
182
205
 
183
206
  ---
184
207
 
@@ -70,30 +70,41 @@ The orchestrator-init agent:
70
70
 
71
71
  ---
72
72
 
73
- ## Step 5: Generate Project-Specific Skills
73
+ ## Step 5: Generate Project-Specific Skills (MANDATORY — minimum 2)
74
+
75
+ **Rule**: Never leave a project without project-specific skills. Claude Code works significantly better with skills that encode project conventions. Generate at least 2 skills even on first run with zero git history.
74
76
 
75
77
  Read `.claude/capabilities/level-builders/level3-skills.md` for the skill design guide.
76
78
 
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
79
+ ### How to decide which skills to generate
80
+ 1. **What file types exist?** what workflow creates more of them
81
+ 2. **What domain is this?** what domain-specific knowledge should be encoded
82
+ 3. **What stack?** → which stack-specific defaults apply
83
+ 4. Check git log for repeated commit patterns (if any history exists)
81
84
 
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)
85
+ ### Minimum: 2 project-specific skills
86
+ Every project gets at least:
87
+ 1. A **creation skill** how to add the main type of content/code in this project
88
+ 2. A **validation skill** — how to check that content/code follows project conventions
87
89
 
88
- **Stack-specific defaults** (generate if stack detected):
90
+ ### Stack-specific defaults (generate if stack detected):
89
91
  | Stack | Generate |
90
92
  |-------|---------|
91
93
  | Next.js / React | `new-page.md`, `new-component.md` |
92
- | Express / FastAPI | `new-endpoint.md` |
94
+ | Express / FastAPI | `new-endpoint.md`, `validate-api.md` |
93
95
  | Any DB | `migrate.md` |
94
96
  | Any deploy config | `deploy.md` |
95
97
  | Markdown content | `new-content.md`, `validate-content.md` |
96
98
  | Exam / quiz | `new-exam.md`, `validate-exam.md` |
99
+ | CLI tool | `new-command.md`, `validate-cli.md` |
100
+ | Library/SDK | `new-module.md`, `validate-api-surface.md` |
101
+
102
+ For each skill:
103
+ - Create `.claude/commands/{skill-name}.md` with pushy description (10+ trigger variants)
104
+ - Follow RECIPE pattern (steps to do something, not documentation)
105
+ - Include project-specific conventions (file paths, naming, patterns from existing code)
106
+ - Include completion rule
107
+ - ≤ 500 lines (references/ subdir for overflow)
97
108
 
98
109
  **TaskUpdate → completed** for Create skills.
99
110