/great-cto:reference-lockfrom great-cto
Creates a written lock and decision ledger from design references before building UI, then verifies the build against the lock. Prevents averaged, untraceable, or drifted designs by recording source attribution and specific choices.
Ships in great-cto. 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.
None: SKILL.md is the whole skill.
References get collected and then lost in one of three ways:
The lock fixes the first, the ledger the second, the close-out check the third.
Take the first source on this list that answers the question, and record which one did:
| # | Source | Cost | Gives |
|---|---|---|---|
| 1 | What the operator handed over: URLs, screenshots, a Figma file | free | the strongest signal; it overrides the rest |
| 2 | 3–5 named live products, captured with skills/anydesign/scripts/capture_site.py (desktop + mobile viewports) and extract_css_vars.py | free, local | real screens and exact token values |
| 3 | A DESIGN.md study file of a real site (e.g. the MIT awesome-design-md collection, cloned outside this repo) | free, offline | a described style system: type, colour roles, spacing, components |
| 4 | A reference MCP the operator installed (screen search, style search, flows) | free or paid | breadth: sites you did not already know |
| 5 | Nothing reachable | — | say so; take direction from a committed-aesthetic skill, never from memory presented as research |
Record the result as one of the three states design-advisor already uses —
consulted (name each reference), unreachable (name the source that refused and
why), not attempted (and why). A paid source that answers "no subscription" is
unreachable, not consulted.
References are studied, never shipped. Captures and screenshots of other products stay
outside the repository (scratch dir or ~/.great_cto/refs/). The DESIGN doc names the
reference and describes the pattern in our own words; it never embeds the image, the logo
or the copy. Follow the source's own attribution terms when it states them.
Pick one primary reference. It owns the overall mood, density and structure. Others may contribute narrow details only. When references conflict, the primary wins; do not split the difference.
Primary reference: <one source>
Preserve (3–5): <traits that must survive the build — canvas, type, accent, density,
layout move, media treatment>
Borrow (≤2): <one detail each from a secondary source, with the source named>
Role rules: <token/component meanings kept from the source — e.g. accent = primary
action only; mono = machine output only; gradient = decoration only>
Media: <real asset | generated | product screenshot | code-native | placeholder>,
with aspect ratio and a one-line art direction
Reject: <the defaults that would collapse this direction, named concretely>
Tokens: <background, text, accent, radius, border/shadow, type scale — numbers>
The Tokens line resolves to the DESIGN doc's brand-token table; it is the same numbers,
not a second set.
Every major visual, layout, content or interaction choice gets a row:
| Decision | Source | Role rule | Why |
|---|---|---|---|
Accent #… on primary actions only | primary ref (capture of …) | accent = action | the reference never uses it as a surface |
| Comparison table below plan cards | ref B, pricing screen | — | buyers compare after choosing a tier |
| 0 px corners on cards | operator constraint | — | matches the existing board |
Source is one of: a named reference, an operator constraint, an existing-system value, a
cited rule (ui-ux-pro-max, committed-aesthetic, this skill). A row whose source is
"felt right" is not a decision: research it, tie it to a constraint, or cut it.
The cliché list lives in skills/committed-aesthetic/SKILL.md (gradient grounds, the
rounded-card-with-left-accent triplet, Inter/Roboto/Poppins as display, emoji icons,
category-naming heroes). On top of it, check the three failures only a lock can see:
Also refuse the two defaults that pass every other check: indigo/violet as the accent with no source for it, and hero → three features → pricing → FAQ → CTA as the section order with no reference that uses it.
python skills/anydesign/scripts/verify_design.py design-tokens.json <url> to catch
values that drifted at the source.Weakened or lost traits go back to implementation, not into the report as "close enough". A deviation found during the build that changes the look is a new design decision: it returns to the approval step the project requires before it is coded.
In docs/design/DESIGN-<slug>.md, add two sections after the reference-research status:
Reference lock (the block from step 2) and Decision ledger (the table from step 3).
After the build, append Lock check (step 5). Screenshots of our own built surface may be
committed; captures of other products may not.
What SKILL.md sets; muted values are Claude Code's defaults
Apply when: - design-advisor is writing a DESIGN doc for a new or redesigned surface and references are in play - the operator says "make it like X", "look at A, B and C", or hands over screenshots - a built surface must be checked against the direction it was supposed to follow Do NOT apply when: - an existing product system governs and the job is to match it (anydesign; the system IS the lock) - the change is a typo, a number, or data wiring behind an unchanged view
low38 skills in this plugin
/aesthetic-instrumentgreat_cto's own committed aesthetic — the instrument panel. Dark five-step surface ladder, exactly one accent, two faces divided by MEANING (Geist speaks, Geist Mono is machine-truth), tabular numerals, and a dash that is not a nought. Twelve checkable rules measured from packages/board and greatcto.systems, not designed for this file. Use when building or extending any great_cto surface — the board, the site, a report, a share page./anti-patternsCatalogue of known SDLC anti-patterns that great_cto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident)./anydesignAnalyze images, websites, and Figma files to extract their design and generate a `design.md` with token system, component inventory, and reconstruction notes. Use this skill whenever the user wants to understand, document, replicate, or audit the design of something visual: a screenshot, a URL, a Figma link, a Pinterest reference, a mockup, a competitor's site, a component, a dashboard, a landing page. Also when they ask 'extract the design system from X', 'document the style of Y', 'analyze this visually', 'convert this image into tokens', 'help me replicate this design', 'what palette does this site use', 'how is this built'. Also for single elements: 'copy this navbar', 'recreate this illustration', 'give me a prompt to regenerate this graphic' — element mode outputs a focused element.md, with token-grounded image-model prompts when the element is visual art. If the user brings any visual source and wants to understand it at a design level — this skill should activate./archetype-review-baseShared review framework that every domain reviewer (pci, oracle, gov, edtech, healthcare, mlops, etc.) MUST follow. Defines the output artifact (TM-{slug}.md), mandatory sections, severity scale, verdict format, the workflow scaffold (when-invoked, Step-0 read-inputs, HANDOFF), and the "domain heuristic vs generic check" boundary. Eliminates duplication across the ~30 reviewer prompts./artifact-retentionAfter a build is delivered, delete its intermediate copies and old versions — keep exactly the version that runs and one previous for rollback — and report the space freed as measured by `df`, never `du`. Covers local build output, mobile build caches, container images, release dirs and stale browser-session copies, with a never-delete list (volumes, databases, installed SDKs, simulator runtimes, the rollback version). Use after any release or image build, before heavy builds when free disk is low, and when disk space drops fast ("диск кончается", "почисти старые сборки", "ENOSPC"). Loaded by release-manager, devops./brainstormingStructured idea generation + multi-LLM debate for the product-owner stage. Diverge (generate genuinely different bets), debate (a 4-persona panel on 4 models argues over 2 rounds), converge (synthesize a recommendation). Used by product-owner before architect; available to architect for design-space exploration.npx claudepluginhub avelikiy/great_cto --plugin great_ctoOther plugins' skills for the same job