Skip to content
Development
Skill

/design

Use when D-000 exists and the whole-product prototype does not, to run Claude Design in its own context and produce the prototype and design system. Also use when a later slice exposes a design gap that needs a spine revision. Requests gate 2a (prototype approved at Claude

From plugin
x2
1513 skills

Claude Code

$ npx -y skills add teklabsdigital/x2-method --skill design --agent claude-code

SKILL.md

design.SKILL.md
name: design
description: Use when D-000 exists and the whole-product prototype does not, to run Claude Design in its own context and produce the prototype and design system. Also use when a later slice exposes a design gap that needs a spine revision. Requests gate 2a (prototype approved at Claude Design). Never run in the builder's context, and never used to author tests, acceptance criteria, or application code.

X2 Design (Claude Design)

Produce one whole-product prototype and its design system from the source of truth. This runs in its own context, deliberately separate from the builder: the pilot showed that when the builder is also the designer, the design steps collapse and acceptance criteria get authored backwards (turn 8). Design is done once for the whole product; each slice locks its portion later.

Inputs

  • D-000: the story set, the recorded product decisions, the module shape, the slice definitions.
  • The behaviour spec beside it, if the product has one. The prototype must make that behaviour

visible; it is the difference between designing the product and designing a generic UI.

  • The design brief, where one exists (required for a rich domain, see below). It governs the

information architecture where it is more specific than the stories.

The design brief (requirements-for-design in its positive shape)

For a simple domain, the input beyond the stories is a thin note: novel-or-irreversible only. For a rich domain (many surfaces, typed variants, a domain model the stories do not carry), the method requires the brief, produced in the product working session with the human and approved by the human as a decision turn BEFORE this skill runs:

1. **The domain model is frozen as a decision first** (a D-0xx). The brief renders that decision; it cites it and never restates it. 2. **The brief carries exactly three kinds of content:**

  • Topology: the user journeys; the screen inventory, each surface stated as the problem it

solves (a mini story) plus what it does; and the action edges (which action on which screen opens which screen, and what stays inline).

  • Shape: what each surface must expose, the editor kind each configured item wants (field,

toggle, picker, prose document), and the depth rule (a row earns its own screen when its content is large, unbounded, or an editor; a few small fields stay inline).

  • Priority: the engagement tiers (what is glanced constantly, what is reached for in the

moment, what is deliberately configured), because prominence is a product decision, not a styling one. 3. **Two disciplines the brief must state, both learned from real failures:**

  • Tables and matrices in the brief are DATA a surface reads, never screens to render; one shell

reading data beats a view per variant.

  • The brief names every surface exhaustively. The designer builds the named surfaces and only

those, and asks on a gap; a screen is never inferred from a table and UI is never invented around a hole. 4. **What the brief must NOT contain:** layout, visual hierarchy, components, palette, type (this skill's job); acceptance criteria or test cases (derived after the lock, MET-01); story restatement (the story set remains the authority on intent); fields the domain model does not back.

Work in two steps

1. Propose the information architecture and a design direction (screen map, component set, palette and type direction). Where a brief exists, validate the proposal against it: every journey walkable through the proposed screens, every named surface present, no surfaces invented. Then confirm it with the human. Build nothing yet. 2. After confirmation, build the whole-product prototype and the design system, with behaviour annotations: short notes of what each screen and key element shows and does. Annotations are design notes, never acceptance criteria.

What the artifact must be

  • **Whole-product, once.** Cover every screen and state across all stories, including the ones

later slices will build, so the shell holds them without redesign. The design spine is the third stays-ahead asset, alongside D-000 and schema (MET-03).

  • **The token source in waiting.** The design system becomes the client's single token source, so

it must be expressed as a clean variable set: more than fifty variables, both themes (the dark root and the light override). The kernel will hold the client to it (UI-1), ban literals outside it (UI-2), and test shipped screens against the locked prototype in both directions (UI-4). Build the prototype as the thing the client is held to.

  • **Distinctive.** Commit to a clear direction and execute it with intention; avoid generic

AI-default aesthetics; distinctive type beats safe type. The project's recorded product decisions override style instinct (the pilot's: simple, clear, user-friendly beats feature density).

Reuse

Reusing a house design system from another product is legitimate and proven in the record. If you reuse, record where the system came from in the artifact so the lock can carry it (the provenance README is the home). The invariants pass ruled the home question: the imported system lives under `design/prototype/_ds/` per project; a shared cross-product home is deferred until a second product reuses the same system, at which point it becomes a pinned, hash-ledgered vendored asset (DEP-1), never a shared directory.

The lock model

The prototype is the spine; each slice locks its portion as that slice's acceptance contract and derives tests from that portion only. The spine can be revised when later slices expose gaps; a revision re-locks the affected portions and spends the approving human turn (open cadence question carried on the record, MET-03).

Two disciplines the third project priced:

  • **A fault in a locked screen is fixed here and arrives via re-lock, never patched in the build.**

The owner ruled it mid-projec

Read more
@teklabsdigital
Ships withx2

An agentic software engineering method: AI agents do the building, the build enforces the rules that must always hold, a person decides only at the gates, and the method measures its own cost in human turns.

Stars on GitHub

Momentum

stars in total
15
Star history of teklabsdigital/x2-method on GitHub, a chart by star-history.com

Other skills on x2.

adopt

adopt

Use when an existing project that was not built with X2 must be migrated to run under it, with documentation sprawl to dissolve,…

@teklabsdigital@teklabsdigitalInstall Skill
decompose

decompose

Use after the repo is seeded to run the D-000 five-lens decomposition, record persistent schema decisions, define slice one, and…

@teklabsdigital@teklabsdigitalInstall Skill
derive-tests

derive-tests

Use only after the lock (gate 2b) is on record for the slice portion, to derive the fidelity ledger and acceptance scenarios from…

@teklabsdigital@teklabsdigitalInstall Skill
extract

extract

Use when an X2 project completes (or reaches a major milestone) to run the extraction loop, the quality feedback that folds the…

@teklabsdigital@teklabsdigitalInstall Skill
help

help

Use when someone asks what an X2 skill does, which skill to run next, how the gates work, or where an artifact lives. A quick…

@teklabsdigital@teklabsdigitalInstall Skill
implement

implement

Use when the slice portion is locked and its derived tests exist, to build all of the locked portion to green autonomously.…

@teklabsdigital@teklabsdigitalInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about design.

Which coding agents can use design?
design installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.