webman-best-practices
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/ybh-cxy/webman-design-skills --skill webman-best-practices
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
windsurf
1
zencoder
1
Skill 文档
Webman framework best practices following DDD architecture, dependency rules, and PER Coding Style.
Architecture & Dependencies
- Controller directly depends on Model, skipping Service layer â See controller-skip-service
- Domain layer depends on framework classes (Request, DB, etc.) â See domain-framework-dependency
- Service layer has circular dependencies with another Service â See service-circular-dependency
- Infrastructure layer not implementing Contract interface â See infrastructure-without-contract
- Using Model directly in Service instead of Repository â See service-direct-model-access
Naming Conventions
- Using camelCase or PascalCase for directories â See directory-lowercase
- Interface without Interface suffix â See interface-naming
- Service not following VerbNounService pattern â See service-naming-pattern
- Repository implementation without descriptive prefix â See repository-implementation-naming
- Namespace not matching directory structure â See namespace-directory-mismatch
Code Style (PER Coding Style)
- Missing declare(strict_types=1) at file start â See strict-types-declaration
- Not using final class by default â See prefer-final-classes
- Not using readonly for immutable properties â See readonly-properties
- Missing type declarations for parameters or return types â See complete-type-declarations
- Not using constructor property promotion â See constructor-property-promotion
Domain Patterns
- Entity without unique identity â See entity-identity
- Value object that is mutable â See value-object-immutability
- Business logic in Service instead of Domain â See business-logic-in-domain
- Not using domain events for side effects â See domain-events
- Anemic domain model with only getters/setters â See rich-domain-model
Dependency Injection
- Using static methods instead of dependency injection â See avoid-static-methods
- Not using constructor injection â See constructor-injection
- Service locator pattern instead of dependency injection â See no-service-locator