[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASMWF226KYBHTQE4DQ4AQ9":3,"skill-same:01M7ASMWF226KYBHTQE4DQ4AQ9":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ASMWF226KYBHTQE4DQ4AQ9","hexagonal-architecture",null,"Applies hexagonal (ports & adapters) architecture. Use when designing application structure, separating domain from infrastructure, creating testable boundaries, or when user mentions ports, adapters, hexagonal, or clean architecture.","saski\u002Farnesto","saski","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F140356?v=4","01M7ASBDSNXTRYDYB4K1PEA1RV","01M7ASBDTAKBDAAV99S1GE7HK6",6,"Unlicense","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhexagonal-architecture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hexagonal-architecture\ndescription: Applies hexagonal (ports & adapters) architecture. Use when designing application structure, separating domain from infrastructure, creating testable boundaries, or when user mentions ports, adapters, hexagonal, or clean architecture.\n---\n\n# Hexagonal Architecture\n\n## The Core Decision Rule\n\nTo decide if something belongs inside or outside the hexagon, ask:\n\n> \"Does it do I\u002FO or run out-of-process?\"\n\n- **No** → Inside the hexagon (domain or application layer)\n- **Yes** → Outside (adapter)\n\n**Critical:** Consider ALL dependencies. A component's dependencies disqualify it even if the component itself doesn't do I\u002FO. If it depends on Spring, a database driver, or any framework—it's outside.\n\n## Layer Responsibilities\n\n**Common misconception:** The hexagon is NOT just the domain. The hexagon contains both domain AND application layers. Adapters sit outside.\n\n```\n┌─────────────────────────────────────────┐\n│           ADAPTERS (outside)            │\n│  Web, CLI, Database, External APIs      │\n│  ┌───────────────────────────────────┐  │\n│  │     APPLICATION SERVICES          │  │\n│  │  ┌─────────────────────────────┐  │  │\n│  │  │         DOMAIN              │  │  │\n│  │  └─────────────────────────────┘  │  │\n│  └───────────────────────────────────┘  │\n└─────────────────────────────────────────┘\n        Dependencies flow INWARD only\n```\n\n**Domain** — Business constraints (what CAN happen). Contains Entities, Value Objects, Domain Services.\n\n**Application** — Orchestration (HOW things happen). Contains Use Cases, Application Services.\n\n**Adapters** — Translation to\u002Ffrom external world. Contains Controllers, Repositories, API clients.\n\n**Domain defines ports (interfaces). Adapters implement them.**\n\n## Naming Conventions\n\n- Display\u002Fresponse: `*View` or `*Response` → `MemberView`, `OrderResponse`\n- Incoming request: `*Request` → `CreateMemberRequest`\n- Database entity: `*Dbo` → `MemberDbo`\n- Domain → DTO: `static from(domain)` → `MemberView.from(member)`\n- DTO → Domain: `as*()` method → `request.asMember()`\n\n## Anti-Patterns\n\n### Brittle Interfaces\n```\nregister(username, password)  \u002F\u002F Breaks when email required\n```\nUse wrapper objects that can evolve without breaking signatures.\n\n### Domain Scope Pollution\nThird-party types (`GoogleUser`, `StripePayment`) leaking into domain. Keep external types in adapters; map to domain types at the boundary.\n\n### Use-Case Interdependencies\nUse cases calling other use cases creates coupling. Each use case should be self-contained, orchestrating domain objects directly.\n\n### Anemic Domain\nEntities as data bags with logic scattered in services. Business rules belong IN entities and value objects.\n\n### Premature Database Design\nDesigning schema before domain model. Domain model comes first; database adapter maps to it.\n\n### Over-Complicated Adapters\nAdapters adding logic beyond translation. Adapters should be thin—just implement the port interface.\n\n## Testing Strategy\n\n- **Domain**: Unit tests, no doubles needed (pure logic)\n- **Application**: Unit tests with port doubles (fake repositories, stub notifiers)\n- **Adapters**: Integration tests against real infrastructure (real database, real HTTP)\n\nPorts give clean seams for test doubles. Test the domain exhaustively with fast unit tests; test adapters against real infrastructure sparingly.\n\n## When NOT to Use\n\n- Small\u002Fsimple projects, especially CRUD-based apps (overhead not worth it)\n","# Hexagonal Architecture\n\n## The Core Decision Rule\n\nTo decide if something belongs inside or outside the hexagon, ask:\n\n> \"Does it do I\u002FO or run out-of-process?\"\n\n- **No** → Inside the hexagon (domain or application layer)\n- **Yes** → Outside (adapter)\n\n**Critical:** Consider ALL dependencies. A component's dependencies disqualify it even if the component itself doesn't do I\u002FO. If it depends on Spring, a database driver, or any framework—it's outside.\n\n## Layer Responsibilities\n\n**Common misconception:** The hexagon is NOT just the domain. The hexagon contains both domain AND application layers. Adapters sit outside.\n\n```\n┌─────────────────────────────────────────┐\n│           ADAPTERS (outside)            │\n│  Web, CLI, Database, External APIs      │\n│  ┌───────────────────────────────────┐  │\n│  │     APPLICATION SERVICES          │  │\n│  │  ┌─────────────────────────────┐  │  │\n│  │  │         DOMAIN              │  │  │\n│  │  └─────────────────────────────┘  │  │\n│  └───────────────────────────────────┘  │\n└─────────────────────────────────────────┘\n        Dependencies flow INWARD only\n```\n\n**Domain** — Business constraints (what CAN happen). Contains Entities, Value Objects, Domain Services.\n\n**Application** — Orchestration (HOW things happen). Contains Use Cases, Application Services.\n\n**Adapters** — Translation to\u002Ffrom external world. Contains Controllers, Repositories, API clients.\n\n**Domain defines ports (interfaces). Adapters implement them.**\n\n## Naming Conventions\n\n- Display\u002Fresponse: `*View` or `*Response` → `MemberView`, `OrderResponse`\n- Incoming request: `*Request` → `CreateMemberRequest`\n- Database entity: `*Dbo` → `MemberDbo`\n- Domain → DTO: `static from(domain)` → `MemberView.from(member)`\n- DTO → Domain: `as*()` method → `request.asMember()`\n\n## Anti-Patterns\n\n### Brittle Interfaces\n```\nregister(username, password)  \u002F\u002F Breaks when email required\n```\nUse wrapper objects that can evolve without breaking signatures.\n\n### Domain Scope Pollution\nThird-party types (`GoogleUser`, `StripePayment`) leaking into domain. Keep external types in adapters; map to domain types at the boundary.\n\n### Use-Case Interdependencies\nUse cases calling other use cases creates coupling. Each use case should be self-contained, orchestrating domain objects directly.\n\n### Anemic Domain\nEntities as data bags with logic scattered in services. Business rules belong IN entities and value objects.\n\n### Premature Database Design\nDesigning schema before domain model. Domain model comes first; database adapter maps to it.\n\n### Over-Complicated Adapters\nAdapters adding logic beyond translation. Adapters should be thin—just implement the port interface.\n\n## Testing Strategy\n\n- **Domain**: Unit tests, no doubles needed (pure logic)\n- **Application**: Unit tests with port doubles (fake repositories, stub notifiers)\n- **Adapters**: Integration tests against real infrastructure (real database, real HTTP)\n\nPorts give clean seams for test doubles. Test the domain exhaustively with fast unit tests; test adapters against real infrastructure sparingly.\n\n## When NOT to Use\n\n- Small\u002Fsimple projects, especially CRUD-based apps (overhead not worth it)\n",{"name":5,"description":7},"main","3c24fc2c035029b08c7326774bee3fef8fb95566",".agents\u002Fskills\u002Fhexagonal-architecture",0,"https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto","https:\u002F\u002Fgithub.com\u002Fsaski","http:\u002F\u002Fsaski.com","2026-11-12 20:09:16",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add saski\u002Farnesto --skill hexagonal-architecture",{"tool":37,"command":38},"bunx","bunx skills add saski\u002Farnesto --skill hexagonal-architecture",{"tool":40,"command":41},"pnpm","pnpm dlx skills add saski\u002Farnesto --skill hexagonal-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhexagonal-architecture\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"disclaimer.md","REFERENCE","参考文档",51,"https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhexagonal-architecture\u002Fdisclaimer.md",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7AT7F5FSHNAMFMF01N0QA1X","visualize","Use \u002Fvisualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fvisualize\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7AT79MHSAR3JDDMP7DGERM9","update-cursor-settings","Modify Cursor\u002FVSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fupdate-cursor-settings\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7AT73WF3Y22E0FKYAMCCJES","update-cli-config","View and modify Cursor CLI configuration settings in ~\u002F.cursor\u002Fcli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fupdate-cli-config\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7AT6F3FBP85AJJ5BJNR8B5W","statusline","Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fstatusline\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7AT6D24QFS5XRAFN8S5XJ7W","split-to-prs","Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fsplit-to-prs\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7AT69FYFN84XZKW452JV5DF","shell","Runs the rest of a \u002Fshell request as a literal shell command. Use only when the user explicitly invokes \u002Fshell and wants the following text executed directly in the terminal.","https:\u002F\u002Fgithub.com\u002Fsaski\u002Farnesto\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-cursor\u002Fshell\u002FSKILL.md",[],[]]