Skip to content

Commit 3889116

Browse files
committed
improve(squad): add optional visual assets support to handoff pipeline (0.12.11)
1 parent 854b122 commit 3889116

7 files changed

Lines changed: 39 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [0.12.11] - 2026-03-03
4+
5+
### Changed
6+
- **`commands/squad.md`, `.contextkit/commands/squad.md`** — PO agent now checks for screenshots or images the user attached to the `/squad` invocation. If present, each image is saved to `.contextkit/squad/assets/` and listed with a one-line description under the new optional `### Visual Assets` section in the handoff. If no images are provided the section is left empty and the pipeline continues unchanged.
7+
- **`commands/squad-architect.md`, `.contextkit/commands/squad-architect.md`** — Architect now reads any `### Visual Assets` file paths from the PO Spec before writing the plan.
8+
- **`commands/squad-dev.md`, `.contextkit/commands/squad-dev.md`** — Dev now reads any `### Visual Assets` file paths from the PO Spec before implementing.
9+
- **`README.md`** — Added Visual Assets section to the Squad Workflow docs and updated the PO role description.
10+
11+
---
12+
313
## [0.12.9] - 2026-03-03
414

515
### Changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The squad workflow turns a single AI session into a structured multi-role pipeli
173173

174174
| Step | Role | Command | What it does |
175175
|------|------|---------|-------------|
176-
| 1 | Product Owner | `/squad` | Writes a user story, acceptance criteria, edge cases, and scope |
176+
| 1 | Product Owner | `/squad` | Writes a user story, acceptance criteria, edge cases, and scope. Optionally captures screenshots/images as visual assets. |
177177
| 2 | Architect | `/squad-architect` | Designs the technical approach, files to change, and implementation steps |
178178
| 3 | Developer | `/squad-dev` | Implements the code following the architect's plan |
179179
| 4 | Tester | `/squad-test` | Writes and runs tests against the PO's acceptance criteria |
@@ -223,6 +223,10 @@ Architect has questions for PO → run /squad to clarify
223223

224224
After clarifications are added, re-run the asking role's command to continue. This prevents misunderstandings from compounding through the pipeline.
225225

226+
### Visual Assets (Optional)
227+
228+
If you have a screenshot, mockup, or design image relevant to the task, paste or attach it when running `/squad`. The PO agent will save it to `.contextkit/squad/assets/` and reference the path in the handoff. Architect and Dev agents automatically read any listed assets when they pick up the handoff.
229+
226230
---
227231

228232
## Git Hooks & Quality Gates

commands/squad-architect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You are the **Architect** in a squad workflow.
2323
- Tell the user which command to run next (e.g., "Architect clarifications added. Run `/squad-dev` to continue.")
2424
- **Stop here** — do not rewrite the full plan.
2525
26-
3. Read the **PO Spec** section (User Story, Acceptance Criteria, Edge Cases, Out of Scope).
26+
3. Read the **PO Spec** section (User Story, Acceptance Criteria, Edge Cases, Out of Scope). If a `### Visual Assets` section exists and has file paths listed, read each file — these are screenshots or mockups the user provided. Use them to inform your design.
2727
2828
4. **Check for previous clarifications**: If there is a `### Questions for PO` section in the Architect Plan block AND the `### Answers` section in the PO Spec block has responses, read the answers. Use them to inform your plan — the PO has addressed your earlier questions.
2929

commands/squad-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You are the **Developer** in a squad workflow.
2323
- Tell the user which command to run next (e.g., "Dev clarifications added. Run `/squad-test` to continue.")
2424
- **Stop here** — do not re-implement.
2525
26-
3. Read the **PO Spec** (for acceptance criteria) and **Architect Plan** (for implementation steps).
26+
3. Read the **PO Spec** (for acceptance criteria) and **Architect Plan** (for implementation steps). If the PO Spec has a `### Visual Assets` section with file paths listed, read each file — these are screenshots or mockups relevant to what you are building.
2727
2828
4. **Check for previous clarifications**: If there is a `### Questions for Architect` section in the Dev Implementation block AND the Architect Plan block has answers addressing them, read the answers. Use them to inform your implementation.
2929

commands/squad.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ status: pending
2828

2929
### Out of Scope
3030

31+
### Visual Assets
32+
3133
### Answers
3234

3335
---
@@ -99,6 +101,7 @@ status: pending
99101
- Write specific, testable **Acceptance Criteria** as a numbered checklist
100102
- Identify **Edge Cases** that the dev and tester should handle
101103
- Define what is **Out of Scope** to prevent scope creep
104+
- **Check for visual assets** (optional): If the user provided any screenshots or images in this conversation, save each one to `.contextkit/squad/assets/<descriptive-name>.png` and list every saved file path with a one-line description under `### Visual Assets`. If no images were provided, leave `### Visual Assets` empty.
102105
103106
5. After writing the spec, update the handoff file:
104107
- Set `## 1. PO Spec` status to `status: done`

contextkit-docs/app/docs/squad/page.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default function SquadPage() {
99
{ id: 'pipeline', text: 'Pipeline Roles' },
1010
{ id: 'single-task', text: 'Single-Task Flow' },
1111
{ id: 'peer-review', text: 'Peer Review (Optional)' },
12+
{ id: 'visual-assets', text: 'Visual Assets (Optional)' },
1213
{ id: 'batch', text: 'Batch Flow' },
1314
{ id: 'feedback', text: 'Feedback Loop' },
1415
];
@@ -78,7 +79,7 @@ export default function SquadPage() {
7879
<td className="py-2 pr-4">1</td>
7980
<td className="py-2 pr-4">Product Owner</td>
8081
<td className="py-2 pr-4"><code className="rounded bg-muted px-1 font-mono text-xs">/squad</code></td>
81-
<td className="py-2">Writes user story, acceptance criteria, edge cases, and scope</td>
82+
<td className="py-2">Writes user story, acceptance criteria, edge cases, and scope. Optionally captures screenshots or images as visual assets.</td>
8283
</tr>
8384
<tr className="border-b">
8485
<td className="py-2 pr-4">2</td>
@@ -156,6 +157,22 @@ export default function SquadPage() {
156157
</p>
157158
</div>
158159

160+
{/* Visual Assets */}
161+
<div id="visual-assets" className="space-y-4 pt-4 scroll-mt-20">
162+
<h2 className="scroll-m-20 text-2xl font-semibold tracking-tight">Visual Assets <span className="text-base font-normal text-muted-foreground">(Optional)</span></h2>
163+
<p className="text-muted-foreground leading-relaxed">
164+
If you have a screenshot, mockup, or design image relevant to the task, paste or attach it when running <code className="rounded bg-muted px-1 font-mono text-xs">/squad</code>. The PO agent will save it to <code className="rounded bg-muted px-1 font-mono text-xs">.contextkit/squad/assets/</code> and reference the path in the handoff under a <code className="rounded bg-muted px-1 font-mono text-xs">### Visual Assets</code> section.
165+
</p>
166+
<div className="rounded-lg border border-primary/20 bg-primary/5 p-4">
167+
<p className="text-sm font-medium mb-2">How downstream agents use it</p>
168+
<div className="space-y-1 text-sm text-muted-foreground">
169+
<p>— Architect reads the images before writing the technical plan</p>
170+
<p>— Developer reads the images before implementing</p>
171+
<p>— If no images are provided, the section is left empty and the pipeline runs unchanged</p>
172+
</div>
173+
</div>
174+
</div>
175+
159176
{/* Batch Flow */}
160177
<div id="batch" className="space-y-4 pt-4 scroll-mt-20">
161178
<h2 className="scroll-m-20 text-2xl font-semibold tracking-tight">Batch Flow</h2>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nolrm/contextkit",
3-
"version": "0.12.10",
3+
"version": "0.12.11",
44
"description": "ContextKit - Context Engineering for AI Development. Provide rich context to AI through structured MD files with standards, code guides, and documentation. Works with Cursor, Claude, Aider, VS Code Copilot, and more.",
55
"main": "lib/index.js",
66
"bin": {

0 commit comments

Comments
 (0)