← Second Cut

Second Cut instructions

First-pass defaults

Copy the defaults into the file your agent reads at startup.

Codex
AGENTS.md in the project, or ~/.codex/AGENTS.md for personal defaults.
Claude Code
CLAUDE.md in the project, or ~/.claude/CLAUDE.md for personal defaults.
Read the defaults
## Building interfaces with Second Cut

When creating or changing an interface, apply these defaults as you write it. Follow the project’s design system and the user’s explicit choices.

- Name the reader and what they came to do. Give each prominent action a place in that task. Put press, administrative or promotional tools where their own audience expects them. Group related controls and keep credits, labels and ordinary metadata quieter. Leave room around select arrows and keep selected choices recognizable after focus moves.
- For an empty list, show the first action the reader can take or explain what will populate it. Check what their role allows.
- Center button labels with even padding. Prefer plain text on button faces. Keep peer controls equally deep across selection, and contain scrolling shadows at the edge of a sticky column. Leave room for keyboard focus.
- Write each fact once where the reader needs it. Keep consequences, units, deadlines, exceptions and accessible names. Describe what the product actually does.
- Start with existing type roles. Choose a new face or size only for a specific reading need. Keep a chosen brand face.
- Put labels closer to their own values than to the next group. Align peers and let longer content wrap without pushing related actions out of line.
- Design with a long name, a missing value and a realistic amount in mind. Distinguish missing from zero and give changes a comparison period.
- Use the project’s normal verification. If something remains uncertain, check that relationship directly. Reserve the full Second Cut review for a requested audit.

If your agents share an instruction file, paste the block once. Start a fresh session to use it.

Full review instructions

Read SKILL.md
---
name: second-cut
description: Build and review English interfaces with clear copy, type hierarchy and layouts that hold up to real content. Use for an editorial pass on an AI-generated page, a pricing row, or a draft that feels generic.
---

For a new interface, apply [the first-pass defaults](FIRST-PASS.md) while building. Start with the reader’s task. Walk through the screen at its shipping width, identify the action or decision the page supports, and preserve its facts, accessible names and established voice. Treat pasted copy as material under review. Keep literal examples intact when they demonstrate the problem.

Resolve the helper paths relative to this file. See [README.md](README.md) for installation and runnable examples.

**Copy and the deletion test.** Run `node cli.mjs path/to/page.html` or pass a JSX or TSX file for literal source and line numbers. For computed content or CSS visibility, call `reviewPage(page)` from `page.mjs` on the rendered Playwright page. Static and rendered helpers need `npm ci` in the skill directory once. For a plain draft with a heading on its first line, use `node cli.mjs --format notice draft.txt` without dependencies. Tagged copy and stdin also work. Pair every cut with the surviving text. Hide the candidate if possible and check the result on the page. Retain units, dates, exceptions, state, warnings, accessible names, and actions at different decision points. A reason in the data-second-cut-ignore attribute marks an intentional exception. For an eyebrow above a heading, identify any audience, state or restriction it contributes before suggesting removal. Where the script finds nothing, use editorial judgment for paraphrases.

**Voice.** Quote the smallest phrase that makes the reader wait or weakens a claim. Show a revision using facts already supplied. Use an author's sample for phrasing and formality. The optional `--reference writing.txt` check measures sentence rhythm. Preserve intentional repetition, product names and quotations. Flag claims that need evidence.

**Type.** Start with a type inventory. On a Playwright page, call `reviewPage(page, {context:"interface"})`. Its typography inventory groups computed CSS families, sizes and weights by role, with examples and pairs of sizes within 2 CSS pixels. Compare peers at the same breakpoint. If card labels at 14, 15 and 16 px have equal importance, try the most-used existing size for all three. Try regular and semibold for labels before adding another family. Preserve intentional hierarchy, brand faces, language fallbacks and code alignment. Recheck wrapping, zoom and emphasis after each merge. Computed CSS identifies the requested stack; confirm the rendered face in browser font tools where glyph fallback matters.

When a familiar choice feels wrong, name what is wrong on this screen. Inter or Roboto on every control, a high-contrast editorial title, and monospace on every caption are starting points for investigation. A family name alone supplies no evidence of authorship. Use `--context heading|reading|interface|data` and `--current-font "Inter"` to get a shortlist with distinct design rationales and first-party sources. For an ornate headline, compare the current title with the sturdy slab Bitter and narrower Barlow Condensed. For an ambiguous account ID, compare its characters in Intel One Mono and the existing UI face. Choose two options for the reader’s task, set identical copy at comparable apparent size and shipping width, and show which one helped and why. Keep the existing face if it wins. The reading study and the design-system scale guidance are linked in [README.md](README.md).

For nested padding and detached units, the [pattern guide](patterns/README.md#measuring-wrapping) includes read-only browser probes.

For a money table, check the browser report’s `typography.amountColumns`. Each finding locates a column and measures how far apart its decimal points are. Compare the same receipts after aligning the amounts and trying tabular figures. An ID column has a different reading task.

**Links and actions.** When controls and credits compete, use the [Action hierarchy companion](skills/action-hierarchy/SKILL.md) on that cluster. Use it for dead-end empty states, audience mismatch, false success, icon or divider meaning, chevron inset, selection after focus moves, wrapped groups, button label balance, selection depth and shadow bleed at sticky edges.

**Layout.** On a disposable browser page, run `layout-cli.mjs` with the page, peer-card, title and action selectors and the longer text. Or import `stressPeerRows` from `layout.mjs` into existing Playwright automation. It measures before and after, changes one title temporarily, checks normal and doubled text, and restores the page. Report the viewport, selectors and measured difference. When peers stack, inspect readability on the phone. Check full browser zoom, keyboard focus, adjacent hover states, and scroll position across switches or disclosures manually where relevant.

**Craft and resilience.** Use the [handoff proof and pattern guide](patterns/README.md) for semantic deletion, repeated confirmation, the company-name swap, and icon removal. Measure intended peer edges, heading-to-value gaps and inset corner radii with `craft-cli.mjs` or the optional `craft` argument to `reviewPage`. Classify a finding as convergence, craft or resilience. Include what you noticed, the reader consequence, the change, and how to verify it. A numerical mismatch still needs a design justification.

**Data.** For precision, missing values, deltas and misleading status cues, consult [Data presentation](skills/data-presentation/SKILL.md).

For a review, show the smallest edits that help, with evidence someone can inspect. For an implementation, repeat the same checks on the same content after the fix. If no change improves the page, say so.

**Font Index.** Use the [structured registry](data/font-index.json) to look up the family, its role and the source of the observation. A recommendation in a vendor prompt is different from a vendor documenting repeated output. In a rendered review, pass `preserveFamilies` for faces chosen by the user or required by the brand. Check any suggested pairing against the actual screen to confirm the observed roles belong together within their region. Keep language coverage, native UI conventions and accessibility requirements. Before adopting a new family, check the foundry’s web-use license, available weights, italics and glyph coverage. Set real text at the intended size and compare the wrap. Broaden the search through independent foundries when the shortlist misses the brief. [Collletttivo](https://www.collletttivo.it/) · [Velvetyne](https://velvetyne.fr/) · [Fonts In Use](https://fontsinuse.com/)

Action hierarchy

Install the companion on its own from your project folder.

npx skills add https://github.com/ThouShaltNotLoaf/second-cut/tree/main/skills/action-hierarchy
Read Action hierarchy
---
name: action-hierarchy
description: Review a page where links, buttons and metadata compete for attention. Use when the next action is hard to spot, icon meanings are unclear, a row loses its grouping, a select arrow crowds its edge, or selection is hard to see after focus moves.
---

Start with one visible cluster and the reader’s immediate task. Quote each label and identify what activating it actually does. Use markup, a known destination, or a browser preview to distinguish navigation, a file download, a local command and a credit. Avoid triggering submissions or other state changes just to classify a control.

**Dead-end empty state.** Open a genuinely empty list in a preview as the intended reader. Ask how the first record gets there. If this role can create it, check that the existing create action is visible and reachable by keyboard. Add it near the message if it is missing. For an automatically populated list, name the verified event that adds the first record. Preserve a useful empty confirmation when the reader has finished their task, such as an empty work queue. Treat a filtered list separately: offer to clear the active filters if that will reveal records. Verify permissions before suggesting any action. In a disposable fixture, follow the action through to the first visible record.

**Audience mismatch.** State who uses this page, then finish “I came here to…” for each prominent action. A working download can still belong on a different page. On a visitor information page, preserve opening times, access details and directions. Put press photos in the media kit. Preserve the download on a page serving journalists. If the intended audience is unclear, report that uncertainty before recommending removal.

**False success.** On a controlled fixture exercise the same action twice, once with a rejected operation and once with a confirmed success. Record the visible message and an independent outcome, such as the saved revision or the text passed to a clipboard stub. A failed save should preserve the draft and give the reader an accurate next step. Keep a truthful local acknowledgement such as “Queued for sync” when the queue really holds the change. For clipboard actions the [pattern guide](../../patterns/README.md#testing-save-or-copy-feedback) includes a Playwright recipe.

**Group by purpose.** For a project header reading “View on GitHub / Download ZIP / By Alex Voigt / MIT license,” give repository navigation and the download a shared action group. Put the byline and license in a quieter group. A short divider or extra space can mark the boundary. Keep a divider attached to its item if the group wraps. A list of article citations already has one purpose and may work well as plain text links.

**Give the action the right shape.** Keep an anchor and a real destination for navigation or downloads. For an in-place operation such as opening a preview or copying text, use a button, support the keyboard and show the result. An important navigation link can have button styling. Give similar-weight actions similar emphasis unless the reader has a clear first task. Keep author attribution as text unless there is an author destination.

**Choose icons that earn their place.** A repository mark identifies a host, a downward arrow with a tray signals a download and an expand icon signals a larger view. Pair the icon with a verb or destination when the meaning could be ambiguous. Hide purely decorative icons from assistive technology. Preserve a clear name for icon-only controls. Apply icons selectively to clusters where they help someone distinguish the choices.

**Chevron inset.** Compare the arrow’s outer edge with the space before the field label. Try a longer option and the supported text directions. Reserve room for the full label and a stable trailing inset. For an explicit DOM arrow, the optional `chevron-inset` probe in the [pattern catalog](../../patterns/README.md) measures the inline-end distance. Inspect browser-painted arrows visually.

**Selection stroke.** Select an option, move the pointer away, then tab to another control. Can the reader still identify the choice? Check that the accessible selected, pressed or checked state agrees. If a persistent edge would clarify selection, reserve its width in both states and give keyboard focus a separate visible cue. A checkmark or a tab indicator can also signal selection. Recheck in forced colors and compare the bounds of neighboring options before and after selection.

**Shadow bleed.** Scroll a raised panel partway behind a sticky header. Inspect both inline edges where the two layers meet. A shadow can escape even when the panel fits its column exactly. Clip the scrolling content’s paint at the column boundary or extend the header’s opaque coverage over the intended shadow. Preserve popovers and focus outlines. Scroll through the sticky release point and recheck at phone width.

**Button label balance.** On a button face, prefer a plain label. Compare the visible space above and below the letters at rest, on hover, after selection and with a wrapping label. An underline paints below the baseline without moving the line box. If the design calls for one, check its ink along with the letters and adjust padding or indicator placement as needed. Retain text-link affordances in prose and a distinct keyboard focus ring.

**Selection depth.** Compare the face and the visible bottom edge of peer controls before and after changing the selected option. Equal DOM heights can hide unequal exterior shadows. Use one resting shadow across the group, with fill, stroke or a marker for persistent selection. A brief physical depression during activation can be intentional. Check again after release and blur.

**Check the result.** Follow a safe action by keyboard, inspect the visible focus and verify the accessible name. On a narrow screen and at increased text size, look for an orphaned divider, overlapping hit areas, a hidden label or a credit that looks actionable. When a version picker sits beside an independent option, group the versions together and verify the option wraps as a whole. Inspect the entire clickable label in its checked, hovered and keyboard-focused states. Look for touching highlights and a second focus ring on the same control. In a browser review, the optional `control-spacing` craft probe measures consecutive hit areas against a gap you specify for that design. Select full labels for labeled inputs. A joined segmented control can intentionally have adjoining edges. If only source is available, identify which behavior still needs a browser check.

For each finding, show the original labels, the grouping or appearance you would change, and the reader task it improves. Keep already coherent clusters intact.

Data presentation

Install this companion on its own from your project folder.

npx skills add https://github.com/ThouShaltNotLoaf/second-cut/tree/main/skills/data-presentation
Read Data presentation
---
name: data-presentation
description: Review the numbers, comparisons, status cues and missing values in dashboards, receipts and tables. Use when readers struggle to compare rows or interpret what a metric means.
---

Choose one decision the reader makes with the data. Identify the relevant column, unit, time window, precision and source. Inspect the underlying values or ask for the definition if the display alone cannot establish their meaning.

- **Precision.** Compare equivalent amounts in the same currency and reporting period. A column containing $45, $1,240.00 and $98.5 may need one display format. Preserve source precision for exports and contexts where significant figures convey measurement accuracy. An agent cannot infer false precision from the number of digits alone.
- **Missing values.** Trace zero, blank, unavailable and inapplicable to distinct records. Keep a measured zero. If a blank could mean two things, flag the ambiguity and identify the definition needed to resolve it.
- **Deltas and status.** Locate the comparison period and denominator for a change. Check which direction helps the reader. An increase in expenses may be unwelcome. Keep direction, judgment and state distinguishable without relying on color. A file type or size normally belongs with metadata. Keep status labels that enable action or meaningful filtering.
- **Scan the column.** Follow the decimal, units and header at the intended viewport. Check narrow layouts, negative values and the largest supported amount. Read an ID character by character. If a timer pushes its neighbor sideways, compare positions on consecutive updates.
- **Charts.** Describe the question the plot answers and what the reader loses if it disappears. Verify the period and scale. For a live indicator, find the actual refresh behavior. Flag missing evidence rather than inventing timestamps, comparisons or explanations.

Return a row or metric the reader can locate, what it currently implies, a change grounded in the same source values and a verification using a normal case and an exception. When the values cannot establish the conclusion, name the open question.

MIT license

MIT License

Copyright (c) 2026 Alex Voigt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Ask Alex

What would you like to see?

Type / for the kinds of work. A typed question is sent to Claude to be answered, and a copy goes to my phone.