blueprint-os 1.0.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.
- package/.agent/skills/brainstorming/SKILL.md +157 -0
- package/.agent/skills/code-review/SKILL.md +80 -0
- package/.agent/skills/creating-skills/SKILL.md +141 -0
- package/.agent/skills/deploying-standards/SKILL.md +85 -0
- package/.agent/skills/discovering-standards/SKILL.md +107 -0
- package/.agent/skills/quality-assurance/SKILL.md +68 -0
- package/.agent/skills/security-audit/SKILL.md +115 -0
- package/.agent/skills/shaping-specs/SKILL.md +120 -0
- package/README.md +406 -0
- package/adapters/antigravity.md +147 -0
- package/adapters/claude-code.md +160 -0
- package/adapters/cursor.md +131 -0
- package/adapters/skills-sh.md +134 -0
- package/bin/blueprint-os.js +14 -0
- package/lib/init.js +43 -0
- package/package.json +33 -0
- package/references/README.md +62 -0
- package/references/agent-workflow/Skills.md +155 -0
- package/references/agent-workflow/agent-os-link.md +1 -0
- package/references/agent-workflow/blast.md +155 -0
- package/references/agent-workflow/superpowers-link.md +1 -0
- package/standards/README.md +123 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: Explores a problem through Socratic questioning before any spec or code is written. Surfaces real needs, compares approaches, and produces a design document. Use when the user wants to think through a new product, a new feature, a technical decision, or anything where the right approach is still undecided.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- User says "I want to build X" but hasn't decided how yet
|
|
11
|
+
- Starting a brand new product with no codebase yet
|
|
12
|
+
- Adding a significant feature to an existing codebase
|
|
13
|
+
- A technical or architectural decision needs exploration before committing
|
|
14
|
+
- The approach is unclear or multiple valid paths exist
|
|
15
|
+
- User asks to "brainstorm", "think through", "explore", or "figure out" something
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
- [ ] Identify which mode applies (see Instructions > Modes)
|
|
20
|
+
- [ ] Load relevant context for the mode (standards, existing files, or nothing)
|
|
21
|
+
- [ ] Ask the brainstorming questions — one section at a time, conversationally
|
|
22
|
+
- [ ] Present 2–3 alternative approaches with tradeoffs after gathering answers
|
|
23
|
+
- [ ] Validate the preferred direction with the user
|
|
24
|
+
- [ ] Save the design document to `specs/brainstorm-<name>.md`
|
|
25
|
+
- [ ] Hand off to `shaping-specs` with the design document as input
|
|
26
|
+
|
|
27
|
+
## Instructions
|
|
28
|
+
|
|
29
|
+
### Modes
|
|
30
|
+
|
|
31
|
+
Pick the mode based on what the user is starting from:
|
|
32
|
+
|
|
33
|
+
**Mode 1 — New product**
|
|
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
|
+
|
|
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.
|
|
38
|
+
|
|
39
|
+
**Mode 3 — New feature with loaded context**
|
|
40
|
+
The user has specific files or modules in mind. Load those files before brainstorming. Keep exploration scoped to the relevant area.
|
|
41
|
+
|
|
42
|
+
### Brainstorming questions
|
|
43
|
+
|
|
44
|
+
Ask these in a natural, conversational flow — one section at a time. Do not ask all at once. Wait for responses before moving on.
|
|
45
|
+
|
|
46
|
+
**1. What is the real problem?**
|
|
47
|
+
- What are you actually trying to solve? (not the solution — the problem)
|
|
48
|
+
- Who experiences this problem and when?
|
|
49
|
+
- What happens today without this? What's the workaround?
|
|
50
|
+
|
|
51
|
+
**2. What does success look like?**
|
|
52
|
+
- If this works perfectly, what changes for the user?
|
|
53
|
+
- How would you know it worked? What's measurable?
|
|
54
|
+
- What would make this a failure even if it ships?
|
|
55
|
+
|
|
56
|
+
**3. What are the constraints?**
|
|
57
|
+
- Are there technical boundaries (existing stack, performance, compatibility)?
|
|
58
|
+
- Are there product constraints (scope, timeline, dependencies)?
|
|
59
|
+
- What can we NOT change, no matter what?
|
|
60
|
+
|
|
61
|
+
**4. What approaches could work?**
|
|
62
|
+
- What's the most obvious solution? What are its downsides?
|
|
63
|
+
- Is there a simpler version that solves 80% of the problem?
|
|
64
|
+
- Is there an existing tool, library, or pattern that does this?
|
|
65
|
+
|
|
66
|
+
**5. What are the risks?**
|
|
67
|
+
- What could go wrong during implementation?
|
|
68
|
+
- What edge cases will be hardest to handle?
|
|
69
|
+
- What assumption, if wrong, would invalidate the whole approach?
|
|
70
|
+
|
|
71
|
+
### Presenting alternatives
|
|
72
|
+
|
|
73
|
+
After gathering answers, present 2–3 distinct approaches:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
## Approach A: [Name]
|
|
77
|
+
[One paragraph description]
|
|
78
|
+
|
|
79
|
+
Pros:
|
|
80
|
+
- [Pro 1]
|
|
81
|
+
- [Pro 2]
|
|
82
|
+
|
|
83
|
+
Cons:
|
|
84
|
+
- [Con 1]
|
|
85
|
+
- [Con 2]
|
|
86
|
+
|
|
87
|
+
Best if: [condition where this wins]
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Approach B: [Name]
|
|
92
|
+
...
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Ask the user which direction resonates before writing the design document.
|
|
96
|
+
|
|
97
|
+
### Design document format
|
|
98
|
+
|
|
99
|
+
Save to `specs/brainstorm-<name>.md`:
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
102
|
+
# Brainstorm: [Topic]
|
|
103
|
+
|
|
104
|
+
**Date:** [YYYY-MM-DD]
|
|
105
|
+
**Mode:** New product | Legacy codebase | Feature in context
|
|
106
|
+
**Chosen approach:** [Approach name]
|
|
107
|
+
|
|
108
|
+
## The problem
|
|
109
|
+
[What we're actually solving and for whom]
|
|
110
|
+
|
|
111
|
+
## Success criteria
|
|
112
|
+
- [What done looks like]
|
|
113
|
+
|
|
114
|
+
## Constraints
|
|
115
|
+
- [Technical and product constraints]
|
|
116
|
+
|
|
117
|
+
## Approaches considered
|
|
118
|
+
### [Approach A]
|
|
119
|
+
[Summary + why it was not chosen, or why it was chosen]
|
|
120
|
+
|
|
121
|
+
### [Approach B]
|
|
122
|
+
[Summary + tradeoffs]
|
|
123
|
+
|
|
124
|
+
## Chosen direction
|
|
125
|
+
[Rationale for the selected approach]
|
|
126
|
+
|
|
127
|
+
## Open questions
|
|
128
|
+
- [Anything still unresolved that shaping-specs needs to address]
|
|
129
|
+
|
|
130
|
+
## Context loaded
|
|
131
|
+
- `standards/[file].md` — [what was relevant]
|
|
132
|
+
- `path/to/file` — [why it was included]
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Hand-off to shaping-specs
|
|
136
|
+
|
|
137
|
+
After saving the design document, tell the user:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
Brainstorm complete. Load specs/brainstorm-<name>.md and run the shaping-specs skill to formalize this into an implementation spec.
|
|
141
|
+
```
|
|
142
|
+
|
|
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.
|
|
144
|
+
|
|
145
|
+
### What to avoid
|
|
146
|
+
|
|
147
|
+
- Do not propose implementation details during brainstorming — that belongs in the spec
|
|
148
|
+
- Do not skip to a single approach without exploring alternatives
|
|
149
|
+
- Do not skip the problem questions and jump to solutions
|
|
150
|
+
- Do not ask all questions at once — keep the conversation flowing
|
|
151
|
+
|
|
152
|
+
## Resources
|
|
153
|
+
|
|
154
|
+
- Design document output: `specs/`
|
|
155
|
+
- Next step: `.agent/skills/shaping-specs/SKILL.md`
|
|
156
|
+
- Existing standards (Mode 2): `standards/README.md`
|
|
157
|
+
- Superpowers brainstorming reference: `npx skills add obra/superpowers`
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Validates changes against the spec and standards before merge. Use when the user asks to review, REV, perform final review, or confirm ready for merge. Ensures scope alignment, completeness, and that security-audit was run when required.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- User asks to "review", "REV", "final review", or "ready for merge"
|
|
11
|
+
- After quality-assurance and security-audit (when applicable)
|
|
12
|
+
- Before merging a feature or significant change
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
- [ ] Load the spec from `specs/<feature-name>.md`
|
|
17
|
+
- [ ] Load relevant standards from `standards/`
|
|
18
|
+
- [ ] Review changed code against the spec
|
|
19
|
+
- [ ] Verify scope alignment — no out-of-scope changes, no missing in-scope items
|
|
20
|
+
- [ ] Confirm security-audit was run if auth/API/sensitive data changed
|
|
21
|
+
- [ ] Check documentation and spec status are updated
|
|
22
|
+
- [ ] Produce review notes: pass for merge or list blocking issues
|
|
23
|
+
|
|
24
|
+
## Instructions
|
|
25
|
+
|
|
26
|
+
### Scope validation
|
|
27
|
+
|
|
28
|
+
- Every success criterion in the spec is addressed (implemented or explicitly deferred)
|
|
29
|
+
- No changes fall outside the spec's in-scope items
|
|
30
|
+
- Out-of-scope items were not introduced without spec update
|
|
31
|
+
|
|
32
|
+
### Standards compliance
|
|
33
|
+
|
|
34
|
+
- Code follows patterns in `standards/` (naming, structure, tech stack)
|
|
35
|
+
- Exceptions are documented or justified
|
|
36
|
+
|
|
37
|
+
### Security gate
|
|
38
|
+
|
|
39
|
+
If the change touches authentication, API endpoints, or sensitive data:
|
|
40
|
+
|
|
41
|
+
- Security-audit must have been run
|
|
42
|
+
- No Critical or High findings remain open
|
|
43
|
+
- If audit was skipped, block merge and recommend running `security-audit`
|
|
44
|
+
|
|
45
|
+
### Documentation
|
|
46
|
+
|
|
47
|
+
- Spec status reflects current state (e.g., In Progress → Done)
|
|
48
|
+
- New modules or APIs are documented per project conventions
|
|
49
|
+
- Test evidence or coverage noted where applicable
|
|
50
|
+
|
|
51
|
+
### Review output
|
|
52
|
+
|
|
53
|
+
**Pass:** Confirm readiness for merge. Summarize what was reviewed and any minor notes.
|
|
54
|
+
|
|
55
|
+
**Block:** List blocking issues with file/line references and required fixes. Do not recommend merge until resolved.
|
|
56
|
+
|
|
57
|
+
### Output format
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
## Code review — [feature]
|
|
61
|
+
|
|
62
|
+
**Result:** Pass / Block
|
|
63
|
+
|
|
64
|
+
### Scope
|
|
65
|
+
- [x] All success criteria addressed
|
|
66
|
+
- [x] No out-of-scope changes
|
|
67
|
+
|
|
68
|
+
### Security
|
|
69
|
+
- [x] Security-audit run (required for auth/API/sensitive)
|
|
70
|
+
- [x] No Critical/High findings
|
|
71
|
+
|
|
72
|
+
### Notes
|
|
73
|
+
[Any observations or recommendations]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Resources
|
|
77
|
+
|
|
78
|
+
- Spec directory: `specs/`
|
|
79
|
+
- Standards: `standards/`
|
|
80
|
+
- Security audit: `.agent/skills/security-audit/SKILL.md` (run before review when applicable)
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: creating-skills
|
|
3
|
+
description: Acquires or creates Blueprint OS skills. Searches skills.sh registry first, installs and customizes if found, creates from scratch as fallback. Use when the user asks to create a skill, add a capability, find a skill, or automate a repeatable agent task.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Creating Skills
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- User asks to "create a skill for [task]" or "find a skill for [task]"
|
|
11
|
+
- A repeatable workflow needs to be captured and reused
|
|
12
|
+
- An existing skill needs to be refactored or extended
|
|
13
|
+
- User wants to document a process the agent should follow consistently
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
- [ ] Clarify the skill's purpose — what task does it solve, and what are its triggers?
|
|
18
|
+
- [ ] Search skills.sh for an existing community skill (see Instructions > Discovering on skills.sh)
|
|
19
|
+
- [ ] If found: install with `npx skills add <owner/repo>` and evaluate fit
|
|
20
|
+
- [ ] If it covers the need as-is: done — update the Skills Index in `README.md`
|
|
21
|
+
- [ ] If it partially fits: customize it (see Instructions > Customizing an installed skill)
|
|
22
|
+
- [ ] If nothing suitable found: create from scratch (see Instructions > Creating from scratch)
|
|
23
|
+
- [ ] Save to `.agent/skills/<skill-name>/SKILL.md`
|
|
24
|
+
- [ ] Update the Skills Index in `README.md`
|
|
25
|
+
|
|
26
|
+
## Instructions
|
|
27
|
+
|
|
28
|
+
### Discovering on skills.sh
|
|
29
|
+
|
|
30
|
+
Before building anything, search the [skills.sh registry](https://skills.sh) — it has 200+ community skills covering frontend, backend, testing, APIs, databases, and more.
|
|
31
|
+
|
|
32
|
+
**Search via agent:**
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx skills add find-skills
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Then ask the `find-skills` skill to search for what you need.
|
|
39
|
+
|
|
40
|
+
**Browse directly:** [skills.sh](https://skills.sh) — filter by category or search by keyword.
|
|
41
|
+
|
|
42
|
+
**Install a skill:**
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx skills add <owner/repo>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Example:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx skills add supabase/agent-skills
|
|
52
|
+
npx skills add vercel-labs/agent-skills
|
|
53
|
+
npx skills add anthropics/skills
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Installed skills land in `.agent/skills/` automatically — compatible with Blueprint OS out of the box.
|
|
57
|
+
|
|
58
|
+
### Customizing an installed skill
|
|
59
|
+
|
|
60
|
+
After installing, open the skill's `SKILL.md` and evaluate:
|
|
61
|
+
|
|
62
|
+
- **Keep**: the core workflow steps and any low-freedom (exact command) sections
|
|
63
|
+
- **Adjust**: naming conventions, paths, and tool-specific references to match your project
|
|
64
|
+
- **Add**: project-specific context in a new `## Project context` section at the bottom
|
|
65
|
+
- **Remove**: sections irrelevant to your stack
|
|
66
|
+
|
|
67
|
+
When customizing, save edits directly to the installed `SKILL.md`. Do not rename the file — only update its content.
|
|
68
|
+
|
|
69
|
+
If the changes are substantial enough that the skill diverges significantly from upstream, rename the folder to reflect your custom version (e.g., `supabase-postgres/` → `postgres-migrations/`).
|
|
70
|
+
|
|
71
|
+
### Creating from scratch
|
|
72
|
+
|
|
73
|
+
Use this path only when skills.sh has nothing suitable.
|
|
74
|
+
|
|
75
|
+
**Naming**
|
|
76
|
+
|
|
77
|
+
- `name` field: gerund form, lowercase, hyphens only, max 64 chars
|
|
78
|
+
- Good: `reviewing-code`, `managing-databases`, `deploying-to-production`
|
|
79
|
+
- Bad: `code-review`, `database`, `deploy`
|
|
80
|
+
- Folder name must match the `name` field exactly
|
|
81
|
+
|
|
82
|
+
**Description**
|
|
83
|
+
|
|
84
|
+
- Written in third person
|
|
85
|
+
- Must state what it does AND when to trigger it (keywords/phrases)
|
|
86
|
+
- Max 1024 chars
|
|
87
|
+
- Example: "Reviews code changes for quality, security, and style. Use when the user asks for a code review, PR review, or feedback on an implementation."
|
|
88
|
+
|
|
89
|
+
**Body structure**
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
---
|
|
93
|
+
name: [gerund-name]
|
|
94
|
+
description: [third-person description with triggers]
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
# [Skill Title]
|
|
98
|
+
|
|
99
|
+
## When to use this skill
|
|
100
|
+
- [Specific trigger condition]
|
|
101
|
+
- [Another trigger]
|
|
102
|
+
|
|
103
|
+
## Workflow
|
|
104
|
+
- [ ] [Step 1]
|
|
105
|
+
- [ ] [Step 2]
|
|
106
|
+
|
|
107
|
+
## Instructions
|
|
108
|
+
[Logic, rules, code examples — tailored to the task]
|
|
109
|
+
|
|
110
|
+
## Resources
|
|
111
|
+
- [Link to scripts/ or examples/ if applicable]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Degrees of freedom**
|
|
115
|
+
|
|
116
|
+
Match the instruction style to how much autonomy the agent should have:
|
|
117
|
+
|
|
118
|
+
- **High freedom** (exploration, design decisions) → use bullet points with heuristics
|
|
119
|
+
- **Medium freedom** (structured but flexible) → use code block templates the agent fills in
|
|
120
|
+
- **Low freedom** (fragile operations, exact steps required) → use specific bash commands or exact sequences
|
|
121
|
+
|
|
122
|
+
**File size**
|
|
123
|
+
|
|
124
|
+
Keep `SKILL.md` under 500 lines. If more detail is needed, create a secondary file and link to it:
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
[See ADVANCED.md](ADVANCED.md)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Only one level of linking. Do not nest further.
|
|
131
|
+
|
|
132
|
+
### Path conventions
|
|
133
|
+
|
|
134
|
+
Always use forward slashes `/` for paths, never backslashes `\`.
|
|
135
|
+
|
|
136
|
+
## Resources
|
|
137
|
+
|
|
138
|
+
- Community registry: [skills.sh](https://skills.sh)
|
|
139
|
+
- skills.sh guide: `adapters/skills-sh.md`
|
|
140
|
+
- Blueprint OS skill examples: `.agent/skills/`
|
|
141
|
+
- Standards guide: `standards/README.md`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deploying-standards
|
|
3
|
+
description: Injects relevant project standards into the agent's current context before implementation work begins. Use when the user is about to start coding, asks the agent to build something, or says "inject standards", "load standards", or "deploy standards".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Deploying Standards
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- User is about to start implementation on a task or feature
|
|
11
|
+
- User asks to "inject standards", "load context", or "deploy standards"
|
|
12
|
+
- Starting a new conversation with context that needs to carry forward
|
|
13
|
+
- After shaping a spec and before executing it
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
- [ ] Check if a spec exists for the current task in `specs/`
|
|
18
|
+
- [ ] Read `standards/README.md` to see what standards files are available
|
|
19
|
+
- [ ] Read `references/README.md` to see what reference files exist
|
|
20
|
+
- [ ] Identify which standards and references are relevant to the current task (spec may list applicable references)
|
|
21
|
+
- [ ] Read those standards and reference files and internalize the content
|
|
22
|
+
- [ ] Confirm to the user which standards and references were loaded
|
|
23
|
+
- [ ] Proceed with the task using those standards and references actively applied
|
|
24
|
+
|
|
25
|
+
## Instructions
|
|
26
|
+
|
|
27
|
+
### Relevance mapping
|
|
28
|
+
|
|
29
|
+
Match the task type to the standards files most likely to apply:
|
|
30
|
+
|
|
31
|
+
| Task type | Standards to load |
|
|
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` |
|
|
37
|
+
| Writing tests | `testing-approach`, `naming-conventions` |
|
|
38
|
+
| Refactoring | `naming-conventions`, `folder-structure`, relevant domain |
|
|
39
|
+
| General feature | `tech-stack`, `naming-conventions`, `folder-structure` |
|
|
40
|
+
|
|
41
|
+
When in doubt, always load `tech-stack` and `naming-conventions` at minimum.
|
|
42
|
+
|
|
43
|
+
### Auto-suggest mode
|
|
44
|
+
|
|
45
|
+
If the user says "deploy standards" without specifying which:
|
|
46
|
+
|
|
47
|
+
1. Ask what they are about to build (one sentence)
|
|
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`"
|
|
50
|
+
|
|
51
|
+
### Manual mode
|
|
52
|
+
|
|
53
|
+
If the user specifies standards explicitly (e.g., "inject the API standards"):
|
|
54
|
+
|
|
55
|
+
1. Locate the matching file in `standards/`
|
|
56
|
+
2. Read it and confirm it is loaded
|
|
57
|
+
|
|
58
|
+
### References
|
|
59
|
+
|
|
60
|
+
If the spec lists "Applicable references" or the task involves UI flows, architecture, or design, check `references/` and load relevant files (design docs, flowcharts, diagrams). Reference `references/README.md` for the index.
|
|
61
|
+
|
|
62
|
+
### After loading
|
|
63
|
+
|
|
64
|
+
State which standards and references were loaded, then proceed with the task. Keep standards active throughout the session — do not ignore them mid-task.
|
|
65
|
+
|
|
66
|
+
If a decision during execution conflicts with a loaded standard, surface the conflict explicitly:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
This would normally follow [standard X], but [situation]. Do you want me to follow the standard or make an exception here?
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Standards not found
|
|
73
|
+
|
|
74
|
+
If `standards/` is empty or does not exist:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
No standards files found. To create standards for this project, use the discovering-standards skill.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Resources
|
|
81
|
+
|
|
82
|
+
- Standards directory: `standards/`
|
|
83
|
+
- References directory: `references/`
|
|
84
|
+
- Discover new standards: `.agent/skills/discovering-standards/SKILL.md`
|
|
85
|
+
- Shape a spec first: `.agent/skills/shaping-specs/SKILL.md`
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: discovering-standards
|
|
3
|
+
description: Extracts coding patterns, conventions, and architectural decisions from an existing codebase and saves them as standards files. Use when the user asks to document standards, capture patterns, extract conventions, or onboard an AI agent to an existing project.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Discovering Standards
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- User asks to "document my standards", "capture my conventions", or "extract patterns from my code"
|
|
11
|
+
- Onboarding Blueprint OS to an existing project for the first time
|
|
12
|
+
- A recurring pattern has emerged that should be formalized
|
|
13
|
+
- Tribal knowledge exists in the code but not in writing
|
|
14
|
+
- Before brainstorming a new feature in an existing codebase — discover constraints first, then brainstorm within them
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
- [ ] Identify which area to document (ask user if unclear)
|
|
19
|
+
- [ ] Scan relevant files in that area
|
|
20
|
+
- [ ] Identify recurring patterns, naming conventions, and architectural decisions
|
|
21
|
+
- [ ] Draft a standards file and confirm with the user
|
|
22
|
+
- [ ] Save to `standards/<category>.md`
|
|
23
|
+
- [ ] Update `standards/README.md` index if the file is new
|
|
24
|
+
|
|
25
|
+
## Instructions
|
|
26
|
+
|
|
27
|
+
### Discovery areas
|
|
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
|
|
41
|
+
|
|
42
|
+
### Extraction process
|
|
43
|
+
|
|
44
|
+
For each area:
|
|
45
|
+
|
|
46
|
+
1. Read 3–5 representative files
|
|
47
|
+
2. Identify what is consistent across them (naming, structure, patterns)
|
|
48
|
+
3. Note any exceptions — are they intentional or accidental?
|
|
49
|
+
4. Write only what the agent needs to replicate the pattern, not what is obvious
|
|
50
|
+
|
|
51
|
+
### Standards file format
|
|
52
|
+
|
|
53
|
+
Save to `standards/<category>.md`:
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
# [Category] Standards
|
|
57
|
+
|
|
58
|
+
**Last updated:** [YYYY-MM-DD]
|
|
59
|
+
|
|
60
|
+
## Overview
|
|
61
|
+
[One paragraph: what this standard covers and why it exists]
|
|
62
|
+
|
|
63
|
+
## Conventions
|
|
64
|
+
|
|
65
|
+
### [Convention name]
|
|
66
|
+
[Description of the pattern]
|
|
67
|
+
|
|
68
|
+
**Example:**
|
|
69
|
+
[code example or file path showing the pattern]
|
|
70
|
+
|
|
71
|
+
**Avoid:**
|
|
72
|
+
[counter-example if useful]
|
|
73
|
+
|
|
74
|
+
## Exceptions
|
|
75
|
+
[Known deviations and why they exist]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### What to capture vs. skip
|
|
79
|
+
|
|
80
|
+
**Capture:**
|
|
81
|
+
- Decisions that aren't obvious from reading a single file
|
|
82
|
+
- Patterns that repeat across the codebase
|
|
83
|
+
- Choices that differ from common defaults (e.g., "we use tabs, not spaces")
|
|
84
|
+
- Architectural boundaries (e.g., "services never import from controllers")
|
|
85
|
+
|
|
86
|
+
**Skip:**
|
|
87
|
+
- Things the language or framework enforces automatically
|
|
88
|
+
- One-off implementations with no pattern
|
|
89
|
+
- Preferences with no clear rationale
|
|
90
|
+
|
|
91
|
+
### File naming
|
|
92
|
+
|
|
93
|
+
Use lowercase, hyphen-separated names that match the category:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
standards/tech-stack.md
|
|
97
|
+
standards/naming-conventions.md
|
|
98
|
+
standards/api-design.md
|
|
99
|
+
standards/component-patterns.md
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Resources
|
|
103
|
+
|
|
104
|
+
- Standards directory: `standards/`
|
|
105
|
+
- Standards guide: `standards/README.md`
|
|
106
|
+
- Next step for new feature work: `.agent/skills/brainstorming/SKILL.md` (brainstorm within discovered constraints)
|
|
107
|
+
- Next step before implementation: `.agent/skills/deploying-standards/SKILL.md`
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quality-assurance
|
|
3
|
+
description: Adds or updates tests to validate behavior against acceptance criteria. Use when the user asks to add tests, run QA, validate acceptance criteria, or ensure test coverage after implementation. Applies to frontend and backend code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Quality Assurance
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- Implementation is complete and tests need to be added or updated
|
|
11
|
+
- User asks to "add tests", "QA", "validate acceptance criteria", or "test coverage"
|
|
12
|
+
- Spec has success criteria that require test evidence
|
|
13
|
+
- Before merge when quality gates are in use
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
- [ ] Load the spec for the current task from `specs/<feature-name>.md`
|
|
18
|
+
- [ ] Identify acceptance criteria and success criteria from the spec
|
|
19
|
+
- [ ] Load `standards/testing-approach.md` if it exists
|
|
20
|
+
- [ ] Add or update tests to cover the acceptance criteria
|
|
21
|
+
- [ ] Record test coverage or evidence in the spec or a brief report
|
|
22
|
+
- [ ] Flag auth, API, or sensitive data changes for security-audit if applicable
|
|
23
|
+
|
|
24
|
+
## Instructions
|
|
25
|
+
|
|
26
|
+
### Test scope by layer
|
|
27
|
+
|
|
28
|
+
| Layer | Test types | Examples |
|
|
29
|
+
|-------|------------|----------|
|
|
30
|
+
| Frontend | Unit, integration, E2E | Components, hooks, user flows |
|
|
31
|
+
| Backend | Unit, integration, API | Services, handlers, database |
|
|
32
|
+
| Shared | Unit | Utilities, validation, data transforms |
|
|
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).
|
|
35
|
+
|
|
36
|
+
### Acceptance criteria mapping
|
|
37
|
+
|
|
38
|
+
For each unchecked success criterion in the spec:
|
|
39
|
+
|
|
40
|
+
1. Determine the test type needed (unit, integration, E2E)
|
|
41
|
+
2. Write the test
|
|
42
|
+
3. Run the test and confirm it passes
|
|
43
|
+
4. Update the spec to mark the criterion as verified or add a brief evidence note
|
|
44
|
+
|
|
45
|
+
### Evidence recording
|
|
46
|
+
|
|
47
|
+
Add a section to the spec or append a note:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Test evidence
|
|
51
|
+
- [Criterion X]: Covered by `path/to/test.ts` — passes
|
|
52
|
+
- [Criterion Y]: Covered by integration test in `path/to/integration.test.ts`
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Security-sensitive changes
|
|
56
|
+
|
|
57
|
+
If the implementation touches authentication, API security, or sensitive data handling, note that the `security-audit` skill should be run before merge.
|
|
58
|
+
|
|
59
|
+
## Handoff
|
|
60
|
+
|
|
61
|
+
- If auth/API/sensitive data: recommend running `security-audit` next
|
|
62
|
+
- Otherwise: recommend running `code-review` before merge
|
|
63
|
+
|
|
64
|
+
## Resources
|
|
65
|
+
|
|
66
|
+
- Spec directory: `specs/`
|
|
67
|
+
- Testing standards: `standards/testing-approach.md`
|
|
68
|
+
- Next step: `.agent/skills/security-audit/SKILL.md` (for auth/API/sensitive) or `.agent/skills/code-review/SKILL.md`
|