agentleFS
saitarrunsaitarrun/Devforge-ai/skills/architecture/SKILL.md

architecture

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

This skill should be used when the user asks to "design a system", "architecture", "ADR", "system design", "tech stack", "choose between approaches", "coupling", "service granularity", "blueprint", "component design", "API contract", "schema design", "trade-offs", or discusses "monolith", "microservices", "fitness functions", or architectural decisions.

136 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, bash-linux and 10 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.
  • SKB3002Skill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 6 projects that use this

  • xenitV1Skill

    bash-linux

    Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.

    Also in 8 projects that use this

  • xenitV1Skill

    red-team-tactics

    Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.

    Also in 8 projects that use this

  • SKB3002Skill

    nextjs-react-expert

    React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.

    Also in 3 projects that use this

  • +8 more from xenitV1

The file

Files
SKILL.md

Skill: System Architecture & ADRs

Architecture Decision Record (ADR) Format

An ADR documents why an architectural decision was made, not just what was chosen.

# ADR-NNN: [Decision Title]

## Status
Proposed | Accepted | Deprecated | Superseded by ADR-NNN

## Context
Why are we making this decision? What's the problem?
What constraints do we have (timeline, team size, technical)?
What have we already tried or considered?

## Decision
What exactly are we choosing to do?
Be specific and precise.

## Consequences

### Positive
- Benefit 1
- Benefit 2

### Negative
- Tradeoff 1
- Tradeoff 2

### Mitigations
- How we'll handle negative consequences

Tech Stack Decision Template

Compare 3 options for each major choice:

FactorOption AOption BOption C
Learning curveSteepGentleModerate
CommunityLargeSmallMedium
Performance1000 rps10k rps5k rps
ScalabilityHardEasyMedium
Team expertiseNoneHighMedium

Decision: Option B
Reasoning: Team knows it, easy to scale, community support

Coupling vs. Cohesion

High Cohesion = related code lives together

  • Example: All user auth logic in AuthService module

Low Coupling = modules don't depend on each other heavily

  • Example: PaymentService doesn't directly call AuthService; uses events instead

Goal: High cohesion + low coupling = easy to change

Service Granularity Spectrum

MonolithDistributed MonolithMicroservices
One codebase, one deployOne codebase, separate deploysMany codebases, many deploys
Easy to test end-to-endHarder to test end-to-endComplex testing, many moving parts
Scales vertically (bigger server)Scales each layer independentlyScales each service independently
All-or-nothing deploy riskLower deploy riskHighest deploy risk if not careful

When to split from monolith → services:

  • Team is >20 engineers (communication overhead)
  • Need independent scaling (some services get more traffic)
  • Different technology stacks needed (one service needs fast Go, another needs Python ML)
  • Deploy frequency conflict (some teams want to deploy hourly, others weekly)

Fitness Functions

Automated architecture compliance checks:

# "Fitness function": verify architecture is maintained

# 1. No circular dependencies
$ grep -r "import.*from.*$module" $module  # Should be empty

# 2. Only public APIs are used across modules
$ grep -r "from.*_internal" # Should be zero

# 3. All HTTP endpoints document schema
$ grep -r "@Post\|@Get" --include="*.ts" | wc -l
$ grep -r "^export.*DTO" --include="*.ts" | wc -l
# These should match (all endpoints have DTOs)

# 4. Database queries use ORM, not raw SQL
$ grep -r "query(.*SELECT" # Should be zero

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.