blueprint-os 1.2.0 → 1.3.1

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.
@@ -21,7 +21,7 @@ description: Explores a problem through Socratic questioning before any spec or
21
21
  - [ ] Ask the brainstorming questions — one section at a time, conversationally
22
22
  - [ ] Present 2–3 alternative approaches with tradeoffs after gathering answers
23
23
  - [ ] Validate the preferred direction with the user
24
- - [ ] Save the design document to `specs/brainstorm-<name>.md`
24
+ - [ ] Save the design document to `specs/brainstorming/<name>/design.md`
25
25
  - [ ] Hand off to `shaping-specs` with the design document as input
26
26
 
27
27
  ## Instructions
@@ -34,7 +34,7 @@ Pick the mode based on what the user is starting from:
34
34
  No codebase exists yet. Start with open-ended exploration. No standards to load. Focus on the problem, the user, and the product vision before any technical decisions.
35
35
 
36
36
  **Mode 2 — New feature in a legacy codebase**
37
- A codebase exists. Load `standards/` files first to understand existing patterns and constraints. Brainstorm within those constraints — what fits the existing architecture, what would require deviation and why.
37
+ A codebase exists. Load `standards/` files (root and backend/, frontend/, design/) first to understand existing patterns and constraints. Brainstorm within those constraints — what fits the existing architecture, what would require deviation and why.
38
38
 
39
39
  **Mode 3 — New feature with loaded context**
40
40
  The user has specific files or modules in mind. Load those files before brainstorming. Keep exploration scoped to the relevant area.
@@ -96,7 +96,7 @@ Ask the user which direction resonates before writing the design document.
96
96
 
97
97
  ### Design document format
98
98
 
99
- Save to `specs/brainstorm-<name>.md`:
99
+ Save to `specs/brainstorming/<name>/design.md`:
100
100
 
101
101
  ```markdown
102
102
  # Brainstorm: [Topic]
@@ -128,7 +128,7 @@ Save to `specs/brainstorm-<name>.md`:
128
128
  - [Anything still unresolved that shaping-specs needs to address]
129
129
 
130
130
  ## Context loaded
131
- - `standards/[file].md` — [what was relevant]
131
+ - `standards/[layer/][file].md` — [what was relevant]
132
132
  - `path/to/file` — [why it was included]
133
133
  ```
134
134
 
@@ -137,7 +137,7 @@ Save to `specs/brainstorm-<name>.md`:
137
137
  After saving the design document, tell the user:
138
138
 
139
139
  ```
140
- Brainstorm complete. Load specs/brainstorm-<name>.md and run the shaping-specs skill to formalize this into an implementation spec.
140
+ Brainstorm complete. Load specs/brainstorming/<name>/design.md and run the shaping-specs skill to formalize this into an implementation spec.
141
141
  ```
142
142
 
143
143
  The `shaping-specs` skill will use the design document as its starting context, so the shaping questions can be answered faster and with less ambiguity.
@@ -151,7 +151,7 @@ The `shaping-specs` skill will use the design document as its starting context,
151
151
 
152
152
  ## Resources
153
153
 
154
- - Design document output: `specs/`
154
+ - Design document output: `specs/brainstorming/<name>/design.md`
155
155
  - Next step: `.agent/skills/shaping-specs/SKILL.md`
156
156
  - Existing standards (Mode 2): `standards/README.md`
157
157
  - Superpowers brainstorming reference: `npx skills add obra/superpowers -a antigravity -y --copy`
@@ -13,13 +13,13 @@ description: Validates changes against the spec and standards before merge. Use
13
13
 
14
14
  ## Workflow
15
15
 
16
- - [ ] Load the spec from `specs/<feature-name>.md`
16
+ - [ ] Load the spec from `specs/shaped-specs/<name>/spec.md`
17
17
  - [ ] Load relevant standards from `standards/`
18
18
  - [ ] Review changed code against the spec
19
19
  - [ ] Verify scope alignment — no out-of-scope changes, no missing in-scope items
20
20
  - [ ] Confirm security-audit was run if auth/API/sensitive data changed
21
21
  - [ ] Check documentation and spec status are updated
22
- - [ ] Produce review notes: pass for merge or list blocking issues
22
+ - [ ] Save review to `specs/shaped-specs/<name>/code-review.md`
23
23
 
24
24
  ## Instructions
25
25
 
@@ -56,6 +56,8 @@ If the change touches authentication, API endpoints, or sensitive data:
56
56
 
57
57
  ### Output format
58
58
 
59
+ Save to `specs/shaped-specs/<name>/code-review.md`:
60
+
59
61
  ```markdown
60
62
  ## Code review — [feature]
61
63
 
@@ -75,6 +77,7 @@ If the change touches authentication, API endpoints, or sensitive data:
75
77
 
76
78
  ## Resources
77
79
 
78
- - Spec directory: `specs/`
80
+ - Spec: `specs/shaped-specs/<name>/spec.md`
81
+ - Output: `specs/shaped-specs/<name>/code-review.md`
79
82
  - Standards: `standards/`
80
83
  - Security audit: `.agent/skills/security-audit/SKILL.md` (run before review when applicable)
@@ -14,7 +14,7 @@ description: Injects relevant project standards into the agent's current context
14
14
 
15
15
  ## Workflow
16
16
 
17
- - [ ] Check if a spec exists for the current task in `specs/`
17
+ - [ ] Check if a spec exists for the current task in `specs/shaped-specs/<name>/spec.md`
18
18
  - [ ] Read `standards/README.md` to see what standards files are available
19
19
  - [ ] Read `references/README.md` to see what reference files exist
20
20
  - [ ] Identify which standards and references are relevant to the current task (spec may list applicable references)
@@ -26,19 +26,19 @@ description: Injects relevant project standards into the agent's current context
26
26
 
27
27
  ### Relevance mapping
28
28
 
29
- Match the task type to the standards files most likely to apply:
29
+ Match the task type to the standards files most likely to apply. Load from the correct layer:
30
30
 
31
31
  | Task type | Standards to load |
32
32
  |---|---|
33
- | Building a UI component | `component-patterns`, `naming-conventions`, `tech-stack` |
34
- | Creating an API endpoint | `api-design`, `error-handling`, `naming-conventions` |
35
- | Writing database queries | `data-models`, `naming-conventions` |
36
- | Adding authentication | `authentication`, `error-handling` |
33
+ | Building a UI component | `frontend/component-patterns`, `naming-conventions`, `tech-stack` |
34
+ | Creating an API endpoint | `backend/api-design`, `backend/error-handling`, `naming-conventions` |
35
+ | Writing database queries | `backend/data-models`, `naming-conventions` |
36
+ | Adding authentication | `backend/authentication`, `backend/error-handling` |
37
37
  | Writing tests | `testing-approach`, `naming-conventions` |
38
38
  | Refactoring | `naming-conventions`, `folder-structure`, relevant domain |
39
39
  | General feature | `tech-stack`, `naming-conventions`, `folder-structure` |
40
40
 
41
- When in doubt, always load `tech-stack` and `naming-conventions` at minimum.
41
+ When in doubt, always load `tech-stack` and `naming-conventions` at minimum. Shared standards are at root; layer-specific are in `backend/`, `frontend/`, `design/`.
42
42
 
43
43
  ### Auto-suggest mode
44
44
 
@@ -46,13 +46,13 @@ If the user says "deploy standards" without specifying which:
46
46
 
47
47
  1. Ask what they are about to build (one sentence)
48
48
  2. Use the relevance map above to select the appropriate files
49
- 3. Load those files and confirm: "Loaded: `standards/api-design.md`, `standards/naming-conventions.md`"
49
+ 3. Load those files and confirm: "Loaded: `standards/backend/api-design.md`, `standards/naming-conventions.md`"
50
50
 
51
51
  ### Manual mode
52
52
 
53
53
  If the user specifies standards explicitly (e.g., "inject the API standards"):
54
54
 
55
- 1. Locate the matching file in `standards/`
55
+ 1. Locate the matching file in `standards/` (check root and `backend/`, `frontend/`, `design/` subfolders)
56
56
  2. Read it and confirm it is loaded
57
57
 
58
58
  ### References
@@ -79,7 +79,7 @@ No standards files found. To create standards for this project, use the discover
79
79
 
80
80
  ## Resources
81
81
 
82
- - Standards directory: `standards/`
82
+ - Standards directory: `standards/` (shared at root; `backend/`, `frontend/`, `design/` for layer-specific)
83
83
  - References directory: `references/`
84
84
  - Discover new standards: `.agent/skills/discovering-standards/SKILL.md`
85
85
  - Shape a spec first: `.agent/skills/shaping-specs/SKILL.md`
@@ -19,25 +19,29 @@ description: Extracts coding patterns, conventions, and architectural decisions
19
19
  - [ ] Scan relevant files in that area
20
20
  - [ ] Identify recurring patterns, naming conventions, and architectural decisions
21
21
  - [ ] Draft a standards file and confirm with the user
22
- - [ ] Save to `standards/<category>.md`
22
+ - [ ] Save to `standards/<layer>/<category>.md` or `standards/<category>.md` for shared
23
23
  - [ ] Update `standards/README.md` index if the file is new
24
24
 
25
25
  ## Instructions
26
26
 
27
27
  ### Discovery areas
28
28
 
29
- Approach one area at a time. Common areas to document:
30
-
31
- - **Tech stack** languages, frameworks, libraries, versions
32
- - **Folder structure** — how the project is organized and why
33
- - **Naming conventions** files, variables, components, routes, database columns
34
- - **Component patterns** how UI components are structured and composed
35
- - **API design** endpoint naming, request/response shapes, error handling
36
- - **Data models** schema conventions, relationships, field naming
37
- - **Testing approach** test file location, naming, tooling, coverage expectations
38
- - **Error handling** how errors surface, are logged, and returned to clients
39
- - **State management** how application state is structured and updated
40
- - **Authentication** how auth is implemented and enforced
29
+ Approach one area at a time. Save to the appropriate layer:
30
+
31
+ | Area | Layer | Path |
32
+ |------|-------|------|
33
+ | Tech stack | shared | `standards/tech-stack.md` |
34
+ | Folder structure | shared | `standards/folder-structure.md` |
35
+ | Naming conventions | shared | `standards/naming-conventions.md` |
36
+ | Testing approach | shared | `standards/testing-approach.md` |
37
+ | API design | backend | `standards/backend/api-design.md` |
38
+ | Data models | backend | `standards/backend/data-models.md` |
39
+ | Error handling | backend | `standards/backend/error-handling.md` |
40
+ | Authentication | backend | `standards/backend/authentication.md` |
41
+ | Component patterns | frontend | `standards/frontend/component-patterns.md` |
42
+ | State management | frontend | `standards/frontend/state-management.md` |
43
+ | Design system | design | `standards/design/design-system.md` |
44
+ | Accessibility | design | `standards/design/accessibility.md` |
41
45
 
42
46
  ### Extraction process
43
47
 
@@ -50,7 +54,7 @@ For each area:
50
54
 
51
55
  ### Standards file format
52
56
 
53
- Save to `standards/<category>.md`:
57
+ Save to `standards/<layer>/<category>.md` (or `standards/<category>.md` for shared):
54
58
 
55
59
  ```markdown
56
60
  # [Category] Standards
@@ -90,18 +94,19 @@ Save to `standards/<category>.md`:
90
94
 
91
95
  ### File naming
92
96
 
93
- Use lowercase, hyphen-separated names that match the category:
97
+ Use lowercase, hyphen-separated names. Place in the correct layer folder:
94
98
 
95
99
  ```
96
100
  standards/tech-stack.md
97
101
  standards/naming-conventions.md
98
- standards/api-design.md
99
- standards/component-patterns.md
102
+ standards/backend/api-design.md
103
+ standards/frontend/component-patterns.md
104
+ standards/design/design-system.md
100
105
  ```
101
106
 
102
107
  ## Resources
103
108
 
104
- - Standards directory: `standards/`
109
+ - Standards directory: `standards/` (shared at root, layer-specific in `backend/`, `frontend/`, `design/`)
105
110
  - Standards guide: `standards/README.md`
106
111
  - Next step for new feature work: `.agent/skills/brainstorming/SKILL.md` (brainstorm within discovered constraints)
107
112
  - Next step before implementation: `.agent/skills/deploying-standards/SKILL.md`
@@ -14,11 +14,11 @@ description: Adds or updates tests to validate behavior against acceptance crite
14
14
 
15
15
  ## Workflow
16
16
 
17
- - [ ] Load the spec for the current task from `specs/<feature-name>.md`
17
+ - [ ] Load the spec for the current task from `specs/shaped-specs/<name>/spec.md`
18
18
  - [ ] Identify acceptance criteria and success criteria from the spec
19
- - [ ] Load `standards/testing-approach.md` if it exists
19
+ - [ ] Load `standards/testing-approach.md` if it exists (shared at root)
20
20
  - [ ] Add or update tests to cover the acceptance criteria
21
- - [ ] Record test coverage or evidence in the spec or a brief report
21
+ - [ ] Save test evidence to `specs/shaped-specs/<name>/quality-assurance.md`
22
22
  - [ ] Flag auth, API, or sensitive data changes for security-audit if applicable
23
23
 
24
24
  ## Instructions
@@ -31,7 +31,7 @@ description: Adds or updates tests to validate behavior against acceptance crite
31
31
  | Backend | Unit, integration, API | Services, handlers, database |
32
32
  | Shared | Unit | Utilities, validation, data transforms |
33
33
 
34
- Follow project conventions in `standards/testing-approach.md` when present. If no testing standard exists, use common patterns for the stack (e.g., Vitest/Jest for unit, Playwright/Cypress for E2E).
34
+ Follow project conventions in `standards/testing-approach.md` when present (shared at root). If no testing standard exists, use common patterns for the stack (e.g., Vitest/Jest for unit, Playwright/Cypress for E2E).
35
35
 
36
36
  ### Acceptance criteria mapping
37
37
 
@@ -44,10 +44,14 @@ For each unchecked success criterion in the spec:
44
44
 
45
45
  ### Evidence recording
46
46
 
47
- Add a section to the spec or append a note:
47
+ Save to `specs/shaped-specs/<name>/quality-assurance.md`:
48
48
 
49
49
  ```markdown
50
- ## Test evidence
50
+ ## Quality assurance — [feature]
51
+
52
+ **Date:** [YYYY-MM-DD]
53
+
54
+ ### Test evidence
51
55
  - [Criterion X]: Covered by `path/to/test.ts` — passes
52
56
  - [Criterion Y]: Covered by integration test in `path/to/integration.test.ts`
53
57
  ```
@@ -63,6 +67,7 @@ If the implementation touches authentication, API security, or sensitive data ha
63
67
 
64
68
  ## Resources
65
69
 
66
- - Spec directory: `specs/`
67
- - Testing standards: `standards/testing-approach.md`
70
+ - Spec: `specs/shaped-specs/<name>/spec.md`
71
+ - Output: `specs/shaped-specs/<name>/quality-assurance.md`
72
+ - Testing standards: `standards/testing-approach.md` (shared)
68
73
  - Next step: `.agent/skills/security-audit/SKILL.md` (for auth/API/sensitive) or `.agent/skills/code-review/SKILL.md`
@@ -14,11 +14,11 @@ description: Audits code changes for security vulnerabilities and data exposure.
14
14
 
15
15
  ## Workflow
16
16
 
17
- - [ ] Load the spec from `specs/<feature-name>.md`
17
+ - [ ] Load the spec from `specs/shaped-specs/<name>/spec.md`
18
18
  - [ ] Load changed files and identify security-relevant code
19
19
  - [ ] Run through the security checklist (frontend and backend as applicable)
20
20
  - [ ] Assign severity to each finding (Critical, High, Medium, Low)
21
- - [ ] Produce audit report inline or in `specs/<feature-name>-security-audit.md`
21
+ - [ ] Save audit report to `specs/shaped-specs/<name>/security-audit.md`
22
22
  - [ ] Block merge for Critical and High; document Medium and Low for resolution
23
23
 
24
24
  ## Instructions
@@ -84,7 +84,7 @@ Run security-audit before merge when the change involves:
84
84
 
85
85
  ### Audit report format
86
86
 
87
- Save to `specs/<feature-name>-security-audit.md` or append to the spec:
87
+ Save to `specs/shaped-specs/<name>/security-audit.md`:
88
88
 
89
89
  ```markdown
90
90
  ## Security audit — [date]
@@ -110,6 +110,7 @@ Save to `specs/<feature-name>-security-audit.md` or append to the spec:
110
110
 
111
111
  ## Resources
112
112
 
113
- - Spec directory: `specs/`
114
- - Standards: `standards/authentication.md`, `standards/api-design.md` if present
113
+ - Spec: `specs/shaped-specs/<name>/spec.md`
114
+ - Output: `specs/shaped-specs/<name>/security-audit.md`
115
+ - Standards: `standards/backend/authentication.md`, `standards/backend/api-design.md` if present
115
116
  - Next step: `.agent/skills/code-review/SKILL.md`
@@ -9,20 +9,20 @@ description: Shapes a structured spec for a feature or task by asking clarifying
9
9
 
10
10
  - User wants to plan a feature before implementation
11
11
  - User asks to "create a spec", "write a PRD", or "shape this idea"
12
- - A brainstorm document exists in `specs/brainstorm-<name>.md` and is ready to formalize
12
+ - A brainstorm document exists in `specs/brainstorming/<name>/design.md` and is ready to formalize
13
13
  - User is starting work on a new feature, epic, or significant change where the approach is already decided
14
14
 
15
15
  **If the approach is still undecided or the problem is not fully understood, run `brainstorming` first.**
16
16
  Load `.agent/skills/brainstorming/SKILL.md` and complete that workflow before returning here.
17
- The brainstorm document (`specs/brainstorm-<name>.md`) becomes the starting context for spec shaping.
17
+ The brainstorm document (`specs/brainstorming/<name>/design.md`) becomes the starting context for spec shaping.
18
18
 
19
19
  ## Workflow
20
20
 
21
- - [ ] Check for a brainstorm document in `specs/brainstorm-<name>.md` — load it if it exists
22
- - [ ] Load relevant standards from `standards/` and references from `references/` if they exist
21
+ - [ ] Check for a brainstorm document in `specs/brainstorming/<name>/design.md` — load it if it exists
22
+ - [ ] Load relevant standards from `standards/` (root and `backend/`, `frontend/`, `design/`) and references from `references/` if they exist
23
23
  - [ ] Ask the shaping questions (see below) — skip any already answered in the brainstorm doc
24
24
  - [ ] Confirm answers with the user before proceeding
25
- - [ ] Write the spec file to `specs/<feature-name>.md`
25
+ - [ ] Write the spec file to `specs/shaped-specs/<name>/spec.md`
26
26
  - [ ] Summarize the spec and confirm it is ready to execute
27
27
 
28
28
  ## Instructions
@@ -56,14 +56,14 @@ Ask these questions in a conversational flow. Adapt wording to context, but cove
56
56
  - Are there edge cases or failure modes to account for?
57
57
 
58
58
  **7. What standards apply?**
59
- - Which entries in `standards/` are relevant to this task?
59
+ - Which entries in `standards/` (root, backend/, frontend/, design/) are relevant to this task?
60
60
 
61
61
  **8. What references apply?**
62
62
  - Are there design docs, flowcharts, or diagrams in `references/` that define this feature?
63
63
 
64
64
  ### Spec file format
65
65
 
66
- Save the completed spec to `specs/<feature-name>.md`:
66
+ Save the completed spec to `specs/shaped-specs/<name>/spec.md`:
67
67
 
68
68
  ```markdown
69
69
  # Spec: [Feature Name]
@@ -95,7 +95,7 @@ Save the completed spec to `specs/<feature-name>.md`:
95
95
  - [Risk or edge case]
96
96
 
97
97
  ## Applicable standards
98
- - `standards/[file].md` — [which section]
98
+ - `standards/[layer/][file].md` — [which section]
99
99
 
100
100
  ## Applicable references
101
101
  - `references/[file]` — [design, flowchart, diagram that defines this]
@@ -115,6 +115,6 @@ After execution, consider running `quality-assurance`, `security-audit` (for aut
115
115
  - Run first if approach is undecided: `.agent/skills/brainstorming/SKILL.md`
116
116
  - Standards reference: `standards/README.md`
117
117
  - References index: `references/README.md`
118
- - Spec output directory: `specs/`
118
+ - Spec output: `specs/shaped-specs/<name>/spec.md`
119
119
  - Deploy before executing: `.agent/skills/deploying-standards/SKILL.md`
120
120
  - Quality gates after execution: `.agent/skills/quality-assurance/SKILL.md`, `.agent/skills/security-audit/SKILL.md`, `.agent/skills/code-review/SKILL.md`
package/README.md CHANGED
@@ -113,7 +113,7 @@ your-project/
113
113
 
114
114
  ```
115
115
  1. Ask your agent: "Read .agent/skills/brainstorming/SKILL.md and brainstorm [product idea]"
116
- 2. Ask your agent: "Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorm-<name>.md"
116
+ 2. Ask your agent: "Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorming/<name>/design.md"
117
117
  3. Ask your agent: "Read .agent/skills/deploying-standards/SKILL.md and inject relevant standards for [task]"
118
118
  ```
119
119
 
@@ -122,7 +122,7 @@ your-project/
122
122
  ```
123
123
  1. Ask your agent: "Read .agent/skills/discovering-standards/SKILL.md and document my codebase standards"
124
124
  2. Ask your agent: "Read .agent/skills/brainstorming/SKILL.md and brainstorm [feature] with the existing standards loaded"
125
- 3. Ask your agent: "Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorm-<name>.md"
125
+ 3. Ask your agent: "Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorming/<name>/design.md"
126
126
  4. Ask your agent: "Read .agent/skills/deploying-standards/SKILL.md and inject relevant standards for [task]"
127
127
  ```
128
128
 
@@ -191,7 +191,7 @@ These two skills are sequential, not interchangeable.
191
191
  | New feature in a legacy codebase | `discovering-standards` → `brainstorming` → `shaping-specs` |
192
192
  | Bug fix or small task | `shaping-specs` or skip to `deploying-standards` |
193
193
 
194
- **Brainstorming produces a design document** (`specs/brainstorm-<name>.md`). Spec shaping picks that up and formalizes it into an implementation spec (`specs/<feature-name>.md`). They're two steps in the same pipeline, not alternatives.
194
+ **Brainstorming produces a design document** (`specs/brainstorming/<name>/design.md`). Spec shaping picks that up and formalizes it into an implementation spec (`specs/shaped-specs/<name>/spec.md`). They're two steps in the same pipeline, not alternatives.
195
195
 
196
196
  ---
197
197
 
@@ -223,13 +223,13 @@ You have an idea. No code exists yet.
223
223
  ```
224
224
  Read .agent/skills/brainstorming/SKILL.md and brainstorm a task management app for remote teams
225
225
  ```
226
- The agent asks Socratic questions, presents 3 approaches (e.g., kanban vs. list-based vs. AI-prioritized), and saves the chosen direction to `specs/brainstorm-task-app.md`.
226
+ The agent asks Socratic questions, presents 3 approaches (e.g., kanban vs. list-based vs. AI-prioritized), and saves the chosen direction to `specs/brainstorming/task-app/design.md`.
227
227
 
228
228
  **Step 2: Shape the first feature spec**
229
229
  ```
230
- Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorm-task-app.md
230
+ Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorming/task-app/design.md
231
231
  ```
232
- The agent formalizes the brainstorm into `specs/user-auth.md` with scope, success criteria, and implementation notes.
232
+ The agent formalizes the brainstorm into `specs/shaped-specs/user-auth/spec.md` with scope, success criteria, and implementation notes.
233
233
 
234
234
  **Step 3: Execute**
235
235
  ```
@@ -247,19 +247,19 @@ You've been handed a 3-year-old Express API and need to add a payments feature.
247
247
  ```
248
248
  Read .agent/skills/discovering-standards/SKILL.md and document the API design standards
249
249
  ```
250
- The agent reads your existing routes, middleware, and error handling patterns, then saves `standards/api-design.md` and `standards/error-handling.md`.
250
+ The agent reads your existing routes, middleware, and error handling patterns, then saves `standards/backend/api-design.md` and `standards/backend/error-handling.md`.
251
251
 
252
252
  **Step 2: Brainstorm the payments feature within those constraints**
253
253
  ```
254
254
  Read .agent/skills/brainstorming/SKILL.md and brainstorm a Stripe payments integration with the existing standards loaded
255
255
  ```
256
- The agent loads your standards as constraints, explores integration approaches (webhook-first vs. sync, where to put the service layer, etc.), and saves `specs/brainstorm-payments.md`.
256
+ The agent loads your standards as constraints, explores integration approaches (webhook-first vs. sync, where to put the service layer, etc.), and saves `specs/brainstorming/payments/design.md`.
257
257
 
258
258
  **Step 3: Shape the spec**
259
259
  ```
260
- Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorm-payments.md
260
+ Read .agent/skills/shaping-specs/SKILL.md and shape a spec using specs/brainstorming/payments/design.md
261
261
  ```
262
- Saves `specs/payments-feature.md` with relevant files mapped out, risks identified, and applicable standards and references.
262
+ Saves `specs/shaped-specs/payments-feature/spec.md` with relevant files mapped out, risks identified, and applicable standards and references.
263
263
 
264
264
  **Step 4: Build**
265
265
  ```
@@ -311,7 +311,7 @@ Read .agent/skills/test-driven-development/SKILL.md and implement the payments s
311
311
  You shaped a spec yesterday. Today you're back in a fresh chat with no context.
312
312
 
313
313
  ```
314
- Read specs/payments-feature.md — this is what we're building.
314
+ Read specs/shaped-specs/payments-feature/spec.md — this is what we're building.
315
315
  Read .agent/skills/deploying-standards/SKILL.md and inject the relevant standards and references for continuing this work.
316
316
  ```
317
317
 
@@ -367,9 +367,13 @@ blueprint-os/
367
367
  │ └── code-review/
368
368
  │ └── SKILL.md
369
369
  ├── specs/
370
- └── (brainstorm docs and specs saved here)
370
+ ├── brainstorming/<name>/design.md
371
+ │ └── shaped-specs/<name>/spec.md (+ quality-assurance.md, security-audit.md, code-review.md when run)
371
372
  ├── standards/
372
- └── README.md
373
+ ├── README.md
374
+ │ ├── backend/
375
+ │ ├── frontend/
376
+ │ └── design/
373
377
  ├── references/
374
378
  │ ├── README.md
375
379
  │ └── agent-workflow/ # Meta: framework links (agent-os, superpowers, etc.)
@@ -415,7 +419,7 @@ This format is compatible with Antigravity natively. For other tools, see the [a
415
419
 
416
420
  ## Standards
417
421
 
418
- Standards live in `standards/`. They are plain markdown files documenting the patterns, conventions, and architecture decisions of your specific project. See [standards/README.md](standards/README.md) for the format and conventions.
422
+ Standards live in `standards/`. Shared standards (tech-stack, naming-conventions, folder-structure, testing-approach) are at root; layer-specific standards go in `backend/`, `frontend/`, and `design/`. See [standards/README.md](standards/README.md) for the format and conventions.
419
423
 
420
424
  ---
421
425
 
@@ -29,7 +29,12 @@ your-project/
29
29
  │ └── code-review/
30
30
  │ └── SKILL.md
31
31
  ├── specs/
32
+ │ ├── brainstorming/<name>/design.md
33
+ │ └── shaped-specs/<name>/spec.md (+ quality-assurance.md, security-audit.md, code-review.md when run)
32
34
  ├── standards/
35
+ │ ├── backend/
36
+ │ ├── frontend/
37
+ │ └── design/
33
38
  ├── references/
34
39
  └── ... your code
35
40
  ```
@@ -66,7 +71,7 @@ Brainstorm a [product idea] — I want to explore the problem and options before
66
71
  Then:
67
72
 
68
73
  ```
69
- Shape a spec using the brainstorm document in specs/brainstorm-<name>.md.
74
+ Shape a spec using the brainstorm document in specs/brainstorming/<name>/design.md.
70
75
  ```
71
76
 
72
77
  **New feature in a legacy codebase:**
@@ -140,8 +145,8 @@ The agent will check [skills.sh](https://skills.sh) first (`npx skills add https
140
145
  ## Notes
141
146
 
142
147
  - The `description` field in each `SKILL.md` controls when Antigravity auto-triggers a skill — keep it specific with clear keywords
143
- - Brainstorm documents are saved to `specs/brainstorm-<name>.md` — reference them when shaping the spec
144
- - Standards files in `standards/` are plain markdown — reference them in your prompts or let the `deploying-standards` skill load them automatically
148
+ - Brainstorm documents are saved to `specs/brainstorming/<name>/design.md` — reference them when shaping the spec
149
+ - Standards files in `standards/` (root for shared, `backend/`, `frontend/`, `design/` for layer-specific) are plain markdown — reference them in your prompts or let the `deploying-standards` skill load them automatically
145
150
  - Reference designs and diagrams in `references/` — the spec lists applicable references; `deploying-standards` loads them before implementation
146
- - Spec files are saved to `specs/` — reference them in subsequent sessions to maintain continuity
151
+ - Spec files are saved to `specs/shaped-specs/<name>/spec.md` — reference them in subsequent sessions to maintain continuity
147
152
  - For skills.sh integration, see [skills-sh.md](skills-sh.md)
@@ -72,7 +72,7 @@ Then invoke them with:
72
72
 
73
73
  ```
74
74
  /brainstorm — explore the idea for [product or feature]
75
- /shape-spec — formalize the spec using specs/brainstorm-<name>.md
75
+ /shape-spec — formalize the spec using specs/brainstorming/<name>/design.md
76
76
  /deploy-standards — I'm about to build a REST API
77
77
  /discover-standards — extract naming conventions
78
78
  /create-skill — find or create a skill for database migrations
@@ -89,7 +89,7 @@ Then invoke them with:
89
89
 
90
90
  ```
91
91
  /brainstorm — explore the idea for [product]
92
- /shape-spec — formalize specs/brainstorm-<name>.md into an implementation spec
92
+ /shape-spec — formalize specs/brainstorming/<name>/design.md into an implementation spec
93
93
  /deploy-standards — inject relevant standards for [first task]
94
94
  ```
95
95
 
@@ -98,7 +98,7 @@ Then invoke them with:
98
98
  ```
99
99
  /discover-standards — extract patterns from the existing codebase
100
100
  /brainstorm — explore [feature] within the existing constraints
101
- /shape-spec — formalize specs/brainstorm-<name>.md
101
+ /shape-spec — formalize specs/brainstorming/<name>/design.md
102
102
  /deploy-standards — inject standards before implementation
103
103
  ```
104
104
 
@@ -127,8 +127,8 @@ Add a section to your project's `CLAUDE.md` to make Blueprint OS always availabl
127
127
  This project uses Blueprint OS for agent workflows.
128
128
 
129
129
  - Skills: `.agent/skills/`
130
- - Standards: `standards/`
131
- - Specs: `specs/` (brainstorm docs + implementation specs)
130
+ - Standards: `standards/` (shared at root; `backend/`, `frontend/`, `design/` for layer-specific)
131
+ - Specs: `specs/brainstorming/<name>/design.md`, `specs/shaped-specs/<name>/spec.md`
132
132
  - References: `references/` (design docs, flowcharts, diagrams)
133
133
 
134
134
  ### Workflow
@@ -153,8 +153,8 @@ Before merge (quality gates):
153
153
 
154
154
  ## Notes
155
155
 
156
- - Standards files in `standards/` can be referenced with `@standards/api-design.md` to include them directly in context
156
+ - Standards files in `standards/` can be referenced with `@standards/api-design.md` or `@standards/backend/api-design.md` to include them directly in context
157
157
  - Reference designs and diagrams in `references/` with `@references/checkout-flow.mmd` or `@references/agent-workflow/superpowers-link.md`
158
- - Brainstorm documents (`specs/brainstorm-<name>.md`) and spec files (`specs/<feature>.md`) persist across sessions — always reference them when resuming work
158
+ - Brainstorm documents (`specs/brainstorming/<name>/design.md`) and spec files (`specs/shaped-specs/<name>/spec.md`) persist across sessions — always reference them when resuming work
159
159
  - The `@file` approach works in any Claude Code session without any setup
160
160
  - For skills.sh integration, see [skills-sh.md](skills-sh.md)
@@ -79,7 +79,7 @@ Cursor will include the file content in context and the agent will follow the sk
79
79
 
80
80
  ```
81
81
  @.agent/skills/brainstorming/SKILL.md — brainstorm [product idea]
82
- @.agent/skills/shaping-specs/SKILL.md — shape a spec using specs/brainstorm-<name>.md
82
+ @.agent/skills/shaping-specs/SKILL.md — shape a spec using specs/brainstorming/<name>/design.md
83
83
  @.agent/skills/deploying-standards/SKILL.md — inject standards for [task]
84
84
  ```
85
85
 
@@ -88,7 +88,7 @@ Cursor will include the file content in context and the agent will follow the sk
88
88
  ```
89
89
  @.agent/skills/discovering-standards/SKILL.md — document [area] standards
90
90
  @.agent/skills/brainstorming/SKILL.md — brainstorm [feature] with existing standards loaded
91
- @.agent/skills/shaping-specs/SKILL.md — shape a spec using specs/brainstorm-<name>.md
91
+ @.agent/skills/shaping-specs/SKILL.md — shape a spec using specs/brainstorming/<name>/design.md
92
92
  @.agent/skills/deploying-standards/SKILL.md — inject standards for [task]
93
93
  ```
94
94
 
@@ -125,8 +125,8 @@ Run QA after implementation. Run SEC when changes touch auth, API, or sensitive
125
125
 
126
126
  ## Notes
127
127
 
128
- - Standards files in `standards/` can also be referenced with `@standards/tech-stack.md`
128
+ - Standards files in `standards/` can be referenced with `@standards/tech-stack.md` or `@standards/backend/api-design.md`
129
129
  - Reference designs and diagrams in `references/` with `@references/checkout-flow.mmd` or `@references/agent-workflow/superpowers-link.md`
130
- - Brainstorm documents and spec files saved to `specs/` are readable the same way
130
+ - Brainstorm documents (`specs/brainstorming/<name>/design.md`) and spec files (`specs/shaped-specs/<name>/spec.md`) are readable the same way
131
131
  - The `.agent/` folder is invisible to most file trees by default — open it explicitly if needed
132
132
  - For skills.sh integration, see [skills-sh.md](skills-sh.md). Use `-a antigravity -y --copy` when installing so skills land in `.agent/skills/` as real files. Without `--copy`, the CLI may symlink from `.agents/`, and deleting `.agents` breaks the skill.
package/lib/init.js CHANGED
@@ -76,6 +76,10 @@ function init(cwd) {
76
76
  const specsDir = path.join(cwd, 'specs');
77
77
  if (!fs.existsSync(specsDir)) {
78
78
  fs.mkdirSync(specsDir, { recursive: true });
79
+ const specsReadme = path.join(PACKAGE_ROOT, 'specs', 'README.md');
80
+ if (fs.existsSync(specsReadme)) {
81
+ fs.copyFileSync(specsReadme, path.join(specsDir, 'README.md'));
82
+ }
79
83
  console.log(' ✓ specs/ (created)');
80
84
  }
81
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blueprint-os",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "A portable, tool-agnostic AI agent workflow system built on skills and standards",
5
5
  "bin": {
6
6
  "blueprint-os": "./bin/blueprint-os.js"
@@ -16,25 +16,35 @@ Standards files are extracted from your codebase — not invented. They document
16
16
 
17
17
  ---
18
18
 
19
- ## File naming
19
+ ## Structure
20
20
 
21
- Use lowercase, hyphen-separated names:
21
+ Standards are organized by layer. Shared standards (cross-cutting) live at root; layer-specific standards go in subfolders:
22
22
 
23
23
  ```
24
24
  standards/
25
- ├── tech-stack.md
26
- ├── naming-conventions.md
27
- ├── folder-structure.md
28
- ├── component-patterns.md
29
- ├── api-design.md
30
- ├── data-models.md
31
- ├── testing-approach.md
32
- ├── error-handling.md
33
- ├── authentication.md
34
- └── state-management.md
25
+ ├── tech-stack.md # shared
26
+ ├── naming-conventions.md # shared
27
+ ├── folder-structure.md # shared
28
+ ├── testing-approach.md # shared
29
+ ├── backend/
30
+ ├── api-design.md
31
+ ├── data-models.md
32
+ ├── error-handling.md
33
+ │ └── authentication.md
34
+ ├── frontend/
35
+ │ ├── component-patterns.md
36
+ │ └── state-management.md
37
+ └── design/
38
+ ├── design-system.md
39
+ └── accessibility.md
35
40
  ```
36
41
 
37
- Name the file after the category it covers. Keep one category per file.
42
+ **Backend** API, data, auth, server-side patterns.
43
+ **Frontend** — Components, state, client-side patterns.
44
+ **Design** — UI system, accessibility, visual conventions.
45
+ **Root** — Tech stack, naming, folder structure, testing (apply across layers).
46
+
47
+ Use lowercase, hyphen-separated names. Keep one category per file.
38
48
 
39
49
  ---
40
50
 
@@ -69,7 +79,7 @@ Known deviations from the standard and the reason they exist.
69
79
 
70
80
  ## Standards index
71
81
 
72
- When you add a new standards file, add it to the table below so agents can discover it:
82
+ When you add a new standards file, add it to the table below so agents can discover it. Group by layer (shared, backend, frontend, design):
73
83
 
74
84
  | File | Covers |
75
85
  |---|---|
@@ -0,0 +1,3 @@
1
+ # Backend Standards
2
+
3
+ Place backend-specific standards here: `api-design.md`, `data-models.md`, `error-handling.md`, `authentication.md`.
@@ -0,0 +1,3 @@
1
+ # Design Standards
2
+
3
+ Place design/UX standards here: `design-system.md`, `accessibility.md`.
@@ -0,0 +1,3 @@
1
+ # Frontend Standards
2
+
3
+ Place frontend-specific standards here: `component-patterns.md`, `state-management.md`.