agentleFS
KJ-AIMLKJ-AIML/clarify/SKILL.md

clarify

Skill4 starsChanged 6 days agoMITView on GitHub

Use when structure or a picture would explain something better than prose, even if the user did not ask for a page: how a device, a process or a system works; what is inside a thing; a timeline, an incident or a post-mortem; a comparison, a trade-off or a choice; system architecture, request flows and sequences; a codebase tour; a PR or design review; a decision the user has to make. Use when the user asks to "diagram", "draw", "visualize", "clarify" or "compare", or asks for a "lesson", to "teach", to "explain step by step", for a "course", or to "walk me through how X works".

89 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use quieter, delight and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    quieter

    Tones down visually aggressive or overstimulating designs, reducing intensity while preserving quality. Use when the user mentions too bold, too loud, overwhelming, aggressive, garish, or wants a calmer, more refined aesthetic.

    Also in 29 projects that use this

  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 28 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • owshq-mecSkill

    layout

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

    Also in 8 projects that use this

  • +8 more from HK-hub
  • Other versions89 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 89

    1. spool-lab/spool★ 592same name
    2. paperboytm/spool★ 590same name
    3. zaxbysauce/opencode-swarm★ 549same name
    4. ZaxbyHub/opencode-swarm★ 548same name
    5. educlopez/ui-craft★ 490same name
    6. nexmoe/DayBee★ 424same name
    7. nexmoe/eve★ 424same name
    8. ryanthedev/code-foundations★ 389same name
    9. Southclaws/storyden★ 350same name
    10. 10xChengTu/Mux0★ 337same name

    79 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never downgrade a part that genuinely needs a custom drawing into a plain table just to finish faster.

    line 42
  2. Distinctive:

    Gather: Write the facts down first, as a short list: names, numbers, causes, times.

    line 48
  3. Very specific:

    Every drawing says how to read it and ends with a takeaway: a bold line before a block and a sentence or a callout ok after it.

    line 62
  4. Very specific:

    Prefer `` isokit `` whenever the story benefits from rich isometric primitives (block, db with tank fill, device, crowd, zone, queue, …

    line 152
  5. Very specific:

    If the CLI prints ⚠ warnings, they cite draft line numbers.

    line 200
  6. Very specific:

    After ✓ <path>, reply with a 2–3 line summary and the link file:///abs/path.html.

    line 201
  7. Very specific:

    When the user pastes a reply starting with # Re: <title>, apply its decisions and review comments.

    line 202
  8. Distinctive:

    Keep each diagram to 25 nodes or fewer.

    line 203

“Common” is measured: kept by at least 6 in 10 of the 85 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Clarify

You write a Markdown draft. The bundled CLI compiles it into one standalone HTML page. Write the draft in the user's language.

Commands

node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" render - <<'EOF'   # stdin → ~/.clarify/pages/*.html, opens it
...draft...
EOF
node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" render draft.md      # a draft file (--out page.html, --no-open)
node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" check draft.md       # every panel in Chrome or Edge, with pictures
node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" serve draft.md       # live preview, reloads on every save
node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" md draft.md          # GitHub Markdown (diagrams → mermaid)

In hosts without CLAUDE_SKILL_DIR, use the absolute path of this skill directory. Save a page with a free section as a draft file: check reads it, and file= paths start from its folder. A page rendered from stdin has no draft file, so run check on the .html path that render printed: a draft file gets the lint and the browser check, a rendered page is checked as it is, without the lint.

Scope by content

Match depth to what the content and request genuinely need — never cut corners to chase an arbitrary clock limit.

Focused (brief asks)Full (the default)
Whenthe user explicitly asks for a quick map, brief overview, or single-question checkexplainers, codebase tours, post-mortems, architecture reviews, lessons, design briefs, or "how X works"
The pagebuilt-in blocks chosen by the steps below (typically 1–3 concise panels); skip custom drawings unless essentialevery part gets the form it genuinely earns — built-in blocks where they fit cleanly, and as many free sections as the content needs (drawn in parallel by subagents when the host has them)
The checkrun check once; inspect any ⚠ panel and fix until cleanrun check, inspect all ⚠ and free panels (plus key block panels), and iterate up to 3 fix rounds until 0 warnings and visually clean

Never downgrade a part that genuinely needs a custom drawing into a plain table just to finish faster. Conversely, never draw a free section when a built-in block (arch, sequence, isokit, tree, table, ask) already shows that part clearly.

Think before you draw

A page is its content's parts, each shown in the form that fits it, in the order a reader needs. Its shape comes from the content, so two contents give two shapes. Six steps:

  1. Gather. Write the facts down first, as a short list: names, numbers, causes, times. Only these facts go on the page.
  2. Split. Cut the content into its parts. Each part becomes a panel, titled with what it is ("Inside the keyboard", "What happened, and when").
  3. Name the kind. Say in a few words what kind of thing each part is. Kinds to think with: a thing with parts; a hidden mechanism; something moving between places over time; a length of time; events in order; a choice between two; a shared space; a lookup; a structure; a failure and its fix; a number that matters; a decision for the reader. This list is a prompt for thinking, not a menu: a part may be a kind nobody listed.
  4. Choose the form. Use a block when it truly shows that kind: arch for a structure (with a trace for the path that matters), sequence for messages between parts, isokit (preferred) or lesson for something moving between places over time (see Lessons), tree for nesting, a table for rows that share columns, kv for named values, ask for a decision. Otherwise draw a free section whenever the content genuinely needs a bespoke visual — never force a diagram-worthy mechanism into a table. Worked forms, each with when it fits and its nearest block: references/forms.md.
  5. Order as a story. The answer first (Lead:). The whole before its parts. What to do next comes last. In between, follow the content's own order: the clock, the path, the steps.
  6. Check. Render and fix every ⚠. Then run check on every page and inspect its pictures until clean (up to 3 fix rounds; see "The check loop", under Free sections).

Steps 1 to 5 give a plan: one line per part, part: kind → form, in page order. Write it before the draft; the draft follows it.

What every page guarantees

These are outcomes, met where they fit the content, not panels in a fixed order:

  • The answer comes first: Lead: states the conclusion in 1–3 sentences.
  • The page says why it matters to the reader.
  • Every drawing says how to read it and ends with a takeaway: a bold line before a block and a sentence or a callout ok after it; .fx-how and .fx-take in a free section.
  • Trade-offs carry reasons: a table of options has a why column.
  • The reader knows what happens next: an ask for a decision, or the next steps.

Two page shapes

Two pages made with these steps. Their contents differ, so their shapes differ; yours follows its own parts.

A device explainer: how a wireless mouse and keyboard work. This is examples/wireless-mouse.md, panel for panel.

PanelKindForm
Lead: neither device draws on screen; each sends a few bytes by radiothe answerlead
Why this matterswhy it matterstext
In numbersnumbers that matterfree: big numbers
Inside the keyboard · A position, not a lettera hidden mechanism · a lookupfree: a grid you press · a table that flips
The crowded aira shared spacefree: a map of the band
Receiver or Bluetooth?a choice between twofree: two columns, the same rows
One key press, in millisecondsa length of timefree: a ruler
When something goes wronga failure and its fixfree: problems pinned on the path

A bug post-mortem:

PanelKindForm
Lead: what broke, the fix, are we safe nowthe answerlead
What happened, and whenevents in orderfree: an incident timeline
The failing patha structure, and one path through itarch + trace
The causea failure and its causetext
Fixes compareda choicetable with a why column
What we decidea decision for the readerask

The explainer goes from the whole to its parts; the post-mortem follows the clock.

Draft basics

---
title: How a Wireless Mouse Works   # also: subtitle, eyebrow (the label above the title), date
theme: auto                         # auto | light | dark | tokyo-night | nord | catppuccin | paper | blueprint
cols: 3                             # grid columns on a wide screen, 1–4
---
Lead: The answer, in 1–3 sentences.

## C Inside the keyboard {span=2}
Text and blocks for this part.

## A Title {span=N}: the letter names the panel in replies; span is how many columns it takes. Panels in one row are drawn equally tall, so put parts of similar length side by side, or give a long one the whole row.

Diagram syntax (arch / flow)

  • Nodes: [Box] [(Database)] {Decision?} (Rounded) ((Circle)). A :tech suffix adds a brand icon (redis, postgres, kafka, docker, k8s, go, node, python, react, cloudflare, …).
  • Nodes are identified by label. After the first mention, [Checkout] is enough.
  • Edges: -> call, --> async, => main flow, <-> two-way, -- plain. : label labels the edge. Keep labels to 4 words or fewer.
  • group "Name" { … } draws a boundary (nestable). A node joins the group where it is first mentioned, so put a shared hub (database, store, event bus) in its own group or outside every group, never inside one path's group. [Node] { desc: …; files: …; owner: …; status: ok|warn|no } adds inspector details.
  • trace "Name" { A -> B: narration … } is a narrated route. A line with only [Node]: text is a stop without movement. trace "Name": A -> B -> C is the short form, without narration.
  • Raw Mermaid also works: a ```mermaid fence, or flowchart/sequenceDiagram inside arch.

Other blocks: ```sequence (Mermaid sequence syntax), ```callout ok|warn|err|info Title, ```ask (* = suggested option, - = option, [ ]/[x] = multi-select), ```kv, ```tree, ```free (a section you draw, below), tables with ok/warn/no status cells, and ordinary Markdown. Full reference: references/syntax.md.

Free sections

A free section is a part you draw by hand when no block shows it: an HTML fragment with SVG, its own <style> and, when it needs one, a <script> (root is the section). It sits in an ordinary panel and uses the page's tokens and kit, so it looks like the page. A page with one loads nothing from the network. Read references/free-sections.md before you draw one: its rules, the kit, the panel widths and every warning with its fix.

## D A position, not a letter
```free key-code
<p class="fx-how"><b>How to read this:</b> …</p>
<svg viewBox="0 0 320 120" role="img" aria-label="…">…</svg>
<p class="fx-take">…</p>
<style>.fx-key-code .row { … }</style>
```

## E Inside the mouse {span=3}
```free mouse-parts file=sections/mouse-parts.html
```

The name: lowercase letters, digits and dashes, once per page. file= reads the fragment from a file; the path starts from the draft's folder (from stdin, the working directory).

The check loop (on every page, not only one with a free section). check opens the page at 1440px and 390px, light and dark, checks every panel and saves one picture per panel and view. It prints the pictures of the panels with a problem first, then one ⚠ panel D @390 light: … line per problem.

  • Focused (brief block-only pages): run check once, inspect any ⚠ panel's pictures, fix, and re-render.
  • Full (the default): inspect every ⚠ panel and every free section's pictures (plus key block panels) and iterate up to 3 fix-and-check rounds until 0 warnings and clean visual alignment.

Lessons (powered by isokit)

Use an ```isokit block (preferred) or the compact ```lesson Markdown shorthand to teach how something moves between places over time: a request through a system, a change through Git, a job through a pipeline, a failure and its fix. Both render on the live animated isokit isometric stage (IsoDiagram.Stage) with smooth drop-in/exit transitions, dynamic camera framing, pan/zoom gestures, animated traffic packets, count-up metrics, and a synced guide with Back/Next, timeline, goals, and optional quiz. When the reader only needs to follow one path through a map, a trace route tour is enough.

Preferred: Native ```isokit (JSON)

Prefer ```isokit whenever the story benefits from rich isometric primitives (block, db with tank fill, device, crowd, zone, queue, docked panel with bars/hockey charts, note, ring, ghost), elbow links with labels, CPU/load meters, tags, heat/failure states, changes lists, and 127 Lucide icons. Full spec, placement rules, and copy-paste example: references/isokit.md.

Story & placement essentials:

  • 4–10 steps, one change per step, ending with recap and an optional quiz.
  • Keep entity ids stable across steps so entities glide and morph; new ids drop in with a floor spotlight; removed ids sink away.
  • Space size-4 blocks ≥ 7–10 units apart centre-to-centre, keep total scene width under ~28 units, and use "pills": "below" on front-edge blocks so pills never cover blocks behind them.
  • Clarify validates isokit JSON at compile time (types, icons, overlaps, spacing, zone-label crossings, route hops). Fix every ⚠ warning, then run clarify check.

Shorthand option: Markdown ```lesson

For quick linear step-throughs without coordinates, Clarify's Markdown lesson syntax still compiles directly onto the isokit stage:

```lesson How a Background Job Runs
subtitle: Follow one welcome email from the sign-up form to the mail server.
meta: 6 min · Beginner
places: app = server "Web app" | queue = queue "Job queue" | worker = server "Worker" | mail = mailbox "Mail server" | db = database "Users"
rails: app - queue - worker - mail | worker - db
counters: Account | Waiting | Sent
pucks: change = job | reply = address | fail = no answer
goals: Why the app hands work off @1 | What happens when sending fails @2

step Hand off: The app queues the job [how]
  You sign up. The app saves a ==job== to send your welcome email, and answers you at once.
  tip Key idea: Slow work waits in a queue, so nobody waits for it.
  move: app -> queue
  focus: queue
  set: Account = created good | Waiting = 1 job warn

step Down: The mail server is down [case]
  The worker takes the job and looks up your address, but the mail server does not answer.
  move: queue -> worker, worker <-> db, worker -> mail fail
  fail: mail
  cut: worker - mail
  set: Sent = failed bad

quiz Why does the app queue the email?
  * To answer you at once | the slow sending happens later
  - To send it faster | a queue adds a wait; it does not speed up sending
```
  • Objects (id = kind "Label", at most 7 places): laptop, phone, monitor, server, database, cabinet, tray, queue, cache, gate, router, mailbox, folder, cloud, box (a real box, never a stand-in: a thing with no kind of its own gets a free section).
  • Pucks: change (orange), reply (green), fail (red), store (violet), slow (amber). a <-> b bounces a green reply back.
  • Full Markdown lesson syntax: references/syntax.md. Full native isokit spec: references/isokit.md.

Rules

  1. Render with the CLI as the primary action. Do not paste the draft or the HTML into chat.
  2. If the CLI prints ⚠ warnings, they cite draft line numbers. Fix the draft and re-render. Then run node "${CLAUDE_SKILL_DIR}/bin/clarify.mjs" check on every page and work through it as "Free sections" says.
  3. After ✓ <path>, reply with a 2–3 line summary and the link [file:///abs/path.html](file:///abs/path.html).
  4. When the user pastes a reply starting with # Re: <title>, apply its decisions and review comments. (line N) points into the draft.
  5. Keep each diagram to 25 nodes or fewer. Split larger systems into an overview map plus detail maps.

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.