drift-detect
Detect architectural drift and pattern violations
SKILL.mdskills/drift-detect/SKILL.md
GitHubArchitecture Drift Detection
Detect when code deviates from established patterns and conventions.
What To Do
- Check layer violations: Controllers calling repositories directly
- Check naming conventions: Missing I prefix on interfaces, wrong suffixes
- Check dependency direction: Domain depending on infrastructure
- Check pattern consistency: Some entities use DTOs, others do not
- Generate drift report with specific file:line references
Rules Checked
- Controller -> Service -> Repository (no shortcuts)
- DTOs have static ToDomain()/FromDomain()
- All public service methods are async
- Repository returns domain models (not DTOs)
- No business logic in controllers
Arguments
--strict: Fail on any violation (default: warn only)