synaptic-labs-ai/pact-plugin/pact-architecture-patterns
Claude Code and agent skill by synaptic-labs-ai/pact-plugin
- community
Checking that the SKILL.md file is still in the repository.
Architectural design patterns, C4 diagram templates, component design guidelines, and anti-patterns for PACT Architect phase. Use when: designing system components, creating architecture diagrams, defining component boundaries, planning API contracts, selecting design patterns, or reviewing architectural decisions. Triggers on: architecture design, C4 diagrams, component design, system design, microservices, monolith, API design, interface contracts, architect phase.
Install
npx vskill@latest install synaptic-labs-ai/pact-plugin/pact-architecture-patternsSKILL.md
PACT Architecture Patterns
Design patterns and templates for the Architect phase of PACT. This skill provides quick references for architectural decisions and links to detailed pattern implementations.
C4 Model Quick Reference
The C4 model provides four levels of abstraction for system architecture documentation.
Level 1: System Context
Shows your system as a box surrounded by users and other systems it interacts with.
What to include:
- Your system (single box)
- Users/personas
- External systems
- High-level interactions
Level 2: Container
Shows the high-level technical building blocks (not Docker containers).
Containers are:
- Separately deployable/runnable units
- Web applications, APIs, databases, file systems, message queues
Level 3: Component
Shows the internal structure of a container.
Components are:
- Logical groupings of related functionality
- Controllers, services, repositories, clients
For full C4 templates with Mermaid diagrams: See c4-diagram-templates.md
SOLID Principles Quick Reference
| Principle | Summary | Violation Sign | |
|---|---|---|---|
| Single Responsibility | One reason to change | Class does too many things | |
| Open/Closed | Open for extension, closed for modification | Frequent changes to existing code | |
| Liskov Substitution | Subtypes replaceable for base types | Override breaks expectations | |
| Interface Segregation | Many specific interfaces > one general | Unused interface methods | |
| Dependency Inversion | Depend on abstractions | Direct instantiation of dependencies |
Design Patterns by Context
API Design Patterns
Resource Naming:
Pagination:
Error Response Format:
Data Access Patterns
Repository Pattern:
Service Layer Pattern:
Integration Patterns
Backend-for-Frontend (BFF):
Circuit Breaker:
For detailed patterns: See design-patterns.md
Anti-Patterns to Avoid
| Anti-Pattern | Problem | Solution | |
|---|---|---|---|
| God Object | One class does everything | Split by responsibility | |
| Distributed Monolith | Microservices with tight coupling | Define proper boundaries | |
| N+1 Queries | One query per item in list | Eager loading, batching | |
| Premature Optimization | Optimizing before measuring | Measure, then optimize | |
| Magic Numbers/Strings | Hardcoded values everywhere | Use constants/config | |
| Leaky Abstraction | Implementation details exposed | Proper encapsulation | |
| Circular Dependencies | A depends on B, B depends on A | Introduce abstraction |
For comprehensive anti-patterns: See anti-patterns.md
Architecture Decision Records (ADR)
Document significant decisions for future reference:
Component Boundary Guidelines
When to Split Components
Split when you have:
- Different rates of change
- Different scaling requirements
- Different team ownership
- Different security requirements
- Circular dependencies forming
When to Keep Together
Keep together when:
- Highly cohesive functionality
- Frequently change together
- Performance-critical interactions
- Single team ownership
- Adds unnecessary complexity to split
Boundary Definition Checklist
- [ ] Clear public interface defined
- [ ] Implementation details hidden
- [ ] Dependencies flow inward (to stable parts)
- [ ] Can be tested in isolation
- [ ] Can be deployed independently
- [ ] Owns its data (if applicable)
Quick Architecture Review Checklist
Before finalizing architecture:
Structure
- [ ] Clear separation of concerns
- [ ] Cohesive components
- [ ] Loose coupling between components
- [ ] No circular dependencies
Scalability
- [ ] Identified bottlenecks addressed
- [ ] Stateless services where possible
- [ ] Caching strategy defined
- [ ] Database scaling approach planned
Security
- [ ] Authentication/authorization designed
- [ ] Sensitive data protection planned
- [ ] Backend proxy pattern for external APIs
- [ ] Input validation at boundaries
Operations
- [ ] Logging strategy defined
- [ ] Monitoring approach planned
- [ ] Error handling consistent
- [ ] Health check endpoints
Documentation
- [ ] C4 diagrams created
- [ ] API contracts defined
- [ ] ADRs for key decisions
- [ ] Component responsibilities documented
Detailed References
For comprehensive architectural guidance:
- C4 Diagram Templates: references/c4-diagram-templates.md
- ASCII and Mermaid templates
- All four C4 levels
- Common system patterns
- Design Patterns: references/design-patterns.md
- Detailed pattern implementations
- When to use each pattern
- Code examples
- Anti-Patterns: references/anti-patterns.md
- Common architectural mistakes
- Detection signs
- Refactoring strategies
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpact-plugin/skills/pact-architecture-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/synaptic-labs-ai/pact-plugin/pact-architecture-patterns)