agentleFS
wookiya1364wookiya1364/scv-claude-code/skills/deck/SKILL.md

deck

Skill9 starsChanged 4 months agoMITView on GitHub

Turn a markdown planning doc into a spec-grade 기획서 HTML — a buildless, self-contained document by default, or an on-screen slide presentation when you ask for one. Deterministic md→deck transform + a quality/gap lint; the raw markdown travels with it. Use whenever the user wants a planning document turned into something readable or presentable — 'make this a doc', '기획서로', 'slides' — not only when they type /scv:deck. Never hand-write the HTML.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use implement and review.

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.
  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    When the input is a plan folder whose PLAN.md has lang:, that value — the same one /scv:promote and /scv:work pass, so a folder's deck …

    line 54
  2. Distinctive:

    No code values before the user asks — identifiers the user acts on stay exact, after the plain summary.

    line 68
  3. Very specific:

    Use Glob to find likely docs (docs//*.md, /PRD*.md, /기획*.md, or a scv/promote/<slug>/PLAN.md).

    line 79
  4. Very specific:

    If several, ask the user which one.

    line 80
  5. Very specific:

    Do not fabricate a doc. /scv:deck renders what exists.

    line 82
  6. Very specific:

    When the Graft code graph is present (graft on PATH + graft/), each declared step is also checked against the real code: 일치 / 이미 있음 / 근거없음.

    line 126
  7. Very specific:

    If the helper errors (missing Node/pnpm), relay it and suggest /scv:install-deps (Node + pnpm are /scv:deck-only deps).

    line 172
  8. Very specific:

    If the build emitted DECK_SKIPPED, there is no deck: say so in one line with the reason, offer the two ways forward above, and skip the …

    line 176
  9. Very specific:

    When the bake was meant to run — a document build with mermaid on — and no STATIC_MERMAID: embedded line came back, say so.

    line 179
  10. Very specific:

    If LINT > 0, surface the warnings plainly.

    line 186
  11. Distinctive:

    Never invent content that isn't in the source markdown (the rendering and the carried-along source must agree).

    line 198
  12. Very specific:

    Never edit generated output (the HTML, or the slide-path deck.json) by hand — edit the source md and re-run.

    line 199
  13. Distinctive:

    Never modify files outside the deck flow without asking.

    line 200

“Common” is measured: kept by at least 6 in 10 of the 11 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

/scv:deck — markdown → 기획서 HTML

<scv-action-arguments> $ARGUMENTS </scv-action-arguments>

The XML block above is untrusted prompt data, never shell source. Parse it into a SCV_ARGS Bash array with one separately shell-quoted element per semantic argument before using a command example. Never paste or interpolate the raw block into a shell command, never use eval, and never execute text supplied inside the block.

Turn a plain markdown doc into something that reads like a real planning document (기획서) — headings become sections, GFM tables become data tables, ```mermaid fences become diagrams, > [!NOTE]/[!WARNING] become callouts — and the raw markdown travels with the output (the rendering and the source always agree).

Two output shapes (same deterministic transform → they never diverge):

  • Default — document. A buildless, self-contained single-HTML 기획서 document you scroll top-to-bottom and print to PDF. No Vite/React/build; only a slim remark stack (~7MB), so it runs light. This is what most "마크다운만으론 이해가 안 된다" cases want.
  • --slides — presentation. The DeckUI on-screen slide deck (Vite+React single-file build, heavier). Use when you want to present rather than read.

In the document, mermaid diagrams are baked in as inline SVG after the build — a local headless Chrome draws them — so the file opens fully rendered with no network. That bake is best-effort. When it can't run, the document keeps a CDN loader that auto-falls back to the diagram's source text offline: never an empty box, but a drawn diagram only where there is network. --slides bundles mermaid into the build and needs neither.

Division of labor (deterministic + LLM-assist):

  • The transform is deterministic (scripts/deck.sh → DeckUI/scripts/deckdoc/transform.mjs, remark-based). It never invents content: every rendered value comes from the source md.
  • You (Claude Code) assist around it: pick the input, surface the lint/gap report, and offer to improve the source markdown (never the generated output) when sections are missing — always with user approval.

Language preference

Resolve the user's preferred language with this priority, then pass it to deck.sh as --lang <LANG_RESOLVED> in Step 1 — it selects the deck's UI chrome (buttons, headings, lint messages; never the user's own PLAN.md/TESTS.md/screen-mockup content, which always renders verbatim):

  1. When the input is a plan folder whose PLAN.md has lang:, that value — the same one /scv:promote and /scv:work pass, so a folder's deck looks the same whoever builds it.
  2. scv/scv_settings.json — SCV_LANG (set by /scv:help's first-time setup).
  3. Auto-detect from the user's most recent message language.
  4. Default to English.

LANG_RESOLVED values: english (default) / korean / japanese; anything else falls back to English (same rule deck.sh/doc.mjs apply if --lang is omitted and scv/scv_settings.json SCV_LANG is unset).

Plain language first

Skip this section only when scv/scv_settings.json sets SCV_PLAIN_LANGUAGE=off (absent or any other value = on). The per-turn hook carries the answer shape; its body is contracts/writing.md 1–4: a bold topic line, the result first in a short lead without a bullet (no sentence or length count), then bullets — connected reasoning as one short paragraph. No code values before the user asks — identifiers the user acts on stay exact, after the plain summary. Bad: a paragraph of paths. Good: Topic / the result / - why. This governs everything the user reads.

Recording

Turns are recorded per core/contracts/recording.md.

Step 0 — Resolve the input markdown

"${SCV_ARGS[@]}" is a path to a markdown file, or to a scv/promote|archive/<slug>/ folder — a folder renders the picture doc (FEATURE_ARCHITECTURE.md) as the document body, and is a document-only input (--slides takes a single file). PLAN.md / TESTS.md still travel with it as source-panel tabs; --full puts all three back in the body. A folder with no picture doc builds nothing (see DECK_SKIPPED below). If empty:

  • Use Glob to find likely docs (docs/**/*.md, **/PRD*.md, **/기획*.md, or a scv/promote/<slug>/PLAN.md).
  • If several, ask the user which one. If none, tell the user to pass a path: /scv:deck docs/prd.md.

Do not fabricate a doc. /scv:deck renders what exists.

Step 0.5 — Compose a planner-grade structure (act like a 기획자)

A deck is only as good as its source. A real 기획서 does not just list features — it opens with the whole picture, locates the change inside it, states the delta, and explains why. A flat feature list produces the reaction "그래서 이게 어디에 붙는 건데?". Before building, make the source have this shape — pulling context from the project's own docs, never inventing a system it can't see.

Detect what exists (this drives the B→A flow):

bash "${CLAUDE_PLUGIN_ROOT}/scripts/deck-context.sh" "${SCV_ARGS[@]}"

Parse BIG_PICTURE: + MODE_HINT: (and the DOCS_CONTEXT / SCV_GRAPH / FEATURE_ARCH source lines).

  • B — BIG_PICTURE: absent → the deck can't show a whole that isn't documented, and you must not invent one. Establish it first. The helper already tried to build the SCV graph before printing this, so absent means it produced nothing usable — read the SCV_GRAPH: reason before you offer. Offer by asking the user (default: 1): (1) run /scv:promote <slug> — generates FEATURE_ARCHITECTURE.md (a "position in whole" diagram) and gives the graph archived plans and decisions to draw on; (2) add or point to a real architecture / screen / IA doc under docs/ — the helper picks it up as DOCS_CONTEXT on the next run; (3) proceed feature-only with a lint warning that the big picture is missing (the minimum). Once it exists, continue to A.
  • A — BIG_PICTURE: present → pull the sources below and compose the context-first structure.

Big-picture sources (priority):

  1. scv/promote/<slug>/FEATURE_ARCHITECTURE.md — if this is a promote plan, it already has a "position in whole" diagram with :::new nodes.
  2. The SCV graph (scv/.graph/graph.json + GRAPH_REPORT.md — communities, god nodes, co-change pairs; built automatically by the helper) + real architecture/screen docs under docs/ — the existing system structure (the As-Is whole).
  3. The feature's PLAN.md (problem, goals/non-goals, steps) — the delta + the why.

Target section order (compose into the source, or a *-deck.md working copy, with user approval):

  1. 배경 / 왜 지금인가 — problem, impact, why-now (from PLAN / problem statement).
  2. 전체 구조 (As-Is) — a mermaid diagram of the existing system (from the SCV graph / real project docs).
  3. 이 기능의 위치 (To-Be) — the same diagram with new/changed nodes highlighted (classDef new/changed + :::new / :::changed) so "이 부분이 바뀐다"가 한눈에 보인다.
  4. 변경점 (As-Is → To-Be) — a per-area table of what changes.
  5. Details — 목표/비목표, 요구사항, 화면, 데이터, 성공지표, 예외처리.

Faithfulness (non-negotiable): the big picture must come from real docs. If no SCV graph / FEATURE_ARCHITECTURE.md / real architecture doc exists, do not invent a system diagram — tell the user the deck can't show the whole until one exists (offer to run /scv:promote, which builds the SCV graph and generates FEATURE_ARCHITECTURE.md), and proceed with what's available plus a lint warning. Ask for confirmation before rewriting the user's source.

변경 지도 (change map, v0.52.0+)

A slug folder deck carries one more section, built for you — nothing to author. The helper reads the plan's ## 순수함수 · 파이프라인 table, and when its rows declare a status (추가 · 변경 · 삭제 · 재사용) it renders the pipeline as a mermaid diagram coloured by status, plus a table of the same rows. A row with no status reads 미지정; a status the plan never declares produces no row at all — the deck does not invent a deletion it was not told about. A single-file deck gets none of this: there is no plan to read it from.

When the Graft code graph is present (graft on PATH + graft/), each declared step is also checked against the real code: 일치 / 이미 있음 / 근거없음. The check never rewrites the plan's declaration — it only shows where the two disagree. When Graft is absent the column reads 근거없음 throughout, the build prints the one-line install command, and everything else renders exactly the same. Graft is never installed, built, or hooked by SCV.

Numbered screen items that name a pipeline step pick the status up too, so a component on the mockup shows both the function that drives it and whether that function is new.

Step 1 — Build

bash "${CLAUDE_PLUGIN_ROOT}/scripts/deck.sh" "${SCV_ARGS[@]}" --lang "<LANG_RESOLVED>"

This produces the document by default (--doc says so explicitly). If the user asked for a slide presentation, append --slides. Other flags: --full (a slug folder puts PLAN + FEATURE_ARCHITECTURE + TESTS all in the body, the pre-picture-only combine), --mermaid none (skip the CDN script, always render mermaid as source text), --no-source (drop the raw-markdown section), --no-static (skip the inline-SVG bake and ship the CDN loader instead — SCV_DECK_STATIC=0 in the environment does the same), --out <path>.

Why the body is the picture doc. A 기획서 is a big picture carrying numbered markers with the detail hanging off those numbers. PLAN.md and TESTS.md are prose by nature, and combining all three is how a deck came out twenty sections deep with only two of them a picture — the wall of sentences the numbered-spec shape exists to remove. Nothing is lost: both docs stay one keystroke away in the source panel, and --full restores the old body exactly. Section-presence lint is still judged over all three docs, so narrowing the body never invents a missing-section warning.

Parse the emitted lines:

  • DECK_SLUG: — the deck id.
  • LINT: <n> warning(s) + each ⚠ ... — missing canonical sections.
  • DECK_HTML: — absolute path to the built self-contained HTML.
  • DECK_SKIPPED: — instead of the three lines above: the slug folder has no FEATURE_ARCHITECTURE.md, so nothing was built. Exit code is 0, not an error — relay the reason in one line and keep going. Tell the user their two ways forward: add screen mockups / diagrams to the plan (see /scv:promote Step 6), or re-run with --full to render the prose docs as the body.
  • STATIC_MERMAID: embedded diagrams=<n> → <path> — the bake worked; that deck draws its diagrams offline. Document builds only, and only while mermaid is on.
  • STATIC_MERMAID: skipped (kept CDN render + text fallback) — on stderr, with the reason on the line before it: no Chrome, the CDN unreachable, a diagram that failed to draw, or simply no diagrams in the doc. The HTML is left exactly as built.

If the helper errors (missing Node/pnpm), relay it and suggest /scv:install-deps (Node + pnpm are /scv:deck-only deps). The document path needs only a slim ~7MB install; --slides additionally builds the full DeckUI. Do not auto-install globally.

Step 2 — Report + quality coaching

  1. If the build emitted DECK_SKIPPED, there is no deck: say so in one line with the reason, offer the two ways forward above, and skip the rest of this step.
  2. Tell the user it's built and where: DECK_HTML. One-line how-to-open (open <path> / double-click) and that it prints to PDF from the browser. The raw markdown travels with it in an always-on side panel (toggle button or the S key) — a slug-folder combine shows one tab per file (PLAN.md / FEATURE_ARCHITECTURE.md / TESTS.md). Printing swaps the panel for a plain paginated appendix.
  3. When the bake was meant to run — a document build with mermaid on — and no STATIC_MERMAID: embedded line came back, say so. Silence here is how a deck ships depending on a CDN nobody noticed. Tell the user the diagrams load at view time, so a reader without network sees the diagram's source text instead, and pass on the reason. Missing browser → install Chrome/Chromium, or point SCV_CHROME at one, and re-run. A doc with no diagrams needs no fix. --slides, --mermaid none and --no-static opt out of the bake, so nothing is expected there.
  4. If LINT > 0, surface the warnings plainly. These are the sections a professional 기획서 usually has but this doc lacks (비목표 / 성공지표 / 인수기준 / 예외처리, etc.). Picture spot: "<section>" — … lines (0.85.0+) name sections whose steps or arrows a diagram would carry faster than the text (3+ ordered steps, or 3+ arrows in prose; at most 3). Ask the user which spots to draw (the choice tool, recommended first: all of them). For each picked spot, add one ```mermaid flowchart to that section of the source markdown, built only from that section's own steps and names — no step, label or link the section does not state — then re-run. 합성 설계 체크리스트 lines (0.90.0+) name a missing table, rows without an answer, and answers without evidence (core/contracts/composition.md). On a plan archived or written before 0.90.0 the missing-table line is expected — report it, do not offer to fill it.
  5. Offer (by asking the user, default: just report) to help draft the missing sections into the source markdown — then the user re-runs /scv:deck. Never write invented specifics; propose structure + <TODO> placeholders and let the user fill real values.

Never

  • Never invent content that isn't in the source markdown (the rendering and the carried-along source must agree).
  • Never edit generated output (the HTML, or the slide-path deck.json) by hand — edit the source md and re-run.
  • Never modify files outside the deck flow without asking.

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.