[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M786MK8XP4RM7ERHQE38AMZD":3,"skill-same:01M786MK8XP4RM7ERHQE38AMZD":98},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M786MK8XP4RM7ERHQE38AMZD","sam",null,"Design and review software architecture with SAM. Use for architectural drivers, ADD design, documentation, ADR approval or reopening, approved project context, architecture change review, and delivery handoff.","dong4to\u002Fsoftware-architecture-method","dong4to","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F102071960?v=4","01M786KJC1H0GASRV902341TWQ","Don Gato","01M786KJCM99Z76G58M5CEHZ60",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sam\ndescription: Design and review software architecture with SAM. Use for architectural drivers, ADD design, documentation, ADR approval or reopening, approved project context, architecture change review, and delivery handoff.\n---\n\n# SAM Workflow\n\nUse the user's language for conversation. Keep canonical filenames, stable IDs, metadata fields, and generated artifacts in English.\n\n## Core Rules\n\n- Treat SAM as three architecture phases: requirements, design, and documentation.\n- Treat delivery planning as an optional handoff, never as phase 4.\n- Let the agent draft and analyze; require the architect to approve drivers, material tradeoffs, ADRs, and accepted risks.\n- Treat Draft and In Review artifacts as proposals. Only Approved artifacts constrain implementation.\n- Write architecture artifacts under `docs\u002Farchitecture\u002F`; additionally maintain only the managed SAM block in root `AGENTS.md`.\n- Preserve existing user content and stop on ambiguous migrations.\n- Use `REQ`, `QA`, `CON`, `DRV`, `ADR`, `STORY`, `SLICE`, and `CHECK` identifiers.\n- Use `Addressed`, `Pending`, or `Accepted Risk` during design. Use `Verified` or `Failed` only with executed evidence metadata.\n- Ask only when an unresolved answer would change a primary driver, hard constraint, irreversible decision, or critical risk.\n\n## State Helper\n\nUse `tools\u002Fsam\u002Fscripts\u002Fsam_state.py` when installed in the project. Otherwise resolve `..\u002F..\u002Fscripts\u002Fsam_state.py` relative to this skill and invoke that absolute path from the project root. Use the same CLI for all clients.\n\n```bash\npython ..\u002F..\u002Fscripts\u002Fsam_state.py init --name \"Project\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py status\npython ..\u002F..\u002Fscripts\u002Fsam_state.py next\npython ..\u002F..\u002Fscripts\u002Fsam_state.py can-run step-one\npython ..\u002F..\u002Fscripts\u002Fsam_state.py mark-draft phase-1-drivers\npython ..\u002F..\u002Fscripts\u002Fsam_state.py approve phase-1-drivers --approved-by \"Architect\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py reopen phase-2-design --reason \"Driver changed\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py handoff\n```\n\nIf the helper cannot be resolved, report the missing installation before claiming current approval or recording a transition.\n\n## Commands\n\n### `@sam init NAME=\"project\"`\n\nRun `init`. It creates the three-phase base files, `docs\u002Farchitecture\u002FREADME.md`, state v3, and an idempotent SAM block in root `AGENTS.md`. Ask the user to complete and review `project-brief.md`; its blank scaffold cannot be approved.\n\n### `@sam status` and `@sam next`\n\nRun the matching helper command. Report drift, artifact authority, current core gate, optional delivery status, and one concrete next action. Never treat Superseded or drifted content as current.\n\n### Architecture change review\n\nRun `status` and read the relevant approved drivers and ADRs. Use `check --path \u003Cproject-relative-path>` for planned edits and `check` for the resulting diff. Compare the intent with approved contracts and boundaries even when no path rule matches. A review trigger needs impact assessment. A failed check needs a fix or an approved change to the governing decision. Cite the IDs and pause the affected work for a decision when the impact is material. Local review and CI use the same policy and checker.\n\n### `@sam step-one`\n\nRun `can-run step-one`. Read `references\u002Fphase-one.md` and the generated base files. Produce a complete driver proposal without architecture choices, update `architecture-drivers.md`, then run `mark-draft phase-1-drivers`.\n\n### `@sam step-two`\n\nRun `can-run step-two`. Read `references\u002Fphase-two.md`. Update the iteration plan and design decisions with bounded alternatives, instantiation, useful provisional views, ADR proposals, risks, and checks. Pause for material authority decisions; otherwise complete the coherent draft. Mark both artifacts Draft.\n\n### `@sam step-three`\n\nRun `can-run step-three`. Read `references\u002Fphase-three.md`. Select views from stakeholder questions, consolidate approved design information, complete traceability and agent guidance, then mark the architecture document Draft.\n\n### `@sam approve GATE=\"...\"`\n\nRun helper approval only after the named human explicitly approves. Supported gates are `brief`, `phase-1-drivers`, `phase-2-design`, `phase-3-document`, optional `delivery`, and optional `design-system`. Validation, source hashes, order, and drift can block approval.\n\n### `@sam reopen GATE=\"...\" REASON=\"...\"`\n\nRun helper reopen. Preserve the reason, set the selected artifact Draft, and make dependent artifacts Superseded. Never edit an approved artifact silently.\n\n### `@sam handoff`\n\nRequire phase 3 approval, run `handoff`, then read `references\u002Fdelivery.md`. Generate the optional delivery plan. Create `design-system.md` from its asset only when a user interface needs shared design guidance and product\u002Fdesign ownership is known.\n\n### `@sam step-four`\n\nTreat as a deprecated alias for `@sam handoff`. Tell the user it is no longer a fourth architecture phase, then follow the handoff behavior.\n\n### `@sam slice N`\n\nRequire an Approved delivery plan. Emit only the requested slice prompt with authoritative sources, boundaries, criteria, checks, tests, risks, and rollback. Do not implement it.\n\n## Resources\n\n- Read `references\u002Fphase-one.md`, `phase-two.md`, `phase-three.md`, or `delivery.md` only for the active workflow.\n- Use `assets\u002Ftemplates\u002F` as executable artifact scaffolds. Do not invent alternate required sections.\n","# SAM Workflow\n\nUse the user's language for conversation. Keep canonical filenames, stable IDs, metadata fields, and generated artifacts in English.\n\n## Core Rules\n\n- Treat SAM as three architecture phases: requirements, design, and documentation.\n- Treat delivery planning as an optional handoff, never as phase 4.\n- Let the agent draft and analyze; require the architect to approve drivers, material tradeoffs, ADRs, and accepted risks.\n- Treat Draft and In Review artifacts as proposals. Only Approved artifacts constrain implementation.\n- Write architecture artifacts under `docs\u002Farchitecture\u002F`; additionally maintain only the managed SAM block in root `AGENTS.md`.\n- Preserve existing user content and stop on ambiguous migrations.\n- Use `REQ`, `QA`, `CON`, `DRV`, `ADR`, `STORY`, `SLICE`, and `CHECK` identifiers.\n- Use `Addressed`, `Pending`, or `Accepted Risk` during design. Use `Verified` or `Failed` only with executed evidence metadata.\n- Ask only when an unresolved answer would change a primary driver, hard constraint, irreversible decision, or critical risk.\n\n## State Helper\n\nUse `tools\u002Fsam\u002Fscripts\u002Fsam_state.py` when installed in the project. Otherwise resolve `..\u002F..\u002Fscripts\u002Fsam_state.py` relative to this skill and invoke that absolute path from the project root. Use the same CLI for all clients.\n\n```bash\npython ..\u002F..\u002Fscripts\u002Fsam_state.py init --name \"Project\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py status\npython ..\u002F..\u002Fscripts\u002Fsam_state.py next\npython ..\u002F..\u002Fscripts\u002Fsam_state.py can-run step-one\npython ..\u002F..\u002Fscripts\u002Fsam_state.py mark-draft phase-1-drivers\npython ..\u002F..\u002Fscripts\u002Fsam_state.py approve phase-1-drivers --approved-by \"Architect\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py reopen phase-2-design --reason \"Driver changed\"\npython ..\u002F..\u002Fscripts\u002Fsam_state.py handoff\n```\n\nIf the helper cannot be resolved, report the missing installation before claiming current approval or recording a transition.\n\n## Commands\n\n### `@sam init NAME=\"project\"`\n\nRun `init`. It creates the three-phase base files, `docs\u002Farchitecture\u002FREADME.md`, state v3, and an idempotent SAM block in root `AGENTS.md`. Ask the user to complete and review `project-brief.md`; its blank scaffold cannot be approved.\n\n### `@sam status` and `@sam next`\n\nRun the matching helper command. Report drift, artifact authority, current core gate, optional delivery status, and one concrete next action. Never treat Superseded or drifted content as current.\n\n### Architecture change review\n\nRun `status` and read the relevant approved drivers and ADRs. Use `check --path \u003Cproject-relative-path>` for planned edits and `check` for the resulting diff. Compare the intent with approved contracts and boundaries even when no path rule matches. A review trigger needs impact assessment. A failed check needs a fix or an approved change to the governing decision. Cite the IDs and pause the affected work for a decision when the impact is material. Local review and CI use the same policy and checker.\n\n### `@sam step-one`\n\nRun `can-run step-one`. Read `references\u002Fphase-one.md` and the generated base files. Produce a complete driver proposal without architecture choices, update `architecture-drivers.md`, then run `mark-draft phase-1-drivers`.\n\n### `@sam step-two`\n\nRun `can-run step-two`. Read `references\u002Fphase-two.md`. Update the iteration plan and design decisions with bounded alternatives, instantiation, useful provisional views, ADR proposals, risks, and checks. Pause for material authority decisions; otherwise complete the coherent draft. Mark both artifacts Draft.\n\n### `@sam step-three`\n\nRun `can-run step-three`. Read `references\u002Fphase-three.md`. Select views from stakeholder questions, consolidate approved design information, complete traceability and agent guidance, then mark the architecture document Draft.\n\n### `@sam approve GATE=\"...\"`\n\nRun helper approval only after the named human explicitly approves. Supported gates are `brief`, `phase-1-drivers`, `phase-2-design`, `phase-3-document`, optional `delivery`, and optional `design-system`. Validation, source hashes, order, and drift can block approval.\n\n### `@sam reopen GATE=\"...\" REASON=\"...\"`\n\nRun helper reopen. Preserve the reason, set the selected artifact Draft, and make dependent artifacts Superseded. Never edit an approved artifact silently.\n\n### `@sam handoff`\n\nRequire phase 3 approval, run `handoff`, then read `references\u002Fdelivery.md`. Generate the optional delivery plan. Create `design-system.md` from its asset only when a user interface needs shared design guidance and product\u002Fdesign ownership is known.\n\n### `@sam step-four`\n\nTreat as a deprecated alias for `@sam handoff`. Tell the user it is no longer a fourth architecture phase, then follow the handoff behavior.\n\n### `@sam slice N`\n\nRequire an Approved delivery plan. Emit only the requested slice prompt with authoritative sources, boundaries, criteria, checks, tests, risks, and rollback. Do not implement it.\n\n## Resources\n\n- Read `references\u002Fphase-one.md`, `phase-two.md`, `phase-three.md`, or `delivery.md` only for the active workflow.\n- Use `assets\u002Ftemplates\u002F` as executable artifact scaffolds. Do not invent alternate required sections.\n",{"name":5,"description":7},"main","267df6a2d26c12af5d21fff8b9a2882f0835aa59","plugins\u002Fsam\u002Fskills\u002Fsam",0,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method","https:\u002F\u002Fgithub.com\u002Fdong4to","pov.","2026-11-10 10:34:15",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add dong4to\u002Fsoftware-architecture-method --skill sam",{"tool":38,"command":39},"bunx","bunx skills add dong4to\u002Fsoftware-architecture-method --skill sam",{"tool":41,"command":42},"pnpm","pnpm dlx skills add dong4to\u002Fsoftware-architecture-method --skill sam","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80,86,90,94],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"assets\u002Fgithub-actions.yml","ASSET","资产文件",656,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Fgithub-actions.yml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"assets\u002Ftemplates\u002Farchitecture-document.md",3673,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Farchitecture-document.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"assets\u002Ftemplates\u002Farchitecture-drivers.md",2010,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Farchitecture-drivers.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"assets\u002Ftemplates\u002Fdesign-decisions.md",2164,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Fdesign-decisions.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"assets\u002Ftemplates\u002Fdesign-system.md",1641,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Fdesign-system.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"assets\u002Ftemplates\u002Fimplementation-plan.md",1986,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Fimplementation-plan.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"assets\u002Ftemplates\u002Fiteration-plan.md",1165,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Fiteration-plan.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"assets\u002Ftemplates\u002Fproject-brief.md",1945,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Fassets\u002Ftemplates\u002Fproject-brief.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fdelivery.md","REFERENCE","参考文档",980,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Freferences\u002Fdelivery.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fphase-one.md",1417,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Freferences\u002Fphase-one.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fphase-three.md",1262,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Freferences\u002Fphase-three.md",{"path":95,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fphase-two.md",1699,"https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam\u002Freferences\u002Fphase-two.md",[99,106,113,120,127,134],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M786MFW44VJB3AA8G2Z9D8X6","sam-step-two","Generate or revise SAM phase 2 ADD design drafts. Trigger on \u002Fsam-step-two, @sam-step-two, or SAM step two.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-step-two\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M786MD6VWPD8BWA3MKGXB2BY","sam-step-three","Generate or revise the SAM phase 3 architecture document draft. Trigger on \u002Fsam-step-three, @sam-step-three, or SAM step three.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-step-three\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M786MA3ZV6431AD5C0RMEG48","sam-step-one","Generate or revise the SAM phase 1 architecture drivers draft. Trigger on \u002Fsam-step-one, @sam-step-one, or SAM step one.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-step-one\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M786M6VK0HFV5SK1RMD75XQE","sam-step-four","Compatibility alias for the optional SAM delivery handoff. Trigger on \u002Fsam-step-four, @sam-step-four, or legacy SAM step four requests; explain that SAM now has three architecture phases.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-step-four\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M786M4R4MJSF2V16BCHJ47JH","sam-status","Show SAM gate and artifact status from docs\u002Farchitecture. Trigger on \u002Fsam-status, @sam-status, or SAM status requests.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-status\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M786M1G3JV0YZCG2RKBX197E","sam-slice","Emit the code-agent prompt for one slice from an approved optional SAM delivery handoff. Trigger on \u002Fsam-slice, @sam-slice, or SAM slice requests.","https:\u002F\u002Fgithub.com\u002Fdong4to\u002Fsoftware-architecture-method\u002Fblob\u002Fmain\u002Fplugins\u002Fsam\u002Fskills\u002Fsam-slice\u002FSKILL.md",[],[]]