Skip to content

Commit 28e962a

Browse files
alexsoyesclaude
andcommitted
feat(aidd-context): bootstrap stands up a running skeleton (scaffold vision)
Replace the design-only bootstrap (INSTALL.md docs) with a 13-action init-* flow that materializes a validated INSTALL.md into a running, proven skeleton (architecture, deps, env, db, quality gate, tests, containers, design system, CI). Lift the ARCHITECTURE firewall to allow this scoped exception (architecture-100%/business-0%). Add the aidd-orchestrator:01-scaffold orchestrator and register it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 647fe5a commit 28e962a

33 files changed

Lines changed: 815 additions & 445 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
### A community-maintained marketplace of skills, agents, and rules for Claude Code.
88

99
<p>
10-
<!--counts:start--><kbd>6 plugins</kbd> · <kbd>37 skills</kbd> · <kbd>3 agents</kbd><!--counts:end--> · <kbd>MIT</kbd>
10+
<!--counts:start--><kbd>6 plugins</kbd> · <kbd>38 skills</kbd> · <kbd>3 agents</kbd><!--counts:end--> · <kbd>MIT</kbd>
1111
</p>
1212

1313
<p>
@@ -184,7 +184,7 @@ Meta-cognition: brainstorm, challenge, condense, shadow-areas, fact-check.
184184

185185
### 🎼 [aidd-orchestrator](plugins/aidd-orchestrator/README.md)
186186

187-
`1 skill` · stable (`async-dev`)
187+
`2 skills` · stable (`async-dev`)
188188

189189
Label an issue, get a PR; re-label, get the review applied. Router-based skill: one entry point, three sub-flows (setup, run, review).
190190

‎aidd_docs/tasks/2026_06/2026_06_09-scaffold-to-bootstrap-migration-master.md‎

Lines changed: 304 additions & 0 deletions
Large diffs are not rendered by default.

‎docs/ARCHITECTURE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Every capability lives in exactly one plugin, chosen by **concern**. This taxono
9393

9494
Three rules follow:
9595

96-
- **Knowledge vs execution is a firewall.** Knowledge plugins produce artifacts you *read* (docs, plans, memory) and never write or run application source - `aidd-context`'s bootstrap deliberately creates no `package.json` or source files. Real code belongs to `aidd-dev` or an orchestrator's own setup actions.
96+
- **Knowledge vs execution is a firewall.** Knowledge plugins produce artifacts you *read* (docs, plans, memory) and never author business logic. One scoped exception: `aidd-context`'s bootstrap may *materialize a validated `INSTALL.md`* into a running skeleton - folder structure, swappable building blocks, tooling (typecheck/lint/format, tests, containers), smoke tests - staying **architecture-100% / business-0%**. Application logic still belongs to `aidd-dev`; an orchestrator owns only the sequencing across concerns.
9797
- **Concern decides placement, not existence.** A missing capability goes in the plugin whose concern owns it, then the caller delegates. Never reimplement it in the calling plugin because the right home lacks it today.
9898
- **Orchestration = sequencing across multiple concerns** with little domain logic. Any skill may delegate a sub-step ([Cross-plugin orthogonality](#cross-plugin-orthogonality)); doing so once does not make it an orchestrator. The orchestrator owns only glue and delegates the depth, handing off through a seam artifact (e.g. an `INSTALL.md` one plugin produces and another consumes).
9999

‎plugins/aidd-context/CATALOG.md‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,25 @@ Auto-generated index of skills, agents, references and assets shipped by the `ai
5454

5555
| Group | File | Description |
5656
|-------|------|---|
57-
| `actions` | [01-gather-needs.md](skills/01-bootstrap/actions/01-gather-needs.md) | - |
58-
| `actions` | [02-propose-candidates.md](skills/01-bootstrap/actions/02-propose-candidates.md) | - |
59-
| `actions` | [03-audit-candidates.md](skills/01-bootstrap/actions/03-audit-candidates.md) | - |
60-
| `actions` | [04-pick-and-design.md](skills/01-bootstrap/actions/04-pick-and-design.md) | - |
61-
| `actions` | [05-write-install-md.md](skills/01-bootstrap/actions/05-write-install-md.md) | - |
62-
| `assets` | [checklist.md](skills/01-bootstrap/assets/checklist.md) | - |
63-
| `assets` | [install-template.md](skills/01-bootstrap/assets/install-template.md) | - |
57+
| `actions` | [01-check-prd.md](skills/01-bootstrap/actions/01-check-prd.md) | - |
58+
| `actions` | [02-gather-needs.md](skills/01-bootstrap/actions/02-gather-needs.md) | - |
59+
| `actions` | [03-choose-stack.md](skills/01-bootstrap/actions/03-choose-stack.md) | - |
60+
| `actions` | [04-init-install-md.md](skills/01-bootstrap/actions/04-init-install-md.md) | - |
61+
| `actions` | [05-init-architecture.md](skills/01-bootstrap/actions/05-init-architecture.md) | - |
62+
| `actions` | [06-init-dependencies.md](skills/01-bootstrap/actions/06-init-dependencies.md) | - |
63+
| `actions` | [07-init-env.md](skills/01-bootstrap/actions/07-init-env.md) | - |
64+
| `actions` | [08-init-database.md](skills/01-bootstrap/actions/08-init-database.md) | - |
65+
| `actions` | [09-init-quality-gate.md](skills/01-bootstrap/actions/09-init-quality-gate.md) | - |
66+
| `actions` | [10-init-tests.md](skills/01-bootstrap/actions/10-init-tests.md) | - |
67+
| `actions` | [11-init-containers.md](skills/01-bootstrap/actions/11-init-containers.md) | - |
68+
| `actions` | [12-init-design-system.md](skills/01-bootstrap/actions/12-init-design-system.md) | - |
69+
| `actions` | [13-init-ci.md](skills/01-bootstrap/actions/13-init-ci.md) | - |
70+
| `assets` | [INSTALL.md](skills/01-bootstrap/assets/INSTALL.md) | - |
71+
| `assets` | [README.md](skills/01-bootstrap/assets/README.md) | - |
6472
| `-` | [README.md](skills/01-bootstrap/README.md) | - |
73+
| `references` | [checklist.md](skills/01-bootstrap/references/checklist.md) | - |
6574
| `references` | [stack-heuristics.md](skills/01-bootstrap/references/stack-heuristics.md) | - |
66-
| `-` | [SKILL.md](skills/01-bootstrap/SKILL.md) | `Imagine and validate the technical architecture of a new SaaS through interactive Q&A, candidate-stack comparison, multi-agent audit, and an INSTALL.md output. Use when starting a new SaaS project, choosing a stack, designing the architecture pattern (monolith vs microservices vs serverless), or producing a project's INSTALL.md. Do NOT use for editing an existing project's stack, database schema design, or scaffolding actual files (this skill produces docs only, no code).` |
75+
| `-` | [SKILL.md](skills/01-bootstrap/SKILL.md) | `Imagine, validate, then stand up a new project. First designs the technical architecture - checks the PRD, gathers technical needs, chooses & audits the stack - into a validated `INSTALL.md` + `README.md`; then materializes that `INSTALL.md` into a running, proven skeleton via atomic `init-*` actions (architecture, dependencies, env, database, quality gate, tests, containers, design system, CI). Stack-agnostic - every build action reads `INSTALL.md` and names no technology. Architecture-100% / business-0%: never writes business logic. Use when starting a new project, choosing a stack, or standing up the running skeleton. Do NOT use to add features to an existing project or to write business logic.` |
6776

6877
#### `skills/02-project-init`
6978

‎plugins/aidd-context/skills/01-bootstrap/README.md‎

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,56 @@
22

33
# 01 - Bootstrap
44

5-
Plays the role of technical architect for a new SaaS project. Walks the user
6-
through a 24-item checklist, proposes 2-3 candidate stacks, audits each via
7-
parallel agents, then produces `aidd_docs/INSTALL.md` capturing the technical
8-
vision, decisions, stack, architecture pattern, folder tree, and install
9-
steps. Documentation only - no code, no scaffolding.
5+
Technical architect **and** builder for a new project. **Design** (actions 01-04): check the PRD, gather technical needs, choose & audit the stack, and produce a validated project-root `INSTALL.md` + `README.md`. **Build** (actions 05-13): materialize that validated `INSTALL.md` into a running, proven skeleton through atomic, stack-agnostic `init-*` actions. Architecture-100% / business-0% - never writes business logic (per the firewall in `docs/ARCHITECTURE.md`).
106

117
## When to use
128

13-
- Starting a brand-new SaaS project and choosing a stack.
9+
- Starting a brand-new project and choosing a stack.
1410
- Deciding the architecture pattern (monolith vs microservices vs serverless).
15-
- Producing a project's `INSTALL.md` from a fresh idea.
11+
- Standing up the running skeleton from a fresh idea.
1612

1713
## When NOT to use
1814

19-
- To edit an existing project's stack (the audit is too heavy for one
20-
swap-out).
21-
- For database schema design or detailed data modeling.
22-
- To scaffold actual files - this skill produces docs only.
15+
- Editing an existing project's stack (the audit is too heavy for one swap-out).
16+
- Database schema design or detailed data modeling.
17+
- Writing business logic (auth, domain rules, features).
2318

2419
## How to invoke
2520

2621
```
2722
Use skill aidd-context:01-bootstrap
2823
```
2924

30-
The skill walks 5 atomic actions in sequence:
25+
### Design phase → validated `INSTALL.md`
3126

32-
1. `gather-needs` - Q&A across the 24-item checklist (18 user-input, 6
33-
derived).
34-
2. `propose-candidates` - derive 2-3 candidate stacks and render a
35-
comparison table.
36-
3. `audit-candidates` - spawn parallel agents to validate each candidate
37-
and emit a verdict; if every candidate fails, loop back to `02` or `01`.
38-
4. `pick-and-design` - user picks the winner, then generate the folder tree
39-
and a Mermaid architecture diagram.
40-
5. `write-install-md` - produce `aidd_docs/INSTALL.md`.
27+
1. `check-prd` - verify a PRD exists; if not, stop and ask the user to create one (bootstrap can't start without it).
28+
2. `gather-needs` - ask the technical questions; product facts come from the PRD.
29+
3. `choose-stack` - propose 2-3 candidate stacks, audit each in parallel, user picks the winner, settle the architecture pattern + Mermaid diagram.
30+
4. `init-install-md` - write the project-root `INSTALL.md` + `README.md`. **`INSTALL.md` is born here.**
31+
32+
### Build phase → running skeleton
33+
34+
No build action runs until `INSTALL.md` is written and validated; conditional actions skip per `INSTALL.md`.
35+
36+
5. `init-architecture` - folder tree + reachable route stubs from the chosen pattern.
37+
6. `init-dependencies` - dependency manager + building blocks (swappable) + boot.
38+
7. `init-env` - `.env.example` + config loading.
39+
8. `init-database` - engine + baseline migration + seed fixtures + round-trip *(conditional)*.
40+
9. `init-quality-gate` - typecheck + format + lint + commit-linter + pre-commit (one gate).
41+
10. `init-tests` - runner + unit + e2e + coverage *(delegated)*.
42+
11. `init-containers` - container ups & downs cleanly *(conditional)*.
43+
12. `init-design-system` - design system *(front-only, delegated)*.
44+
13. `init-ci` - pipeline runs the quality gate + tests, green on the server *(conditional)*.
4145

4246
## Outputs
4347

44-
- `aidd_docs/INSTALL.md` capturing vision, decisions, chosen stack,
45-
architecture pattern, folder tree, install steps, and a Mermaid diagram.
48+
- A validated project-root `INSTALL.md` + `README.md`, then a running skeleton proven by each build action's gate.
4649

4750
## Prerequisites
4851

49-
- A clear (or at least loosely-formed) product idea to discuss.
50-
- A working directory where `aidd_docs/INSTALL.md` can be written.
52+
- A PRD / product brief (required - `check-prd` halts without it).
53+
- A working directory.
5154

5255
## Technical details
5356

54-
See [`SKILL.md`](SKILL.md) for the action contract, [`actions/`](actions/)
55-
for each step, `references/stack-heuristics.md` for the input → recommended
56-
stack-family heuristics, and `assets/checklist.md` + `assets/install-template.md`
57-
for the canonical 24-item checklist and `INSTALL.md` skeleton. The Mermaid
58-
architecture diagram in action 04 is rendered via the sibling
59-
`09-mermaid` skill.
57+
See [`SKILL.md`](SKILL.md) for the action contract, [`actions/`](actions/) for each step, `references/stack-heuristics.md`, and `assets/`. The Mermaid diagram (action 03) renders via the sibling `09-mermaid` skill; `init-tests` and `init-design-system` delegate to the capability that owns them, discovered by description.
Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,62 @@
11
---
22
name: 01-bootstrap
3-
description: Imagine and validate the technical architecture of a new SaaS through interactive Q&A, candidate-stack comparison, multi-agent audit, and an INSTALL.md output. Use when starting a new SaaS project, choosing a stack, designing the architecture pattern (monolith vs microservices vs serverless), or producing a project's INSTALL.md. Do NOT use for editing an existing project's stack, database schema design, or scaffolding actual files (this skill produces docs only, no code).
3+
description: Imagine, validate, then stand up a new project. First designs the technical architecture - checks the PRD, gathers technical needs, chooses & audits the stack - into a validated `INSTALL.md` + `README.md`; then materializes that `INSTALL.md` into a running, proven skeleton via atomic `init-*` actions (architecture, dependencies, env, database, quality gate, tests, containers, design system, CI). Stack-agnostic - every build action reads `INSTALL.md` and names no technology. Architecture-100% / business-0%: never writes business logic. Use when starting a new project, choosing a stack, or standing up the running skeleton. Do NOT use to add features to an existing project or to write business logic.
44
---
55

66
# Bootstrap
77

8-
Plays the role of technical architect for a new SaaS project. Walks the user through a 24-item checklist (18 user-input + 6 derived), proposes 2-3 candidate stacks, audits each via parallel agents, then produces `aidd_docs/INSTALL.md` capturing the technical vision, decisions, stack, architecture pattern, folder tree, and install steps. Documentation only - no code, no scaffolding.
8+
Technical architect **and** builder for a new project. Two phases. **Design** (01-04): check the PRD, gather technical needs, choose & audit the stack, write a validated `INSTALL.md` + `README.md`. **Build** (05-13): materialize that validated `INSTALL.md` into a running, proven skeleton through atomic, stack-agnostic `init-*` actions. Architecture-100% / business-0% - never writes business logic (per the firewall in `docs/ARCHITECTURE.md`).
99

1010
## Available actions
1111

12-
| # | Action | Role | Input |
13-
| --- | --------------------- | -------------------------------------------------------------- | ------------------ |
14-
| 01 | `gather-needs` | Q&A across the 24-item checklist | user intent |
15-
| 02 | `propose-candidates` | Derive 2-3 candidate stacks, render comparison table | filled checklist |
16-
| 03 | `audit-candidates` | Spawn parallel agents to validate each candidate, emit verdict | candidates table |
17-
| 04 | `pick-and-design` | User picks winner; generate folder tree + Mermaid diagram | audit report |
18-
| 05 | `write-install-md` | Produce `aidd_docs/INSTALL.md` | design + decisions |
12+
**Design phase** - produces the validated `INSTALL.md` (docs only):
13+
14+
| # | Action | Role | Input |
15+
| --- | ----------------- | ----------------------------------------------------------------------------- | ------------------ |
16+
| 01 | `check-prd` | Verify a PRD exists; if not, stop and ask the user to create one | project |
17+
| 02 | `gather-needs` | Ask the technical questions; product facts come from the PRD | PRD |
18+
| 03 | `choose-stack` | Propose 2-3 candidates + audit (parallel) + user picks + architecture pattern | needs |
19+
| 04 | `init-install-md` | Write `INSTALL.md` + project-root `README.md`. **INSTALL.md is born here.** | chosen stack |
20+
21+
**Build phase** - materializes the validated `INSTALL.md` into a running skeleton. `05`-`06` read `INSTALL.md` (design → code); each later action builds on the previous one's output - the materialized project, where the stack is already concrete. No action names a technology; each has its own gate:
22+
23+
| # | Action | Role | Delegate |
24+
| --- | -------------------- | --------------------------------------------------------------------- | ----------------- |
25+
| 05 | `init-architecture` | Folder tree + reachable route stubs from `INSTALL.md`'s pattern | owns |
26+
| 06 | `init-dependencies` | Dependency manager + building blocks (swappable) + boot | owns |
27+
| 07 | `init-env` | `.env.example` + config loading | owns |
28+
| 08 | `init-database` | Engine + baseline migration + fixtures + round-trip *(conditional)* | owns |
29+
| 09 | `init-quality-gate` | typecheck + format + lint + commit-linter + pre-commit (one gate) | owns |
30+
| 10 | `init-tests` | Runner + 1 unit + 1 e2e + coverage | testing capability |
31+
| 11 | `init-containers` | Container/compose ups & downs clean *(conditional)* | owns |
32+
| 12 | `init-design-system` | Design system *(front-only, conditional)* | design-system capability |
33+
| 13 | `init-ci` | Pipeline runs the quality gate + tests, green on the server *(conditional)* | owns |
1934

2035
## Default flow
2136

22-
`01 → 02 → 03 → 04 → 05`. Sequential. The audit (03) is a gate: if every candidate returns `❌`, loop back to 02 to revise candidates or 01 to revisit needs.
37+
**Design** `01 → 02 → 03 → 04`, then **Build** `05 → 06 → 07 → 08 → 09 → 10 → 11 → 12 → 13`. Sequential. `01-check-prd` is a hard gate: no PRD → stop. The audit inside `03` is a gate: if every candidate is `❌`, revise candidates and re-audit. **No build action runs until `INSTALL.md` is written and validated** (end of `04`). Conditional build actions (08, 11, 12, 13) skip when the project does not call for them. Each build action advances only when its own `## Test` gate is green.
2338

2439
## Transversal rules
2540

26-
- **No file scaffolding.** This skill writes only `aidd_docs/INSTALL.md`. It never creates `package.json`, source files, or empty directories.
27-
- **Anti-sycophancy.** When the user expresses a stack preference that conflicts with their needs (e.g. wants Mongo for heavily relational data), challenge it before accepting: surface audit concerns and ask whether the user has a mitigation plan.
28-
- **Recommend opinionated, not encyclopedic.** Each action proposes 2-3 options max, never a long catalog. The user should leave with a concrete decision, not a research paper.
29-
- **Stop on full checklist.** Action 01 keeps asking until the 18 user-input items (blocks 1-3) are filled; the 6 derived items (block 4) are filled across actions 02 and 04.
41+
- **PRD first.** `01-check-prd` halts the whole skill when no PRD exists - bootstrap never starts without product context.
42+
- **Design before build; never fabricate.** No build action (05+) runs until the human has validated `INSTALL.md`. The design phase invents nothing - it waits for the human at every gate.
43+
- **Architecture-100% / business-0%.** The build phase materializes a *validated* `INSTALL.md` - structure, building blocks, tooling, smoke tests - but never business logic (auth, domain rules, real features). Per the firewall in `docs/ARCHITECTURE.md`.
44+
- **Stack-agnostic build.** No `init-*` action names a technology of its own. The stack comes from `INSTALL.md` (read by `05`-`06`) and from the materialized project thereafter - never from the action prompt.
45+
- **Delegate, don't reinvent.** `init-tests` and `init-design-system` delegate to the capability that owns them (discovered by description, never a hardcoded plugin name).
46+
- **Anti-sycophancy.** When a user stack preference conflicts with the needs (e.g. wants Mongo for heavily relational data), challenge before accepting: surface the audit concerns, ask for a mitigation plan.
47+
- **Recommend opinionated, not encyclopedic.** Propose 2-3 options max, never a long catalog. The user leaves with a concrete decision, not a research paper.
3048
- **Apply heuristics from `@references/stack-heuristics.md`** when proposing candidates.
3149

3250
## References
3351

52+
- `@references/checklist.md` - the needs checklist walked in `02-gather-needs`
3453
- `@references/stack-heuristics.md` - input → recommended-stack-family heuristics
3554

3655
## Assets
3756

38-
- `@assets/checklist.md` - the 24-item checklist (4 blocks)
39-
- `@assets/install-template.md` - the `INSTALL.md` skeleton
57+
- `@assets/INSTALL.md` - the `INSTALL.md` skeleton
58+
- `@assets/README.md` - the project-root `README.md` template
4059

4160
## External data
4261

43-
- `aidd-context/skills/09-mermaid/SKILL.md` - invoked from action 04 to render the architecture diagram
62+
- `aidd-context/skills/09-mermaid/SKILL.md` - invoked from `03-choose-stack` to render the architecture diagram

0 commit comments

Comments
 (0)