audit-architecture — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited audit-architecture (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Analyze the structural health of a codebase by examining coupling, cohesion, hidden dependencies, and design patterns.
Omen CLI must be installed and available in PATH.
Run the dependency graph analysis:
omen -f json graphLook for:
Run the smells analysis:
omen -f json smellsDetects cyclic dependencies, hub modules, unstable dependencies, and central connectors using Tarjan's SCC algorithm.
Run the cohesion analysis for CK metrics:
omen -f json cohesionMetrics to watch:
Run the temporal coupling analysis:
omen -f json temporalFiles that always change together but don't have explicit imports indicate:
Run the ownership analysis:
omen -f json ownershipLook for:
Common issues to identify:
| Smell | Detection | Impact |
|---|---|---|
| Circular Dependency | A -> B -> C -> A in graph | Hard to test, modify |
| God Module | > 50% of code depends on it | Single point of failure |
| Shotgun Surgery | High temporal coupling | Changes ripple everywhere |
| Feature Envy | Low cohesion in classes | Wrong abstraction boundaries |
| Knowledge Silo | Bus factor = 1 | Team risk |
Present architecture review as:
# Architecture Review
## Module Dependency Analysis
### Dependency Graph
[Mermaid diagram from graph analysis]
### Issues Detected
#### Circular Dependencies
- `auth/` <-> `user/` <-> `session/`
- Impact: Cannot deploy or test independently
- Fix: Extract shared interface to `contracts/`
#### God Modules
- `core/` - 75% of modules depend on this
- Impact: Changes here affect everything
- Fix: Split into focused submodules
## Cohesion Analysis
### Low Cohesion Classes (LCOM > 0.7)
| Class | LCOM | WMC | Recommendation |
|-------|------|-----|----------------|
| UserService | 0.85 | 45 | Split into UserAuth, UserProfile |
| DataProcessor | 0.78 | 38 | Extract strategies for each type |
### High Coupling (CBO > 10)
- `api/handlers.go` - CBO: 15
- Depends on too many internal modules
- Consider facade pattern
## Hidden Dependencies
### Temporal Coupling (> 0.8)
- `config/settings.go` <-> `cache/redis.go` (0.92)
- No import relationship
- Likely shares configuration assumptions
- Fix: Explicit configuration injection
## Ownership Distribution
### Knowledge Silos
- `legacy/` - Single owner (bob), no recent contributions
- Risk: Bob leaves, no one knows this code
- Fix: Pair programming, documentation
### Fragmented Ownership
- `core/` - 8 contributors, none > 20%
- Risk: No clear decision maker
- Fix: Assign primary maintainer
## Recommendations
### Immediate Actions
1. Break circular dependency in auth/user/session
2. Document legacy/ module before Bob's vacation
### Medium Term
1. Split core/ into focused modules
2. Add explicit dependency injection for config
### Long Term
1. Establish module ownership model
2. Create architecture decision records (ADRs)~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.