Communitygithub.com

second-cut

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.

O que é second-cut?

second-cut is a Claude Code agent skill that 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.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ThouShaltNotLoaf/second-cut/tree/HEAD

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

For a new interface, apply the first-pass defaults 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 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. 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.

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 on that cluster. It covers labels, destinations, icons, dividers, cramped dropdown chevrons, selection after focus moves, and what happens when the group wraps.

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 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.

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 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 · Velvetyne · Fonts In Use

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Habilidades Relacionadas