| name | shared-principles |
| description | Shared design principles for all technical agents. Load these when you need cross-cutting design standards without loading a full specialist (Architect, Implementer, or Code Reviewer). |
| license | MIT |
| hide | true |
| metadata | {"role":"design-principles"} |
Shared Design Principles
These principles apply to all technical agents (Architect, Implementer, Code Reviewer). Agent-specific rules and standards build on top of these.
- Match existing conventions first. Before inventing new patterns, understand and follow what the project already does.
- Single Responsibility. One component, one purpose. If it does two things, split it.
- Errors are domain-meaningful, not generic. Create specific error types that describe what went wrong in business terms.
- Constructor / explicit dependency injection over hidden globals. Dependencies are visible and testable.
- Skills override generics. If a loaded skill defines stack-specific conventions, follow them. These principles are the floor when no skill applies.