/spec:viewfrom spec
Renders change artifacts into self-contained HTML views for human reading across stages (research, ask, design, proposal, verify) with standard or advanced tier layouts. Supports localization and archived change directories.
Ships in spec. Installing the plugin adds it to Claude Code.
Arguments: $ARGUMENTS
/spec:view [stage] [tier] [lang] [dir] — every token optional, any order:
| Token | Values | Default |
|---|---|---|
| stage | research · ask · design · proposal · verify · all | all |
| tier | standard (faithful markdown render + section nav + stamp badge) · advanced (stage-specific layout; ask + proposal interactive) | advanced |
| lang | a language code — zh, en, ja, … — the language the page content is shown in | the language the user writes in this conversation |
| dir | a change dir, an archived change dir, or a diff-mode verify record dir (spec/archive/<date>-verify-<slug>/) | the current change |
Any other token is flagged to the user as a possible typo — nothing is silently ignored.
--view / leading view on other commands is shorthand for this command: /spec:research view <direction>, /spec:ask view, /spec:design view <focus>, /spec:propose --view, /spec:verify --view each finish their own work, then run /spec:view <their stage> (verify in diff mode passes its record dir). This command holds the render logic; the shorthand never re-implements it.
spec/changes/.current naming an active change, else the single active change. More than one active and none selected → list them and ask which one (never pick by guess). No change and no dir → say so and stop.<lang> → write <dir>/view/<lang>/<file> as the header line alone with a · same suffix (<!-- sdd-translation: <file> · <lang> · cksum <crc> <bytes> · same -->), so the script embeds the source as is instead of reporting a missing translation; the stamp makes it re-judged when the source changes;--stamp <file>; step 3 shows where the script lives) — never compute it yourself, because the script twins are the only stamp authority;<dir>/view/<lang>/<file> exists and its first line records that same stamp → reuse it, no new translation (a translation is paid for once per source revision);<!-- sdd-translation: <file> · <lang> · cksum <crc> <bytes> -->, then the source with its prose only translated — every heading line, list / table / blockquote marker, fenced or inline code, ID (R-N, A-N, C-N, DEC-N, TBD-N, V-N, E-N, F-N), file path, command, URL, frontmatter key, every layout key in references/view-spec.md § Parse contract — the | refs: / | verify: / | candidates: / | select: / | source / | if wrong: fields, the | auto | / | escalated | mode marks, the gate's E<N>. / numbered Changes lines, their Problem: / After: / Cost: labels and the gate's own section labels (Escalated decisions, Changes, Decided without asking, Unsourced additions, Uncovered requirements, Unresolved critique, Not in this change), the ask sub-line prefix - Q:, the select: values one / several and the / between candidates, frontmatter values (pass / fail / diff) and the ledger's Severity / Status values — and the line-grammar separators (the ASCII : after an item name, —, |) stay byte-identical: a translated or full-width (: / |) layout key silently drops cards and fields from the page with no fallback line, because the templates parse exactly those and the reply lines quote the IDs. Translate meaning, never add to it: a sentence the source does not say must not appear on the page.lang=<lang> when step 2 wrote or reused any translation (the script embeds and stamps; it never interprets your markdown):
sh "${CLAUDE_PLUGIN_ROOT}/skills/core/views/render.sh" <dir> <stage> <tier> [lang=<lang>] — stamp mode: sh "${CLAUDE_PLUGIN_ROOT}/skills/core/views/render.sh" --stamp <file>view: <path> per page, then fallback: none or one fallback: <heading> — <reason> line per section the advanced layout could not parse, and a translation: <file> — missing|stale line for any source shown in its original language instead. Exit 1 = a required source is missing or a token is unknown — report the message as-is. A translation line after step 2 means the header did not match: rewrite that translation once and re-render.format not recognized tag. Fix ONLY the format of the named sections to the spec shape (references/view-spec.md § Parse contract) — never their content, because the page must show what the artifact says; a fallback inside a translation is fixed in the translation, never in the source — then re-render once. Still falling back → report the lines and stop; the standard tier always works./spec:ask"; proposal page → "paste the reply line as your gate reply".The same script, check mode: render.sh --check <dir> (Windows Codex: render.ps1 --check <dir>) prints one <path> stale — /spec:view <stage> line per view whose embedded stamps no longer match its sources, nothing when all are fresh. Stamping and checking live only in the script twins — never compute the stamp yourself, because a hand-run cksum and the pwsh twin must agree byte-for-byte.
view/ dir of the resolved target (step 5's format fix is the one exception, and it changes format only)view/<lang>/ is a derived reading copy; the md the agents read stays exactly as writtenWhat the command file sets; muted values are Claude Code's defaults
html-rendering, localization, change-artifacts, specification
7-day visitors to each command page
18 commands in this plugin
/apply/spec:applyImplement the code, advancing by proposal/tasks. A pre-command hook checks that proposal.md carries the APPROVED marker. Verification model: cheap self-run working checks per node while implementing; ONE independent spec-verifier pass at the end (never dispatch verification subagents mid-implementation)/archive/spec:archiveArchives the current change to spec/archive/YYYY-MM-DD-<name>/. Only invoked when the user explicitly says "archive". Writes an archive-stage retrospect, mines the change for recurring lessons (fresh-context spec-reflector agent) and applies the ones the user selects to project skills / rules files, sediments the knowledge base, checks for uncommitted code, and is guarded by the check-archive hook./ask/spec:askInterrogates preference-driven decision points. Derives questions from the candidate sets research minted into each [TBD] (options are citations, not inventions), asks via AskUserQuestion (multiSelect for pick-several), and moves answered items to/chat/spec:chatDiscussion mode. Everything said during this mode is treated as thinking material only — no documents are touched. Use for brainstorming directions, or to talk through concerns about a proposal before deciding how to change it./design/spec:designTechnical design elaboration. Trigger on demand — use when the architecture is complex, there are more than 3 interfaces, sequence/data-flow diagrams are needed, or a decision requires more than 300 words of deep argumentation. Produces design.md./fix/spec:fixStreaming light tier for bug fixes and small changes (user-explicit only, never model-initiated). Appends F-N entries to today's daily batch under spec/changes/fixes/<date>/ — locate & confirm before touching code, fix directly when confident or research candidates when not, self-check evidence per entry; the ONE independent audit happens at /spec:ship.npx claudepluginhub kamioj/spec-workflow --plugin spec2 plugins ship this exact command · first indexed Nov 13, 2026
Other plugins' commands for the same job