[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79QM6K8QG2GCE8YTX2P6EE5":3,"skill-same:01M79QM6K8QG2GCE8YTX2P6EE5":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79QM6K8QG2GCE8YTX2P6EE5","visual-novel",null,"Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-novel\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: visual-novel\ndescription: >\n  Build a visual novel: a branching script, character and background display, a text box with choices,\n  save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.\n---\n\n# Visual Novel\n\nA playbook for visual novels — the branching script, the presentation (text box, characters,\nbackgrounds), choices, and the quality-of-life systems players expect (save anywhere, backlog,\nskip, auto). This is a **compositional** skill: it drives a dialogue engine and a UI layer. It\ndoes not re-teach the dialogue engine or UI nodes; it defines the script model and the player\nconveniences that make a VN pleasant to read.\n\n## When to use\n\n- Use when the game is **mostly reading branching text** with character art and backgrounds:\n  visual novel, dating sim, branching interactive fiction, story-choice game.\n- Use when designing a choice\u002Froute structure, story flags, or VN conveniences (backlog,\n  skip, auto-advance, save-anywhere).\n\n**When *not* to use:** dialogue as one feature inside a larger game → `rpg` consuming\n`dialogue-systems`. Card\u002Fboard play → other genres. For the branching-script engine itself,\nuse `dialogue-systems` (Ink \u002F Yarn Spinner).\n\n**If the project is Ren'Py** (current stable 8.5.3): the engine already ships save-anywhere,\nrollback, a history (backlog) screen, skip that stops at unseen text by default\n(`preferences.skip_unseen = False`), auto-forward and a text-speed preference. Use and restyle\nthose through its screens and preferences; apply this skill's design guidance (routes, flags,\nreactivity) rather than rebuilding the systems in Patterns 2–3.\n\n## Core loop\n\n**Read a line → advance → (at a branch) make a choice → the story branches on flags\u002Fchoices →\nread on → reach an ending.** The \"game\" is the *shape of the branching* and whether choices\nfeel consequential; everything else is presentation and convenience.\n\n## Must-have systems\n\n1. **Branching script** — ordered lines + choices + jumps, with conditions and variables (Ink\u002FYarn).\n2. **Text box** — speaker name, body text, typewriter reveal, advance on click\u002Fkey.\n3. **Characters** — sprites with expressions\u002Fposes, positions, show\u002Fhide transitions.\n4. **Backgrounds + transitions** — scene images, fades\u002Fdissolves.\n5. **Choices** — present options, gate some on flags, record the pick.\n6. **Story state** — flags\u002Fvariables that branch the script and unlock content.\n7. **Save\u002Fload (save-anywhere)** — full script position + state; multiple slots; quick save.\n8. **VN conveniences** — backlog\u002Fhistory, skip (read text), auto-advance, text-speed setting.\n9. **Audio** — music per scene, SFX, optional voice clips.\n\n## Design knobs\n\n| Knob | Effect | Notes |\n|------|--------|-------|\n| Text speed \u002F instant | reading comfort | Always allow instant + a skip. |\n| Auto-advance delay | hands-free reading | Tunable; pause on choices. |\n| Skip scope | re-reading | Skip *read* text only by default. |\n| Branch breadth\u002Fdepth | replay value vs. cost | Branches multiply writing\u002Fart work. |\n| Flag-gated content | reactivity | Lines\u002Fchoices that check past decisions. |\n| Route structure | story shape | Branch-and-merge vs. distinct routes (refs). |\n| Choice visibility | fairness | Show locked choices vs. hide them. |\n| Backlog length | convenience | Keep enough to re-read recent context. |\n\n## Patterns\n\n### 1. Script as data the engine walks\n\n```python\n# Pseudocode. Lines, choices, and jumps as data — usually authored in Ink\u002FYarn and stepped\n# through by that runtime. The engine asks the script for \"the next thing to show\".\nnode = script.current()\nif node.kind == \"line\":\n    show_text(node.speaker, node.text)        # wait for advance input\nelif node.kind == \"choice\":\n    options = [o for o in node.options if condition_met(o.condition, flags)]  # gate by flags\n    show_choices(options)                      # wait for selection\nelif node.kind == \"set\":\n    flags[node.var] = eval_expr(node.expr, flags)\nscript.advance(selected_option_or_none)\n```\n\n### 2. Typewriter reveal + advance (skippable)\n\n```python\n# Pseudocode. Lay out the whole line once, then reveal it; a press first completes the line.\ndef show_text(speaker, text):\n    name_label.text = speaker\n    body_label.text = text                     # full text set up front: wrapping is decided now\n    shown = 0.0\n    while shown \u003C visible_length(body_label):  # count displayed characters, not markup tags\n        if advance_pressed():                   # first press: reveal the whole line instantly\n            break\n        shown += chars_per_second * frame_dt()\n        body_label.visible_characters = int(shown)\n        wait_one_frame()\n    show_all_characters(body_label)\n    backlog.append((speaker, text))             # once, when the line is complete\n    wait_for_advance()                          # second press: go to the next line\n```\n\nReveal with the label's visible-character count, not by slicing the string: slicing cuts\nmarkup tags in half and re-wraps the text every frame, so a word starts on one line and jumps\nto the next. Godot 4.7: `RichTextLabel.visible_characters` (or `visible_ratio`) with\n`visible_characters_behavior = TextServer.VC_CHARS_AFTER_SHAPING`; the default\n`VC_CHARS_BEFORE_SHAPING` leaves hidden text out of line breaking, so words still jump. Unity 6.3:\n`TMP_Text.maxVisibleCharacters` (TextMeshPro, part of the uGUI package).\n\n### 3. Choice sets a flag that branches later content\n\n```python\n# Pseudocode. Choices write flags; later conditions read them — that is \"reactivity\".\ndef on_choice(option):\n    if option.set: flags[option.set] = True     # e.g. flags[\"helped_npc\"] = True\n    script.jump(option.target)                   # follow the branch\n\n# Elsewhere, a line\u002Fchoice\u002Fending checks the flag:\nif flags.get(\"helped_npc\"): play_route(\"good_ending\") else: play_route(\"neutral_ending\")\n```\n\n## Pitfalls \u002F failure modes\n\n- **Save that only stores a checkpoint** → VNs need **save-anywhere**. Persist the exact script\n  position *and* all flags\u002Fvariables (and seen-text data) so a load resumes the same line. Check\n  what your runtime can restore: Ink saves the exact position, Yarn Spinner only the node\n  (refs §4).\n- **Typewriter text that jumps between lines or shows raw tags** → the reveal slices the string.\n  Set the full text and raise the visible-character count (Pattern 2).\n- **Presentation logic baked into the script** → unmaintainable. Keep *content* (text, choices)\n  in the script and *how it looks* (sprites, transitions) in the engine layer.\n- **No skip\u002Fauto\u002Fbacklog** → readers feel trapped, especially on replays. These are expected\n  baseline features, not extras.\n- **Skipping unread text** → players miss content. Skip should fast-forward **read** text only.\n- **Choices with no consequence** → branches that reconverge instantly feel fake. Set flags that\n  visibly change later lines, choices, or endings.\n- **Combinatorial branch explosion** → unshippable. Prefer branch-and-merge with a few flagged\n  variations over fully distinct trees (refs).\n- **Lost reading context** → no backlog to re-read the last lines. Keep a history buffer.\n- **Hardcoded language** → no localization path. Keep text in data keyed for translation.\n\n## Composition (build it from these skills)\n\n- **Script engine:** `dialogue-systems` (Ink \u002F Yarn Spinner) — branching, conditions, variables, localization hooks.\n- **Presentation:** `game-ui-ux` for text-box\u002Fchoice-menu layout, scaling, and safe areas; `godot-ui-control` for the concrete text box, choice menu, name plate, and backlog UI.\n- **Persistence:** `save-systems` for save-anywhere slots, seen-text\u002Fskip data, and settings.\n- **Audio:** `audio-design` for per-scene music, SFX, and voice playback.\n- **Visuals:** the engine animation\u002F`Tween` skill for sprite\u002Fbackground transitions; `shader-programming` for dissolves.\n- **Process:** `prototype-fast` to test the branch structure in plain text before adding art.\n\n## References\n\n- For the branching data model, route structures (branch-and-merge vs. routes), flags\u002Fvariables,\n  save-anywhere + backlog\u002Fskip data, and the content\u002Fpresentation split, read\n  `references\u002Fscript-and-flow.md`.\n","# Visual Novel\n\nA playbook for visual novels — the branching script, the presentation (text box, characters,\nbackgrounds), choices, and the quality-of-life systems players expect (save anywhere, backlog,\nskip, auto). This is a **compositional** skill: it drives a dialogue engine and a UI layer. It\ndoes not re-teach the dialogue engine or UI nodes; it defines the script model and the player\nconveniences that make a VN pleasant to read.\n\n## When to use\n\n- Use when the game is **mostly reading branching text** with character art and backgrounds:\n  visual novel, dating sim, branching interactive fiction, story-choice game.\n- Use when designing a choice\u002Froute structure, story flags, or VN conveniences (backlog,\n  skip, auto-advance, save-anywhere).\n\n**When *not* to use:** dialogue as one feature inside a larger game → `rpg` consuming\n`dialogue-systems`. Card\u002Fboard play → other genres. For the branching-script engine itself,\nuse `dialogue-systems` (Ink \u002F Yarn Spinner).\n\n**If the project is Ren'Py** (current stable 8.5.3): the engine already ships save-anywhere,\nrollback, a history (backlog) screen, skip that stops at unseen text by default\n(`preferences.skip_unseen = False`), auto-forward and a text-speed preference. Use and restyle\nthose through its screens and preferences; apply this skill's design guidance (routes, flags,\nreactivity) rather than rebuilding the systems in Patterns 2–3.\n\n## Core loop\n\n**Read a line → advance → (at a branch) make a choice → the story branches on flags\u002Fchoices →\nread on → reach an ending.** The \"game\" is the *shape of the branching* and whether choices\nfeel consequential; everything else is presentation and convenience.\n\n## Must-have systems\n\n1. **Branching script** — ordered lines + choices + jumps, with conditions and variables (Ink\u002FYarn).\n2. **Text box** — speaker name, body text, typewriter reveal, advance on click\u002Fkey.\n3. **Characters** — sprites with expressions\u002Fposes, positions, show\u002Fhide transitions.\n4. **Backgrounds + transitions** — scene images, fades\u002Fdissolves.\n5. **Choices** — present options, gate some on flags, record the pick.\n6. **Story state** — flags\u002Fvariables that branch the script and unlock content.\n7. **Save\u002Fload (save-anywhere)** — full script position + state; multiple slots; quick save.\n8. **VN conveniences** — backlog\u002Fhistory, skip (read text), auto-advance, text-speed setting.\n9. **Audio** — music per scene, SFX, optional voice clips.\n\n## Design knobs\n\n| Knob | Effect | Notes |\n|------|--------|-------|\n| Text speed \u002F instant | reading comfort | Always allow instant + a skip. |\n| Auto-advance delay | hands-free reading | Tunable; pause on choices. |\n| Skip scope | re-reading | Skip *read* text only by default. |\n| Branch breadth\u002Fdepth | replay value vs. cost | Branches multiply writing\u002Fart work. |\n| Flag-gated content | reactivity | Lines\u002Fchoices that check past decisions. |\n| Route structure | story shape | Branch-and-merge vs. distinct routes (refs). |\n| Choice visibility | fairness | Show locked choices vs. hide them. |\n| Backlog length | convenience | Keep enough to re-read recent context. |\n\n## Patterns\n\n### 1. Script as data the engine walks\n\n```python\n# Pseudocode. Lines, choices, and jumps as data — usually authored in Ink\u002FYarn and stepped\n# through by that runtime. The engine asks the script for \"the next thing to show\".\nnode = script.current()\nif node.kind == \"line\":\n    show_text(node.speaker, node.text)        # wait for advance input\nelif node.kind == \"choice\":\n    options = [o for o in node.options if condition_met(o.condition, flags)]  # gate by flags\n    show_choices(options)                      # wait for selection\nelif node.kind == \"set\":\n    flags[node.var] = eval_expr(node.expr, flags)\nscript.advance(selected_option_or_none)\n```\n\n### 2. Typewriter reveal + advance (skippable)\n\n```python\n# Pseudocode. Lay out the whole line once, then reveal it; a press first completes the line.\ndef show_text(speaker, text):\n    name_label.text = speaker\n    body_label.text = text                     # full text set up front: wrapping is decided now\n    shown = 0.0\n    while shown \u003C visible_length(body_label):  # count displayed characters, not markup tags\n        if advance_pressed():                   # first press: reveal the whole line instantly\n            break\n        shown += chars_per_second * frame_dt()\n        body_label.visible_characters = int(shown)\n        wait_one_frame()\n    show_all_characters(body_label)\n    backlog.append((speaker, text))             # once, when the line is complete\n    wait_for_advance()                          # second press: go to the next line\n```\n\nReveal with the label's visible-character count, not by slicing the string: slicing cuts\nmarkup tags in half and re-wraps the text every frame, so a word starts on one line and jumps\nto the next. Godot 4.7: `RichTextLabel.visible_characters` (or `visible_ratio`) with\n`visible_characters_behavior = TextServer.VC_CHARS_AFTER_SHAPING`; the default\n`VC_CHARS_BEFORE_SHAPING` leaves hidden text out of line breaking, so words still jump. Unity 6.3:\n`TMP_Text.maxVisibleCharacters` (TextMeshPro, part of the uGUI package).\n\n### 3. Choice sets a flag that branches later content\n\n```python\n# Pseudocode. Choices write flags; later conditions read them — that is \"reactivity\".\ndef on_choice(option):\n    if option.set: flags[option.set] = True     # e.g. flags[\"helped_npc\"] = True\n    script.jump(option.target)                   # follow the branch\n\n# Elsewhere, a line\u002Fchoice\u002Fending checks the flag:\nif flags.get(\"helped_npc\"): play_route(\"good_ending\") else: play_route(\"neutral_ending\")\n```\n\n## Pitfalls \u002F failure modes\n\n- **Save that only stores a checkpoint** → VNs need **save-anywhere**. Persist the exact script\n  position *and* all flags\u002Fvariables (and seen-text data) so a load resumes the same line. Check\n  what your runtime can restore: Ink saves the exact position, Yarn Spinner only the node\n  (refs §4).\n- **Typewriter text that jumps between lines or shows raw tags** → the reveal slices the string.\n  Set the full text and raise the visible-character count (Pattern 2).\n- **Presentation logic baked into the script** → unmaintainable. Keep *content* (text, choices)\n  in the script and *how it looks* (sprites, transitions) in the engine layer.\n- **No skip\u002Fauto\u002Fbacklog** → readers feel trapped, especially on replays. These are expected\n  baseline features, not extras.\n- **Skipping unread text** → players miss content. Skip should fast-forward **read** text only.\n- **Choices with no consequence** → branches that reconverge instantly feel fake. Set flags that\n  visibly change later lines, choices, or endings.\n- **Combinatorial branch explosion** → unshippable. Prefer branch-and-merge with a few flagged\n  variations over fully distinct trees (refs).\n- **Lost reading context** → no backlog to re-read the last lines. Keep a history buffer.\n- **Hardcoded language** → no localization path. Keep text in data keyed for translation.\n\n## Composition (build it from these skills)\n\n- **Script engine:** `dialogue-systems` (Ink \u002F Yarn Spinner) — branching, conditions, variables, localization hooks.\n- **Presentation:** `game-ui-ux` for text-box\u002Fchoice-menu layout, scaling, and safe areas; `godot-ui-control` for the concrete text box, choice menu, name plate, and backlog UI.\n- **Persistence:** `save-systems` for save-anywhere slots, seen-text\u002Fskip data, and settings.\n- **Audio:** `audio-design` for per-scene music, SFX, and voice playback.\n- **Visuals:** the engine animation\u002F`Tween` skill for sprite\u002Fbackground transitions; `shader-programming` for dissolves.\n- **Process:** `prototype-fast` to test the branch structure in plain text before adding art.\n\n## References\n\n- For the branching data model, route structures (branch-and-merge vs. routes), flags\u002Fvariables,\n  save-anywhere + backlog\u002Fskip data, and the content\u002Fpresentation split, read\n  `references\u002Fscript-and-flow.md`.\n",{"name":5,"description":7},"main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Fvisual-novel","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill visual-novel",{"tool":37,"command":38},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill visual-novel",{"tool":40,"command":41},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill visual-novel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-novel\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fscript-and-flow.md","REFERENCE","参考文档",5307,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-novel\u002Freferences\u002Fscript-and-flow.md",[52,58,64,70,76,82],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]