Architecture Patterns
KartikLabhshetwar/better-shot
Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.
Recommends appropriate software design patterns based on problem descriptions, requirements, or code scenarios.
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/design-pattern-suggestor .claude/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .claude/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/design-pattern-suggestor .agents/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .agents/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/design-pattern-suggestor .cursor/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .cursor/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ArabelaTso/Skills-4-SE.git --path skills/design-pattern-suggestor--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/design-pattern-suggestor .gemini/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .gemini/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/design-pattern-suggestor .github/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .github/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ArabelaTso/Skills-4-SE design-pattern-suggestor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/design-pattern-suggestor .opencode/skills/design-pattern-suggestor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "design-pattern-suggestor" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/design-pattern-suggestor into .opencode/skills/design-pattern-suggestor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "design-pattern-suggestor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
design-pattern-suggestorRecommends appropriate software design patterns based on problem descriptions, requirements, or code scenarios.
Design Pattern Suggestor is an agent skill from ArabelaTso/Skills-4-SE. Recommends appropriate software design patterns based on problem descriptions, requirements, or code scenarios. Use when designing software architecture, refactoring code, solving common design problems, or choosing between design approaches. Analyzes the problem context and suggests suitable creational, structural, behavioral, architectural, or concurrency patterns with implementation guidance and trade-off analysis.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/pattern_catalog.md` and `references/selection_guide.md`).
It sits in Development, covering Design patterns and Software architecture. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown, python, typescript and java).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Design Pattern Suggestor loads about 2.9k tokens when it runs, and up to ~7.7k if it reads all its reference files. Until then it costs about 112 tokens; SKILL.md has 623 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 623 words, ~2,944 tokens.
.claude/skills/design-pattern-suggestor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.You are an expert software architect who recommends appropriate design patterns for software problems.
This skill enables you to:
Follow this process when suggesting design patterns:
Ask clarifying questions to understand:
Problem Type:
Context:
Requirements:
Use references/selection_guide.md to classify the problem:
Creational Problems:
Structural Problems:
Behavioral Problems:
Architectural Problems:
Concurrency Problems:
Use decision trees from references/selection_guide.md:
Quick Decision Path:
Problem: Creating Objects?
├─ Single instance needed? → Singleton
├─ Complex construction? → Builder
├─ Type varies by input? → Factory Method
└─ Expensive creation? → Prototype
Problem: Object Structure?
├─ Add behavior dynamically? → Decorator
├─ Incompatible interfaces? → Adapter
├─ Simplify complex system? → Facade
├─ Control access? → Proxy
└─ Tree structure? → Composite
Problem: Object Behavior?
├─ State-dependent? → State
├─ Interchangeable algorithms? → Strategy
├─ Notify many objects? → Observer
├─ Encapsulate requests? → Command
├─ Fixed algorithm steps? → Template Method
└─ Chain of handlers? → Chain of ResponsibilityRecommend the best-fit pattern:
Pattern Recommendation Structure:
## Recommended Pattern: [Pattern Name]
**Why this pattern:**
- [Reason 1: Matches problem characteristic]
- [Reason 2: Addresses specific requirement]
- [Reason 3: Provides needed flexibility]
**How it solves the problem:**
[Explanation of how pattern addresses the challenge]
**Implementation approach:**
[Code example or structure diagram]
**Benefits:**
- [Benefit 1]
- [Benefit 2]
- [Benefit 3]
**Trade-offs:**
- [Trade-off 1]
- [Trade-off 2]Example:
## Recommended Pattern: Strategy
**Why this pattern:**
- You have multiple payment methods (credit card, PayPal, crypto)
- Algorithm selection happens at runtime
- New payment methods will be added in future
**How it solves the problem:**
Encapsulates each payment method in separate class implementing common interface.
Context (checkout process) delegates to selected strategy without knowing details.
**Implementation approach:**
```python
class PaymentStrategy:
def process_payment(self, amount):
pass
class CreditCardPayment(PaymentStrategy):
def process_payment(self, amount):
# Process credit card payment
return f"Charged ${amount} to credit card"
class PayPalPayment(PaymentStrategy):
def process_payment(self, amount):
# Process PayPal payment
return f"Charged ${amount} via PayPal"
class Checkout:
def __init__(self, payment_strategy):
self.payment_strategy = payment_strategy
def complete_purchase(self, amount):
return self.payment_strategy.process_payment(amount)
# Usage
checkout = Checkout(CreditCardPayment())
checkout.complete_purchase(99.99)Benefits:
Trade-offs:
### Step 5: Provide Alternatives
Suggest 1-2 alternative patterns with comparison:
```markdown
## Alternative Patterns
### Option 2: Factory Method
**When to prefer:**
- If payment method selection based on simple criteria
- Don't need runtime strategy switching
- Simpler for static selection
**Comparison:**
- Factory: Good for creation based on type
- Strategy: Better for runtime algorithm selection
→ Recommendation: Strategy is better for your use case
### Option 3: Command
**When to prefer:**
- If you need to queue/log/undo payments
- Transactions as first-class objects
**Comparison:**
- Command: Adds transaction capabilities
- Strategy: Focuses on algorithm selection
→ Recommendation: Use Strategy + Command if you need bothIf multiple patterns work together:
## Pattern Combination
Your scenario benefits from combining:
1. **Strategy** for payment methods
2. **Factory** for creating appropriate strategy
3. **Decorator** for adding features (logging, validation)
**Architecture:**PaymentFactory ↓ creates PaymentStrategy (interface) ↓ implemented by CreditCardPayment, PayPalPayment, etc. ↓ decorated by LoggingDecorator, ValidationDecorator
**Implementation order:**
1. Start with Strategy (core pattern)
2. Add Factory if strategy selection is complex
3. Add Decorator for cross-cutting concernsProvide practical implementation advice:
Language-Specific Considerations:
# Python: Use ABC for interfaces
from abc import ABC, abstractmethod
class Strategy(ABC):
@abstractmethod
def execute(self):
pass// TypeScript: Use interfaces
interface Strategy {
execute(): void;
}
class ConcreteStrategy implements Strategy {
execute(): void {
// Implementation
}
}// Java: Use interfaces or abstract classes
interface Strategy {
void execute();
}
class ConcreteStrategy implements Strategy {
public void execute() {
// Implementation
}
}Best Practices:
Common Pitfalls:
Common scenarios and their patterns:
| Scenario | Primary Pattern | Alternatives |
|---|---|---|
| Multiple algorithms | Strategy | Command, State |
| Object creation varies | Factory Method | Abstract Factory, Builder |
| Add behavior at runtime | Decorator | Proxy, Composite |
| Complex object construction | Builder | Factory Method |
| State-dependent behavior | State | Strategy |
| Notify multiple objects | Observer | Mediator |
| Incompatible interfaces | Adapter | Facade |
| Single instance needed | Singleton | Static class, Dependency Injection |
| Undo/redo operations | Command | Memento |
| Simplify subsystem | Facade | Adapter |
Watch for and warn against:
God Object:
Problem: One class doing everything
Solution: Split into cohesive classes, apply SRP
Better patterns: Facade, Mediator, StrategySpaghetti Code:
Problem: Tangled control flow
Solution: Apply appropriate behavioral patterns
Better patterns: State, Strategy, Chain of ResponsibilityGolden Hammer:
Problem: Using same pattern everywhere
Solution: Choose pattern based on actual problem
Advice: "Not every problem needs a pattern"Premature Optimization:
Problem: Complex patterns before needed
Solution: Start simple, refactor to patterns when complexity arises
Advice: "YAGNI - You Aren't Gonna Need It"Problem: "I'm building a checkout system. Users can pay with credit card, PayPal, or crypto. How should I structure this?"
Analysis:
Recommendation:
Primary: Strategy Pattern
- Each payment method is a strategy
- Checkout context uses selected strategy
- Easy to add new payment methods
Alternative: Factory + Strategy
- Factory creates appropriate strategy
- Use if strategy selection is complex
Code structure:
- PaymentStrategy interface
- CreditCardPayment, PayPalPayment, CryptoPayment classes
- Checkout class with injected strategyProblem: "Need to support undo/redo for document edits. What pattern should I use?"
Recommendation:
Primary: Command Pattern
- Each edit action is a command
- Commands can be executed and undone
- Store command history for undo/redo
Implementation:
- Command interface with execute() and undo()
- ConcreteCommand for each action (InsertText, DeleteText, etc.)
- CommandHistory manages undo/redo stack
Bonus: Combine with Memento for complex stateProblem: "Building API gateway with auth, rate limiting, logging. How to structure middleware?"
Recommendation:
Primary: Chain of Responsibility
- Each middleware is a handler in chain
- Request passes through chain
- Any handler can stop propagation
Alternative: Decorator
- Wrap base handler with decorators
- Each decorator adds one concern
Recommendation: Chain of Responsibility
- Better for request processing pipeline
- More flexible handler order
- Easy to add/remove middleware
Structure:
AuthHandler → RateLimitHandler → LoggingHandler → RouteHandlerreferences/pattern_catalog.md - Comprehensive catalog of design patterns by categoryreferences/selection_guide.md - Decision trees, selection criteria, and scenario examples© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/design-pattern-suggestor of ArabelaTso/Skills-4-SE.
Open the folder on GitHubat commit 4f38503
Design Pattern Suggestor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Design Pattern Suggestor this skillArabelaTso/Skills-4-SE | 253 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Architecture PatternsKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.4k | Automated safety check: Pass | Custom licence | |
| Akka.Hosting Actor PatternsAaronontheweb/dotnet-skills | 1.2k | 1 repos | ~5k | Automated safety check: Pass | MIT | |
| Brooks Audithyhmrright/brooks-lint | 1.5k | 1 repos | ~537 | Automated safety check: Pass | MIT | |
| Adopt a Design PatternTotoro-jam/battle-tested-patterns | 345 | — | ~4.9k | Automated safety check: Pass | MIT | |
| Pattern Conformance AuditTotoro-jam/battle-tested-patterns | 345 | — | ~1.6k | Automated safety check: Pass | MIT |
KartikLabhshetwar/better-shot
Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.
Aaronontheweb/dotnet-skills
Shows how to build entity actors with Akka.Hosting so the same code runs in local unit tests and in a sharded cluster in production.
hyhmrright/brooks-lint
Architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books.
Totoro-jam/battle-tested-patterns
Matches a coding problem to one of 46 documented systems patterns, checks that it really fits, then adapts it into your codebase with a test for its invariant.
Totoro-jam/battle-tested-patterns
Audits a codebase's existing patterns, such as rate limiters, circuit breakers and caches, against canonical invariants and flags mislabeled or divergent ones.
ciembor/agent-rules-books
Apply Martin Fowler-inspired enterprise architecture rules when choosing layers, service layers, transaction scripts, domain models, repositories, mappers, or…
ArabelaTso/Skills-4-SE
Generate prioritized CVE watchlists and actionable security recommendations for repositories.
ArabelaTso/Skills-4-SE
Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).
ArabelaTso/Skills-4-SE
Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.
ArabelaTso/Skills-4-SE
Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.
ArabelaTso/Skills-4-SE
Automatically migrate Spring MVC applications to Spring Boot.
ArabelaTso/Skills-4-SE
Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.
Categories
Recommends appropriate software design patterns based on problem descriptions, requirements, or code scenarios. Design Pattern Suggestor is an agent skill from ArabelaTso/Skills-4-SE. Recommends appropriate software design patterns based on problem descriptions, requirements, or code scenarios.
Design Pattern Suggestor fits situations like: designing software architecture; refactoring code; solving common design problems; choosing between design approaches.
Run `npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a claude-code`. Or copy the skill folder (skills/design-pattern-suggestor in ArabelaTso/Skills-4-SE) into .claude/skills/design-pattern-suggestor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a codex`. Or copy the skill folder (skills/design-pattern-suggestor in ArabelaTso/Skills-4-SE) into .agents/skills/design-pattern-suggestor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill design-pattern-suggestor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-pattern-suggestor, .gemini/skills/design-pattern-suggestor, .github/skills/design-pattern-suggestor and .opencode/skills/design-pattern-suggestor in your project.
SKILL.md names no scripts, command-line tools or credentials: Design Pattern Suggestor is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Design Pattern Suggestor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Design Pattern Suggestor: Architecture Patterns (KartikLabhshetwar/better-shot, 2.4k stars), Akka.Hosting Actor Patterns (Aaronontheweb/dotnet-skills, 1.2k stars), Brooks Audit (hyhmrright/brooks-lint, 1.5k stars) and Adopt a Design Pattern (Totoro-jam/battle-tested-patterns, 345 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 170 skills in this directory. The repository was last updated on August 21, 2026.
Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.