architecture-principles
Guides module boundaries, dependency direction, and domain structure.
Skill by Mesteriis
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mesteriis-architecture-principles
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/architecture-principles
What's inside
- Skill name
architecture-principles- Description
- Guides module boundaries, dependency direction, and domain structure. Do not use for local edits that leave architecture unchanged.
- License
- MIT
- Instructions
- 155 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Skill: architecture-principles
## Purpose
Design and modify software while preserving boundaries, dependency direction, domain clarity, and long-term maintainability.
This skill covers Clean Architecture, Hexagonal Architecture, DDD, modularity, layering, dependency inversion, and boundary discipline.
## First Rule
Respect the existing architecture.
Do not force Clean Architecture, DDD, CQRS, Event Sourcing, Hexagonal Architecture, microservices, or any other style unless:
- the repository already follows it;
- the change clearly requires it;
- or the user explicitly requests it.
Architecture is a tool. It is not a costume party for simple CRUD.
## Dependency Direction
Prefer dependencies pointing toward stable business rules.
General direction:
```text
Transport / UI / CLI
-> Application / Use Cases
-> Domain
Infrastructure / Persistence / External APIs
-> Application or Domain abstractions
```
Rules:
- Domain rules must not depend on transport details.
- Domain rules must not depend on database models unless the repository intentionally uses active record style.
- Application/use-case code coordinates behavior but should not become a dumping ground.
- Infrastructure implements details and adapters.
- Transport layers should be thin.
## Boundary Rules
Do not mix:
- routing and business policy;
- validation and persistence;
- domain rules and HTTP/CLI details;
- database schema models and public API schemas unless deliberate;
- configuration parsing and runtime behavior;
- hardware control and UI state;
- integration retries and domain decisions.
When boundaries are already messy, make the change without making them worse.
## Domain-Driven Design
Use DDD where domain complexity justifies it.
Prefer DDD concepts when the codebase has:
- rich business rules;
- multiple domain concepts with invariants;
- workflows that need clear language;
- bounded contexts;
- domain events or policies;
- complex state transitions.
Do not use DDD ceremony for simple data plumbing.
### DDD Practical Rules
- Use domain language in names.
- Keep invariants close to the domain model.
- Make invalid states hard or impossible to represent.
- Keep application orchestration separate from domain decisions.
- Keep infrastructure adapters outside the domain model.
- Keep bounded contexts explicit.
- Do not leak persistence concerns into domain behavior.
## Clean Architecture Practical Rules
- Business rules should not know about frameworks.
- Use cases should express application behavior.
- Adapters translate between external systems and internal models.
- Interface boundaries should exist where they reduce coupling, not because diagrams enjoy arrows.
- Dependency inversion is useful when there are multiple implementations, test seams, or infrastructure volatility.
## Package / Module Design
A package should have a reason to exist.
Good package reasons:
- one bounded context;
- one application capability;
- one integration boundary;
- one infrastructure adapter;
- one presentation area;
- one hardware responsibility.
Bad package reasons:
- "misc";
- "common" full of unrelated code;
- "services" as a junk drawer;
- "models" containing every shape in the universe.
## Interface Rules
Introduce an interface/abstraction when it helps with:
- dependency inversion;
- testability;
- multiple implementations;
- external system isolation;
- stable domain/application contracts.From Mesteriis/Engineering-Bible-AI, MIT.
More from Mesteriis/Engineering-Bible-AI
- 0.567score
architecture-normalizer
Mesteriis
Decomposes large modules, god files, classes, or packages in reviewable steps while preserving public APIs.
SkillAFreshness: AClaude Code +9 - 0.564score
code-wiki-ru
Mesteriis
Builds and validates Russian Obsidian repository wikis, architecture docs, and code/docs/ADR drift reports.
SkillAFreshness: AClaude Code +9 - 0.561score
design-system-extractor
Mesteriis
Extracts tokens, typography, spacing, component states, assets, layout, responsive rules, and interactions from a UI reference.
SkillAFreshness: AClaude Code +9 - 0.561score
accessibility-ui-review
Mesteriis
Reviews UI accessibility: keyboard, focus, semantics, labels, contrast, motion, forms, dialogs, tables, and screen readers.
SkillAFreshness: AClaude Code +9 - 0.561score
code-quality
Mesteriis
Reviews cohesion, naming, responsibility, complexity, and maintainability.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-retrospective
Mesteriis
Analyzes repeated agent failures or noisy routing and proposes evidence-backed changes to instructions, skills, gates, or runbooks.
SkillAFreshness: AClaude Code +9 - 0.561score
authz-boundary-review
Mesteriis
Reviews authorization, tenant isolation, roles, ownership, row access, admin boundaries, sharing, and privilege escalation.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-squad
Mesteriis
Plans parallel agents or worktrees with isolated ownership, validation lanes, and merge rules.
SkillAFreshness: AClaude Code +9 - 0.558score
dependency-advisory-audit
Mesteriis
Triages CVEs and advisories for affected versions, reachability, exploitability, upgrades, and validation.
SkillAFreshness: AClaude Code +9 - 0.558score
code-to-figma
Mesteriis
Routes code-to-Figma work to original native Code Connect or design-generation skills with owner scope rules.
SkillAFreshness: AClaude Code +9 - 0.558score
core-engineering
Mesteriis
General implementation only when no narrower task or ecosystem skill fits.
SkillAFreshness: AClaude Code +9 - 0.558score
deserialization-parser-review
Mesteriis
Reviews parsers, deserialization, uploads, archives, YAML/JSON/XML/pickle, paths, templates, SSRF, and unsafe loaders.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 10, 2026 (3 months ago)
- Last release
- Oct 3, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Mesteriis
- 0.591score
TG multi-account MCP
Mesteriis
Self-hosted, consent-based access to Telegram accounts and bots for MCP clients
ConnectorAFreshness: ARemote↓ 76/wk - 0.567score
architecture-normalizer
Mesteriis
Decomposes large modules, god files, classes, or packages in reviewable steps while preserving public APIs.
SkillAFreshness: AClaude Code +9 - 0.564score
code-wiki-ru
Mesteriis
Builds and validates Russian Obsidian repository wikis, architecture docs, and code/docs/ADR drift reports.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-retrospective
Mesteriis
Analyzes repeated agent failures or noisy routing and proposes evidence-backed changes to instructions, skills, gates, or runbooks.
SkillAFreshness: AClaude Code +9 - 0.561score
authz-boundary-review
Mesteriis
Reviews authorization, tenant isolation, roles, ownership, row access, admin boundaries, sharing, and privilege escalation.
SkillAFreshness: AClaude Code +9 - 0.561score
agent-squad
Mesteriis
Plans parallel agents or worktrees with isolated ownership, validation lanes, and merge rules.
SkillAFreshness: AClaude Code +9
Cite this page
architecture-principles skill. Agent Mart. https://agentmart.dev/skills/mesteriis-architecture-principles (last updated 2026-10-24)