[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B0SAWBDKNTJR1123VMKHM":3,"skill-same:01M69B0SAWBDKNTJR1123VMKHM":125},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M69B0SAWBDKNTJR1123VMKHM","engineering-patterns",null,"Use for tool\u002Fservice work: CLI packaging, installers, config\u002Fstate, HTTP, auth\u002FTLS, file IPC, plugins, instance storage, containers, React MFE, Graph, self-update, tool leverage.","microsoft\u002Famplifier-bundle-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AZYFW50CECTV9VW6B34SE",12,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"engineering patterns","cli","containers","storage","react","auth","config","http","2026-11-10 10:12:30",false,"---\nname: engineering-patterns\ndescription: \"Use for tool\u002Fservice work: CLI packaging, installers, config\u002Fstate, HTTP, auth\u002FTLS, file IPC, plugins, instance storage, containers, React MFE, Graph, self-update, tool leverage.\"\n---\n\n# Engineering Patterns\n\nThirteen hard-won pattern guides for building tools and services, behind one\ncatalog entry. Each guide is a **reference file** — read only the one that\nmatches the problem in front of you, not the whole set.\n\n## Pick the reference\n\n| If you are... | Read |\n|---|---|\n| Packaging a CLI — one-line install via `uv`\u002F`npm`, subcommand dispatch, 3-tier config resolution | `references\u002Fcli-packaging-patterns.md` |\n| Writing a curl-piped installer for a stack that can't use `uv tool install`\u002F`npm publish` | `references\u002Fone-line-installer-patterns.md` |\n| Persisting config and state — defaults merging, atomic crash-safe writes, XDG locations | `references\u002Fconfig-state-patterns.md` |\n| Building an HTTP service — FastAPI lifecycle, background poll loops, SPA + API proxy, WebSocket relay, SSE | `references\u002Fhttp-service-patterns.md` |\n| Adding auth or TLS — localhost bypass, token auth with auto-generation, automatic certificates | `references\u002Fauth-tls-patterns.md` |\n| Making processes talk through the filesystem — JSONL event logs, atomic snapshots, async request\u002Fresponse, SSE from file tailing | `references\u002Ffile-ipc-patterns.md` |\n| Making a system extensible — Python entry points, file-based plugin registry, multi-backend providers, schema validation | `references\u002Fplugin-discovery-patterns.md` |\n| Managing many concurrent instances\u002Fsessions — isolated storage dirs, per-instance locking, prepare-once\u002Fcreate-many factories | `references\u002Finstance-storage-patterns.md` |\n| Running work in Docker — safety limits, watchdog resource enforcement, orphan recovery, sidecars, reproducible dev stacks | `references\u002Fcontainer-orchestration-patterns.md` |\n| Building a React frontend that loads independent bundles sharing one React instance — import maps, frecency autocomplete, dynamic forms, Zustand | `references\u002Freact-microfrontend-patterns.md` |\n| Integrating Microsoft Graph \u002F Teams \u002F MSAL.js — probe methodology, OData quirks, consent sequencing, CSP, retry\u002Fpagination, auth-redirect loops | `references\u002Fmsgraph-integration-patterns.md` |\n| Making a CLI manage itself — `doctor` diagnostics, self-update, systemd\u002Flaunchd service install, post-upgrade verification | `references\u002Fself-managing-tool-patterns.md` |\n| Deciding how to expose an Amplifier workflow — `.dot` attractor pipeline, Python lib, tool module, or CLI | `references\u002Famplifier-tool-leverage-patterns.md` |\n\n## How to use this\n\n1. Match the problem to a row above.\n2. `read_file(skill_directory + \"\u002Freferences\u002F\u003Cfile>.md\")` for that one row.\n3. Read a second reference only if the work genuinely spans two topics.\n\nEach reference is the original standalone skill, moved here unchanged — its\nfrontmatter is retained at the top of the file as provenance. Nothing was\nrewritten or dropped in the fold.\n","# Engineering Patterns\n\nThirteen hard-won pattern guides for building tools and services, behind one\ncatalog entry. Each guide is a **reference file** — read only the one that\nmatches the problem in front of you, not the whole set.\n\n## Pick the reference\n\n| If you are... | Read |\n|---|---|\n| Packaging a CLI — one-line install via `uv`\u002F`npm`, subcommand dispatch, 3-tier config resolution | `references\u002Fcli-packaging-patterns.md` |\n| Writing a curl-piped installer for a stack that can't use `uv tool install`\u002F`npm publish` | `references\u002Fone-line-installer-patterns.md` |\n| Persisting config and state — defaults merging, atomic crash-safe writes, XDG locations | `references\u002Fconfig-state-patterns.md` |\n| Building an HTTP service — FastAPI lifecycle, background poll loops, SPA + API proxy, WebSocket relay, SSE | `references\u002Fhttp-service-patterns.md` |\n| Adding auth or TLS — localhost bypass, token auth with auto-generation, automatic certificates | `references\u002Fauth-tls-patterns.md` |\n| Making processes talk through the filesystem — JSONL event logs, atomic snapshots, async request\u002Fresponse, SSE from file tailing | `references\u002Ffile-ipc-patterns.md` |\n| Making a system extensible — Python entry points, file-based plugin registry, multi-backend providers, schema validation | `references\u002Fplugin-discovery-patterns.md` |\n| Managing many concurrent instances\u002Fsessions — isolated storage dirs, per-instance locking, prepare-once\u002Fcreate-many factories | `references\u002Finstance-storage-patterns.md` |\n| Running work in Docker — safety limits, watchdog resource enforcement, orphan recovery, sidecars, reproducible dev stacks | `references\u002Fcontainer-orchestration-patterns.md` |\n| Building a React frontend that loads independent bundles sharing one React instance — import maps, frecency autocomplete, dynamic forms, Zustand | `references\u002Freact-microfrontend-patterns.md` |\n| Integrating Microsoft Graph \u002F Teams \u002F MSAL.js — probe methodology, OData quirks, consent sequencing, CSP, retry\u002Fpagination, auth-redirect loops | `references\u002Fmsgraph-integration-patterns.md` |\n| Making a CLI manage itself — `doctor` diagnostics, self-update, systemd\u002Flaunchd service install, post-upgrade verification | `references\u002Fself-managing-tool-patterns.md` |\n| Deciding how to expose an Amplifier workflow — `.dot` attractor pipeline, Python lib, tool module, or CLI | `references\u002Famplifier-tool-leverage-patterns.md` |\n\n## How to use this\n\n1. Match the problem to a row above.\n2. `read_file(skill_directory + \"\u002Freferences\u002F\u003Cfile>.md\")` for that one row.\n3. Read a second reference only if the work genuinely spans two topics.\n\nEach reference is the original standalone skill, moved here unchanged — its\nfrontmatter is retained at the top of the file as provenance. Nothing was\nrewritten or dropped in the fold.\n",{"name":5,"description":7},"main","2f58408a879535df36da5c92d2b073f49271ade4","skills\u002Fengineering-patterns",11,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-12 16:43:43",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add microsoft\u002Famplifier-bundle-skills --skill engineering-patterns",{"tool":47,"command":48},"bunx","bunx skills add microsoft\u002Famplifier-bundle-skills --skill engineering-patterns",{"tool":50,"command":51},"pnpm","pnpm dlx skills add microsoft\u002Famplifier-bundle-skills --skill engineering-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002FSKILL.md",true,[55,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"agents\u002Fopenai.yaml","REFERENCE","参考文档",400,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex-security\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex-security\u002Fskills\u002Ftriage-finding\u002Fagents\u002Fopenai.yaml",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Famplifier-tool-leverage-patterns.md",8273,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Famplifier-tool-leverage-patterns.md",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fauth-tls-patterns.md",8368,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fauth-tls-patterns.md",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fcli-packaging-patterns.md",9383,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fcli-packaging-patterns.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fconfig-state-patterns.md",8828,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fconfig-state-patterns.md",{"path":78,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fcontainer-orchestration-patterns.md",10087,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fcontainer-orchestration-patterns.md",{"path":82,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Ffile-ipc-patterns.md",9904,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Ffile-ipc-patterns.md",{"path":86,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fgithub-rest-intake.md",12277,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex-security\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex-security\u002Fskills\u002Ftriage-finding\u002Freferences\u002Fgithub-rest-intake.md",{"path":90,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fhttp-service-patterns.md",8967,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fhttp-service-patterns.md",{"path":94,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Finstance-storage-patterns.md",9339,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Finstance-storage-patterns.md",{"path":98,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fmsgraph-integration-patterns.md",16804,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fmsgraph-integration-patterns.md",{"path":102,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fone-line-installer-patterns.md",16168,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fone-line-installer-patterns.md",{"path":106,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fplugin-discovery-patterns.md",10351,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fplugin-discovery-patterns.md",{"path":110,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Freact-microfrontend-patterns.md",8944,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Freact-microfrontend-patterns.md",{"path":114,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fself-managing-tool-patterns.md",9457,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering-patterns\u002Freferences\u002Fself-managing-tool-patterns.md",{"path":118,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fticket-intake.md",5231,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex-security\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex-security\u002Fskills\u002Ftriage-finding\u002Freferences\u002Fticket-intake.md",{"path":122,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Ftriage-result-contract.md",4447,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex-security\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex-security\u002Fskills\u002Ftriage-finding\u002Freferences\u002Ftriage-result-contract.md",[126,136,147,160,171,185],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":27},"01M69B282M59QZNMM26JXA1QCV","verification-discipline","Use when verifying that completed work actually works. Auto-surface during \u002Fverify mode, post-implementation review, or before claiming a task is done. Teaches testing outcomes vs implementation, the unit\u002Fintegration\u002Fsmoke gradient, and what \"done\" actually means.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-discipline\u002FSKILL.md",[],[133,134,135],"verification discipline","review","testing",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":27},"01M69B263M6BFCVAV3SEESV7T0","user-advocate","User-need reviewer that speaks for the person who isn't in the room — the one who will actually live with what gets built. Hunts the gap between \"we can build this\" and \"they actually want this,\" in the patient, impatient voice of the absent user. Use at any checkpoint — brainstorm, design, plan, implement, debug, review — when a feature is being built because it's buildable rather than wanted, the recovery path is missing, or nobody can name the person this serves: \"do they actually want this, and can they live with it?\"","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fuser-advocate\u002FSKILL.md",[],[143,144,145,134,146],"user advocate","debug","implement","design",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":158,"publishedAt":27},"01M69B23EQQM30TMZG7FPJW4F7","tester-breaker","Adversarial breaker that reviews code by trying to make it fail, not by confirming it works. Hunts the unhappy paths — malformed input, the empty string, the reversed range, the race condition — as a gleeful adversary who assumes everything is broken until a concrete attempt to break it comes up empty. Use at any checkpoint — brainstorm, design, plan, implement, debug, review — when the happy path is celebrated while the edges sit unexamined, \"looks fine\" stands in for \"I tried to break it and couldn't,\" or nobody has named the input that makes this fall over: \"how does this fail, and where are the edges?\"","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftester-breaker\u002FSKILL.md",[153],{"categoryNo":154,"categoryName":155,"taxonomyType":156,"taxonomyTypeDesc":157},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[159,134,144,145,146],"tester breaker",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":27},"01M69B21AHBXP6EK60XYDP24PY","skills-assist","Authoritative consultant for all skills-related questions. Use when creating or modifying skills, understanding the Agent Skills spec, troubleshooting skill loading or invocation issues, leveraging enhanced format features (context fork, model_role, user-invocable), writing cross-harness portable skills, ensuring Claude Code Skills 2.0 compatibility, or deciding between skills vs agents.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskills-assist\u002FSKILL.md",[],[167,168,169,170],"skills assist","claude code skills","spec","writing",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":182,"publishedAt":27},"01M69B1ZBHGE1PAX0E7ZDS8HQZ","skillify","Capture a repeatable process from the current session into a reusable Amplifier SKILL.md skill file. Use when the user wants to create a skill, save a workflow as a skill, turn a process into a reusable skill, or mentions \"skillify\", \"create skill\", \"make a skill\", \"save as skill\", \"capture workflow\", \"turn this into a skill\", \"new skill\", or wants to automate a repeatable process they just performed.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskillify\u002FSKILL.md",[177],{"categoryNo":178,"categoryName":179,"taxonomyType":180,"taxonomyTypeDesc":181},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[173,183,184],"create skill","workflow",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":192,"publishedAt":27},"01M69B1XCPQFAXS9RTS87CZ8EK","session-debug","Diagnose issues in the current Amplifier session — misconfigured tools, failing operations, unexpected behavior. Use when something isn't working right.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-bundle-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsession-debug\u002FSKILL.md",[191],{"categoryNo":154,"categoryName":155,"taxonomyType":156,"taxonomyTypeDesc":157},[193,144,194],"session debug","diagnose"]