[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BTR966290TB6B2YK9VWGS3":3,"skill-same:01M7BTR966290TB6B2YK9VWGS3":65},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7BTR966290TB6B2YK9VWGS3","architect",null,"Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.","ryuudotgg\u002Fskills","ryuudotgg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F105949556?v=4","01M7BTQG9960WYP87JFQ840KFP","Ryuu","01M7BTQGA02Z8QY16TW0F4PZ7V",3,"MIT","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: architect\ndescription: \"Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.\"\ndisable-model-invocation: true\n---\n\n# Architect\n\nDesign before implementing. Sketch types, function signatures, class shapes, and module boundaries with `not implemented` bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch. If implementation proves the sketch wrong, throw it out and redesign.\n\n## Start\n\nOpen a todolist with one entry per phase before starting. Autonomous mode without checkpoints needs the list to show phase position and keep phases from silently disappearing.\n\n1. Ground\n2. Sketch\n3. Agree\n4. Implement\n5. Scrap\n\n## Phase A: Ground the problem\n\nBuild a real mental model of every system the new code touches. Run the **how** skill over the relevant subsystems. Critique mode if existing structure is the constraint or the design must push back on it.\n\nNaming a file isn't grounding. Produce the traced model `how` prescribes. If the design redefines ownership or layering, recover the rationale for the existing shape from the history (`git log -S` over the symbols, the PR that introduced them) so it enters the design as a constraint, not a guess.\n\nSkip Phase A only when the work is genuinely greenfield with no surrounding system to integrate.\n\n## Phase B: Sketch\n\nFan out the design-sketch task with the Phase A grounding artifacts attached. Pass `references\u002Frunner-prompt.md` as each runner's prompt. Each candidate produces a design package shaped per `references\u002Frationale-template.md`: the caller's usage written first, then the type sketch, function signatures, module map, and prose rationale derived from it.\n\nBefore launching, run `skills arms` (the playbook skill's `bin\u002Fskills arms`, by absolute path), then fill the seats below per the playbook skill's `references\u002Fcodex-arms.md` **Roster** and **Panels** and launch the candidate runners in a single message.\n\n| Runner   | Arm                               | Role                                                         |\n| -------- | --------------------------------- | ------------------------------------------------------------ |\n| Runner A | `subagent_type`: `fable-judgment` | Judgment and prose arm, reads only                           |\n| Runner B | `subagent_type`: `opus-review`    | Second perspective, reads only                               |\n| Runner C | sol arm, astra on critical work   | Top tier, `-s read-only`, slug `\u003Ctask>-architect-sol`        |\n| Runner D | terra arm                         | Everyday tier, `-s read-only`, slug `\u003Ctask>-architect-terra` |\n\nWith no seat filled, write the two candidates yourself in sequence, each in its own scratch directory, and say in the reply that the panel was one model.\n\nPass no `model` parameter, no `readonly` parameter, and no isolation parameter in any form. Candidates stay independent: each Claude runner writes to its own scratch directory under `\u002Ftmp\u002Farchitect\u002F\u003Cslug>\u002F\u003Crunner>\u002F` and each tier runner, through any transport, to its own output file or harness child task, never a worktree and never a second checkout.\n\nDesign it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.\n\nScreen every candidate against [`references\u002Fdesign-red-flags.md`](references\u002Fdesign-red-flags.md) before synthesis. Reject or revise shallow modules, information leakage, temporal decomposition, and pass-through methods.\n\nCompare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.\n\nRead the candidates yourself and synthesize one design package from them. Do not average them: pick the strongest shape and graft what the others got right. The synthesis decision populates the rationale's \"Synthesis decision\" section, naming the base candidate, what was grafted, and what was rejected.\n\n## Phase C: Agree (opt-in)\n\nDefault: proceed directly to implementation with the synthesized design. No human checkpoint.\n\nOpt in to a checkpoint when the invoker explicitly asks: \"\u002Farchitect with checkpoint,\" \"stop and show me before implementing,\" or similar. Then surface the synthesized design and pause for sign-off.\n\nThe synthesis lands as its own reviewable step either way: the sketch files unstaged on the `feat\u002F*` branch in the main tree, described in the reply. That is the \"scaffold first\" mode of the **foundational-thinking** principle skill; the fill-in that follows reads as bodies written against a stable contract. Planned and scoped breakage during fill-in is fine, per the **outcome-oriented-execution** principle skill. For adversarial pressure on the design before implementing, run the **interrogate** skill on the synthesized sketch.\n\nIf the human pushes back on the shape (in a checkpoint or after the fact), treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.\n\nOne question is always blocking, checkpoint or not: where the thing lands. Which surface, which tab, which package, public or private, who can see it. If the request does not name exactly one destination, stop and ask. This overrides the **never-block-on-the-human** principle skill by name, and a candidate design that picked a destination is not the answer. A prototype does not settle placement.\n\n## Phase D: Implement against the sketch\n\nReplace `not implemented` bodies with code, pseudocode with logic. The synthesized sketch is the contract.\n\nVerify against whatever the project already has running. Never kill, restart or hijack a process, server or database you did not start in this session. If one is in the way, say so and ask. Leave the fill-in unstaged on the `feat\u002F*` branch for the handback, the playbook skill's `playbooks\u002Fhanding-back.md`; who stages, commits, pushes and posts is stated once, in the playbook skill's `references\u002Fdelivery.md`.\n\nDeviations from the sketch are signal worth surfacing, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching. Surface it; don't bolt it on.\n\n## Phase E: Scrap when the architecture is wrong\n\nIf implementation keeps producing friction the sketch can't absorb, throw the sketch out. Don't bolt fixes onto a wrong design, per the **redesign-from-first-principles** and **fix-root-causes** principle skills.\n\nThe signal is a _pattern_, not single instances. Tells:\n\n- The same shape of workaround appearing repeatedly across unrelated code.\n- Multiple unrelated edge cases that all need special-case branches.\n- Types that need escape hatches (`any`, casts, optional fields always set in practice) to compile.\n- The \"we need a lock\" reflex when the sketch said the state wasn't shared.\n- Callers having to know the abstraction's internal rules to use it.\n- Two or more independent Phase D deviations of the same shape across the implementation. Surfacing deviations is Phase D's job; a repeated pattern of them is Phase E's trigger.\n\nUse judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex; complexity in the data is not complexity in the design. The rewrite signal is repeated friction of the same shape, not single hard cases.\n\nWhen you scrap:\n\n1. Re-run the **how** skill over what's been built. The implementation lessons enter the new design as inputs, not vibes.\n2. Redesign as if the new constraints had been day-one assumptions, per redesign-from-first-principles.\n3. Subtract before adding, per the **subtract-before-you-add** principle skill. The new sketch should be smaller than the old one before it grows.\n4. Return to Phase B and re-run the candidate fan-out.\n\n## Outputs\n\nThe caller's usage is written first and the type sketch derived from it. One file with new types and signatures for small changes; module map plus type definitions for larger work. The rationale ships alongside, shaped per `references\u002Frationale-template.md`, including the usage sketch and the synthesis decision.\n","# Architect\n\nDesign before implementing. Sketch types, function signatures, class shapes, and module boundaries with `not implemented` bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch. If implementation proves the sketch wrong, throw it out and redesign.\n\n## Start\n\nOpen a todolist with one entry per phase before starting. Autonomous mode without checkpoints needs the list to show phase position and keep phases from silently disappearing.\n\n1. Ground\n2. Sketch\n3. Agree\n4. Implement\n5. Scrap\n\n## Phase A: Ground the problem\n\nBuild a real mental model of every system the new code touches. Run the **how** skill over the relevant subsystems. Critique mode if existing structure is the constraint or the design must push back on it.\n\nNaming a file isn't grounding. Produce the traced model `how` prescribes. If the design redefines ownership or layering, recover the rationale for the existing shape from the history (`git log -S` over the symbols, the PR that introduced them) so it enters the design as a constraint, not a guess.\n\nSkip Phase A only when the work is genuinely greenfield with no surrounding system to integrate.\n\n## Phase B: Sketch\n\nFan out the design-sketch task with the Phase A grounding artifacts attached. Pass `references\u002Frunner-prompt.md` as each runner's prompt. Each candidate produces a design package shaped per `references\u002Frationale-template.md`: the caller's usage written first, then the type sketch, function signatures, module map, and prose rationale derived from it.\n\nBefore launching, run `skills arms` (the playbook skill's `bin\u002Fskills arms`, by absolute path), then fill the seats below per the playbook skill's `references\u002Fcodex-arms.md` **Roster** and **Panels** and launch the candidate runners in a single message.\n\n| Runner   | Arm                               | Role                                                         |\n| -------- | --------------------------------- | ------------------------------------------------------------ |\n| Runner A | `subagent_type`: `fable-judgment` | Judgment and prose arm, reads only                           |\n| Runner B | `subagent_type`: `opus-review`    | Second perspective, reads only                               |\n| Runner C | sol arm, astra on critical work   | Top tier, `-s read-only`, slug `\u003Ctask>-architect-sol`        |\n| Runner D | terra arm                         | Everyday tier, `-s read-only`, slug `\u003Ctask>-architect-terra` |\n\nWith no seat filled, write the two candidates yourself in sequence, each in its own scratch directory, and say in the reply that the panel was one model.\n\nPass no `model` parameter, no `readonly` parameter, and no isolation parameter in any form. Candidates stay independent: each Claude runner writes to its own scratch directory under `\u002Ftmp\u002Farchitect\u002F\u003Cslug>\u002F\u003Crunner>\u002F` and each tier runner, through any transport, to its own output file or harness child task, never a worktree and never a second checkout.\n\nDesign it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.\n\nScreen every candidate against [`references\u002Fdesign-red-flags.md`](references\u002Fdesign-red-flags.md) before synthesis. Reject or revise shallow modules, information leakage, temporal decomposition, and pass-through methods.\n\nCompare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.\n\nRead the candidates yourself and synthesize one design package from them. Do not average them: pick the strongest shape and graft what the others got right. The synthesis decision populates the rationale's \"Synthesis decision\" section, naming the base candidate, what was grafted, and what was rejected.\n\n## Phase C: Agree (opt-in)\n\nDefault: proceed directly to implementation with the synthesized design. No human checkpoint.\n\nOpt in to a checkpoint when the invoker explicitly asks: \"\u002Farchitect with checkpoint,\" \"stop and show me before implementing,\" or similar. Then surface the synthesized design and pause for sign-off.\n\nThe synthesis lands as its own reviewable step either way: the sketch files unstaged on the `feat\u002F*` branch in the main tree, described in the reply. That is the \"scaffold first\" mode of the **foundational-thinking** principle skill; the fill-in that follows reads as bodies written against a stable contract. Planned and scoped breakage during fill-in is fine, per the **outcome-oriented-execution** principle skill. For adversarial pressure on the design before implementing, run the **interrogate** skill on the synthesized sketch.\n\nIf the human pushes back on the shape (in a checkpoint or after the fact), treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.\n\nOne question is always blocking, checkpoint or not: where the thing lands. Which surface, which tab, which package, public or private, who can see it. If the request does not name exactly one destination, stop and ask. This overrides the **never-block-on-the-human** principle skill by name, and a candidate design that picked a destination is not the answer. A prototype does not settle placement.\n\n## Phase D: Implement against the sketch\n\nReplace `not implemented` bodies with code, pseudocode with logic. The synthesized sketch is the contract.\n\nVerify against whatever the project already has running. Never kill, restart or hijack a process, server or database you did not start in this session. If one is in the way, say so and ask. Leave the fill-in unstaged on the `feat\u002F*` branch for the handback, the playbook skill's `playbooks\u002Fhanding-back.md`; who stages, commits, pushes and posts is stated once, in the playbook skill's `references\u002Fdelivery.md`.\n\nDeviations from the sketch are signal worth surfacing, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching. Surface it; don't bolt it on.\n\n## Phase E: Scrap when the architecture is wrong\n\nIf implementation keeps producing friction the sketch can't absorb, throw the sketch out. Don't bolt fixes onto a wrong design, per the **redesign-from-first-principles** and **fix-root-causes** principle skills.\n\nThe signal is a _pattern_, not single instances. Tells:\n\n- The same shape of workaround appearing repeatedly across unrelated code.\n- Multiple unrelated edge cases that all need special-case branches.\n- Types that need escape hatches (`any`, casts, optional fields always set in practice) to compile.\n- The \"we need a lock\" reflex when the sketch said the state wasn't shared.\n- Callers having to know the abstraction's internal rules to use it.\n- Two or more independent Phase D deviations of the same shape across the implementation. Surfacing deviations is Phase D's job; a repeated pattern of them is Phase E's trigger.\n\nUse judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex; complexity in the data is not complexity in the design. The rewrite signal is repeated friction of the same shape, not single hard cases.\n\nWhen you scrap:\n\n1. Re-run the **how** skill over what's been built. The implementation lessons enter the new design as inputs, not vibes.\n2. Redesign as if the new constraints had been day-one assumptions, per redesign-from-first-principles.\n3. Subtract before adding, per the **subtract-before-you-add** principle skill. The new sketch should be smaller than the old one before it grows.\n4. Return to Phase B and re-run the candidate fan-out.\n\n## Outputs\n\nThe caller's usage is written first and the type sketch derived from it. One file with new types and signatures for small changes; module map plus type definitions for larger work. The rationale ships alongside, shaped per `references\u002Frationale-template.md`, including the usage sketch and the synthesis decision.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","1fab3fba2d803b8830d584a350286b0c41d03b70","skills\u002Farchitect",0,"https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills","https:\u002F\u002Fskills.ryuu.gg","https:\u002F\u002Fgithub.com\u002Fryuudotgg","ryuu.gg","2026-11-14 20:00:51",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":24},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ryuudotgg\u002Fskills --skill architect",{"tool":40,"command":41},"bunx","bunx skills add ryuudotgg\u002Fskills --skill architect",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ryuudotgg\u002Fskills --skill architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002FSKILL.md",[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",43,"https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002Fagents\u002Fopenai.yaml",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fdesign-red-flags.md",1944,"https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002Freferences\u002Fdesign-red-flags.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Frationale-template.md",3054,"https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002Freferences\u002Frationale-template.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Frunner-prompt.md",3402,"https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Farchitect\u002Freferences\u002Frunner-prompt.md",[66,73,80,87,94,101],{"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},"01M7BTVC3YBVP6NYQ596DS6GAC","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Funslop\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},"01M7BTV97BV1Y34AX9XRB5SXWZ","technical-writing","Write or review docs, RFCs, readmes, and PR descriptions against a layered standard: Diátaxis structure, Google developer style sentences, STE instruction rules, and Global English syntax.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftechnical-writing\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},"01M7BTV71ESYGSJ68ATMTKX6QA","tdd","Fix a bug by writing a regression test that fails first, when a cheap local test path exists.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7BTV4YWK8D3FDN1DXCYBQVS","show-me-your-work","Keep a reviewable decision trail for unattended work: a TSV log, one row per decision (project, plan, branch, evidence, result), local and uncommitted.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fshow-me-your-work\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7BTV10QNSCR78T0AVZ21N5Z","principle-type-system-discipline","Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, refuse to lie to the compiler, exhaust variants, derive from authoritative schemas.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fprinciple-type-system-discipline\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7BTTZ16SXCT42J9YB0DGGG3","principle-subtract-before-you-add","Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.","https:\u002F\u002Fgithub.com\u002Fryuudotgg\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fprinciple-subtract-before-you-add\u002FSKILL.md",[],[]]