Implement F003 design workflow candidate

This commit is contained in:
rob
2026-11-17 17:51:53 +00:00
parent 155bd540fe
commit caf697bc4b
15 changed files with 190 additions and 6 deletions
+30
View File
@@ -0,0 +1,30 @@
---
name: bortstack-design
description: Create and refine editable visual concepts, capture Captain approval through Bortstack Context, hand designs to implementation, and validate the result with optional Penpot MCP.
---
# Bortstack Design
Use with `bortstack-context`, which owns tasks, decisions, design references, approvals, overrides, and lifecycle states. If that skill is unavailable, report the missing dependency and do not invent a parallel approval system. This skill owns concept work, Penpot operations, implementation handoffs, and visual comparison. It applies to new and existing projects across frameworks and business/personal profiles. Never infer ownership or contributor authority from a profile. Preserve installed `roborto-*` skills during migration.
## Start with project boundaries
Read repository `AGENTS.md`, the six maintained context records, approved style/design sources, and the accepted task. Inspect Git status and worktrees before files change. Confirm the design belongs to this project; do not edit a separate application or production environment as an incidental pilot. Identify target screens, content, states, responsive needs, constraints, and what Captain must decide. Use a dedicated task worktree for repository changes under the context contract.
## Concepts and editable source
Generate at least two meaningfully different concepts when the task calls for alternatives. Explain the choice each concept presents. Keep shapes, text, components, and layout editable in Penpot or an importable vector source; a flattened screenshot is only a preview. Record concept IDs, source file/version, target viewport, assets/fonts, and known limitations. Inspect an existing design before editing it. Refine a selected concept in place or as a versioned duplicate, preserve unrelated elements and IDs where practical, and compare before/after structure. Never describe an importable SVG as verified editable in Penpot until import and editing have been observed.
## Optional Penpot connection
Follow `references/penpot-operations.md`. Discover the available Penpot server and MCP tools at runtime; do not assume a specific URL, port, token, or tool name. Confirm project/file access and create/edit capability before mutation. MCP can create and modify native editable objects when available. If MCP is unavailable, prepare importable vector sources, use the Penpot UI for import/editing when accessible, and give Captain a precise manual path. Record which path was actually tested. Penpot absence does not block unrelated context or non-design tasks. Support local and future self-hosted Penpot on Linux and Windows without changing Forge Core.
## Approval and handoff
Present the alternatives and refined selection for **explicit Captain approval**. Ask for approval of a named design reference/version, not a vague direction. `bortstack-context` records Captain, date, task, reference/version, and any conditions in the project's task/decision files. An explicit override records who authorised it, scope, date, and rationale; it is not a blanket approval. Design-dependent implementation waits for approved design or a task-specific recorded override. Design approval does not authorise application implementation or mark its task Complete.
Use `references/implementation-handoff.md` to prepare a structured handoff: approved source and version, screens/states, dimensions and responsive rules, components, typography/colour/assets, interactions, accessibility notes, open gaps, and target implementation task. Mark unapproved concepts clearly. Do not hand off a screenshot alone when editable source is required.
## Visual validation
Compare the implementation or reference rendering to the approved design at the stated viewports and states. Check layout, spacing, typography, colour, assets, interaction states, and preservation of approved elements. Record evidence, deviations, severity, and whether Captain approved any change. Do not claim a visual match from source inspection alone. Report unavailable browsers, platforms, or implementations as pending. `bortstack-context` updates task status and handoff; only human acceptance closes the task.
@@ -0,0 +1,19 @@
# Design handoff record
Copy into the project's context/task record or a linked design handoff, then fill observed values. Keep approval in `bortstack-context` records.
| Field | Required content |
| --- | --- |
| Project and task | Repository, design task ID, implementation task ID |
| Approval | Captain, date, conditions, context-record link |
| Editable source | Penpot server/project/file/board or importable source path, version |
| Selection | Chosen concept and why; alternatives remain labelled exploratory |
| Screens and states | Desktop/mobile, loading, empty, error, focus/hover where relevant |
| Layout | Dimensions, breakpoints, grid, spacing, order, overflow |
| Visual tokens | Type, colour, icons, imagery, assets/licences |
| Behaviour | Navigation, actions, transitions, form responses |
| Accessibility | Contrast, labels, keyboard, focus, motion considerations |
| Gaps | Unspecified behavior and decisions still needed |
| Validation | Viewports, screenshots/renderings, deviations, approvals |
The handoff is implementation guidance, not permission to change application code. The implementation task follows its own acceptance and worktree gate.
@@ -0,0 +1,19 @@
# Penpot connection and fallback
Penpot is optional and outside Forge Core. Treat server URL, authentication, workspace/project/file, and MCP transport as project-specific configuration. Do not copy tokens into repository files or logs.
## MCP route
1. Discover the connected Penpot MCP tool and inspect its supported operations. A Docker container being up is not proof that the current Codex session can call MCP.
2. Confirm access to the intended project and file, then inventory existing elements before changes.
3. Create a versioned concept page/board or duplicate. Keep text as text and shapes as shapes. Record returned references and any unsupported operations.
4. After refinement, inspect the result and compare its elements with the prior version. Export a preview only as evidence; retain the editable source.
5. Record server version and platform as observed, without treating a Linux check as Windows validation.
## Non-MCP route
Prepare separate editable SVG concepts with text and vector shapes, plus a concise import/edit guide. In Penpot's UI, import each into the intended file and verify that text and shapes remain separately editable; if the import flattens or substitutes text, repair in Penpot or report the limit. Refine a versioned copy, inspect retained elements, and record file/board references. If the UI is inaccessible, preserve the SVGs and mark Penpot editability unverified. Captain can review an exported preview, but approval must identify the editable source/version.
## Platform checks
On Linux and Windows, use the repository's documented Docker/Podman setup and the configured local/self-hosted URL. Check server reachability, login, MCP discovery if enabled, native object edits, SVG import fallback, preview export, and retained elements. Windows PowerShell and Linux shells differ; describe UI actions or use the project's actual scripts rather than inventing universal commands. Report each platform separately. Do not start persistent containers, alter ports, or change server configuration merely to validate a skill.