Design in a chort Code (Beta) bundle: real React 19 + TypeScript + Tailwind v4 + Motion boards, verified by screenshot and lint, shipped with zero porting.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Chort Code?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/deeflect-chort-code)
---
name: chort-code
description: Design in a chort Code (Beta) bundle: real React 19 + TypeScript + Tailwind v4 + Motion boards, verified by screenshot and lint, shipped with zero porting.
---
# Work in chort Code (Beta)
The design is the code. You edit `.tsx`/`.css` with your own file tools; chort renders boards, captures them and lints them. Use the CLI (`chort code <cmd> --json`) or the `profile=code` MCP, whichever is connected:
| Job | CLI | MCP |
|---|---|---|
| Boards, viewports, states | `boards` | `list_boards` |
| What the person selected | - | `get_selection` |
| Screenshot | `capture` | `get_screenshot` |
| Lint + type check | `check` | `check_board` |
| Anchored comments | `comments` | `list_comments` |
| Resolve | `resolve` | `resolve_comment` |
`init` makes a bundle; `link <repo>` binds boards to a real app's `src/`. One writer per bundle at a time.
## Layout
- `tokens.css`: `@theme` only. The sole home of raw colours, radii, fonts, shadows. Shadcn role names, values from this product's direction.
- `motion.ts`: named durations, easings, springs. Nothing inline.
- `fixtures.ts`: realistic domain data. No lorem, emails `@example.com`.
- `ui/`: primitives, at most 150-180 LOC each. Variants are literal unions (`tone: "primary" | "quiet"`), never boolean soup.
- `sections/`: prop-driven compositions of `ui/`.
- `boards/*.board.tsx`: component × viewport × state. Only boards and fixtures stay behind at handoff.
Allowed: React 19, Tailwind v4, `motion/react`, `lucide-react`, unstyled Radix only where a11y behaviour needs it. Banned unasked: routers, auth, fetch/API clients, global stores, form libraries, shadcn dumps, any import from `chort`. No raw hex/rgb outside `tokens.css`.
Keep display copy as literal JSX text (`<h1>Close the month</h1>`), not `{t.title}`, so the person can double-click to edit it. Data rows may map over fixtures.
## The loop
1. **Name it.** Bundle, boards and files named after what they hold. Never `Board1`, `Component.tsx`.
2. **Look.** Run `boards`, read `tokens.css`, `motion.ts` and a neighbouring board, and capture one. Follow what exists; invent only what is missing. No tokens and no look given: read `taste.md` first.
3. **Direction as tokens.** Write `tokens.css` and `motion.ts` before any component.
4. **Explore the anchor.** Build 2-3 genuinely different variants of the key screen as boards. Capture each at rest and in one interactive state (hover, open, focus). The person keeps one; delete the losers.
5. **Verify before fanning out.** Capture the winner at mobile + desktop width, write one line on what you saw, fix it. Only then build sibling screens from the same `ui/`.
6. **Motion.** Writing hovers, transitions, entrances or micro-interactions: read `motion.md` first (also covers the `holdReady` capture gate).
7. **Comments.** Read anchored threads (`file:line:col`), fix in place, resolve with a one-line note. Never delete and rebuild a component to fix a comment.
8. **Finish.** `check` must be clean (types, raw colours, banned imports, file size, layout transitions, missing `focus-visible`). Capture the final boards and compare with the last approved capture. Report every difference.
## Craft floor
- One primary action per view; one bright moment per board; everything else in neutrals + one accent.
- Every interactive control ships hover, active, focus-visible and disabled.
- Hierarchy from size and colour, not from borders and cards. No card inside a card.
- Fix in place: edit the primitive, every board follows. Don't fork a lookalike.
- Never say done without a capture you looked at.