Repository navigation
feat(skills): add the design-variants skill for comparing UI design versions - #24
Merged
Merged
Conversation
…ersions Add an internal design-variants skill: firstmate proposes design directions, waits for the captain's OK, has workers build the versions, shows one compare board with pick / combine / another round / none, and turns the pick into a PR. One skill, two build modes: parallel live code versions on 127.0.0.1 ports 44n0, or one Paper design worker drawing the versions in sequence on a new page. Register the skill in the agent-only trigger index and the documentation audience inventory, and note it in the changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Add a design-variants skill to firstmate: when asked to see several design versions of a UI side by side, or to try a design more than one way before choosing, firstmate proposes directions, gets them OK'd, has workers build the versions, then shows a compare board with pick / combine / another round / none, and turns the pick into a PR. First used for the Napszalon nav from a sketch (three live versions on ports 4410, 4420, 4430).
Decided by the owner:
What Changed
.agents/skills/design-variantsskill:agent-skill-trigger-indexand lists it asagent-runtimeindocs/documentation-audiences.json.CHANGELOG.md.🤖 Generated with Claude Code
Risk Assessment
✅ Low: Documentation-only change adding one agent skill plus index, changelog, and audience entries. The skill covers every constraint in the intent, and every helper it cites (fm-brief, fm-spawn, fm-capacity, fm-send, the
# Needslineapp: Paper, scout-completion, captain-hold-lifecycle, process-event-sources) exists in the repo.Testing
What I ran: - Targeted tests: the documentation-audiences, skill-usage and spawn-preflight tests all passed. - Paper-mode guard: I scaffolded a real scout brief and added the Paper need to it. The spawn preflight lets it through while Paper is running and refuses it when the app is not running. - Port check: ports 4410, 4420 and 4430 are all in use right now, probably by the existing Napszalon versions. That is the case where the skill says to take the next free port. - Live dry run: a headless firstmate session given the Napszalon nav ask loaded design-variants on its own, suggested code mode with Paper as an option, proposed three directions (version 1 being the sketch built literally), and said it would start no worker, push nothing, and use no Paper file other than "ada" until the owner OKs it. There is no UI in this change, so the evidence is text transcripts, not screenshots. My first hand-made brief failed the preflight because I put a sub-heading inside the# Needssection; that was my test setup, not a product bug, and the scaffolded brief works. The worktree is clean. The tool denied my attempt to delete a throwaway project folder from the evidence directory, sofm-home/projects/napszalon/(an empty git repo with one commit) is still there and may need removing before the evidence is published.Evidence: Live firstmate dry run: skill chosen and the message it would send the captain
Evidence: Paper-mode preflight (allowed while Paper runs, refused when the app is not running) and port check
Evidence: Scaffolded Paper-mode scout brief with # Needs app: Paper
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
.agents/skills/design-variants/SKILL.md:45- The code-mode port rule 'Version n gets port 44n0' only works for n<=9. A 10th version would get 44100, which breaks the 44n0 pattern and can collide with ranges the fallback rule hands out. The intent says code mode defaults to 3 and the worker limit caps it, so this is unlikely in practice. Could cap code mode at 9 versions or define the rule as 4400+10n.✅ **Test** - passed
✅ No issues found.
bash tests/fm-documentation-audiences.test.sh(checks the new SKILL.md is listed exactly once with the agent-runtime audience, and that its links resolve)bash tests/fm-skill-usage.test.shbash tests/fm-spawn-preflight.test.shChecked that the scripts and skills design-variants names exist: bin/fm-brief.sh, fm-spawn.sh, fm-capacity.sh, fm-send.sh, and the process-event-sources, captain-hold-lifecycle and scout-completion skillsFM_HOME=<evidence>/fm-home bin/fm-brief.sh napszalon-nav-paper napszalon --scout, then added# Needs/- app: Paperand ranbin/fm-spawn-preflight.shon it: exit 0 with Paper running, exit 1 with a refusal line when the app is not runninglsof -nP -iTCP:<port> -sTCP:LISTENon 4410/4420/4430 (the port check the skill tells firstmate to run first)Live dry run:claude -pin the worktree, limited to Read/Glob/Grep/Skill, given the captain's Napszalon nav ask with a sketch; recorded which skill it loaded and its message to the captain✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.