[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759F26M1DNHJ066RDEMXPRS":3,"skill-same:01M759F26M1DNHJ066RDEMXPRS":58},{"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":6,"updatedAt":29,"install":30,"resources":43},"01M759F26M1DNHJ066RDEMXPRS","view",null,"Show the design live and run the co-design loop: docs\u002Fui rendered in the browser (token sheet with contrast verdicts, component gallery, screen states, candidate pick), with every user click and note landing in events.jsonl for the agent's next round. Use when the user says \"cùng design\", \"cho tôi xem design\", \"preview the UI\", \"show the design\", or when publishing the prototype as gate evidence. This skill shows and collects feedback; design-flow:ui-designer is the one that writes the artifacts.","baodq97\u002Fgovkit","baodq97","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50482002?v=4","01M759BJ9XC68CW9PQCFK22H1X","Bao Do","01M759BJAY1W696G8A8N841875",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fdesign-flow\u002Fskills\u002Fview\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: view\ndescription: >\n  Show the design live and run the co-design loop: docs\u002Fui rendered in the browser (token\n  sheet with contrast verdicts, component gallery, screen states, candidate pick), with every\n  user click and note landing in events.jsonl for the agent's next round. Use when the user\n  says \"cùng design\", \"cho tôi xem design\", \"preview the UI\", \"show the design\", or when\n  publishing the prototype as gate evidence. This skill shows and collects feedback;\n  design-flow:ui-designer is the one that writes the artifacts.\n---\n\n# Design Visualize\n\n## Hard rules\n\n- **Never render anything that is not in the artifacts.** The shell is frozen and the extractor\n  is deterministic; if a screen is missing on the surface it is missing in `docs\u002Fui\u002F`. Fix the\n  data, never the shell — a per-project shell tweak is how \"one payload, no contradictions\"\n  dies.\n- **Phase-1 previews stay out of the doc tree.** `.design-flow\u002Fpreview\u002F` is ephemeral and\n  gitignored. A draft that lands in `docs\u002F` looks governed when it is not.\n- **Wireframe fidelity, said out loud.** The surface proves tokens, hierarchy, states, and\n  flow. It is not final pixels, and the shell's header says so — the gate must not believe a\n  thing the surface does not check.\n- **The picture inherits the artifacts' honesty.** What the extractor cannot parse it records\n  as a gap and the shell shows the gap list — an unparsed section and an empty section look\n  identical on screen, and only one is a design problem.\n\nA design nobody can see gets approved by politeness. This surface puts the current direction\non a screen — live, clickable, honest about what it does not know — so the person who can say\n\"primary chói quá\" says it by pointing at the thing.\n\n## Starting the surface\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fui_view.mjs --root . --out .design-flow\u002Fpreview\u002Fmodel.json \\\n  [--candidates .design-flow\u002Fpreview\u002Fcandidates]\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fpreview-server.cjs --dir .design-flow\u002Fpreview\n```\n\nThe server prints a URL with a session key — open it for the user. Rewriting `model.json`\n(i.e. re-running the extractor after any artifact edit) live-reloads every open tab over SSE.\n\n## The feedback loop — one round, not chat-about-chat\n\nThe drawer and every clickable element on the surface POST to the server, which appends one\nJSON line per interaction to `.design-flow\u002Fpreview\u002Fevents.jsonl`:\n\n| Event | Meaning | Agent's move |\n|---|---|---|\n| `{type: \"candidate-pick\", name}` | The user chose a direction by eye | Promote that candidate to `docs\u002Fui\u002Ftokens.json`; record the others under Rejected defaults in the brief |\n| `{type: \"note\", lens, target, text}` | A comment aimed at a swatch \u002F component \u002F screen (or general) | Apply it if unambiguous; queue a question only if it conflicts with the brief or another note |\n| `{type: \"approve\", lens}` | The user signs off the current lens | Record it; when the lenses covering the deliverable are approved, move to close-out |\n\n**Protocol, every round** (and immediately whenever the user says \"đọc feedback\" \u002F \"check the\nview\"):\n\n1. Read `events.jsonl`; process only lines after the count stored in\n   `.design-flow\u002Fpreview\u002Fevents-processed.json` (write `{count}` back after processing — the\n   file is the resume marker, so no event is applied twice or dropped).\n2. **Act directly on every unambiguous event** — edit `docs\u002Fui\u002F` artifacts, re-run\n   `check_tokens.mjs`, re-run the extractor; the browser re-renders on its own. Do not\n   re-ask in chat what the user already said on the surface.\n3. Bring back to chat ONLY: conflicts (two notes that cannot both hold, a note that\n   contradicts the recorded brief), and a one-line summary of what was applied.\n4. An `approve` is a lens sign-off from the user's hand — it may be cited in the close-out\n   summary, but it is not a governed status flip; those stay with the owner under the\n   ratification policy.\n\n## Choreography (borrowed deliberately)\n\n- **Opening — candidate pick** (theme-factory pattern): before settling `tokens.json`, write\n  2–3 candidate token files to `.design-flow\u002Fpreview\u002Fcandidates\u002F\u003Cname>.json` (each a valid\n  tokens shape with its own design read + palette + type), re-extract with `--candidates`, and\n  let the user pick on the Candidates lens. The pick event decides; the rejected candidates\n  become Rejected-defaults entries — real evidence the direction was chosen, not emitted.\n- **Working rounds**: user annotates on the surface → agent applies → live reload. Keep edits\n  in the artifacts; the loop's cost per round is one extractor run.\n- **Closing — reader test** (doc-coauthoring pattern): before close-out, have a fresh pair of\n  eyes (a dispatched agent with no session context) open the published view and answer: what\n  is each screen's primary action, and what happens on error? Where it cannot answer, the\n  design (not the reader) has the gap.\n\n## Two phases\n\n| | **Phase 1 — Preview** | **Phase 2 — Published** |\n|---|---|---|\n| When | co-designing; artifacts are draft | `docs\u002Fui\u002F` is settled for this slice |\n| Purpose | the user **looks, clicks, decides** | review surface + **gate evidence** |\n| Output | `.design-flow\u002Fpreview\u002F` — ephemeral, gitignored | `docs\u002Fui\u002F_views\u002F` (extractor with `--mode published --out docs\u002Fui\u002F_views\u002Fmodel.json`) |\n| What changes | the artifacts — tokens, screens, brief | only which lens a reviewer opens |\n\nPhase 2 is what gate-close cites: the red team and the owner review the rendered prototype —\nstates, flows, contrast verdicts — instead of imagining them from prose, and the verifier can\nopen the same payload the review saw.\n","# Design Visualize\n\n## Hard rules\n\n- **Never render anything that is not in the artifacts.** The shell is frozen and the extractor\n  is deterministic; if a screen is missing on the surface it is missing in `docs\u002Fui\u002F`. Fix the\n  data, never the shell — a per-project shell tweak is how \"one payload, no contradictions\"\n  dies.\n- **Phase-1 previews stay out of the doc tree.** `.design-flow\u002Fpreview\u002F` is ephemeral and\n  gitignored. A draft that lands in `docs\u002F` looks governed when it is not.\n- **Wireframe fidelity, said out loud.** The surface proves tokens, hierarchy, states, and\n  flow. It is not final pixels, and the shell's header says so — the gate must not believe a\n  thing the surface does not check.\n- **The picture inherits the artifacts' honesty.** What the extractor cannot parse it records\n  as a gap and the shell shows the gap list — an unparsed section and an empty section look\n  identical on screen, and only one is a design problem.\n\nA design nobody can see gets approved by politeness. This surface puts the current direction\non a screen — live, clickable, honest about what it does not know — so the person who can say\n\"primary chói quá\" says it by pointing at the thing.\n\n## Starting the surface\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fui_view.mjs --root . --out .design-flow\u002Fpreview\u002Fmodel.json \\\n  [--candidates .design-flow\u002Fpreview\u002Fcandidates]\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fpreview-server.cjs --dir .design-flow\u002Fpreview\n```\n\nThe server prints a URL with a session key — open it for the user. Rewriting `model.json`\n(i.e. re-running the extractor after any artifact edit) live-reloads every open tab over SSE.\n\n## The feedback loop — one round, not chat-about-chat\n\nThe drawer and every clickable element on the surface POST to the server, which appends one\nJSON line per interaction to `.design-flow\u002Fpreview\u002Fevents.jsonl`:\n\n| Event | Meaning | Agent's move |\n|---|---|---|\n| `{type: \"candidate-pick\", name}` | The user chose a direction by eye | Promote that candidate to `docs\u002Fui\u002Ftokens.json`; record the others under Rejected defaults in the brief |\n| `{type: \"note\", lens, target, text}` | A comment aimed at a swatch \u002F component \u002F screen (or general) | Apply it if unambiguous; queue a question only if it conflicts with the brief or another note |\n| `{type: \"approve\", lens}` | The user signs off the current lens | Record it; when the lenses covering the deliverable are approved, move to close-out |\n\n**Protocol, every round** (and immediately whenever the user says \"đọc feedback\" \u002F \"check the\nview\"):\n\n1. Read `events.jsonl`; process only lines after the count stored in\n   `.design-flow\u002Fpreview\u002Fevents-processed.json` (write `{count}` back after processing — the\n   file is the resume marker, so no event is applied twice or dropped).\n2. **Act directly on every unambiguous event** — edit `docs\u002Fui\u002F` artifacts, re-run\n   `check_tokens.mjs`, re-run the extractor; the browser re-renders on its own. Do not\n   re-ask in chat what the user already said on the surface.\n3. Bring back to chat ONLY: conflicts (two notes that cannot both hold, a note that\n   contradicts the recorded brief), and a one-line summary of what was applied.\n4. An `approve` is a lens sign-off from the user's hand — it may be cited in the close-out\n   summary, but it is not a governed status flip; those stay with the owner under the\n   ratification policy.\n\n## Choreography (borrowed deliberately)\n\n- **Opening — candidate pick** (theme-factory pattern): before settling `tokens.json`, write\n  2–3 candidate token files to `.design-flow\u002Fpreview\u002Fcandidates\u002F\u003Cname>.json` (each a valid\n  tokens shape with its own design read + palette + type), re-extract with `--candidates`, and\n  let the user pick on the Candidates lens. The pick event decides; the rejected candidates\n  become Rejected-defaults entries — real evidence the direction was chosen, not emitted.\n- **Working rounds**: user annotates on the surface → agent applies → live reload. Keep edits\n  in the artifacts; the loop's cost per round is one extractor run.\n- **Closing — reader test** (doc-coauthoring pattern): before close-out, have a fresh pair of\n  eyes (a dispatched agent with no session context) open the published view and answer: what\n  is each screen's primary action, and what happens on error? Where it cannot answer, the\n  design (not the reader) has the gap.\n\n## Two phases\n\n| | **Phase 1 — Preview** | **Phase 2 — Published** |\n|---|---|---|\n| When | co-designing; artifacts are draft | `docs\u002Fui\u002F` is settled for this slice |\n| Purpose | the user **looks, clicks, decides** | review surface + **gate evidence** |\n| Output | `.design-flow\u002Fpreview\u002F` — ephemeral, gitignored | `docs\u002Fui\u002F_views\u002F` (extractor with `--mode published --out docs\u002Fui\u002F_views\u002Fmodel.json`) |\n| What changes | the artifacts — tokens, screens, brief | only which lens a reviewer opens |\n\nPhase 2 is what gate-close cites: the red team and the owner review the rendered prototype —\nstates, flows, contrast verdicts — instead of imagining them from prose, and the verifier can\nopen the same payload the review saw.\n",{"name":5,"description":7},"main","850634e254ea6a5034bf2eddad5fe95091713231","plugins\u002Fdesign-flow\u002Fskills\u002Fview","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit","https:\u002F\u002Fgithub.com\u002Fbaodq97","2026-09-07 14:26:00",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add baodq97\u002Fgovkit --skill view",{"tool":36,"command":37},"bunx","bunx skills add baodq97\u002Fgovkit --skill view",{"tool":39,"command":40},"pnpm","pnpm dlx skills add baodq97\u002Fgovkit --skill view","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fdesign-flow\u002Fskills\u002Fview\u002FSKILL.md",true,[44,50,54],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Fpreview-server.cjs","SCRIPT","脚本",12206,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fdesign-flow\u002Fskills\u002Fview\u002Fscripts\u002Fpreview-server.cjs",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fshell.html",25517,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fdesign-flow\u002Fskills\u002Fview\u002Fscripts\u002Fshell.html",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fui_view.mjs",11096,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fdesign-flow\u002Fskills\u002Fview\u002Fscripts\u002Fui_view.mjs",[59,66,73,80,87,93],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M759HTCHQJVZ4JWDA2JNPJJZ","trigger-shaped","Use when the user says \"plan a sprint retro\"; drafts retro\u002Fnotes.md for the team.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Ftrigger-shaped\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M759HS3E2T97ZN1ED2Z96WAJ","terse-unguarded","Step 2 — writes docs\u002Fx\u002Foutput.json quietly.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Fterse-unguarded\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M759HPZN28VZHKYFR754CVXT","guarded","Summarizes ledger totals into reports\u002Fmonthly.csv.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Fguarded\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M759HMFQAZAWFVSS3KWPCCW0","open","Draft a spec. Use when asked to \"draft a spec\" or \"write the RFC\".","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Fdead-hint\u002Fskills\u002Fopen\u002FSKILL.md",[],[],{"skillNo":88,"name":75,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M759HJ3XX74S70PW9AR8NS66","Deploy the thing.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Fdead-hint\u002Fskills\u002Fguarded\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M759HCWJN9ACRNC1JW76DR1E","working-discipline","Thinking-checkpoint discipline for substantive implementation, debugging, or autonomous work — 21 trigger-gated items (trigger → mandatory question → evidence to produce) that cut agent error and human escalation. Use before an autonomous or long-running run, when asked to \"work carefully\", \"double-check\", \"làm cẩn thận\", \"reduce errors\", \"be more autonomous\", or after looping twice on the same failing fix. NOT a procedure — checkpoints fire on their triggers and demand evidence, with an N\u002FA escape valve so a strong model pays near-zero overhead.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fswe-flow\u002Fskills\u002Fworking-discipline\u002FSKILL.md",[],[]]