azrole 3.0.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.
@@ -0,0 +1,301 @@
1
+ # AZROLE — Full Setup Log
2
+
3
+ **Project**: Premium nonfiction biography (150K words, 24 chapters)
4
+ **Date**: March 12, 2026
5
+ **Starting Level**: 0 / 10 (Terminal Tourist)
6
+ **Final Level**: 5 / 10 (Multi-Agent)
7
+
8
+ ---
9
+
10
+ ## Step 1: Installation (`npx azrole init`)
11
+
12
+ Ran `npx azrole init` which installed the AZROLE package globally into `~/.claude/commands/`.
13
+
14
+ ### What it installed:
15
+
16
+ | File | Location | Purpose |
17
+ |------|----------|---------|
18
+ | `dream.md` | `~/.claude/commands/` | Slash command — build a project from an idea |
19
+ | `level-up.md` | `~/.claude/commands/` | Slash command — check level, build next one |
20
+ | `evolve.md` | `~/.claude/commands/` | Slash command — auto-improve environment |
21
+ | `fix.md` | `~/.claude/commands/` | Slash command — describe a bug, get it fixed |
22
+ | `ship.md` | `~/.claude/commands/` | Slash command — commit and push changes |
23
+ | `explain.md` | `~/.claude/commands/` | Slash command — explain code/errors |
24
+ | `status.md` | `~/.claude/commands/` | Slash command — quick project health check |
25
+ | `setup.md` | `~/.claude/commands/` | Slash command — scan existing project, build environment |
26
+ | `orchestrator.md` | `~/.claude/agents/` | Master orchestrator agent (the brain behind all levels) |
27
+
28
+ These are **global** — available in every project, not just this one.
29
+
30
+ ### What was skipped:
31
+ - `orchestrator.md` and `dream.md` already existed from a prior install — skipped (would need `--force` to overwrite)
32
+
33
+ ---
34
+
35
+ ## Step 2: Project Scan (`/setup`)
36
+
37
+ The `/setup` command triggered a full scan of the project directory.
38
+
39
+ ### What was scanned:
40
+
41
+ 1. **Root directory listing** — found 3 files:
42
+ - `manuscript.tex` (main LaTeX document)
43
+ - `docuthriller_memoir_premium_2026_premium.sty` (custom style package)
44
+ - `Chain_Continuity_Audit.md` (editorial audit report)
45
+
46
+ 2. **File content analysis**:
47
+ - Read `manuscript.tex` — identified LuaLaTeX + memoir class, EB Garamond fonts, custom commands (`\visiontwenty`, `\termdef`, `\concept`), 6×9 trade paperback specs
48
+ - Read the `.sty` file — confirmed engine requirement (LuaLaTeX only), all package options, font cascade logic
49
+ - Read the audit report — mapped all 24 chapters across 5 parts, identified known transition issues, extracted editorial standards
50
+
51
+ 3. **Existing Claude config** — found only `settings.local.json` with one permission rule. No CLAUDE.md, no MCP, no skills, no memory, no agents.
52
+
53
+ 4. **Additional working directories** — detected `azcomply-flow/frontend/src/core/i18n` and `azcomply-flow/frontend/src/messages` (separate project, not part of this setup)
54
+
55
+ ### Scan verdict:
56
+ - **Project type**: Book manuscript (not a software project)
57
+ - **Tech stack**: LaTeX/LuaLaTeX + memoir + custom .sty
58
+ - **Current level**: 0 / 10 — nothing configured
59
+ - **Target level**: 5 / 10 (Multi-Agent)
60
+
61
+ ---
62
+
63
+ ## Step 3: Directory Scaffolding
64
+
65
+ Created the infrastructure directories:
66
+
67
+ ```
68
+ .devteam/ # AZROLE working directory
69
+ .claude/agents/ # Specialized subagents
70
+ .claude/commands/ # Slash commands (project-specific)
71
+ .claude/skills/ # Technology skill files
72
+ .claude/memory/ # Persistent memory system
73
+ scripts/ # Automation scripts (for future levels)
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Step 4: Blueprint Generation
79
+
80
+ Created `.devteam/blueprint.json` — the master plan that all subsequent levels reference.
81
+
82
+ ### Blueprint contents:
83
+ - **Project metadata**: name, type (book-manuscript), author, description
84
+ - **Tech stack**: LuaLaTeX engine, memoir class, .sty package, font list, build command
85
+ - **Content structure**: 24 chapters, 5 parts, ~150K words, modular LaTeX input
86
+ - **File map**: role of each file and its dependencies
87
+ - **Planned agents**: dev-writer, dev-editor, dev-typesetter, dev-reviewer
88
+ - **Planned skills**: latex-memoir, editorial-craft, project-conventions
89
+ - **Planned commands**: build, audit-chapter, new-chapter, review
90
+
91
+ ---
92
+
93
+ ## Step 5: Level 1 — CLAUDE.md
94
+
95
+ Created `CLAUDE.md` in the project root (73 lines).
96
+
97
+ ### What it contains:
98
+
99
+ | Section | Content |
100
+ |---------|---------|
101
+ | Header | Project name, author, word count, target format |
102
+ | Architecture | Engine (LuaLaTeX), class (memoir), style (.sty v1.3), build command, font cascade |
103
+ | File Structure | Map of all 4 files with roles |
104
+ | Manuscript Structure | Table of all 5 parts with chapter ranges and time periods |
105
+ | Conventions | Custom LaTeX commands, typography rules, style options |
106
+ | Editorial Standards | Execution lens framing, 5 thematic threads, cultural sensitivity rules |
107
+ | Known Issues | 5 priority issues from the audit report (critical → polish) |
108
+ | Agent Routing | Which agent handles which responsibility |
109
+ | Available Commands | 4 slash commands with descriptions |
110
+
111
+ **Purpose**: Any Claude conversation in this project now immediately understands the full context — what the project is, how it's structured, what the rules are, and who handles what.
112
+
113
+ ---
114
+
115
+ ## Step 6: Level 2 — MCP Configuration
116
+
117
+ **Skipped intentionally.** This is a manuscript project with no external services (no databases, no APIs, no GitHub integration needed for the writing workflow). MCP servers would add complexity with no benefit.
118
+
119
+ ---
120
+
121
+ ## Step 7: Level 3 — Skills & Commands
122
+
123
+ ### Skills Created (3 files):
124
+
125
+ #### 1. `.claude/skills/latex-memoir/SKILL.md`
126
+ - **Triggers on**: LaTeX, LuaLaTeX, memoir, typography, fonts, compilation, .sty, page layout
127
+ - **Contains**: Engine & build rules, style package option reference, custom command docs, typography rules, anti-patterns (what never to do)
128
+
129
+ #### 2. `.claude/skills/editorial-craft/SKILL.md`
130
+ - **Triggers on**: Writing, editing, reviewing, transitions, narrative voice, pacing, cultural sensitivity
131
+ - **Contains**: Narrative voice guidelines, five thematic threads reference, transition standards, cultural sensitivity rules, chapter quality checklist
132
+
133
+ #### 3. `.claude/skills/project-conventions/SKILL.md`
134
+ - **Triggers on**: Creating or editing any file
135
+ - **Contains**: File naming rules, LaTeX conventions, editorial conventions (chapter numbering, audit format), production specs
136
+
137
+ ### Commands Created (4 files):
138
+
139
+ #### 1. `.claude/commands/build.md`
140
+ - **Invoked with**: `/build`
141
+ - **Does**: Runs `latexmk -lualatex manuscript.tex`, diagnoses errors from .log, fixes issues, re-compiles
142
+
143
+ #### 2. `.claude/commands/audit-chapter.md`
144
+ - **Invoked with**: `/audit-chapter [chapter number or name]`
145
+ - **Does**: Reads chapter content + audit report + editorial standards → evaluates transitions, threads, chronology, sensitivity, evidence → rates each dimension → provides actionable recommendations
146
+
147
+ #### 3. `.claude/commands/new-chapter.md`
148
+ - **Invoked with**: `/new-chapter [description]`
149
+ - **Does**: Determines placement in 5-part structure → generates scaffold with epigraph, hook, sections, handoff, source placeholders → adds to content file
150
+
151
+ #### 4. `.claude/commands/review.md`
152
+ - **Invoked with**: `/review`
153
+ - **Does**: Full manuscript review — continuity, thematic coherence, chronology, cultural sensitivity, prose quality, production readiness → structured report with delta comparison to previous audit
154
+
155
+ ---
156
+
157
+ ## Step 8: Level 4 — Memory System
158
+
159
+ ### Files Created (4 files):
160
+
161
+ #### 1. `.claude/memory/MEMORY.md` (master index — 32 lines)
162
+ - Quick Context: what the project is in 2 sentences
163
+ - Architecture snapshot: 3 key files and their roles
164
+ - Critical Rules: placeholder (filled as lessons are learned)
165
+ - Active Patterns: execution lens, thematic threads, cultural sensitivity
166
+ - Known Gotchas: weak transitions, Part IV timeline overlap, LuaLaTeX requirement
167
+ - Recent Decisions: placeholder
168
+ - See Also: links to other memory files
169
+
170
+ #### 2. `.claude/memory/codebase-map.md`
171
+ - File-by-file index with roles and dependencies
172
+ - Style package key exports
173
+ - Custom command reference
174
+
175
+ #### 3. `.claude/memory/decisions.md`
176
+ - ADR-001: Why LuaLaTeX + memoir (OpenType fonts, professional quality)
177
+ - ADR-002: Why single content file (simpler pipeline)
178
+
179
+ #### 4. `.claude/memory/patterns.md`
180
+ - Narrative patterns: execution lens, thematic threading, transition craftsmanship, temporal anchoring
181
+ - LaTeX patterns: font cascade, conditional loading, option-driven style, strict penalties
182
+
183
+ **Purpose**: Agents read MEMORY.md before starting any task. This gives them instant context without re-scanning the project every time. Patterns and gotchas prevent repeated mistakes.
184
+
185
+ ---
186
+
187
+ ## Step 9: Level 5 — Specialized Agents
188
+
189
+ ### Agents Created (4 files):
190
+
191
+ #### 1. `.claude/agents/dev-writer.md` (model: sonnet)
192
+ - **Role**: Chapter drafting, prose creation, narrative voice
193
+ - **Owns**: All chapter content in `manuscript_content.tex`
194
+ - **Protocol**: Reads MEMORY.md → editorial-craft skill → audit report → existing content → writes in project voice → reports which threads were advanced
195
+
196
+ #### 2. `.claude/agents/dev-editor.md` (model: opus)
197
+ - **Role**: Continuity, transitions, structural editing, thematic coherence
198
+ - **Owns**: Structural integrity of the manuscript
199
+ - **Protocol**: Reads audit report as primary reference → rates transitions ★–★★★★★ → tracks 5 threads → checks chronology → reports issues with priority ranking
200
+ - **Has**: Pre-loaded list of known priority issues from the audit
201
+
202
+ #### 3. `.claude/agents/dev-typesetter.md` (model: sonnet)
203
+ - **Role**: LaTeX compilation, typography, layout, production
204
+ - **Owns**: `manuscript.tex` and the `.sty` file
205
+ - **Protocol**: Reads latex-memoir skill → compiles → diagnoses errors from .log → fixes → verifies output quality
206
+
207
+ #### 4. `.claude/agents/dev-reviewer.md` (model: opus)
208
+ - **Role**: Full quality audit, publication readiness, final sign-off
209
+ - **Owns**: Quality assurance gate
210
+ - **Protocol**: Reads everything → per-chapter assessment → manuscript-wide assessment → benchmarks against premium biography standards → publication readiness verdict
211
+
212
+ ### Model Routing Logic:
213
+ - **Opus** (more capable, slower): Used for dev-editor and dev-reviewer — tasks requiring deep analysis, judgment, and quality assessment
214
+ - **Sonnet** (fast, efficient): Used for dev-writer and dev-typesetter — tasks requiring generation and technical execution
215
+
216
+ ---
217
+
218
+ ## Step 10: Verification Scan
219
+
220
+ Final environment scan confirmed all levels:
221
+
222
+ ```
223
+ Level 1: CLAUDE.md ✅ 73 lines
224
+ Level 2: MCP Servers ⊘ N/A (no external services)
225
+ Level 3: Skills & Commands ✅ 3 skills, 4 commands
226
+ Level 4: Memory System ✅ 32-line index + 4 memory files
227
+ Level 5: Multi-Agent ✅ 4 specialized agents
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Final File Tree
233
+
234
+ ```
235
+ book-project/
236
+ ├── CLAUDE.md # Level 1: Project conventions
237
+ ├── manuscript.tex # Main LaTeX document
238
+ ├── manuscript_content.tex # Chapter content (referenced)
239
+ ├── docuthriller_memoir_premium_2026_premium.sty # Custom style package
240
+ ├── Chain_Continuity_Audit.md # Editorial audit report
241
+
242
+ ├── .devteam/
243
+ │ └── blueprint.json # Master project blueprint
244
+
245
+ ├── .claude/
246
+ │ ├── settings.local.json # Permissions
247
+ │ │
248
+ │ ├── commands/ # Level 3: Slash commands
249
+ │ │ ├── build.md # /build
250
+ │ │ ├── audit-chapter.md # /audit-chapter
251
+ │ │ ├── new-chapter.md # /new-chapter
252
+ │ │ └── review.md # /review
253
+ │ │
254
+ │ ├── skills/ # Level 3: Technology skills
255
+ │ │ ├── latex-memoir/SKILL.md # LaTeX/LuaLaTeX patterns
256
+ │ │ ├── editorial-craft/SKILL.md # Narrative & editorial standards
257
+ │ │ └── project-conventions/SKILL.md # Naming, structure, production
258
+ │ │
259
+ │ ├── memory/ # Level 4: Persistent memory
260
+ │ │ ├── MEMORY.md # Master index (32 lines)
261
+ │ │ ├── codebase-map.md # File index & dependencies
262
+ │ │ ├── decisions.md # Architecture decision records
263
+ │ │ └── patterns.md # Discovered patterns
264
+ │ │
265
+ │ └── agents/ # Level 5: Specialized agents
266
+ │ ├── dev-writer.md # Prose & chapter drafting (sonnet)
267
+ │ ├── dev-editor.md # Continuity & structure (opus)
268
+ │ ├── dev-typesetter.md # LaTeX & production (sonnet)
269
+ │ ├── dev-reviewer.md # Quality audit (opus)
270
+ │ └── orchestrator.md # AZROLE orchestrator (global)
271
+
272
+ └── scripts/ # (empty — for Level 6+)
273
+ ```
274
+
275
+ ---
276
+
277
+ ## What's Available Now
278
+
279
+ | Command | What it does |
280
+ |---------|-------------|
281
+ | `/build` | Compile manuscript with LuaLaTeX |
282
+ | `/audit-chapter [N]` | Editorial audit of a specific chapter |
283
+ | `/new-chapter [desc]` | Scaffold a new chapter |
284
+ | `/review` | Full manuscript review pass |
285
+ | `/level-up` | Build the next level (Level 6: headless scripts & git hooks) |
286
+ | `/evolve` | Auto-detect gaps and improve the environment |
287
+ | `/status` | Quick project health check |
288
+
289
+ ---
290
+
291
+ ## What Levels 6–10 Would Add
292
+
293
+ | Level | Name | What it unlocks |
294
+ |-------|------|----------------|
295
+ | 6 | Headless Mode | CLI scripts to run agents without interactive Claude, git hooks for auto-review |
296
+ | 7 | Browser Automation | Puppeteer MCP for screenshots, PDF generation, web scraping |
297
+ | 8 | Parallel Orchestration | Run multiple agents simultaneously (e.g., writer + typesetter in parallel) |
298
+ | 9 | Background Agents | Cron jobs — nightly test builds, weekly reviews, memory refresh |
299
+ | 10 | Self-Evolving | Autonomous improvement loop — agents that build and improve other agents |
300
+
301
+ Run `/level-up` when ready to build Level 6.
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "azrole",
3
+ "version": "3.0.0",
4
+ "description": "One command to build your entire AI coding environment with self-evolving intelligence. Works with Claude Code, Codex, OpenCode, Gemini CLI, and Cursor.",
5
+ "bin": {
6
+ "azrole": "./bin/cli.js",
7
+ "ai-dreamteam": "./bin/cli.js",
8
+ "claude-dreamteam": "./bin/cli.js"
9
+ },
10
+ "keywords": [
11
+ "azrole",
12
+ "claude",
13
+ "claude-code",
14
+ "codex",
15
+ "opencode",
16
+ "gemini",
17
+ "gemini-cli",
18
+ "cursor",
19
+ "ai",
20
+ "agents",
21
+ "developer-tools",
22
+ "automation",
23
+ "mcp",
24
+ "subagents",
25
+ "skills",
26
+ "orchestrator",
27
+ "ai-coding",
28
+ "vibe-coding",
29
+ "self-evolving",
30
+ "prompt-optimization",
31
+ "multi-agent"
32
+ ],
33
+ "author": "haytamAroui",
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/haytamAroui/claude-dreamteam.git"
38
+ },
39
+ "homepage": "https://github.com/haytamAroui/claude-dreamteam#readme",
40
+ "files": [
41
+ "bin/",
42
+ "templates/",
43
+ "docs/"
44
+ ],
45
+ "engines": {
46
+ "node": ">=16"
47
+ }
48
+ }