architecture-design
Skill1 starsChanged 7 months agoMITView on GitHub
Design a new CPP capability or service — choose between CQRS context service and Modern by Default patterns, define bounded contexts, events, APIs, and produce a design proposal with diagrams and trade-offs. Use when the user asks to "design", "architect", "plan the architecture of", or decide "how should we build X" for a CPP feature, service, integration, or cross-context change.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- Douglasst102/AgentSkillstheir own version, first seen Sep 28, 2026
- hemapriyan-rk/claude-rigor-skillstheir own version, first seen Sep 26, 2026
- moezRebai/Skillstheir own version, first seen Sep 22, 2026
- ZXT-wudi/architecture-designtheir own version, first seen Sep 19, 2026
- celestialdust/achilles-skillstheir own version, first seen Sep 10, 2026
- RealDougEubanks/ClaudeMarketplacetheir own version, first seen Sep 10, 2026
Used with
Projects with it also use database-design, performance-optimization and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudAI-XSkilldatabase-design
Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.
Also in 8 projects that use this
dylantarreSkillperformance-optimization
Use when animation runs slow, janky, or causes frame drops
Also in 5 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 5 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 5 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 7 projects that use this
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- Galaxy-Dawn/claude-scholar★ 5.7ksame name
- shawnpang/startup-founder-skills★ 337same name
- thomast1906/github-copilot-agent-skills★ 202same name
- GenerativeAgents/claude-code-book-chapter8★ 119same name
- kumaran-is/claude-code-onboarding★ 36same name
- DauQuangThanh/hanoi-rainbow★ 17same name
- ishandutta2007/Awesome-Claude-Skills★ 15same name
- 05-deepak-patidar/claude-skills★ 4same name
- Douglasst102/AgentSkills★ 4same name
- kayaman/skills★ 2same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-contract-checkSkill
- context-scaffoldSkill
- context-service-guideSkill
- cpp-test-authoringSkill
- dependency-auditSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- pipeline-debugSkill
- review-prSkill
- springboot-api-from-templateSkill
- springboot-service-from-templateSkill
- terraform-validateSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Ask the user (once, all at once):
- Distinctive: line 29
If the user's message already contains enough of this, skip the questions and proceed.
- Distinctive: line 37
Before designing, read the relevant neighbours so the design fits reality:
- Very specific: line 40
Read the closest 1–2 analogous services' top-level structure (pom.xml / build.gradle, one command handler, one event schema).
- Very specific: line 41
Check cpp-platform-core-domain for existing shared schemas you should reuse.
- Very specific: line 42
Check cp-c4-architecture if the context is already modelled.
- Very specific: line 44
Do this yourself with Read/Grep/Glob for small scopes.
- Distinctive: line 65
Ask for the full design output format defined in the agent (Summary, Pattern & Rationale, Bounded Context, Components, Contracts, Diagrams, …
- Distinctive: line 84
Do not auto-invoke scaffolding skills — the user confirms first.
- Distinctive: line 96
When reviewing the user's premise, push back on:
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture Design (CPP)
Produces a design proposal for a new CPP capability that fits the platform's CQRS/Event Sourcing context-service pattern or the Modern by Default (MbD) Spring Boot pattern, whichever suits best. Delegates deep analysis to the architecture-designer agent and hands off to scaffolding skills when the user approves.
When to Use
Triggers: "design a service for…", "how should we architect…", "what's the right pattern for…", "plan a new context/MbD service", "model this bounded context", "design the event flow for…", "cross-context design for…".
Do not use for:
- Implementing an already-agreed design → use
springboot-service-from-templateorcontext-scaffold. - Reviewing an existing design/PR → use
review-prorcode-reviewer. - Writing a formal OpenSpec change → use
openspec-propose(this skill can feed into it).
Required Input
Ask the user (once, all at once):
- Problem statement — what capability or change is needed, and why.
- Users / triggers — who or what initiates the flow (UI action, external event, scheduled job, another context).
- Expected outcome — what state changes, what events/notifications, what reads the UI needs.
- Known constraints — deadlines, compliance, existing services to integrate with, anything off-limits.
- Existing context — is there already a context service or MbD service this should live in, or is this greenfield?
If the user's message already contains enough of this, skip the questions and proceed. Do not stall on missing details you can reasonably assume — make the assumption explicit in the output.
Workflow
Step 1 — Frame the problem
Restate the problem in one paragraph and list your assumptions. This anchors the design and exposes misunderstandings early.
Step 2 — Survey the platform
Before designing, read the relevant neighbours so the design fits reality:
grepfor existing contexts / services mentioned in the problem acrosscpp-context-*andcpp-mbd-*.- Read the closest 1–2 analogous services' top-level structure (
pom.xml/build.gradle, one command handler, one event schema). - Check
cpp-platform-core-domainfor existing shared schemas you should reuse. - Check
cp-c4-architectureif the context is already modelled.
Do this yourself with Read/Grep/Glob for small scopes. For anything non-trivial, delegate to the architecture-designer agent with a self-contained brief.
Step 3 — Apply the pattern selection rubric
| Situation | Pattern |
| New greenfield capability, thin domain, REST/event integration | MbD service (cpp-mbd-*) — default |
| Extension of an existing context (new command/event/projection) | Extend context via context-scaffold |
| New bounded context with rich aggregate behaviour, audit/replay critical | New CQRS context service — justify explicitly |
| UI-only change | cpp-ui-* change only |
| Cross-cutting concern | Extend cpp-platform-libraries / cp-framework-libraries |
| Shared schema/types | Extend cpp-platform-core-domain |
MbD is the default. A new CQRS context service is a high-bar decision — require a written justification.
Step 4 — Produce the design
Delegate to the architecture-designer agent with a prompt that includes:
- The restated problem and assumptions
- The surveyed neighbours (file paths)
- Any hard constraints from the user
Ask for the full design output format defined in the agent (Summary, Pattern & Rationale, Bounded Context, Components, Contracts, Diagrams, Cross-cutting, Deployment, Risks, Alternatives, Implementation Outline, Follow-ups).
Step 5 — Present and iterate
Show the design to the user. Call out:
- The chosen pattern in one sentence.
- One-way-door decisions.
- Any assumptions that, if wrong, would change the recommendation.
Invite the user to push back before implementation begins.
Step 6 — Hand off
Once the user approves, recommend the next skill:
- MbD service →
springboot-service-from-template - Extending a context →
context-scaffold - Formal change proposal →
openspec-propose(wrap this design as the design artifact) - C4 model update → edit
cp-c4-architectureLikeC4 sources - Terraform/infra →
terraform-validateon the relevant module
Do not auto-invoke scaffolding skills — the user confirms first.
Output Conventions
- Mermaid for inline container and sequence diagrams.
- Repo names and module suffixes spelled exactly (
-command,-event,-viewstore-liquibase, etc.). - Package names correct per CLAUDE.md:
uk.gov.hmcts.cp.*for MbD,uk.gov.moj.cpp.*for existing CQRS services,uk.gov.justice.*for legacy only. - Events named as past-tense facts; commands as imperative present tense.
- Cite file paths with
file:linewhen referencing existing code.
Anti-Patterns to Flag
When reviewing the user's premise, push back on:
- Proposing a new context service for what is really a read-model or integration (should be MbD).
- Cross-context synchronous REST chains instead of events for state propagation.
- Shared databases across contexts.
- Breaking event schema changes (must be additive).
- New code in legacy WildFly/Java EE stacks.
- Missing idempotency on event consumers.
- Command handlers that read from projections (stale-data bugs).
Example Invocation
User: "We need to let defence solicitors subscribe to hearing updates for their cases and get notifications when anything changes."
- Frame: subscription + notification capability; cross-context (hearing → subscriptions → defence UI).
- Survey: check
cpp-context-subscriptions,cpp-context-hearing,cpp-ui-subscriptions,cpp-mbd-*for existing notification plumbing. - Pattern: likely extend
cpp-context-subscriptionsfor subscription state + newcpp-mbd-hearing-notificationsfor the notification dispatch pipeline. - Delegate to
architecture-designerfor the full design with events (HearingUpdatedconsumed,HearingNotificationDispatchedemitted), APIs, diagrams, risks. - Hand off:
context-scaffoldfor the subscription changes;springboot-service-from-templatefor the notification service.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

