Clarify

From melodic-software/claude-code-plugins · View interactive version

Clarify is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Faithful restructure of one dense, decision-heavy message: one decision at a time, the session's jargon defined, the choices surfaced with operative terms quoted verbatim, and an HTML decision table for decision-dense content. Use when the user says 'make this clear', 'clarify this', 'help me digest

How to use this skill

Skill file

Clarify a dense artifact into something you can act on

Clarify by restructuring, never by simplifying: precision and reading level stay fixed, only the

arrangement changes. A clarification that loses or softens a decision is worse than the original,

so the fidelity rules are hard.

The core move

  1. Identify the target. The argument, or with none, the previous assistant response

(Empty argument).

Done when you can name the target, or, on a cold start, have asked what to clarify.

  1. Re-read it this turn, in full. Working from memory of it is how operative terms drift.

Done when you can quote an operative term from its text.

  1. Restructure faithfully: chunk, define jargon, surface decisions, under the fidelity rules.

Done when every decision from the target appears in the restructured view and every

omission is named.

  1. Choose the medium per Rendering: resolve medium, then the form.

Done when the output is in the form the resolved medium and content size name, it prints

the resolver's report line (or the one line saying why the resolver did not run), and you claim no artifact that was not produced.

Empty argument

With no argument, or only a --medium flag, clarify the assistant's own previous response. With no prior assistant

message, ask what to clarify; never invent a target.

Trivial target. When the target holds fewer than about two decisions (a short answer, a

status line), skip the table and glossary: say in one line that it has nothing dense to clarify

and ask what the reader wanted clarified.

Conflicting shaper. If a terse-for-tokens output shaper (for example caveman hooks) is active

in the session context, say so before rendering: this skill adds structure that a strip-words

directive contradicts. Name the source and let the user pick.

Fidelity rules (hard)

  1. Quote operative terms verbatim. The load-bearing words of every recommendation (the chosen

option, the number, the named file, the condition, the deciding verb) are copied, never

paraphrased. "Go with option B, patch bump, gated behind --force" survives character for

character. Surrounding framing may be reworded.

  1. Keep the original identifiers as back-links. Every chunk carries the original item's own

identifier (Q9, Round 4 · P15b, §3), separate from any numbering this skill adds. When the

original has none, synthesize a locator ("¶2", or the chunk's quoted opening phrase) and say you

did. No chunk is left without a way back to its source passage.

  1. List omissions explicitly. Anything not carried forward (a caveat, a fifth option, a

dependency) is named in a short "Left out" note. The reader decides whether it mattered.

  1. State that it is a lens. Close with one line: this is a clarification; validate final

answers against the original text, not this restructuring.

Restructure moves

decision. Put a prerequisite decision before the one that depends on it, and say so.

lane", "gate vacuity", "P15b") and define each once, in plain words, in a glossary visible beside

the chunks. Define the shorthand at the same altitude; do not simplify the concept.

(verbatim), the alternative it was chosen over (verbatim, or "none offered"), and one sentence

on what the reader is actually deciding: the crux, not a restatement of the option.

Carry Basis: through unchanged: "none stated" when the source gave none, never an inferred one.

It has three outcomes: Basis: verified with the file:line, tool output or URL;

Basis: judgment, allowed only for a recommendation that is not consequential (cross-repo, shared

infrastructure, irreversible, or security); or withheld, where the source raised an unsettled

consequential choice as an open question. A withheld item shows "withheld" in the Recommendation

cell and the evidence that would settle it in the Basis cell, never an invented recommendation. A

recommendation the source re-stated as old → new → why keeps all three parts. Full convention:

recommendation-basis.

Rendering

Resolve `medium` first

Before choosing a form, run the shared medium resolver. Add --argument only when the reader

passed --medium, with the value they gave. <option> is this plugin's medium option,

${user_config.medium}; pass "" when that reads empty or as an unsubstituted placeholder. Read

each option value from this text; never put a ${user_config.*} string in a shell command.

node "${CLAUDE_PLUGIN_ROOT}/lib/view-settings.mjs" resolve --lane adhd:clarify --option "<option>" [--argument <medium>]

It prints one JSON line, then the report line naming the medium and what decided it, then one line

per notice; print the report line and each notice line in the output as they stand. The resolver weighs the argument, this

plugin's medium option and the repository's rendered-views convention files, and it never

publishes on a team file's say-so: leave every settings file to it. A usage error

(exit 2) means the argument named no medium: say so in one line and run it again without

--argument.

stepped it down to one this session can reach, and a medium that keeps the view on the machine

never publishes, even with the Artifact tool present. When that form's surface is still absent

(no Artifact tool, no writable temp location), step down the table and say why in one line.

size and the surfaces present.

say so in one line in place of the report line, and let the table below decide.

Small content (1–2 decisions) stays terminal markdown whatever the medium.

| Content | Surface available | Render as |

|---|---|---|

| Big / decision-dense (roughly 3+ decisions) | Artifact tool present in this session | Published HTML artifact |

| Big / decision-dense | No artifact surface, file writing useful | Local HTML file in the OS temp directory; hand back the path |

| Small (1–2 decisions), or no useful file surface | either | Structured terminal markdown |

Under the shipped default, detect the Artifact tool and degrade down the ladder when it is

absent. Never claim a decision table was rendered when only prose was produced.

For a local file, create one file per run through the platform's temp API, never an accumulating

tree, and hand back its path; never write into the consumer's repository, and do not delete the

file before returning. Resolve that path the same way every run: do not branch on an injected

scratchpad path or CLAUDE_JOB_DIR, never depend on the session scratchpad, and do not use a

plugin-data substitution variable for it.

Available string substitutions

live.

With neither a writable temp location nor the Artifact surface, use terminal markdown. The

fidelity rules hold in every medium.

Page chrome. For the artifact or local HTML file, take the palette, type stacks, radii and

accessibility floor (link and focus contrast tokens, color-scheme and reduced-motion behavior) from

this plugin's bundled chrome reference, ${CLAUDE_PLUGIN_ROOT}/reference/html-chrome.html, rather

than inventing a look per page. The chrome does not settle layout: the decision table stays the

page's main content.

The decision table

In every medium the table has numbered rows and these columns.

| # | Item | Recommendation | Basis | Alternative | What you're deciding |

|---|------|----------------|-------|-------------|----------------------|

| 1 | Q9 | (verbatim operative terms) | (verbatim, or "none stated") | (verbatim, or "none offered") | the crux in one sentence |

Item is the original identifier, the back-link. Keep the two distinct.

too long for a cell, quote its operative clause and point to the original by its Item; never

a lossy summary.

by docs/contracts/rendered-views/README.md ("Security baseline") in the marketplace

repository and repeated here because this skill runs where that file is not on disk. Everything copied <!-- contract-restatement-begin: rendered-views-security-baseline -->

into the page is untrusted data: escape &, <, >, ", and ' in text

and attribute positions; never interpolate unescaped content into <script>

or <style>; never build an event-handler attribute from input. A local-file page may

load a popular, widely used library from a public CDN, pinned to an exact version, and makes no

other external request; each CDN <script> and <link> tag carries crossorigin="anonymous"

and an integrity hash of the exact file its pinned URL serves; it then has a fallback for when the CDN is unreachable, so the

table still shows. A page destined for a published claude.ai Artifact stays self-contained,

assets inline. <!-- contract-restatement-end: rendered-views-security-baseline -->

Operative terms often carry code-like characters (<dialog>, A && B, --force); escaping

keeps them verbatim in the page. In terminal markdown, wrap such terms in backticks.

Publishing an artifact

Load the artifact-design skill when it is available. When it is not, meet the Artifact tool's

own stated requirements and keep the page self-contained.

Page constraints live.

The decision table is the page's spine; it needs no runtime capabilities. Keep it utilitarian:

no hero banner, no italic accent words in headings, no "01 / 02 / 03" section labels (# is the

only numbering), no pill-shaped badges, and no style the reader names; when the reader dislikes a

choice, add it to that list and render again. In the terminal, give a one-line summary and the

link or path, not the table a second time.

Boundaries

This skill keeps altitude fixed.

the artifact's own medium and words.

missing context and re-pitches. Use this skill when the premise is all on the page and the

decisions are buried.

one artifact. When both are active, fidelity wins over shaping: the decision table is exempt

from shape's five-item cap, and a shape-formatted target is judged by its actual decision density, not its provenance.

read and answer from).

Routing: "I don't get it / explain simply / what does this mean" goes to /education:explain (if enabled);

"ELI5 / draw me this / show me a diagram" goes to /education:illustrate (if enabled); "make this clear /

clarify this / what am I deciding" is this skill. Hand off to the first two through the Skill tool

when the education plugin is enabled; when it is not, say which one the ask wants and give a

faithful restructure.

Gotchas

omission.

the fidelity rules exist to stop.

original.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.