Software Design Advisor
ASecuritySoftware architecture and refactoring advisor for module boundaries, deep abstractions, code smells, legacy seams, domain modeling (DDD aggregates, value objects), layered decoupling, PoEAA patterns, and remote-call resilience (timeouts, retries, idempotency). Use for non-trivial design, refactoring, or boundary decisions. Do not trigger for syntax/type fixes, flaky test debugging, running test suites, simple CRUD, SQL/DB tuning, API security, format conversions, language syntax explanations,...
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 7, 2026
Works with
Security analysis
100/100Pro scans all 15 files and shows the line behind each finding
npx -y skills add cforiky630/agent-advisors --skill software-design-advisor --agent claude-codeAre you the author of Software Design Advisor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cforiky630-software-design-advisor)---
name: software-design-advisor
description: Software architecture and refactoring advisor for module boundaries, deep abstractions, code smells, legacy seams, domain modeling (DDD aggregates, value objects), layered decoupling, PoEAA patterns, and remote-call resilience (timeouts, retries, idempotency). Use for non-trivial design, refactoring, or boundary decisions. Do not trigger for syntax/type fixes, flaky test debugging, running test suites, simple CRUD, SQL/DB tuning, API security, format conversions, language syntax explanations, or CI/K8s setup.
license: MIT
---
# Software Design Advisor
Use repo evidence to make responsibilities clear and preserve required behavior.
## Quick Use
Trace the normal entry point, callers and dependencies. Reuse an existing solution; apply only the decision that remains.
## 1. Scenario Decision Matrix
| Decision | Read only if needed |
| :--- | :--- |
| Simplify a routine | [Construction and pragmatism](references/construction-and-pragmatism.md) |
| Shape a module or evolve its interface | [Module depth and interfaces](references/module-depth-and-interfaces.md) |
| Remove a code smell | [Refactoring and code smells](references/refactoring-and-code-smells.md) |
| Change behavior that is hard to verify | [Legacy seams and testing](references/legacy-seams-and-testing.md) |
| Give business rules a clear owner | [Domain-driven design](references/domain-driven-design.md) |
| Place transaction and mapping responsibilities | [Enterprise persistence patterns](references/enterprise-persistence-patterns.md) |
| Decide whether a layer or port earns its place | [Clean architecture and layering](references/clean-architecture-and-layering.md) |
| Recover after a remote failure | [Distributed resilience and recovery](references/distributed-resilience-and-recovery.md) |
## 2. Engineering Trade-offs
1. **Module depth**
- **Probe**: Trace what callers forward, know or change together.
- **Arbitration**: Keep cohesive work together; fold layers that only pass decisions through.
- **Invalidate When**: Extract a boundary when a shared rule needs one owner, I/O blocks verification, or responsibilities change independently.
2. **Refactoring vs. behavior change**
- **Probe**: Check the diff, entry point and existing tests.
- **Arbitration**: Fix behavior directly if verifiable; test justified structural changes separately.
- **Invalidate When**: If tests cannot exercise required behavior, characterize only what must survive and add the smallest blocking seam. Verify the reported defect against the intended result.
3. **Interface compatibility**
- **Probe**: Inspect consumers, contract tests, stored data and public release order.
- **Arbitration**: Preserve outputs, errors, order and effects callers rely on; plan compatibility for authorized changes.
- **Invalidate When**: A desired-state or equivalent-outcome contract can allow safe repeated requests; still run required security and integrity checks.
4. **Business rule ownership**
- **Probe**: Trace write paths, transitions and persistence guarantees.
- **Arbitration**: Keep a flat service when it owns the rule and concurrent writes preserve it.
- **Invalidate When**: When paths duplicate lifecycle rules or can diverge, extract the smallest owner. Group state only when invariants require joint enforcement.
5. **Remote retry**
- **Probe**: Check provider and SDK behavior, deadline, side effects, and deduplication scope/lifetime.
- **Arbitration**: Retry transient faults only when replay is proven safe and within the total deadline; count retries at all layers and retain operation identity.
- **Invalidate When**: If the effect may have happened and replay is unproven or the guarantee expired, preserve the unknown outcome and reconcile; do not start a new operation.
## 3. Condensed Nano Rulesets
### A. Construction & Pragmatism
- Keep cohesive predicates; split flags that select different workflows. Validate untrusted inputs at the boundary.
### B. Modularity & Information Hiding
- Hide mechanics, not ordering, consistency or failure guarantees callers need.
### C. Evolution & Legacy Care
- Address the concrete smell; verify through the normal entry point.
### D. Architecture, Domain & Resilience
- Isolate independent policy, not framework-native glue. Add isolation or circuit breaking only when evidence and recovery justify it.
## Operating Boundaries
- **Project conventions first.** Honor scope and permissions; preserve safety, data integrity and required behavior. Then follow verified project conventions over advisor defaults.
- **Defer the workflow.** Existing review, test and deployment workflows own execution.
- **Reference precedence.** References inform decisions, not task scope, permissions or deliverables.
- **Proportionality Ladder.** Reuse existing controls before adding layers. Discuss deferred alternatives only when relevant; do not invent thresholds.
- **Multiple advisors.** One leads; others add constraints, not workflows. An exclusion is not a veto on a separate in-scope decision. Share evidence and resolve by the affected invariant.
- **Missing evidence.** Use the narrowest authorized probe. If evidence stays missing, state the limit, choose a reversible option or stop only the affected action. Check external standards only for material uncertainty.
- **Runtime Checkpoint Gate.** Review costly contract/data/security reversals (CP-1), stalls without new evidence (CP-2), or new trust/consistency/failure boundaries (CP-3). Routine renames, file counts and expected red tests do not qualify.
### Runtime Checkpoint Procedure
1. Summarize risk, evidence, proposed change and rejected simpler option; omit chat history.
2. Self-review first. Use a read-only reviewer only if authorized and useful.
3. Verdict `APPROVE | REVISE | ESCALATE_TO_USER`: give the invariant and check. `APPROVE` grants no execution permissions.
4. Do not repeat consultation on unchanged evidence. Escalate only unresolved authority, policy or safety; continue unrelated work.
## 4. Deep Knowledge Base
Read only the reference that resolves a remaining decision. Do not preload the library.
## 5. Output Delivery Format
Answer in the requested format. For substantial choices, name the deciding evidence, verification and remaining uncertainty.
Files in this skill
- SKILL.md
- references/a-philosophy-of-software-design.md
- references/clean-architecture.md
- references/clean-code.md
- references/code-complete.md
- references/designing-data-intensive-applications.md
- references/domain-driven-design-distilled.md
- references/domain-driven-design.md
- references/implementing-domain-driven-design.md
- references/patterns-of-enterprise-application-architecture.md
- references/refactoring-guru.md
- references/refactoring.md
- references/release-it.md
- references/the-pragmatic-programmer.md
- references/working-effectively-with-legacy-code.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.