Software architecture

From krishnakanthb13/antigravity_global_skills · View interactive version

Software architecture is an AI agent skill from the GitHub repository krishnakanthb13/antigravity_global_skills. Guide for quality-focused software architecture. Use this when designing architecture, writing code, or analyzing software systems.

How to use this skill

Skill file

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

  1. Early Return Pattern: Always use early returns when possible over nested conditions.
  2. Decompose Components: Break down components longer than 80 lines and split files larger than 200 lines.
  3. Library-First Approach:
  1. Clean Architecture & DDD:
  1. Naming & Bounded Contexts:
  1. Separation of Concerns:
  1. SOLID Principles:

Anti-Patterns to Avoid

Architecture Decision Records (ADRs)

Document every architectural decision with trade-offs. If making a significant decision, use the following framework:

ADR Template

# ADR-[XXX]: [Decision Title]

## Status
Proposed | 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).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.