agentleFS
June74June74/agentic-workflow/skills/interface-contract/SKILL.md

interface-contract

Skill0 starsChanged 3 months agoMITView on GitHub

Use as the UX team's FIRST deliverable on any feature, before visual refinement. Produces the screen, state, and data contract that lets the dev team build concurrently instead of waiting or guessing.

The file

Files
SKILL.md

Interface contract

The UX team and the dev team are peers. They run at the same time. Dev does not wait for finished designs — so if UX's first output is polish, dev either idles or invents its own contract, and the two diverge.

The fix is to ship the contract before the visuals. It is deliberately ugly and deliberately early.

What it contains

Screen inventory — every screen or view this feature adds or changes, named.

Component list — the components each screen needs, distinguishing new ones from reuses of existing ones. A new component is a cost; say so.

Every state, per screen. This is the part that gets skipped and the part dev actually needs:

  • empty (no data yet)
  • loading
  • partial (some data, some pending)
  • error, per distinguishable error the backend can return
  • over-limit / truncated (more data than the design assumed)
  • permission-denied, if the feature has any access control

A design with only the happy state is not a contract — it is a mood board, and dev will invent the other six states itself.

Data per screen — what each screen needs from the backend: fields, types, cardinality, and which are optional. This is what dev builds against. Name the shape even if it is provisional; a provisional shape you can build against beats a perfect shape that arrives late.

Interaction contracts — what each control does, what it optimistically updates, what requires confirmation, and what is irreversible.

Freezing and changing

Once the contract is agreed at G2, changing it crosses a team interface and therefore flags (see flag-check). That is intentional: a silently changed contract is how a UX team and a dev team ship two different features.

Then refine

With the contract shipped, the UX team returns to visual design — hierarchy, typography, color, motion — using frontend-design, ui-ux-pro-max, and web-design-guidelines. Accessibility findings are defects, not suggestions.

Deliver visuals as rendered screenshots, never as descriptions of a design. See delivery.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.