borghei/Claude-Skills / engineering/interface-refinement
interface-refinement
VerifiedRefine an existing interface with named commands (critique, polish, distill, typeset, colorize ...), a product and design context file, and a static detector of generic UI patterns. Use when UI looks generic, cluttered or unfinished.
references/command-init.md
View on GitHub# init — write the product half of the context file
**Job:** capture durable product truth in `interface-context.md` so every later command decides
from facts instead of guesses. Init records the product; it does not choose a look.
**Run when:** no context file exists and the work is more than a one-line fix; the context file
fails `context_linter.py`; the product changed (new audience, new platform, new surface).
## What belongs in it (product half)
| Section | Holds | Never holds |
|---------|-------|-------------|
| Platform | `web`, `ios`, `android` or `cross-platform` | stack details |
| Users and jobs | who, in what situation, doing which job | personas with invented names and ages |
| Purpose and positioning | what the product is for; the mechanism or claim a neighbour could not truthfully copy | slogans, adjectives |
| Surfaces | `- <surface>: <mode> - <job>` per surface | page layouts |
| Voice and terms | voice in one or two sentences, the glossary of preferred terms | visual adjectives |
| Evidence on hand | real assets with paths; stated absences ("testimonials: none, do not invent") | numbers nobody can source |
| Principles | two to five durable decisions the team can cite ("the overdue list is home") | visual recipes |
| Brand commitments (optional) | name, voice, assets and identity constraints the owner made binding | visual direction nobody confirmed |
| Constraints | accessibility standard, locales, browsers/devices | aesthetic preferences |
The visual half (`## Visual system`) is written by `document` from shipped code, or seeded by the
owner. Keep the halves separate: no hex values or pixel sizes in product sections.
## Change
Only `interface-context.md` (create it from `assets/interface-context-template.md`).
## Do not touch
- Source code, tokens, an existing visual system section.
- Confirmed facts in an existing file: ask what is stale before reopening anything.
## Steps
1. Read what the repository already says: README, marketing copy, routes, roles, package
metadata, existing docs. Treat it as a hypothesis, not as the owner's approval.
2. Ask at most three questions per round, only about gaps that change decisions. Start with: who is
the primary user and what job are they doing; what does this product do that a neighbour
cannot claim; what constraints and evidence must future work respect.
3. Choose each surface's mode from the visitor's success, not the product category: a developer
tool's landing page is persuade; a fashion brand's help centre is read.
4. Record undecided facts as decisions owed, not as guesses.
5. Run the linter.
## Verify
```bash
python3 scripts/context_linter.py --input interface-context.md
```
Exit 0. Warnings about vague adjectives get rewritten into specifics before the file is shared.
## Hand-off
`document` to capture the visual system if code exists; otherwise the command the request needs.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |