@litfamily/litclaude 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +8 -8
  3. package/README_ko-KR.md +8 -8
  4. package/docs/assets/readme/badge-version.svg +1 -1
  5. package/docs/hooks.md +11 -6
  6. package/package.json +1 -1
  7. package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
  8. package/plugins/litclaude/bin/litclaude-hook.js +31 -13
  9. package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
  10. package/plugins/litclaude/commands/lit-adhd.md +12 -8
  11. package/plugins/litclaude/commands/lit-rewind.md +12 -8
  12. package/plugins/litclaude/lib/canonical-skill-resources.mjs +18 -17
  13. package/plugins/litclaude/lib/mod/frame.mjs +87 -20
  14. package/plugins/litclaude/lib/mod/svg-card.mjs +64 -22
  15. package/plugins/litclaude/lib/mod/timeline.mjs +4 -3
  16. package/plugins/litclaude/lib/mod/view.mjs +53 -13
  17. package/plugins/litclaude/lib/rewind/brief.mjs +370 -0
  18. package/plugins/litclaude/lib/rewind/collect.mjs +39 -13
  19. package/plugins/litclaude/lib/rewind/gauge.mjs +28 -8
  20. package/plugins/litclaude/lib/rewind/suggest.mjs +51 -0
  21. package/plugins/litclaude/lib/rewind/transcripts.mjs +15 -0
  22. package/plugins/litclaude/skills/frontend-ui-ux/SKILL.md +8 -1
  23. package/plugins/litclaude/skills/frontend-ui-ux/references/production-interview.md +1 -1
  24. package/plugins/litclaude/skills/lit-adhd/SKILL.md +45 -28
  25. package/plugins/litclaude/skills/lit-adhd/references/card-examples.md +114 -58
  26. package/plugins/litclaude/skills/lit-adhd/scripts/rewind.mjs +1 -1
  27. package/plugins/litclaude/skills/lit-diagram-drawer/SKILL.md +12 -1
  28. package/plugins/litclaude/skills/lit-docx/SKILL.md +6 -1
  29. package/plugins/litclaude/skills/lit-docx/references/direction-step.md +8 -4
  30. package/plugins/litclaude/skills/lit-handoff/SKILL.md +1 -0
  31. package/plugins/litclaude/skills/lit-pptx/SKILL.md +6 -1
  32. package/plugins/litclaude/skills/lit-pptx/references/direction-step.md +4 -2
  33. package/plugins/litclaude/skills/lit-recap/SKILL.md +1 -0
  34. package/plugins/litclaude/skills/lit-schematic/SKILL.md +12 -1
  35. package/plugins/litclaude/skills/lit-typographic-motion/SKILL.md +10 -6
  36. package/plugins/litclaude/skills/readme-studio/SKILL.md +10 -0
  37. package/plugins/litclaude/skills/readme-studio/references/production-interview.md +2 -0
@@ -46,7 +46,7 @@ Claude Code lists this directory as a plugin skill, so `/litclaude:lit-schematic
46
46
  | `review-only` | critique of an existing schematic | Run `qa.mjs` and the close-up sweep, report findings with fixes; no edits |
47
47
  | `degraded` | `doctor.mjs` reports no Chrome | Author and QA the SVG; PNG and PDF are `BLOCKED` with the user-run setup line |
48
48
 
49
- **Outputs of a cutaway.** Static (SVG, PDF, 600 dpi PNG) is the default and is always delivered. Words such as HTML, interactive, web page, 인터랙티브, 웹 add a self-contained **interactive page** (preset views, exploded view, layer toggles, callouts lit on hover or keyboard focus). Words such as animation, motion, video, MP4, GIF, 애니메이션, 모션, 영상 add a **motion loop** (MP4, animated WebP, GIF). A bare request stays static and asks nothing. Ask one short question ("a static figure, an interactive web page, or a short looping video?") only when the user is present and names a use that would suit a page or a film without naming the form. Read `references/cutaway-outputs.md` before building either.
49
+ **Outputs of a cutaway.** Static (SVG, PDF, 600 dpi PNG) is the default and is always delivered. Words such as HTML, interactive, web page, 인터랙티브, 웹 add a self-contained **interactive page** (preset views, exploded view, layer toggles, callouts lit on hover or keyboard focus). Words such as animation, motion, video, MP4, GIF, 애니메이션, 모션, 영상 add a **motion loop** (MP4, animated WebP, GIF). A bare request stays static; the `Output` question below offers the other two forms when the user is present and the use would suit a page or a film. Read `references/cutaway-outputs.md` before building either.
50
50
 
51
51
  Size the work before drawing. **Sheet**: one P&ID or PFD sheet, up to about 25 equipment items and 40 instruments, or one journal figure with up to four panels, or one cutaway of one machine with 40–150 parts. **Package**: several sheets or a whole plant. Never start a package: state the estimate, propose the one sheet that carries the core (the reactor loop, the key unit), and list what the full set would add.
52
52
 
@@ -54,6 +54,17 @@ Size the work before drawing. **Sheet**: one P&ID or PFD sheet, up to about 25 e
54
54
 
55
55
  Resolve every helper from the directory that contains this installed `SKILL.md` (call it `SKILL_ROOT`) and run it by absolute path. Do not resolve scripts from the working directory or from another cached plugin version.
56
56
 
57
+ ### Choose the design first
58
+
59
+ The user has the right to choose the form of the drawing. Before the truth file, any coordinates or a scaffold, call the `AskUserQuestion` tool; use one call when the brief fixes the mode and a second when the mode was open. Each question puts the option the brief points to first with `(Recommended)`, gives a one-line description and a `preview` holding a small ASCII of the result.
60
+
61
+ 1. `Drawing` ("Which drawing?", only when the mode is open): `P&ID sheet` (ISA-5.1 tags and control loops, zone frame, title block, legend), `PFD / BFD flow sheet` (major equipment, stream numbers, stream table), `Journal figure` (apparatus panels at column width), `Isometric cutaway` (shaded parts, window cutaway, callouts). Previews: a framed sheet with a vessel and a tagged loop; a left-to-right flow with numbered streams; panels (a) and (b) in a narrow column; a boxed cutaway with callout leaders.
62
+ 2. `Size`, by mode: P&ID or PFD asks `A3 (Recommended)`, `A4`, `A2`, `A1` (`createSheet({ size })`); a journal figure asks `Single column, 85 mm`, `One and a half, 120 mm`, `Double column, 178 mm` with the venue's own width reachable through Other; a cutaway has no sheet size and asks the next two instead.
63
+ 3. `Finish` (cutaway only): `Full material colour (Recommended)` (palette `material`) or `Quiet grey` (palette `grey`).
64
+ 4. `Output` (cutaway only): `Static SVG, PDF and 600 dpi PNG (Recommended)`, `Interactive web page`, `Looping video (MP4, WebP, GIF)`; the static set is delivered with either of the others.
65
+
66
+ The tool adds "Other" itself, so no Other option is written. Skip a question when the prompt already names its answer (P&ID, 단면 사시도, "A2", "HTML", "monochrome", a journal's column width) or the user hands the choice over ("알아서", "you choose", "just make it good"): take the Recommended option and say so in the reply. When `AskUserQuestion` is unavailable (a non-interactive `claude -p` run), pick the Recommended option of each question, say so in one line ("Non-interactive run: drawing a P&ID on A3, the recommended option"), and continue.
67
+
57
68
  1. **Truth first.** Write the process truth before any coordinates: equipment list (tag, name, key specs), stream list (from, to, fluid, phase), line list (size, fluid code, class), instrument list (tag, function, location, loop), safety devices (PSV, rupture disk, set pressure, where it discharges), and the control philosophy (what each loop measures and moves). For a journal figure write the one sentence the figure must make obvious and the parts the caption will name. Read `references/pid-symbols.md` for tags and `references/pfd-and-layout.md` for stream tables.
58
69
  2. **Parts list before geometry.** P&ID and PFD: the equipment, inline items (valves, filters, flow elements, reducers), instruments and lines, each with its tag. Isometric: at least 40 real parts, each with its material tone, grouped as ground (pad, skid, feet), structure (saddles, legs, frame, brackets), body (shell, heads, flanges), internals (tubes, baffles, impeller, coil, packing, liquid), connections (nozzles, flanges, bolts, pipes) and instruments (gauges, thermowells, transmitters). Every part sits on another part. Read `references/isometric-craft.md`.
59
70
  3. **Lay out by flow.** Flow runs left to right and top to bottom; feed enters on the left, products leave on the right; gravity is real (pumps below their suction source, relief vents up). Leave lanes for headers and signal lines. Place instruments next to what they measure. Read `references/pid-drafting.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lit-typographic-motion
3
- description: Film director for a finished short film from a one-line request, made the same way every time — a treatment first (idea, audience, beats as shots, a drawn subject, copy, sound) in one of four house styles chosen by fixed rules, then a storyboard board round the user can see before the full render; the stage path for films that show things (a model-authored HTML/SVG/Canvas/WebGL page on a scaffold, captured frame by frame by the bundled deterministic renderer, 16:9 or 9:16) or the type path for films whose words are the film (kinetic type, lyric or quote video, title sequence, through the bundled WebGL2 type engine), with an original layered score, look rounds and a QA gate (flash audit, legibility, style, layout zones, empty frames, determinism, sound). Cover mode makes a silent, seamless README cover loop. Not for editing, trimming or captioning existing footage, a video embedded in a web page, a thumbnail, or slides.
3
+ description: Film director for a finished short film from a one-line request, made the same way every time — a treatment first (idea, audience, beats as shots, a drawn subject, copy, sound) in one of four house styles the user picks or fixed rules choose, then a storyboard board round the user can see before the full render; the stage path for films that show things (a model-authored page captured frame by frame, 16:9 or 9:16) or the type path for films whose words are the film (kinetic type, lyric or quote video, title sequence, through the bundled WebGL2 type engine), with an original layered score, look rounds and a QA gate (flash audit, legibility, determinism, sound). Cover mode makes a silent, seamless README cover loop. Not for editing, trimming or captioning existing footage, a video embedded in a web page, a thumbnail, or slides.
4
4
  ---
5
5
 
6
6
  ## #contract.activation
@@ -17,9 +17,9 @@ host: Claude Code
17
17
  verdicts: [PASS, FAIL, BLOCKED]
18
18
  ```
19
19
 
20
- This skill is a film director with a house studio. Every film starts with a treatment in a house style, is built on the same scaffold and shown as a storyboard before the full render. Films that are the words themselves take the type path; every other film takes the stage path. A README cover loop is not a film: it takes cover mode (`references/cover.md`).
20
+ This skill is a film director with a house studio: treatment, scaffold, storyboard, full render. Films whose words are the film take the type path, the rest the stage path; a README cover loop takes cover mode (`references/cover.md`).
21
21
 
22
- The UserPromptSubmit hook activates it for a prompt that starts with the token `lit-typographic-motion`, or for a bare `lit` prompt that asks to make something and names a film: a compound (모션그래픽, 키네틱 타이포, 가사 영상, 타이틀 시퀀스, motion graphics, kinetic type, lyric video, title sequence) or a bare 영상 / 비디오 / video / clip. It does not fire for the requests routed elsewhere below, a script, thumbnail or summary about a video, or a bare 모션 / motion / 인트로 / intro.
22
+ The UserPromptSubmit hook activates it for a prompt starting with `lit-typographic-motion`, or a bare `lit` prompt that asks to make a film (motion graphics, kinetic type, lyric video, title sequence, 모션그래픽, 영상, video, clip). It does not fire for the routes below, a script, thumbnail or summary about a video, or a bare 모션 / motion / intro.
23
23
 
24
24
  | Request | Route |
25
25
  | --- | --- |
@@ -38,7 +38,7 @@ The UserPromptSubmit hook activates it for a prompt that starts with the token `
38
38
  | No words, subject or facts | Invent a concrete example subject and its copy; list every invention and label it in the reply. |
39
39
  | Style, format, length, genre | Fixed by rules from the request (`references/studio.md`, `references/treatment.md`); the validator refuses any other. |
40
40
  | An audio file | `sound.mode: supplied` with its `file`; always muxed. |
41
- | Output directory | A new `motion-<slug>` folder in the user's working directory. Never the installed plugin. |
41
+ | Output directory | A new `motion-<slug>` folder in the working directory, never the installed plugin. |
42
42
 
43
43
  ## #contract.mode_matrix
44
44
 
@@ -73,6 +73,10 @@ node "$SKILL_ROOT/scripts/motion.mjs" cover --out <dir> --round <N>
73
73
 
74
74
  Every frame and track passes through these renderers. A film encoded by hand with ffmpeg, Python, a raster flipbook or a screen recording is not the deliverable. Cover mode replaces steps 1-6 with `references/cover.md`.
75
75
 
76
+ ### Choose the design first
77
+
78
+ The user has the right to choose the look. Before `treatment.json`, call `AskUserQuestion` once with `Path` (type path or stage, at 16:9 only), `Style` (swiss-signal, tidal, terminalcore, paper), `Format` (16:9, 9:16) and `Register`; the rules' pick first as `(Recommended)`, each with an ASCII `preview`. Add the picks to `treatment.request`. Skip what the prompt already names, or all on "알아서" / "you choose". Non-interactive (`claude -p`): take the Recommended option and say so in one line.
79
+
76
80
  1. **Treatment.** Load `references/treatment.md`; a product link runs `assets` first (real logo, images, words; unreachable: ask the user). Write `<dir>/treatment.json`: story and turn, protagonist, the arc's beats as shots, subject, devices, product, type, a score with events, copy; `style`, `format`, `durationSec`, `genre`, `fps` by its rules. Maximal by default (`register: rich`, a layered `world`); minimal only when asked.
77
81
  2. **Studio and path.** Load `references/studio.md` (styles, shots, scaffold, board, house file). Stage path: `references/stage.md` (a 3D subject: `references/depth.md`). Type path: `references/brief-schema.md`, `references/style-bibles.md`, `references/type-craft.md`, `references/craft-loop.md` (`references/engine-contract.md`, `references/runtime.md` for internals). Both: `references/look.md`, `references/sound.md`.
78
82
  3. **Build.** Stage path: run `scaffold`, then draw each shot's subject in its `DRAW` function. Type path: write `brief.json` without a `style` (the treatment's style decides).
@@ -103,7 +107,7 @@ artifact_genre: client_deliverable
103
107
  limitations_channel: reply
104
108
  ```
105
109
 
106
- Reader mode is the default. The film carries its own copy only: no request text, brief title, file name, internal term, engine credit, method note or watermark on screen. The reply keeps the activation line where it is; below it no second banner and no emoji. Plain words, no internal names: one line on the defaults chosen (the style by name); a label on every invention and on generated sound; one plain line on what was checked; where the storyboard and the copy live and the one command that re-renders; any downgraded or open item. Technical and audit detail appears only when asked; gate output, render receipts and evidence paths stay internal. A material failure or risk stays visible in the reply.
110
+ Reader mode is the default. The film carries its own copy only: no request text, file name, internal term, credit or watermark on screen. Below the activation line, no second banner and no emoji. In plain words: the style chosen, by name; a label on every invention and on generated sound; one line on what was checked; where the storyboard and copy live and the one command that re-renders; any downgraded or open item. Technical and audit detail appears only when asked; gate output, render receipts and evidence paths stay internal. A material failure or risk stays visible in the reply.
107
111
 
108
112
  ## #contract.evidence
109
113
 
@@ -132,7 +136,7 @@ Never raise a gate number, never weaken the flash audit, never ship a withheld e
132
136
  ## #contract.anti_patterns
133
137
 
134
138
  - Restating the request as the idea or the copy, or a film that only names its subject without showing it.
135
- - A style, format or length the rules did not choose; colours, faces or sizes off the style.
139
+ - A style, format or length neither the user nor the rules chose; colours, faces or sizes off the style.
136
140
  - Printing the request, a file name or an internal term (path, preset, gate, beat, treatment) on screen.
137
141
  - Shortening the film, dropping a beat or the subject, locking the camera, switching sound to none or stage to type to pass a check.
138
142
  - Claiming done from an exit code alone, or looking at frames without recording the look round.
@@ -51,6 +51,16 @@ Claude Code discovers this directory as a plugin skill. Leading named prompts re
51
51
 
52
52
  A clean report is **structure-only**: `source_contents_compared: false`, `badge_truth_checked: false`. It does not establish factual accuracy. Reopen the cited sources before using a claim. Do not resolve helpers from the current working directory or a guessed plugin cache version.
53
53
  3. Probe the tools exposed in this Claude Code session. If a supported native image generator is present and authorized, request an original text-free background, inspect its real output and retain it in the project. Otherwise report `IMAGE_GENERATION_UNAVAILABLE` and use an explicitly supplied, inspected background when one exists. With neither input, stop the background/composition/render stages. Finish independent README/fact work and retain a partial asset state. A procedural SVG, canvas painting, fractal or gradient is not an alternative background for this branch, even if honestly labelled; wait for a real supplied input. Never pretend CSS, a placeholder, a hand-authored gradient or supplied art was generated by a tool. Do not launch another host, ask for API keys or use an implicit API fallback.
54
+ ### Choose the design first
55
+
56
+ After the reads of step 1 and the capability probe of step 3, and before any typography, render or composition, the user picks the look; the user has the right to choose. Call the `AskUserQuestion` tool once with up to three questions, each with the option the facts favour first and labelled `(Recommended)`, a one-line description and a `preview` holding a small ASCII of the result. This is the one grouped design question; any other material choice still follows `references/production-interview.md`, one per turn.
57
+
58
+ 1. `Cover` ("What should the cover be?"): `Animated cover with poster (Recommended)` (the 60 fps five-second master, reduced-motion poster first, inline GIF under 2.5 MiB), `Static poster only` (the same layers, no motion, no render stage), `No cover art` (a plain-Markdown hero with headings). When no supported generator and no supplied background exist, the first two cannot be built: put `No cover art` first, say why in its description, and keep the stop rule of step 3.
59
+ 2. `Dressing` ("How decorated should the README be?"): `Decorated (Recommended)` (centered hero, restrained emoji section labels, a verified badge row, a feature grid, `<details>` for secondary material, footer navigation) or `Plain Markdown` (ordinary headings and lists with no HTML, for registries that strip it).
60
+ 3. `Renderer` (only for an animated cover): `Remotion, pinned (Recommended)` or `HyperFrames, pinned` (the HTML alternative). Previews sketch the hero over the first frame, a feature grid and a stripped plain-Markdown hero.
61
+
62
+ The tool adds "Other" itself, so no Other option is written. Skip a question when the prompt already names its answer (a static or animated cover, a renderer, "plain Markdown", an existing cover to keep) or the user hands the choice over ("알아서", "you choose", "just make it good"): take the Recommended option and say so in the reply. When `AskUserQuestion` is unavailable (a non-interactive `claude -p` run), pick the Recommended option of each question, say so in one line ("Non-interactive run: building the animated cover with a decorated README on Remotion, the recommended options"), and continue. Review, plan and keyword-only requests stay read-only and ask nothing.
63
+
54
64
  4. Read `references/type-and-background.md`. Resolve Pretendard and Meslo LGS NF from explicit local files with license evidence; no system-font install or silent fallback. Use the isolated typography template to shape the title, Korean/prose and technical labels to SVG paths. Preserve editable strings, font identity, hashes and licenses in `cover-source.json`. Validate glyph coverage and inspect outlines. Generate dark ink for light fields and light ink for dark fields; external SVGs do not inherit CSS text color.
55
65
  5. Read `references/render-and-deliver.md`. Select a renderer after checking the tool, license and prerequisites: pinned Remotion is preferred where compatible; pinned HyperFrames is the HTML alternative. Copy a template into a fresh task/project directory and install only there when authorized. Keep its lockfile. Do not depend on another repository, personal cache or global installation. Render to fresh filenames, never overwrite prior evidence or switch engines silently.
56
66
  6. Compose a distinctive cover from separate layers: real background, controllable Gaussian blur, static seeded grain, lighting falloff/glow, depth, original crisp pixel artwork and sharp outlined type. Keep the first frame identifiable and type legible. Deliver a 60fps, five-second master with deliberate easing, quick entry and readable hold, static posters and optimized inline animation. Target at most 2.5 MiB per inline GIF; record fps/size reductions honestly. An oversized preview needs an explicit delivery decision, not a hidden omission.
@@ -2,6 +2,8 @@
2
2
 
3
3
  Claude Code loads this reference through the selected `readme-studio` skill. There is no mandatory interview. Ask only when two plausible answers would materially change scope, architecture, permissions, accessibility, or visual direction. README examples include a conflict over audience or purpose, incompatible content scope, a static versus motion delivery that changes accessibility or package contents, or an unresolved authorized output location.
4
4
 
5
+ SKILL.md's "Choose the design first" step is the one exception to the one-question rule: it asks the visual-direction axes (cover, dressing, renderer) together in a single `AskUserQuestion` call, skipped when the brief already names them or hands them over. Every other material choice below stays one high-impact question at a time.
6
+
5
7
  When the brief says both directions are acceptable but does not choose or hand that choice to you, the direction remains unresolved; agreement that either is acceptable does not select one. Apply this rule to every material axis the brief leaves open. Ask one high-impact question at a time, beginning with the most consequential choice; bring each remaining material choice into its own round after higher-impact questions have been answered. Continue for as many rounds as materially necessary, with no fixed question count. Do not announce a default or produce the affected work for an unresolved choice before the user answers. A default is allowed only when the brief has settled that axis, explicitly delegates it (for example, “your call” or “pick one”), or the alternatives would not materially change the result.
6
8
 
7
9
  Once the material questions have answers, state the default and proceed only on details that are settled, delegated, or immaterial to the result. Use repository facts, applicable instructions, established identity, and earlier answers to support those details; do not pause for ceremonial approval of ordinary reversible work. Do not combine unrelated questions into a questionnaire.