ai-development-framework 0.1.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.
Files changed (56) hide show
  1. package/.claude/agents/_template/AGENT.md +36 -0
  2. package/.claude/agents/architect-agent/AGENT.md +60 -0
  3. package/.claude/agents/architect-agent/decisions/log.md +18 -0
  4. package/.claude/agents/architect-agent/frontend/.gitkeep +0 -0
  5. package/.claude/agents/architect-agent/index.md +32 -0
  6. package/.claude/agents/architect-agent/modules/.gitkeep +0 -0
  7. package/.claude/agents/architect-agent/shared/patterns.md +19 -0
  8. package/.claude/agents/mobile-tester-agent/AGENT.md +46 -0
  9. package/.claude/agents/mobile-tester-agent/screen-patterns.md +42 -0
  10. package/.claude/agents/tester-agent/AGENT.md +44 -0
  11. package/.claude/agents/tester-agent/auth-state.md +22 -0
  12. package/.claude/agents/tester-agent/test-patterns.md +36 -0
  13. package/.claude/agents/ui-ux-analyzer/AGENT.md +75 -0
  14. package/.claude/commands/create-prd.md +55 -0
  15. package/.claude/commands/evolve.md +84 -0
  16. package/.claude/commands/execute.md +76 -0
  17. package/.claude/commands/plan-feature.md +100 -0
  18. package/.claude/commands/plan-project.md +110 -0
  19. package/.claude/commands/prime.md +71 -0
  20. package/.claude/commands/setup.md +81 -0
  21. package/.claude/commands/ship.md +73 -0
  22. package/.claude/commands/start.md +63 -0
  23. package/.claude/commands/validate.md +72 -0
  24. package/.claude/hooks/architect-sync.sh +18 -0
  25. package/.claude/hooks/branch-guard.sh +15 -0
  26. package/.claude/hooks/evolve-reminder.sh +13 -0
  27. package/.claude/hooks/plan-required.sh +20 -0
  28. package/.claude/hooks/session-primer.sh +38 -0
  29. package/.claude/references/claude-md-template.md +90 -0
  30. package/.claude/references/code-patterns.md +37 -0
  31. package/.claude/references/issue-template.md +56 -0
  32. package/.claude/references/plan-template.md +92 -0
  33. package/.claude/references/prd-template.md +119 -0
  34. package/.claude/rules/_global.md +22 -0
  35. package/.claude/rules/_template.md +23 -0
  36. package/.claude/rules/backend.md +29 -0
  37. package/.claude/rules/database.md +28 -0
  38. package/.claude/rules/frontend.md +34 -0
  39. package/.claude/rules/mobile.md +33 -0
  40. package/.claude/rules/testing.md +37 -0
  41. package/.claude/settings.local.json +27 -0
  42. package/.claude/skills/e2e-test/SKILL.md +87 -0
  43. package/.claude/skills/playwright-cli/SKILL.md +97 -0
  44. package/CLAUDE.md +65 -0
  45. package/README.md +83 -0
  46. package/cli/index.js +35 -0
  47. package/cli/init.js +219 -0
  48. package/cli/update.js +120 -0
  49. package/docs/command-reference.md +41 -0
  50. package/docs/customization.md +33 -0
  51. package/docs/getting-started.md +68 -0
  52. package/docs/methodology.md +78 -0
  53. package/docs/plans/2026-03-30-ai-development-framework-design.md +483 -0
  54. package/docs/plugin-install-guide.md +66 -0
  55. package/docs/superpowers/plans/2026-03-30-framework-implementation.md +3462 -0
  56. package/package.json +28 -0
@@ -0,0 +1,483 @@
1
+ # AIDevelopmentFramework — Design Document
2
+
3
+ **Date:** 2026-03-30
4
+ **Status:** Approved
5
+ **Authors:** Cristian-Robert Iosef + Claude
6
+
7
+ ## 1. Vision
8
+
9
+ An open-source framework that makes AI coding assistants reliable and predictable. The value isn't the AI writing code — it's the **system around the AI** (plans, rules, commands, validation) that makes the AI dependable.
10
+
11
+ **Tagline:** "The system around the AI that makes the AI reliable."
12
+
13
+ **Target audience:** Developers adopting AI coding tools (Claude Code primary, methodology portable to Cursor/Windsurf/Cline/Gemini CLI).
14
+
15
+ ## 2. Core Philosophy: PIV+E Loop
16
+
17
+ ```
18
+ PLAN → IMPLEMENT → VALIDATE → EVOLVE
19
+ ↑ │
20
+ └──────────────────────────────┘
21
+ System gets smarter
22
+ ```
23
+
24
+ - **Plan** — Human decides what to build, AI helps structure the thinking
25
+ - **Implement** — AI does the heavy lifting, guided by a detailed plan
26
+ - **Validate** — Human + AI verify the work meets standards
27
+ - **Evolve** — Every cycle makes the system smarter (self-improving system)
28
+
29
+ ### Key Principles
30
+
31
+ 1. **Context is precious** — manage it deliberately; recommend context resets for complex work
32
+ 2. **Plans are artifacts** — they survive session boundaries (the "no prior knowledge" test)
33
+ 3. **Discipline scales with complexity** — XL features get full ceremony, S tweaks get fast-tracked
34
+ 4. **The system self-improves** — every AI mistake becomes a rule, pattern, or guardrail
35
+ 5. **Ship everything, install nothing** — framework works out of the box; external plugins stay fresh from source
36
+
37
+ ## 3. Scope Levels & Entry Points
38
+
39
+ The framework handles the full lifecycle from idea to production:
40
+
41
+ | Level | Entry Point | Trigger | Pipeline |
42
+ |-------|------------|---------|----------|
43
+ | L-1 | Onboard | Joining existing project | /prime → /create-rules → architect setup |
44
+ | L0 | Project | Starting from an idea | /brainstorm → /create-prd → /plan-project → /create-rules → /init-project |
45
+ | L1 | Feature | New feature request | /brainstorm → /plan-feature → creates issue(s) → L2 per issue |
46
+ | L2 | Issue | Existing GitHub issue | gh issue view → /prime → /brainstorm? → /writing-plans → implement → validate |
47
+ | L3 | Bug | Bug report | gh issue view → /prime → /systematic-debugging → fix → validate |
48
+
49
+ ### Discipline Scaling
50
+
51
+ | Issue Size | Plan Phase | Implement Phase | Validate Phase |
52
+ |-----------|-----------|----------------|---------------|
53
+ | XL (epic) | Full brainstorm + plan + context reset | TDD + parallel agents | Full testing + code review |
54
+ | L (feature) | Brainstorm + plan | TDD + execute | Testing + code review |
55
+ | M (task) | Quick plan | Execute | Verification + commit |
56
+ | S (tweak) | Read issue | Just do it | Verification + commit |
57
+ | Bug | Systematic debug | Fix + regression test | Verification + commit |
58
+
59
+ ### Context Reset Guidance
60
+
61
+ - **L0/L1:** Recommended between Plan and Implement (lots of research noise)
62
+ - **Complex L2 (>5 plan steps):** Recommended
63
+ - **Simple L2, L3:** Stay in session, plans are written artifacts anyway
64
+ - `/prime` reloads context in any new session
65
+
66
+ ## 4. Architecture: Layered Pipeline
67
+
68
+ ### Distribution Model
69
+
70
+ | Category | Where It Lives | Who Updates It |
71
+ |----------|---------------|----------------|
72
+ | Pipeline commands | Framework repo `.claude/commands/` | Framework maintainers |
73
+ | Agent templates | Framework repo `.claude/agents/` | Framework maintainers + user customizes |
74
+ | Domain rules | Framework repo `.claude/rules/` | Generated per project by /create-rules, updated by /evolve |
75
+ | Reference templates | Framework repo `.claude/references/` | Framework maintainers (templates) + /create-rules (fills in) |
76
+ | Hooks | Framework repo `.claude/hooks/` | Framework maintainers |
77
+ | Workflow skills | External plugins (superpowers, etc.) | Plugin maintainers (always latest) |
78
+ | Domain skills | External global skills | Skill maintainers (always latest) |
79
+ | MCP servers | External plugin marketplace | MCP maintainers |
80
+ | CLAUDE.md | Generated per project | /create-rules + /evolve |
81
+
82
+ ### Directory Structure
83
+
84
+ ```
85
+ AIDevelopmentFramework/
86
+ ├── .claude/
87
+ │ │
88
+ │ ├── commands/ ← LAYER 1: Pipeline (user-facing)
89
+ │ │ ├── start.md ← Smart router (detects scope level)
90
+ │ │ ├── prime.md ← Context loader
91
+ │ │ ├── create-prd.md ← PRD generator (calls /brainstorm internally)
92
+ │ │ ├── plan-project.md ← PRD → GitHub milestones + issues
93
+ │ │ ├── plan-feature.md ← Feature → implementation plan + issues
94
+ │ │ ├── execute.md ← Plan executor (dispatches TDD, agents, skills)
95
+ │ │ ├── validate.md ← Verification orchestrator
96
+ │ │ ├── ship.md ← Commit + push + PR + finish branch
97
+ │ │ ├── evolve.md ← Self-improvement (update rules + knowledge)
98
+ │ │ └── setup.md ← Health check for plugins/skills/MCP
99
+ │ │
100
+ │ ├── agents/ ← LAYER 2: Specialists
101
+ │ │ ├── architect-agent/ ← Codebase knowledge base (RETRIEVE/IMPACT/RECORD/PATTERN)
102
+ │ │ │ ├── AGENT.md
103
+ │ │ │ ├── index.md ← Knowledge base TOC (generated per project)
104
+ │ │ │ ├── modules/ ← Domain knowledge files
105
+ │ │ │ ├── frontend/ ← Frontend-specific knowledge
106
+ │ │ │ ├── shared/ ← Cross-cutting patterns
107
+ │ │ │ └── decisions/ ← Architecture decision log
108
+ │ │ ├── tester-agent/ ← Web browser testing (VERIFY/FLOW)
109
+ │ │ │ ├── AGENT.md
110
+ │ │ │ ├── test-patterns.md ← Page inventory (generated per project)
111
+ │ │ │ └── auth-state.md ← Test credentials
112
+ │ │ ├── mobile-tester-agent/ ← Mobile app testing
113
+ │ │ │ ├── AGENT.md
114
+ │ │ │ └── screen-patterns.md
115
+ │ │ ├── ui-ux-analyzer/ ← Design audit agent
116
+ │ │ │ └── AGENT.md
117
+ │ │ └── _template/ ← Agent scaffold for custom agents
118
+ │ │ └── AGENT.md
119
+ │ │
120
+ │ ├── skills/ ← LAYER 2: Framework-specific skills only
121
+ │ │ ├── e2e-test/ ← E2E test orchestration (fix-during-test loop)
122
+ │ │ │ └── SKILL.md
123
+ │ │ └── playwright-cli/ ← Playwright command reference
124
+ │ │ └── SKILL.md
125
+ │ │
126
+ │ ├── rules/ ← LAYER 3: Auto-loaded by file path context
127
+ │ │ ├── _global.md ← Always active (~30 lines)
128
+ │ │ ├── backend.md ← Loads for backend paths
129
+ │ │ ├── frontend.md ← Loads for frontend paths
130
+ │ │ ├── mobile.md ← Loads for mobile paths
131
+ │ │ ├── database.md ← Loads for migration/schema paths
132
+ │ │ ├── testing.md ← Loads for test paths
133
+ │ │ └── _template.md ← For custom domain rules
134
+ │ │
135
+ │ ├── references/ ← LAYER 3: On-demand templates & patterns
136
+ │ │ ├── prd-template.md ← PRD structure (used by /create-prd)
137
+ │ │ ├── plan-template.md ← Implementation plan structure (used by /plan-feature)
138
+ │ │ ├── claude-md-template.md ← CLAUDE.md generation template (used by /create-rules)
139
+ │ │ ├── issue-template.md ← GitHub issue template (used by /plan-project)
140
+ │ │ └── code-patterns.md ← Generated per project by /create-rules
141
+ │ │
142
+ │ ├── hooks/ ← Automated guardrails
143
+ │ │ ├── branch-guard.sh ← Blocks direct commits to main/master
144
+ │ │ ├── plan-required.sh ← Warns if no plan exists for current branch
145
+ │ │ ├── architect-sync.sh ← Reminds to RECORD after structural changes
146
+ │ │ ├── evolve-reminder.sh ← Reminds to /evolve after PR
147
+ │ │ └── session-primer.sh ← Auto-context load on session start
148
+ │ │
149
+ │ └── settings.local.json ← Permission whitelist (pre-configured)
150
+
151
+ ├── docs/
152
+ │ ├── methodology.md ← PIV+E explained (tool-agnostic, portable)
153
+ │ ├── getting-started.md ← Quick start guide
154
+ │ ├── command-reference.md ← All 10 commands documented
155
+ │ ├── customization.md ← How to add agents, skills, rules
156
+ │ ├── plugin-install-guide.md ← Required plugins + skills with install commands
157
+ │ └── plans/ ← Generated plans stored here
158
+
159
+ ├── cli/
160
+ │ ├── index.js ← Entry point (npx ai-framework init)
161
+ │ ├── init.js ← Interactive project setup
162
+ │ ├── commands/ ← CLI subcommands
163
+ │ └── templates/ ← Scaffolding templates
164
+
165
+ ├── CLAUDE.md ← Framework's own rules
166
+ ├── package.json
167
+ └── README.md
168
+ ```
169
+
170
+ ## 5. Progressive Disclosure
171
+
172
+ ### Three-Tier Information Loading
173
+
174
+ **Tier 1: Always loaded (CLAUDE.md — under 150 lines)**
175
+ - Project overview + tech stack
176
+ - PIV+E pipeline (6 commands listed, not explained)
177
+ - Core principles (5 bullets)
178
+ - Mode selection (Superpowers vs Standard)
179
+ - Pointers to `.claude/rules/` and `.claude/references/`
180
+
181
+ **Tier 2: Auto-loaded by context (.claude/rules/)**
182
+ - Rules activate based on file paths being edited
183
+ - Each rule file is under 50 lines
184
+ - Contains skill chains for that domain (e.g., architect → design → shadcn → tester)
185
+ - References `code-patterns.md` for examples instead of inlining them
186
+
187
+ **Tier 3: On-demand (.claude/references/, agent knowledge bases)**
188
+ - Loaded by commands/agents when needed
189
+ - PRD template loaded by `/create-prd`
190
+ - Plan template loaded by `/plan-feature`
191
+ - Agent modules loaded by architect-agent on RETRIEVE queries
192
+ - Code patterns loaded by `/execute` during implementation
193
+
194
+ ### User Experience by Expertise Level
195
+
196
+ | User Level | What They See | How They Interact |
197
+ |-----------|--------------|------------------|
198
+ | New user | `/start` guides everything | Follow prompts, framework handles routing |
199
+ | Intermediate | 10 commands in CLAUDE.md | Jump directly to `/plan-feature`, `/execute`, etc. |
200
+ | Power user | Full `.claude/` structure | Customize agents, add rules, create skills |
201
+
202
+ ## 6. Hooks & Guardrails
203
+
204
+ ### Hook Inventory
205
+
206
+ | Hook | Type | Triggers On | Action | Behavior |
207
+ |------|------|------------|--------|----------|
208
+ | security-check | PreToolUse | Edit, Write | OWASP/injection/XSS reminder | Remind (from security-guidance plugin) |
209
+ | branch-guard | PreToolUse | Bash (git commit/push) | Block direct commits to main/master | Block |
210
+ | plan-required | PreToolUse | Bash (implementation detection) | Warn if no plan file for current branch | Warn |
211
+ | architect-sync | PostToolUse | Write, Edit (structural files) | Remind to run architect-agent RECORD | Remind |
212
+ | loop-prevention | Stop | Agent loops | Break infinite loops | Block (from ralph-loop plugin) |
213
+ | evolve-reminder | Stop | After PR commands | Remind to run /evolve | Remind |
214
+ | session-primer | Notification | Session start | Auto lightweight context load | Inform |
215
+
216
+ ### Philosophy
217
+ - Hooks REMIND, they don't BLOCK (except branch-guard and loop-prevention)
218
+ - The developer always has the final say
219
+ - Hooks are pre-configured but can be disabled in settings
220
+
221
+ ## 7. Command Pipeline (Detailed)
222
+
223
+ ### /start — Smart Router
224
+ ```
225
+ Detects current state:
226
+ - No CLAUDE.md? → Suggest /setup then L-1 onboard
227
+ - No PRD, no issues? → Route to L0 (project from scratch)
228
+ - Has PRD, no issues? → Route to /plan-project
229
+ - Has issues? → Ask which one, route to L2
230
+ - Bug label? → Route to L3
231
+
232
+ Asks:
233
+ "What are you working on?"
234
+ 1. Starting a new project from an idea
235
+ 2. Planning a new feature
236
+ 3. Working on a GitHub issue (#number)
237
+ 4. Fixing a bug
238
+ 5. Joining an existing project
239
+
240
+ Routes to correct pipeline with appropriate ceremony level.
241
+ ```
242
+
243
+ ### /prime — Context Loader
244
+ ```
245
+ Runs:
246
+ - git ls-files (project structure)
247
+ - tree -L 3 (visual layout)
248
+ - Reads CLAUDE.md, PRD, active plans
249
+ - git log -10 (recent history)
250
+ - git status + current branch
251
+ - Reads active GitHub issue if on a feature branch
252
+ - Checks for existing plan file for current branch
253
+
254
+ Outputs: Structured context summary report
255
+ When: Start of any session, or after context reset
256
+ ```
257
+
258
+ ### /create-prd — PRD Generator
259
+ ```
260
+ Internally calls: /brainstorm skill (mandatory)
261
+
262
+ Process:
263
+ 1. Brainstorm the idea (explore intent, constraints, success criteria)
264
+ 2. Propose 2-3 approaches with tradeoffs
265
+ 3. Once approach is chosen, generate PRD using references/prd-template.md
266
+ 4. PRD covers: executive summary, user stories, architecture,
267
+ API specs, implementation phases, risks, success criteria
268
+ 5. Human reviews and approves
269
+
270
+ Outputs: docs/plans/PRD.md
271
+ ```
272
+
273
+ ### /plan-project — PRD to GitHub Issues (NEW)
274
+ ```
275
+ Inputs: PRD.md
276
+
277
+ Process:
278
+ 1. Parse PRD into epics (major feature areas)
279
+ 2. Each epic → GitHub milestone
280
+ 3. Each epic decomposes into implementable issues:
281
+ - Title, description (from references/issue-template.md)
282
+ - Acceptance criteria
283
+ - Labels (feat/fix/chore, priority, S/M/L/XL)
284
+ - Dependencies (blocked-by relationships)
285
+ 4. Determine implementation order (critical path)
286
+ 5. Present full breakdown to human for review
287
+ 6. On approval: create via gh CLI
288
+ 7. Generate roadmap
289
+
290
+ Outputs: GitHub milestones + issues + docs/plans/roadmap.md
291
+ Re-runnable: Diffs against existing issues on subsequent runs
292
+ ```
293
+
294
+ ### /plan-feature — Feature Planner
295
+ ```
296
+ Inputs: Feature description or GitHub issue number
297
+
298
+ Process (5 phases from Cole's repo, enhanced):
299
+ Phase 1: Feature understanding (user stories, complexity)
300
+ Phase 2: Codebase intelligence (parallel sub-agents for structure, patterns, deps)
301
+ Phase 3: External research (context7, docs)
302
+ Phase 4: Strategic thinking (architect-agent IMPACT, edge cases, security)
303
+ Phase 5: Plan generation (using references/plan-template.md)
304
+
305
+ Plan includes:
306
+ - Mandatory reading list (files + line numbers)
307
+ - New files to create
308
+ - Patterns to follow (with code examples from code-patterns.md)
309
+ - Step-by-step tasks with validation commands
310
+ - GOTCHA warnings per task
311
+ - Testing strategy
312
+ - Confidence score (1-10)
313
+
314
+ If no GitHub issue exists: creates one
315
+ If feature is large: creates multiple issues with dependencies
316
+
317
+ Outputs: docs/plans/{feature-name}.md + GitHub issue(s)
318
+ ```
319
+
320
+ ### /execute — Plan Executor
321
+ ```
322
+ Inputs: Path to plan file (auto-detected from current branch if not specified)
323
+
324
+ Process:
325
+ 1. Read plan file
326
+ 2. For each task:
327
+ a. Call /test-driven-development (write test first)
328
+ b. Implement the change
329
+ c. Run validation command from plan
330
+ d. If fail: fix and retry
331
+ e. If pass: move to next task
332
+ 3. Use domain skills as specified in plan (architect-agent, design, DB, etc.)
333
+ 4. Dispatch parallel agents for independent tasks (/dispatching-parallel-agents)
334
+ 5. Generate completion report
335
+
336
+ Outputs: Working code, passing tests, completion report
337
+ ```
338
+
339
+ ### /validate — Verification Orchestrator
340
+ ```
341
+ Process:
342
+ 1. /verification-before-completion (lint, types, tests)
343
+ 2. Detect what changed:
344
+ - Frontend files? → tester-agent VERIFY + FLOW
345
+ - Mobile files? → mobile-tester-agent VERIFY + FLOW
346
+ - API/backend? → integration tests + Supabase advisors
347
+ - UI changes? → ui-ux-analyzer (optional, on request)
348
+ 3. E2E test skill if applicable (fix-during-test loop)
349
+ 4. /requesting-code-review
350
+
351
+ Outputs: Test results, review feedback, confidence assessment
352
+ ```
353
+
354
+ ### /ship — Commit + Push + PR
355
+ ```
356
+ Process:
357
+ 1. /commit (conventional commit, staged changes)
358
+ 2. Push to remote
359
+ 3. Create PR via gh CLI:
360
+ - Title from plan/issue
361
+ - Body: summary + test plan + link to issue
362
+ - Request reviewers if configured
363
+ 4. /finishing-a-development-branch
364
+
365
+ Outputs: Merged PR closing the GitHub issue
366
+ ```
367
+
368
+ ### /evolve — Self-Improvement
369
+ ```
370
+ Process:
371
+ 1. /revise-claude-md (update CLAUDE.md from session learnings)
372
+ 2. architect-agent RECORD (update codebase knowledge base)
373
+ 3. Check: did any hook fire that revealed a pattern gap?
374
+ - If yes: add to rules/ or references/code-patterns.md
375
+ 4. Check: did any test fail unexpectedly?
376
+ - If yes: add pattern to testing.md rule
377
+ 5. Report what was updated
378
+
379
+ Outputs: Updated rules, knowledge base, patterns
380
+ ```
381
+
382
+ ### /setup — Health Check
383
+ ```
384
+ Process:
385
+ 1. Check installed plugins vs required list
386
+ 2. Check installed skills
387
+ 3. Check MCP server configuration
388
+ 4. Report: ✅ installed / ❌ missing / ⚠️ outdated
389
+ 5. Provide exact install commands for missing items
390
+
391
+ Outputs: Health report + install instructions
392
+ Re-runnable anytime
393
+ ```
394
+
395
+ ## 8. External Dependencies
396
+
397
+ ### Required Plugins (install from source for latest versions)
398
+
399
+ **Core Workflow (must have):**
400
+ - superpowers — PIV+E workflow skills (brainstorm, TDD, debug, plans, verification, etc.)
401
+ - feature-dev — Guided feature development with bundled agents
402
+ - code-review — PR review with multi-agent analysis
403
+ - commit-commands — Git commit + push + PR workflows
404
+ - claude-md-management — CLAUDE.md audit and improvement
405
+ - security-guidance — PreToolUse security reminders
406
+ - skill-creator — Create and modify skills
407
+
408
+ **Framework Support:**
409
+ - firecrawl — Web operations (search, scrape, crawl)
410
+ - frontend-design — UI/UX design patterns
411
+ - claude-code-setup — Automation recommendations
412
+ - agent-sdk-dev — Agent SDK app scaffolding
413
+
414
+ **Stack-Specific (install what applies):**
415
+ - context7 — Library/framework documentation lookup
416
+ - supabase — Database operations MCP
417
+ - typescript-lsp — Language server support
418
+ - expo-app-design — Expo/React Native skills (8 sub-skills)
419
+
420
+ ### Required Global Skills (33+)
421
+ Installed via their own mechanisms. Full list in `docs/plugin-install-guide.md`.
422
+
423
+ Categories: web automation, frontend design (3 variants), frameworks, testing/QA, security, research, web scraping, payment integration.
424
+
425
+ ### MCP Servers (configure per project)
426
+ shadcn, context7, supabase, mobile-mcp — configured in project's settings.
427
+
428
+ ## 9. CLI Tool
429
+
430
+ ### `npx ai-framework init`
431
+
432
+ Interactive setup that generates `.claude/` for any project:
433
+
434
+ ```
435
+ 1. Detect or ask: new project vs existing codebase
436
+ 2. Detect or ask: tech stack
437
+ 3. Ask: GitHub Issues for tracking? Repo URL?
438
+ 4. Generate .claude/ structure:
439
+ - commands/ (10 pipeline commands)
440
+ - agents/ (4 agent templates, knowledge bases initialized)
441
+ - rules/ (domain rules customized for detected stack)
442
+ - references/ (templates + auto-detected code patterns)
443
+ - hooks/ (guardrails configured)
444
+ - settings.local.json (permissions)
445
+ - CLAUDE.md (generated, under 150 lines)
446
+ 5. Check external dependencies → report missing + install commands
447
+ 6. Offer to run /prime for initial context load
448
+ ```
449
+
450
+ ### `npx ai-framework update`
451
+
452
+ Updates framework commands, agents, rules templates to latest version without overwriting project-specific customizations (knowledge bases, code-patterns, generated CLAUDE.md).
453
+
454
+ ## 10. Design Decisions
455
+
456
+ | Decision | Choice | Rationale |
457
+ |----------|--------|-----------|
458
+ | Audience | Open-source framework | Broadest impact, community-driven improvement |
459
+ | Tool target | Claude Code primary, methodology portable | Richest automation surface, concepts transfer |
460
+ | Lifecycle | Full (bootstrap → ongoing development) | Neither source repo covers both |
461
+ | Distribution | Scaffold repo + CLI tool | Methodology is forkable, CLI makes it practical |
462
+ | Context management | Hybrid (recommend resets, don't force) | Discipline scales with complexity |
463
+ | Agents | Pluggable (core set + template for custom) | Universal agents ship, project-specific ones are user-created |
464
+ | Bundling | Ship everything in .claude/ | No module management, users ignore what they don't need |
465
+ | External deps | Users install plugins/skills from source | Always latest versions, no staleness |
466
+ | Pipeline | PIV+E (Plan, Implement, Validate, Evolve) | Cole's PIV + bzroo's self-improvement = 4 phases |
467
+ | Information loading | Progressive disclosure (3 tiers) | New users aren't overwhelmed, power users have full access |
468
+ | Hooks | Remind, don't block (mostly) | Developer autonomy preserved, nudges toward best practices |
469
+
470
+ ## 11. Source Attribution
471
+
472
+ This framework synthesizes approaches from:
473
+
474
+ - **Cole Medin's ai-coding-summit-workshop-2**: PIV loop, /prime context loader, /create-prd, /plan-feature with confidence scores, /create-rules auto-generation, context reset between phases, "commandify everything" philosophy, self-improving system mindset, e2e-test fix-during-test loop, plan-as-specification pattern
475
+ - **bzroo project (.claude/ setup)**: Architect-agent knowledge base with progressive disclosure, tester-agent/mobile-tester-agent protocols, domain-specific auto-loading rules, Superpowers pipeline (brainstorm → TDD → execute → verify → finish), skill recipes and composability, GitHub issue-driven workflow, mode selection (Superpowers vs Standard)
476
+
477
+ ## 12. Success Criteria
478
+
479
+ 1. A new user can go from `npx ai-framework init` to shipping their first feature in under 30 minutes
480
+ 2. The PIV+E loop produces consistent, high-quality code across different tech stacks
481
+ 3. The self-improving system measurably reduces AI mistakes over time (fewer hook reminders, higher plan confidence scores)
482
+ 4. The methodology section is useful even without Claude Code (portable to other tools)
483
+ 5. Community can contribute agents, rules templates, and stack-specific presets
@@ -0,0 +1,66 @@
1
+ # Plugin and Skill Install Guide
2
+
3
+ ## Required Plugins
4
+
5
+ ### Core Workflow (Must Have)
6
+ ```bash
7
+ claude plugin install superpowers
8
+ claude plugin install feature-dev
9
+ claude plugin install code-review
10
+ claude plugin install commit-commands
11
+ claude plugin install claude-md-management
12
+ claude plugin install security-guidance
13
+ claude plugin install skill-creator
14
+ ```
15
+
16
+ ### Framework Support (Recommended)
17
+ ```bash
18
+ claude plugin install firecrawl
19
+ claude plugin install frontend-design
20
+ claude plugin install claude-code-setup
21
+ claude plugin install agent-sdk-dev
22
+ ```
23
+
24
+ ### Stack-Specific (Install What You Use)
25
+ ```bash
26
+ # For any project using frameworks/libraries
27
+ claude plugin install context7
28
+
29
+ # For Supabase projects
30
+ claude plugin install supabase
31
+
32
+ # For TypeScript projects
33
+ claude plugin install typescript-lsp
34
+
35
+ # For Expo/React Native projects
36
+ claude plugin install expo-app-design --marketplace expo-plugins
37
+ ```
38
+
39
+ ## Global Skills
40
+
41
+ Skills are installed separately from plugins. Key categories:
42
+
43
+ **Web and Frontend:** agent-browser, frontend-design, frontend-aesthetics, ui-ux-pro-max, shadcn-ui, nextjs-app-router-patterns, vercel-react-best-practices, web-design-guidelines
44
+
45
+ **Backend and Database:** fastapi-python, mongodb, mongodb-development, supabase-postgres-best-practices, stripe-best-practices
46
+
47
+ **Testing and Security:** qa-test-planner, security-audit, web-security-testing, pentest-expert
48
+
49
+ **Research and Content:** research, search, crawl, extract, multi-ai-research, tavily-best-practices
50
+
51
+ **Mobile:** All expo-app-design sub-skills (building-native-ui, native-data-fetching, expo-tailwind-setup, expo-dev-client, expo-api-routes, use-dom, expo-ui-swift-ui, expo-ui-jetpack-compose)
52
+
53
+ ## MCP Servers
54
+
55
+ Configure per project as needed:
56
+
57
+ | Server | Purpose |
58
+ |--------|---------|
59
+ | context7 | Framework/library documentation |
60
+ | shadcn | shadcn/ui component search |
61
+ | supabase | Database operations |
62
+ | mobile-mcp | Mobile simulator testing |
63
+
64
+ ## Checking Installation
65
+
66
+ Run `/setup` at any time to see what's installed and what's missing.