azclaude-copilot 0.4.31 → 0.4.33

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 34 commands, 9 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.4.31",
12
+ "version": "0.4.33",
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.4.31",
3
+ "version": "0.4.33",
4
4
  "description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 34 commands, 9 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
@@ -117,7 +117,7 @@ npx azclaude-copilot@latest
117
117
  ```
118
118
 
119
119
  That's it. One command, no flags. Auto-detects whether this is a fresh install or an upgrade:
120
- - **First time** → full install (34 commands, 4 hooks, 15 agents, 9 skills, memory, reflexes)
120
+ - **First time** → full install (34 commands, 4 hooks, 15 agents, 10 skills, memory, reflexes)
121
121
  - **Already installed, older version** → auto-upgrades everything to latest templates
122
122
  - **Already up to date** → verifies, no overwrites
123
123
 
@@ -135,7 +135,7 @@ npx azclaude-copilot@latest doctor # 32 checks — verify everything is wired
135
135
  .claude/
136
136
  ├── CLAUDE.md ← dispatch table: conventions, stack, routing
137
137
  ├── commands/ ← 33 slash commands (/add, /fix, /copilot, /spec, /sentinel...)
138
- ├── skills/ ← 9 skills (test-first, security, architecture-advisor, frontend-design...)
138
+ ├── skills/ ← 10 skills (test-first, security, architecture-advisor, frontend-design...)
139
139
  ├── agents/ ← 15 agents (orchestrator, spec-reviewer, constitution-guard...)
140
140
  ├── capabilities/ ← 37 files, lazy-loaded via manifest.md (~380 tokens/task)
141
141
  ├── hooks/
@@ -807,11 +807,11 @@ Run `/level-up` at any time to see your current level and build the next one.
807
807
 
808
808
  ## Verified
809
809
 
810
- 1462 tests. Every template, command, capability, agent, hook, and CLI feature verified.
810
+ 1473 tests. Every template, command, capability, agent, hook, and CLI feature verified.
811
811
 
812
812
  ```bash
813
813
  bash tests/test-features.sh
814
- # Results: 1462 passed, 0 failed, 1462 total
814
+ # Results: 1473 passed, 0 failed, 1473 total
815
815
  ```
816
816
 
817
817
  ---
package/bin/cli.js CHANGED
@@ -373,7 +373,7 @@ function installCommands(projectDir, cfg) {
373
373
 
374
374
  // ─── Skills (SKILL.md — model-auto-invoked) ──────────────────────────────────
375
375
 
376
- const SKILLS = ['session-guard', 'test-first', 'env-scanner', 'debate', 'security', 'skill-creator', 'agent-creator', 'architecture-advisor', 'frontend-design'];
376
+ const SKILLS = ['session-guard', 'test-first', 'env-scanner', 'debate', 'security', 'skill-creator', 'agent-creator', 'architecture-advisor', 'frontend-design', 'mcp'];
377
377
 
378
378
  function installSkills(projectDir, cfg) {
379
379
  const skillsDir = path.join(projectDir, cfg, 'skills');
@@ -1194,32 +1194,44 @@ if (hasPlan && hasPendingMilestones) {
1194
1194
  console.log('\n════════════════════════════════════════════════');
1195
1195
  console.log(` AZCLAUDE v${currentVer} — ${isFirstInstall ? 'installed' : needsUpgrade ? 'upgraded' : 'up to date'}`);
1196
1196
  console.log('');
1197
+
1198
+ // First-time users get a one-liner orientation
1199
+ if (isFirstInstall) {
1200
+ console.log(' AI coding commands for Claude Code: /setup, /add, /fix,');
1201
+ console.log(' /copilot, /ship and 29 more. Run them inside Claude Code.');
1202
+ console.log('');
1203
+ }
1204
+
1197
1205
  console.log(' Open Claude Code in this directory, then:');
1198
1206
  console.log('');
1199
1207
 
1200
1208
  if (onboardingPath === 'RESUME') {
1201
- console.log(' You have a plan with pending work:');
1209
+ console.log(' A plan with pending work was found:');
1202
1210
  console.log('');
1203
- console.log(' /copilot resume autonomous build');
1204
1211
  console.log(' /pulse see current state first');
1212
+ console.log(' /copilot resume autonomous build');
1205
1213
  console.log(' /analyze plan verify plan vs reality');
1214
+ console.log('');
1215
+ console.log(' Starting fresh instead?');
1216
+ console.log('');
1217
+ console.log(' /setup (re)configure this project');
1206
1218
  } else if (onboardingPath === 'EXISTING') {
1207
1219
  console.log(' Existing project detected:');
1208
1220
  console.log('');
1209
- console.log(' /setup scan + configure this project');
1210
- console.log(' /dream define what to build next');
1211
- console.log(' /blueprint plan the next feature');
1212
- console.log(' /copilot . build autonomously');
1221
+ console.log(' /setup scan + configure this project ← start here');
1222
+ console.log(' /add [feature] start building immediately');
1223
+ console.log(' /dream plan a full product first');
1224
+ console.log(' /copilot build autonomously');
1213
1225
  } else {
1214
1226
  console.log(' New project:');
1215
1227
  console.log('');
1216
- console.log(' /setup configure this project');
1228
+ console.log(' /setup configure this project ← start here');
1217
1229
  console.log(' /add [feature] start building immediately');
1218
1230
  console.log(' /dream plan a full product first');
1219
1231
  }
1220
1232
 
1221
1233
  console.log('');
1222
1234
  console.log(' ─────────────────────────────────────────────');
1223
- console.log(' docs: github.com/haytamAroui/AZ-CLAUDE-COPILOT');
1224
- console.log(' upgrade: npx azclaude-copilot@latest');
1235
+ console.log(' all commands: /help · docs: github.com/haytamAroui/AZ-CLAUDE-COPILOT');
1236
+ console.log(' upgrade: npx azclaude-copilot@latest');
1225
1237
  console.log('════════════════════════════════════════════════\n');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.4.31",
4
- "description": "AI coding environment — 34 commands, 9 skills, 15 agents, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
3
+ "version": "0.4.33",
4
+ "description": "AI coding environment — 34 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",
7
7
  "azclaude-copilot": "bin/copilot.js"
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: mcp
3
+ description: >
4
+ MCP server recommendations and setup for Claude Code projects. Use when the user
5
+ asks "what MCP should I use", "add MCP", "set up MCP", "improve Claude Code",
6
+ "Context7", "sequential thinking", "GitHub MCP", "Playwright MCP", "Supabase MCP",
7
+ "Brave Search", "add web search", "add browser control", "add database access",
8
+ "Claude doesn't know the latest API", "wrong library version", "stale docs",
9
+ "hallucinating API", or when /setup detects a stack and needs to recommend
10
+ integrations. Also use when user wants to configure .mcp.json, add tools to
11
+ Claude Code, or asks which MCP works best for their stack.
12
+ Do NOT trigger when: user is asking about AZCLAUDE's own security scanner for
13
+ MCP configs (use security skill). Do NOT trigger for generic npm package questions.
14
+ ---
15
+
16
+ # MCP Integration
17
+
18
+ MCP servers extend Claude Code with live capabilities: real-time docs, web search,
19
+ browser control, database access. AZCLAUDE recommends MCPs based on your stack —
20
+ it never bundles them (zero-dep rule).
21
+
22
+ ## Step 0: Detect Stack
23
+
24
+ Read these before recommending:
25
+ ```bash
26
+ cat package.json 2>/dev/null | grep -E '"next"|"react"|"supabase"|"prisma"|"postgres"|"playwright"' | head -10
27
+ cat CLAUDE.md 2>/dev/null | grep -E "Stack:|Domain:" | head -5
28
+ ls .mcp.json ~/.claude/claude_desktop_config.json 2>/dev/null && echo "mcp=configured" || echo "mcp=none"
29
+ ```
30
+
31
+ ## Step 1: Universal — Recommend for Every Project
32
+
33
+ These improve ALL AZCLAUDE workflows regardless of stack:
34
+
35
+ | MCP | What it fixes | Install |
36
+ |-----|--------------|---------|
37
+ | **Context7** | `/copilot` and `/add` write code against stale training data — wrong API signatures, deprecated methods. Context7 injects current docs at prompt time. | `claude mcp add context7 npx @upstash/context7-mcp` |
38
+ | **Sequential Thinking** | Orchestrator, milestone-builder, and `/blueprint` make better multi-step decisions when they can reason iteratively with branching. | `claude mcp add sequential-thinking npx @modelcontextprotocol/server-sequential-thinking` |
39
+
40
+ Always recommend both. They cost nothing (free, no API key) and improve every session.
41
+
42
+ ## Step 2: Stack-Specific — Recommend Based on Detection
43
+
44
+ | If stack contains | Recommend | Why |
45
+ |------------------|-----------|-----|
46
+ | Any GitHub repo | **GitHub MCP** | Richer than `gh` CLI for `/issues`, `/ship`, PR reviews, repo search |
47
+ | Any web project | **Playwright MCP** | E2E testing — pairs with qa-engineer agent and `/test` |
48
+ | `supabase` in deps | **Supabase MCP** | Schema introspection, migrations, Edge Functions from within Claude Code |
49
+ | `postgres`/`prisma` in deps | **PostgreSQL MCP** | Natural language queries, schema exploration during development |
50
+ | Debugging / `/fix` heavy | **Brave Search** | Real-time error lookup, CVE research for `/sentinel`, library issue tracking |
51
+ | Design-to-code workflow | **Figma MCP** | Translate Figma components directly to code |
52
+
53
+ ## Step 3: Install Commands
54
+
55
+ ```bash
56
+ # Universal — install these for every project
57
+ claude mcp add context7 npx @upstash/context7-mcp
58
+ claude mcp add sequential-thinking npx @modelcontextprotocol/server-sequential-thinking
59
+
60
+ # GitHub (no API key needed with Claude Code auth)
61
+ claude mcp add github npx @modelcontextprotocol/server-github
62
+
63
+ # Playwright (Microsoft official)
64
+ claude mcp add playwright npx @playwright/mcp@latest
65
+
66
+ # Brave Search (requires BRAVE_API_KEY)
67
+ claude mcp add brave-search npx @modelcontextprotocol/server-brave-search \
68
+ --env BRAVE_API_KEY=${BRAVE_API_KEY}
69
+
70
+ # Supabase (requires SUPABASE_ACCESS_TOKEN)
71
+ claude mcp add supabase npx @supabase/mcp-server-supabase \
72
+ --env SUPABASE_ACCESS_TOKEN=${SUPABASE_ACCESS_TOKEN}
73
+
74
+ # PostgreSQL
75
+ claude mcp add postgres npx @modelcontextprotocol/server-postgres \
76
+ postgresql://localhost/mydb
77
+ ```
78
+
79
+ ## Step 4: Security Rules (Always Apply)
80
+
81
+ Before writing any `.mcp.json`:
82
+ - **Never hardcode secrets** — use `${ENV_VAR}` syntax always
83
+ - **Pin versions** — use `@1.2.3` not `@latest` in production
84
+ - **Scope to project** — use `claude mcp add --scope project` not global when possible
85
+ - Run `/sentinel` after adding MCPs to verify the config scores cleanly
86
+
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "context7": {
91
+ "command": "npx",
92
+ "args": ["-y", "@upstash/context7-mcp@1.0.0"]
93
+ },
94
+ "brave-search": {
95
+ "command": "npx",
96
+ "args": ["-y", "@modelcontextprotocol/server-brave-search"],
97
+ "env": { "BRAVE_API_KEY": "${BRAVE_API_KEY}" }
98
+ }
99
+ }
100
+ }
101
+ ```
102
+
103
+ ## Step 5: Verify Installation
104
+
105
+ ```bash
106
+ claude mcp list # shows configured servers
107
+ claude mcp get context7 # shows context7 config
108
+ ```
109
+
110
+ Then test in Claude Code: ask Claude "use context7 to get the latest React docs" — if it returns live docs, it's working.
111
+
112
+ For full MCP catalog: `references/mcp-catalog.md`
@@ -0,0 +1,54 @@
1
+ # MCP Catalog — Full Reference
2
+
3
+ ## Universal (all projects)
4
+
5
+ | Name | Package | API Key | Use in AZCLAUDE |
6
+ |------|---------|---------|-----------------|
7
+ | Context7 | `@upstash/context7-mcp` | None | Inject live library docs into /add, /fix, /copilot |
8
+ | Sequential Thinking | `@modelcontextprotocol/server-sequential-thinking` | None | Better reasoning in orchestrator, /blueprint, /debate |
9
+
10
+ ## Developer Tools
11
+
12
+ | Name | Package | API Key | Use in AZCLAUDE |
13
+ |------|---------|---------|-----------------|
14
+ | GitHub | `@modelcontextprotocol/server-github` | `GITHUB_TOKEN` (optional) | /issues, /ship, PR creation, repo search |
15
+ | Playwright | `@playwright/mcp` | None | E2E tests with qa-engineer, /test |
16
+ | Brave Search | `@modelcontextprotocol/server-brave-search` | `BRAVE_API_KEY` | /fix error lookup, /sentinel CVE research |
17
+ | Firecrawl | `firecrawl-mcp` | `FIRECRAWL_API_KEY` | Scrape live docs, competitor analysis |
18
+ | Sentry | `@sentry/mcp-server` | `SENTRY_TOKEN` | Pipe production errors into /fix sessions |
19
+
20
+ ## Database
21
+
22
+ | Name | Package | API Key | Use in AZCLAUDE |
23
+ |------|---------|---------|-----------------|
24
+ | Supabase | `@supabase/mcp-server-supabase` | `SUPABASE_ACCESS_TOKEN` | Schema exploration, migrations, Edge Functions |
25
+ | PostgreSQL | `@modelcontextprotocol/server-postgres` | DB URL | Natural language queries during dev |
26
+ | SQLite | `@modelcontextprotocol/server-sqlite` | None | Local DB for prototypes |
27
+
28
+ ## Design & Content
29
+
30
+ | Name | Package | API Key | Use in AZCLAUDE |
31
+ |------|---------|---------|-----------------|
32
+ | Figma | figma-mcp | `FIGMA_TOKEN` | Design-to-code with frontend-design skill |
33
+
34
+ ---
35
+
36
+ ## Install All Universal MCPs
37
+
38
+ ```bash
39
+ claude mcp add context7 npx @upstash/context7-mcp
40
+ claude mcp add sequential-thinking npx @modelcontextprotocol/server-sequential-thinking
41
+ ```
42
+
43
+ ## Verify
44
+
45
+ ```bash
46
+ claude mcp list
47
+ ```
48
+
49
+ ## Security Checklist
50
+
51
+ - [ ] No plaintext secrets in `.mcp.json` — use `${ENV_VAR}`
52
+ - [ ] Versions pinned (not `@latest`) for production
53
+ - [ ] Run `/sentinel` after changes to score MCP config
54
+ - [ ] `.mcp.json` in `.gitignore` if it contains env refs to local paths
@@ -15,7 +15,7 @@ Claude plans & calls tools
15
15
  [pre-tool-use.js] — intercepts 3 tool types before execution:
16
16
  Bash → blocks curl|bash RCE, destructive rm; warns npm install, env var echo
17
17
  Read → warns on credential file access (.env, secrets.json, id_rsa, .pem)
18
- Write → 14 code vulnerability pattern rules (see table below)
18
+ Write → 19 code vulnerability pattern rules (see table below)
19
19
  ↓ ↓
20
20
  [post-tool-use.js] /tmp/.azclaude-seclog-{PID}
21
21
  behavioral sequence ↑ shared session event log
@@ -106,6 +106,10 @@ Scans all Edit/Write/MultiEdit operations. Warnings → stderr. Secrets → exit
106
106
  - `yaml-unsafe-load` → use `yaml.safe_load()` — always
107
107
  - `path-traversal` → use `path.resolve()` + validate result starts with allowed base dir
108
108
  - `prompt-injection-write` → review content before writing to files that will be read by AI agents; never embed instruction-like text in project files
109
+ - `c-gets` → use `fgets(buf, sizeof(buf), stdin)` or `getline()` — always specify buffer bounds
110
+ - `php-shell-exec` → use `escapeshellarg()` / `escapeshellcmd()`, or avoid shell calls entirely
111
+ - `java-runtime-exec` → use `new ProcessBuilder(List.of("cmd", "arg1")).start()` with a String array
112
+ - `jinja2-ssti` → use `render_template("file.html", ...)` with a file-based template, never render raw strings
109
113
  - `hardcoded-secret` → use environment variables (`process.env.MY_SECRET` / `os.environ['MY_SECRET']`)
110
114
 
111
115
  ---