clean-architecture
Structure code so that business logic is independent of frameworks, UI, and external details. Use when organizing larger codebases, defining layer boundaries, or fighting framework lock-in.
- License 许可
- MIT
- 最近更新
- 2026-07-22
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- clean-architecture
- description
- Structure code so that business logic is independent of frameworks, UI, and external details. Use when organizing larger codebases, defining layer boundaries, or fighting framework lock-in.
03 SKILL.md 正文
Clean Architecture
Overview
Keep the core domain and use cases at the center. Frameworks, databases, and UI are details that depend inward, not the other way around.
When to Use
- Growing applications that need clearer boundaries
- Reducing coupling to frameworks or infrastructure
- Improving testability of business logic
Core Ideas
- Dependency rule: source code dependencies point inward
- Entities and use cases should not depend on UI, database, or external services
- Interfaces (ports) define what the core needs; adapters implement them
- Test business rules without spinning up frameworks or databases
Practical Guidance
- Start simple; don’t over-layer small applications
- Enforce boundaries with package/module structure and code review
- Be pragmatic — pure forms of the architecture are less important than clear separation of concerns
Verification
- Core business logic can be tested in isolation
- Framework and infrastructure changes do not force widespread domain changes
04 同仓库更多 Skills
win-loss-analysis
Analyze won and lost deals to learn why buyers choose you or alternatives — and feed insights into product, marketing, and sales. Use when improving win rates, refining positioning, or diagnosing systematic deal losses.
social-selling
Use social platforms to build relationships, share insight, and open sales conversations without hard-sell spam. Use when prospecting via LinkedIn or similar networks, or building a seller’s professional presence.
sales-strategy
Define sales strategy — target segments, motions, capacity, and goals — that aligns with product, marketing, and revenue targets. Use when designing go-to-market sales motions, choosing PLG vs sales-led balance, or planning sales org structure.
sales-playbooks
Create sales playbooks that codify how to win specific segments, use cases, or competitive situations with repeatable process and talk tracks. Use when standardizing successful motions, onboarding reps, or scaling what top performers do.
sales-enablement
Equip sales teams with the content, training, tools, and processes they need to sell effectively and consistently. Use when building enablement programs, onboarding reps, or improving win rates through better readiness.
sales-compensation-basics
Design or evaluate sales compensation plans that align seller behavior with company revenue goals and are simple enough to motivate. Use when creating comp plans, diagnosing misaligned incentives, or explaining plan mechanics to reps.