[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71S7K5JDMCX41Y4SMAQ8S8H":3,"skill-same:01M71S7K5JDMCX41Y4SMAQ8S8H":94},{"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":23,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M71S7K5JDMCX41Y4SMAQ8S8H","architecture-patterns",null,"Implement Clean, Hexagonal (Ports & Adapters), and Domain-Driven architecture patterns","HigorAlves\u002Forc","HigorAlves","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11262976?v=4","01M71S79EZEMHZ8PQSV0XQJHYY","Higor Alves","01M71S79FKKTCHCN1EDR8DSTWQ",7,"MIT","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"patterns","architecture patterns","architecture","driven","service","Adapters","hexagonal","implement","use","layers","domain","bounded","layer","refactoring","dependency","when","clean","ports","2026-11-10 13:02:02",false,"---\nname: architecture-patterns\ndescription: Implement Clean, Hexagonal (Ports & Adapters), and Domain-Driven architecture patterns\nwhen_to_use: Use when designing service layers, refactoring monoliths into bounded contexts, or fixing layer dependency cycles.\n---\n\n# Architecture Patterns\n\nMaster proven backend architecture patterns — Clean Architecture, Hexagonal (Ports & Adapters), and Domain-Driven Design — to build maintainable, testable, scalable systems.\n\n**Given:** a service boundary or module to architect.\n**Produces:** layered structure with clear dependency rules, interface definitions, and test boundaries.\n\n## When to Use This Skill\n\n- Designing new backend services or microservices from scratch\n- Refactoring monolithic applications where business logic is entangled with ORM models or HTTP concerns\n- Establishing bounded contexts before splitting a system into services\n- Debugging dependency cycles where infrastructure code bleeds into the domain layer\n- Creating testable codebases where use-case tests do not require a running database\n- Implementing DDD tactical patterns (aggregates, value objects, domain events)\n\n## Choosing a Pattern\n\n| If you are… | Reach for | Read |\n|---|---|---|\n| Laying out a fresh service into layers with an inward dependency rule | Clean Architecture | `references\u002Fclean-architecture.md` |\n| Wanting to swap infra (DB, payment gateway) without touching business logic | Hexagonal (Ports & Adapters) | `references\u002Fhexagonal.md` |\n| Modelling a complex domain — aggregates, value objects, invariants, events | Domain-Driven Design | `references\u002Fddd.md` |\n| Splitting one model into multiple bounded contexts \u002F multi-service trees | DDD strategic + ACL | `references\u002Fadvanced-patterns.md` |\n| Fighting circular imports, leaky entities, or \"all logic in the controller\" | Dependency rules + fixes | `references\u002Fdependency-rules.md` |\n\nThe three patterns are complementary, not exclusive: Clean Architecture gives the layering, Hexagonal names the boundary interfaces (ports\u002Fadapters), and DDD fills the inner layers with rich domain models. A typical service uses all three.\n\n## Reference Index\n\nRead the relevant `references\u002F\u003Ctopic>.md` file on demand when you need that detail — do not load them all up front.\n\n| Topic | File | Contents |\n|---|---|---|\n| Clean Architecture | `references\u002Fclean-architecture.md` | Layer model, directory structure, the dependency rule, full entity → use case → repository → controller implementation, in-memory test adapters |\n| Hexagonal Architecture | `references\u002Fhexagonal.md` | Domain core + ports + production\u002Ftest adapters, Onion vs. Clean comparison, domain services |\n| Domain-Driven Design | `references\u002Fddd.md` | Strategic + tactical patterns, value objects, aggregate roots, repositories, domain events \u002F transactional outbox, aggregate-design heuristics |\n| Advanced \u002F multi-service | `references\u002Fadvanced-patterns.md` | Multi-service project tree by bounded context, Anti-Corruption Layer, context map (Open Host \u002F Shared Kernel \u002F Conformist) |\n| Dependency rules & fixes | `references\u002Fdependency-rules.md` | Troubleshooting symptoms, DI container wiring, detecting & breaking dependency cycles |\n\n## Related Skills\n\n- `microservices-patterns` — Apply these architecture patterns when decomposing a monolith into services\n- `cqrs-implementation` — Use Clean Architecture as the structural foundation for CQRS command\u002Fquery separation\n- `saga-orchestration` — Sagas require well-defined aggregate boundaries, which DDD tactical patterns provide\n- `event-store-design` — Domain events produced by aggregates feed directly into an event store\n","# Architecture Patterns\n\nMaster proven backend architecture patterns — Clean Architecture, Hexagonal (Ports & Adapters), and Domain-Driven Design — to build maintainable, testable, scalable systems.\n\n**Given:** a service boundary or module to architect.\n**Produces:** layered structure with clear dependency rules, interface definitions, and test boundaries.\n\n## When to Use This Skill\n\n- Designing new backend services or microservices from scratch\n- Refactoring monolithic applications where business logic is entangled with ORM models or HTTP concerns\n- Establishing bounded contexts before splitting a system into services\n- Debugging dependency cycles where infrastructure code bleeds into the domain layer\n- Creating testable codebases where use-case tests do not require a running database\n- Implementing DDD tactical patterns (aggregates, value objects, domain events)\n\n## Choosing a Pattern\n\n| If you are… | Reach for | Read |\n|---|---|---|\n| Laying out a fresh service into layers with an inward dependency rule | Clean Architecture | `references\u002Fclean-architecture.md` |\n| Wanting to swap infra (DB, payment gateway) without touching business logic | Hexagonal (Ports & Adapters) | `references\u002Fhexagonal.md` |\n| Modelling a complex domain — aggregates, value objects, invariants, events | Domain-Driven Design | `references\u002Fddd.md` |\n| Splitting one model into multiple bounded contexts \u002F multi-service trees | DDD strategic + ACL | `references\u002Fadvanced-patterns.md` |\n| Fighting circular imports, leaky entities, or \"all logic in the controller\" | Dependency rules + fixes | `references\u002Fdependency-rules.md` |\n\nThe three patterns are complementary, not exclusive: Clean Architecture gives the layering, Hexagonal names the boundary interfaces (ports\u002Fadapters), and DDD fills the inner layers with rich domain models. A typical service uses all three.\n\n## Reference Index\n\nRead the relevant `references\u002F\u003Ctopic>.md` file on demand when you need that detail — do not load them all up front.\n\n| Topic | File | Contents |\n|---|---|---|\n| Clean Architecture | `references\u002Fclean-architecture.md` | Layer model, directory structure, the dependency rule, full entity → use case → repository → controller implementation, in-memory test adapters |\n| Hexagonal Architecture | `references\u002Fhexagonal.md` | Domain core + ports + production\u002Ftest adapters, Onion vs. Clean comparison, domain services |\n| Domain-Driven Design | `references\u002Fddd.md` | Strategic + tactical patterns, value objects, aggregate roots, repositories, domain events \u002F transactional outbox, aggregate-design heuristics |\n| Advanced \u002F multi-service | `references\u002Fadvanced-patterns.md` | Multi-service project tree by bounded context, Anti-Corruption Layer, context map (Open Host \u002F Shared Kernel \u002F Conformist) |\n| Dependency rules & fixes | `references\u002Fdependency-rules.md` | Troubleshooting symptoms, DI container wiring, detecting & breaking dependency cycles |\n\n## Related Skills\n\n- `microservices-patterns` — Apply these architecture patterns when decomposing a monolith into services\n- `cqrs-implementation` — Use Clean Architecture as the structural foundation for CQRS command\u002Fquery separation\n- `saga-orchestration` — Sagas require well-defined aggregate boundaries, which DDD tactical patterns provide\n- `event-store-design` — Domain events produced by aggregates feed directly into an event store\n",{"name":5,"description":7,"when_to_use":47},"Use when designing service layers, refactoring monoliths into bounded contexts, or fixing layer dependency cycles.","main","7522fd7266944e30052204c2f6df287d8b5516be","codex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns",0,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc","https:\u002F\u002Forc.novacstack.com\u002F","https:\u002F\u002Fgithub.com\u002FHigorAlves","higoralves.dev","Software Engineering","2026-11-14 07:24:14",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add HigorAlves\u002Forc --skill architecture-patterns",{"tool":64,"command":65},"bunx","bunx skills add HigorAlves\u002Forc --skill architecture-patterns",{"tool":67,"command":68},"pnpm","pnpm dlx skills add HigorAlves\u002Forc --skill architecture-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002FSKILL.md",true,[72,78,82,86,90],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fadvanced-patterns.md","REFERENCE","参考文档",8299,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002Freferences\u002Fadvanced-patterns.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fclean-architecture.md",8848,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002Freferences\u002Fclean-architecture.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fddd.md",7054,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002Freferences\u002Fddd.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fdependency-rules.md",4455,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002Freferences\u002Fdependency-rules.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fhexagonal.md",4636,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Farchitecture-patterns\u002Freferences\u002Fhexagonal.md",[95,103,139,162,183,205],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M73VYZ3XY4HAVS3WS73CW9J7","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":120,"publishedAt":42},"01M71SW40F9TAAEDKBYYBCM814","writing-plans","Write a comprehensive implementation plan of bite-sized TDD tasks that an engineer with zero codebase context could execute — exact files, code, tests, and verification steps","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[109,112,117],{"categoryNo":110,"categoryName":111,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":113,"categoryName":114,"taxonomyType":115,"taxonomyTypeDesc":116},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":118,"categoryName":119,"taxonomyType":115,"taxonomyTypeDesc":116},"01JBSEEDCAT000000000000036","内容创作者",[121,122,123,32,124,125,126,127,128,129,130,131,132,133,134,39,135,136,137,138],"writing","writing plans","plans","code","tests","for","ZeRO","context","steps","write","plan","verification","tasks","you","files","implementation plan","superpowers","engineer",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":148,"publishedAt":42},"01M71SW15KHE4MHJW9NEXV65X2","writing-for-agents","orc's doctrine layer for writing any document an agent consumes — skills, AGENTS.md\u002FCLAUDE.md, reference docs","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[145,146,147],{"categoryNo":110,"categoryName":111,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":118,"categoryName":119,"taxonomyType":115,"taxonomyTypeDesc":116},[121,149,126,150,151,32,152,153,154,36,155,156,39,157,158,159,160,161],"writing for agents","a skill","document","editing","push","doctrine","tuning","inline","matt pocock","github","docs","reference","https",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":169,"publishedAt":42},"01M71SVYQKXT743HHHWGHT3G13","workspace-mode","Use when cwd is a parent dir holding multiple sibling git repos — defines repo auto-detection, --repos\u002F--repo\u002F--all-repos\u002F--this-repo precedence, per-repo dispatch, and linked-PR mechanics.","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fworkspace-mode\u002FSKILL.md",[168],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[170,171,172,173,174,175,32,176,177,178,179,39,180,181,182],"workspace mode","mode","workspace","auto-detection","detection","parent","repo","pr","git","repos","auto","mechanics","dispatch",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":190,"publishedAt":42},"01M71SVVP3BXS06G9395P2K0RH","wizard","Generate an interactive bash wizard walking a human through work only they can perform — credentials, secrets, one-off migrations","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwizard\u002FSKILL.md",[189],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[185,39,157,191,192,193,194,195,32,196,197,126,198,199,129,200,201,202,203,204],"only","provisioning infrastructure","never","condition","Bash","interactive","one","do","infrastructure","secrets","human","generate","credentials","work",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":42},"01M71SVT4AR6NKAM5B077E7QSJ","wait-what","Stop and re-pitch — the last message did not land; say it again simply, in the project's own vocabulary.","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[212,213,161,214,215,216,217,158,218,219,220,221,157,222,223,224],"wait","wait what","vocabulary","stop","it","land","message","say","last","pitch","true","re","project"]