azclaude-copilot 0.5.6 → 0.5.7

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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "azclaude",
11
11
  "description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 39 commands, 10 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
12
- "version": "0.5.6",
12
+ "version": "0.5.7",
13
13
  "source": {
14
14
  "source": "github",
15
15
  "repo": "haytamAroui/AZ-CLAUDE-COPILOT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 39 commands, 10 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
5
5
  "author": {
6
6
  "name": "haytamAroui",
package/README.md CHANGED
@@ -12,6 +12,7 @@
12
12
  <a href="#how-it-works-the-execution-pipeline">Pipeline</a> ·
13
13
  <a href="#install">Install</a> ·
14
14
  <a href="#what-you-get">What You Get</a> ·
15
+ <a href="#structured-for-claude-frontmatter--xml-tags">Structure</a> ·
15
16
  <a href="#architecture-philosophy">Architecture</a> ·
16
17
  <a href="#autonomous-mode">Autonomous Mode</a> ·
17
18
  <a href="#parallel-execution">Parallel</a> ·
@@ -155,6 +156,87 @@ npx azclaude-copilot@latest doctor # 32 checks — verify everything is wired
155
156
 
156
157
  ---
157
158
 
159
+ ## Structured for Claude: Frontmatter + XML Tags
160
+
161
+ Anthropic's research shows Claude comprehends structured content significantly better when it uses two patterns natively built into Claude Code: **YAML frontmatter** for metadata and **`<instructions>` XML tags** for content. AZCLAUDE applies both to every agent and skill file — not as convention, but because it measurably changes how Claude reads, routes, and executes them.
162
+
163
+ ### Why this matters
164
+
165
+ Claude was trained on XML-structured content. Tags like `<instructions>`, `<context>`, and `<examples>` signal boundaries Claude parses reliably — unlike prose headings which are ambiguous. Frontmatter gives Claude Code the metadata it needs to route, describe, and invoke agents without any extra configuration.
166
+
167
+ ### What AZCLAUDE agent files look like
168
+
169
+ ```yaml
170
+ --- ← YAML frontmatter block
171
+ name: code-reviewer ← agent identifier (used by subagent_type=)
172
+ description: > ← Claude Code reads this to decide when to spawn
173
+ Autonomous code review agent.
174
+ Use when: review, audit, PR review,
175
+ find bugs, security check.
176
+ model: opus ← which model this agent runs on
177
+ tools: [Read, Glob, Grep, Bash] ← allowed tools (principle of least privilege)
178
+ disallowedTools: [Write, Edit, Agent] ← explicit deny list — no write access
179
+ permissionMode: plan ← read-only by default
180
+ maxTurns: 30 ← bounded execution
181
+ tags: [review, pr, quality] ← semantic routing hints
182
+ ---
183
+
184
+ # Code Reviewer
185
+
186
+ <instructions> ← XML tag: Claude parses this as structured directives
187
+
188
+ ## Layer 1: PERSONA
189
+ Code review specialist. Read-only — never modifies code.
190
+
191
+ ## Layer 2: SCOPE
192
+ - Reviews staged/unstaged changes via `git diff`
193
+ - Checks for bugs, logic errors, edge cases
194
+ - Identifies security issues (injection, XSS, OWASP top 10)
195
+
196
+ </instructions>
197
+ ```
198
+
199
+ ### What AZCLAUDE skill files look like
200
+
201
+ ```yaml
202
+ --- ← YAML frontmatter
203
+ name: test-first
204
+ description: > ← auto-invocation trigger — Claude reads this
205
+ Guides test-driven development.
206
+ Use when about to write code, implement a feature, fix a bug,
207
+ refactor, add an endpoint, or modify business logic.
208
+ tags: [tdd, testing, coverage]
209
+ ---
210
+
211
+ # Test-First
212
+
213
+ <instructions> ← structured content block
214
+
215
+ ## Check before enforcing
216
+ TDD is opt-in. Check BOTH signals:
217
+ 1. CLAUDE.md has a TDD rule
218
+ 2. Test files exist (*.test.*, *.spec.*)
219
+
220
+ Both present → TDD protocol active.
221
+ Either missing → suggest TDD, don't block.
222
+
223
+ </instructions>
224
+ ```
225
+
226
+ ### Why this architecture works
227
+
228
+ | Pattern | What it does |
229
+ |---------|-------------|
230
+ | `description:` frontmatter | Claude Code reads this to decide when to auto-invoke a skill or which agent to spawn. No code required. |
231
+ | `model: opus` frontmatter | Routes complex review tasks to the most capable model automatically. |
232
+ | `tools:` + `disallowedTools:` | Principle of least privilege — code-reviewer cannot Write, milestone-builder cannot call Agent. |
233
+ | `<instructions>` XML tag | Signals to Claude "parse this as directives" — not prose, not documentation, not commentary. |
234
+ | `permissionMode: plan` | Agents that only read run in plan mode — no accidental writes, no permission prompts. |
235
+
236
+ All 15 AZCLAUDE agents and all 10 skills use this exact format. Claude Code routes them, describes them in `/help`, and invokes them via `subagent_type=` — all from the frontmatter, zero extra config.
237
+
238
+ ---
239
+
158
240
  ## Architecture Philosophy
159
241
 
160
242
  **AZCLAUDE uses Markdown files and lifecycle hooks — not MCP servers — as its core architecture.** This is a deliberate engineering decision, not a gap.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "AI coding environment — 39 commands, 10 skills, 15 agents, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
5
5
  "bin": {
6
6
  "azclaude": "bin/cli.js",
@@ -245,9 +245,10 @@ try {
245
245
  }
246
246
  } else if (pct >= 70) {
247
247
  console.log('');
248
- console.log(`--- COMPACTION WARNING (${pct}%) ---`);
249
- console.log(`Context at ${pct}%compaction approaching. Run /snapshot to save session state.`);
250
- console.log('--- END WARNING ---');
248
+ console.log(`!!! SNAPSHOT REQUIRED (${pct}% context used) !!!`);
249
+ console.log(`Run /snapshot NOWClaude will compact and lose your session reasoning soon.`);
250
+ console.log(`This warning repeats every message until you run /snapshot or context resets.`);
251
+ console.log(`!!! /snapshot !!! /snapshot !!! /snapshot !!!`);
251
252
  }
252
253
  }
253
254
  } catch (_) {}