Agent skill

drift-detect

Detect architectural drift and pattern violations

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/drift-detect

SKILL.md

Architecture Drift Detection

Detect when code deviates from established patterns and conventions.

What To Do

  1. Check layer violations: Controllers calling repositories directly
  2. Check naming conventions: Missing I prefix on interfaces, wrong suffixes
  3. Check dependency direction: Domain depending on infrastructure
  4. Check pattern consistency: Some entities use DTOs, others do not
  5. 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)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results