/devkit-compozy:screen-designfrom devkit-compozy
Reads a project's screen map and mockup version, proposes or confirms a row for each screen a change declares, and runs the mechanical check of the screen map (`screens-check`). Use when a change's `## Screens` section names at least one screen, before implementation starts.
Ships in devkit-compozy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Works on one thing: the rows of the project's screen map and the mockup version they point to,
for the screens a change declares in openspec/changes/<id>/proposal.md's ## Screens section.
Writes no product code, no test and no spec.
The project's openspec/config.yaml carries a design: block naming where this lives:
design:
screen_map: docs/design/screen-map.md
mockup: Figma # optional: the tool or document the mockup lives in
screen_map is a path to a Markdown document, relative to the project root. It holds a table
with one row per screen, the screen id as the row's first cell, and somewhere in the
document a line starting with Mockup: carrying the version or the date of the mockup the rows
describe (Mockup: v3, Mockup: 1.2.0, Mockup: 2026-11-14).mockup names the tool or document the mockup itself lives in (a Figma file, a design doc); it
is informational only; screens-check does not read it to decide pass or fail.design: block means the project has no screen map to check against: nothing to read, and
screens-check is a no-op for it (see its contract below).For a screen not yet in the map, or whose mockup is no longer current, propose a row with:
## Screens section uses, exactly (no rename at this stage).Bump the document's Mockup: line to the version or date the new rows describe; every row the
document carries is read against that one version, not a per-row one.
Propose and write the rows on the change's own branch (<id>), in a worktree created for the
change when one does not already exist, together with openspec/changes/<id>/mock/screens.md
(the change's own record of what was proposed). Commit both there. The screen map's rows and the
code that implements the screens merge together in the same pull request: a map updated on main
ahead of the code it describes would describe screens no commit yet builds.
Never approve a proposed row. The screen-map rows and the mockup version are part of what the
owner reviews before implement runs: the plan approval, and the mock-up approval of a change
flagged ui (the CompozyOS loops ask both as requests of their own). Only the owner's answer opens
the way to code.
scripts/screens-check.mjs is the command half of this skill's check (design D5): it confirms every
screen a change declares is a row of the map and the map's Mockup: line carries a version or a
date, but it never judges whether a row's content is accurate — that is this skill's and the
owner's job.
node scripts/screens-check.mjs --change <id> [--json]
Mockup: line, or the
change declares no screens, or the project has no design: block. A project without a UI pays
nothing for this check.Mockup: line, or that line's value is neither a version nor an ISO date. The message names
what is missing.design: block whose screen_map names no
screen_map key or a path that does not exist, or a map path that exists but cannot be read
(a directory, or no read permission).--json prints, on stdout, a verdict shaped like this (no trailing fields beyond these; a
no-op run still reports "pass": true and "noop": true):
{
"version": 1,
"change": "compozy-loop-v2",
"screens": ["chat-list", "chat-thread"],
"designConfigured": true,
"screenMap": "docs/design/screen-map.md",
"mockupTool": "Figma",
"mapped": ["chat-list", "chat-thread"],
"missing": [],
"mapMockup": "v3",
"mapMockupOk": true,
"noop": false,
"pass": true
}
A setup error (exit 3) prints {"version": 1, "error": "<message>"} on stdout instead, and the
same message on stderr, prefixed screens-check: .
mockup (the tool) as a substitute for the map's own Mockup: line (the version):
screens-check only reads the latter.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub chacal88/devkit --plugin devkit-compozy