What problem does it solve?
Sentrux solves the problem of architectural drift by quantifying and enforcing structural quality rules so that code remains layered, bounded, and maintainable over time.
Core Features & Use Cases
- Structural rule enforcement: Applies constraints from
.sentrux/rules.toml to detect violations as a pass/fail gate.
- Quality signal scoring: Produces a 0–10000 architectural health score derived from modularity, acyclicity, depth, equality, and redundancy.
- Baseline regression checking: Uses
gate to compare current structural health against a saved baseline to prevent gradual degradation.
- Layer & boundary governance: Ensures dependency direction respects foundational vs presentation layering and prevents DIP violations.
- Use case: After implementing a new service/module, run structural checks to confirm the domain layer does not start depending on handlers and that the dependency graph remains acyclic and shallow.
Quick Start
Activate the skill by adding a project-specific .sentrux/rules.toml, then run sentrux gate . to enforce the constraints and detect architectural regressions against the baseline.