<< All versions
Skill v1.0.0
currentAutomated scan100/100krishnakanthb13/antigravity_global_skills/software-architecture
──Details
PublishedOctober 21, 2026 at 05:40 AM
Content Hashsha256:d3002f1942608d9d...
Git SHA44b6e832a98e
──Files
Files (1 file, 2.9 KB)
SKILL.md2.9 KBactive
SKILL.md · 76 lines · 2.9 KB
version: "1.0.0" name: software_architecture description: Guide for quality-focused software architecture. Use this when designing architecture, writing code, or analyzing software systems.
Software Architecture
This skill provides guidance for quality-focused software development and architecture. It focuses on Clean Architecture and Domain-Driven Design principles.
Core Rules & Principles
- Early Return Pattern: Always use early returns when possible over nested conditions.
- Decompose Components: Break down components longer than 80 lines and split files larger than 200 lines.
- Library-First Approach:
- ALWAYS search for existing solutions before writing custom code.
- Use libraries for common problems (retry logic, state management, validation).
- Clean Architecture & DDD:
- Separate domain entities from infrastructure. Keep business logic independent of frameworks.
- Naming & Bounded Contexts:
- AVOID generic names (
utils,helpers,common,shared). - USE domain-specific names (
OrderCalculator,InvoiceGenerator).
- Separation of Concerns:
- Do NOT mix business logic with UI components.
- Keep database queries out of controllers.
- SOLID Principles:
- Single Responsibility: A class should have one reason to change. Decompose large monoliths.
- Open/Closed: Design for extension without modifying existing source code (e.g., plugins, inheritance).
- Liskov Substitution: Subclasses must be interchangeable with their base classes.
- Interface Segregation: Prefer many specific interfaces over one general-purpose interface.
- Dependency Inversion: Depend on abstractions (interfaces/abstract classes), not concrete implementations.
Anti-Patterns to Avoid
- NIH (Not Invented Here) Syndrome: Don't build custom auth when Auth0 exists.
- Dumping Grounds: Don't create
utils.jsorshared.jswith lots of unrelated functions. Every module should have a single, clear purpose.
Architecture Decision Records (ADRs)
Document every architectural decision with trade-offs. If making a significant decision, use the following framework:
ADR Template
markdown
# ADR-[XXX]: [Decision Title]## StatusProposed | Accepted | Deprecated | Superseded by [ADR-YYY]## Context-**Problem**: [What problem are we solving?]-**Constraints**: [Team size, scale, timeline, budget]## Options Considered| Option | Pros | Cons | Complexity ||--------|------|------|------------|| Opt A | ... | ... | Low/High |## Decision[What we chose - be specific]## Rationale[Why - tie to requirements and constraints]## Consequences-**Positive**: [Benefits we gain]-**Negative**: [Costs/risks we accept]-**Mitigation**: [How we'll address negatives]## Revisit Trigger-[When to reconsider this decision]
Storage
Store these records sequentially in docs/architecture/ (e.g., adr-001-use-nextjs.md).