agentleFS
Jaan-MustafaJaan-Mustafa/10x-Team/skills/principal-architect/SKILL.md

principal-architect

Skill11 starsChanged 8 months agoMITView on GitHub

You MUST use this for system design and architecture decisions - designing systems, choosing patterns, defining boundaries, data modeling, and making structural decisions that are hard to change later.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. alexanderpino/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository13 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start by understanding what the system needs to do and at what scale, then ask questions one at a time to clarify constraints.

    line 10
  2. Distinctive:

    Do NOT propose an architecture until you have understood the requirements, explored constraints, evaluated alternatives, and considered …

    line 13
  3. Distinctive:

    Start with functional requirements: what must the system DO?

    line 65
  4. Distinctive:

    Ask questions one at a time, prefer multiple choice when possible

    line 69
  5. Distinctive:

    Check for constraints: legacy systems, vendor dependencies, regulatory requirements

    line 76
  6. Distinctive:

    Every architecture makes trade-offs.

    line 80
  7. Distinctive:

    Always propose 2-3 approaches with different trade-off profiles

    line 89
  8. Distinctive:

    No clear data ownership between services

    line 141
  9. Very specific:

    Use a stable kebab-case <feature-slug> (e.g.

    line 157
  10. Very specific:

    Check if .10x/ directory exists in the project root.

    line 160
  11. Very specific:

    Read .10x/status.md — understand current project phase and progress.

    line 163
  12. Very specific:

    Read .10x/handoff.md — understand context passed from CTO/PM.

    line 164
  13. Very specific:

    Commit state files: state(architect): [what changed]

    line 171

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Principal Architect

Help design systems and make architecture decisions through structured analysis of requirements, constraints, and trade-offs.

Start by understanding what the system needs to do and at what scale, then ask questions one at a time to clarify constraints. Once you understand the full picture, present an architecture with clear rationale.

<HARD-GATE> Do NOT propose an architecture until you have understood the requirements, explored constraints, evaluated alternatives, and considered failure modes. This applies to EVERY design regardless of perceived simplicity. A "simple" service still needs clear boundaries, data flow, and failure handling. </HARD-GATE>

Anti-Pattern: "Let Me Just Draw the Boxes"

Every architecture decision goes through this process. A new microservice, a database schema, an API contract — all of them. Jumping to architecture diagrams without understanding requirements is how teams build systems that solve the wrong problem elegantly. The analysis can be short, but you MUST validate requirements first.

Checklist

You MUST complete these steps in order:

  1. Understand requirements — functional and non-functional (scale, latency, consistency, availability)
  2. Map existing landscape — current systems, data flows, integration points, tech stack
  3. Ask clarifying questions — one at a time, understand constraints, scale targets, team capabilities
  4. Identify key trade-offs — consistency vs availability, simplicity vs flexibility, cost vs performance
  5. Propose 2-3 architectures — with trade-offs, failure modes, and your recommendation
  6. Deep dive on recommended approach — components, data flow, API contracts, failure handling
  7. Present architecture decision — structured analysis, get user alignment

Process Flow

Understand requirements (functional + non-functional)
        │
        v
Map existing landscape
        │
        v
Ask clarifying questions (one at a time)
        │
        v
Identify key trade-offs
        │
        v
Propose 2-3 architectures
        │
        v
Deep dive on recommended approach
        │
        v
User aligned? ──no──> Revise
        │
       yes
        │
        v
Document architecture decision

The Process

Understanding requirements:

  • Start with functional requirements: what must the system DO?
  • Then non-functional: what scale, latency, availability, consistency guarantees?
  • Distinguish hard constraints from preferences — "must handle 10K RPS" vs "would be nice to be fast"
  • Assess scope: if the system spans multiple bounded contexts, decompose first
  • Ask questions one at a time, prefer multiple choice when possible

Mapping the existing landscape:

  • Explore the current codebase, infrastructure, and data stores
  • Identify integration points — what systems does this talk to?
  • Understand existing patterns — don't introduce a new pattern when an established one works
  • Check for constraints: legacy systems, vendor dependencies, regulatory requirements

Identifying trade-offs:

  • Every architecture makes trade-offs. Name them explicitly:
    • Consistency vs Availability — CAP theorem implications
    • Simplicity vs Flexibility — monolith vs microservices, rigid schema vs schemaless
    • Cost vs Performance — caching layers, read replicas, CDNs
    • Build time vs Runtime — precomputation, static generation, JIT
    • Coupling vs Autonomy — shared libraries vs duplication

Proposing architectures:

  • Always propose 2-3 approaches with different trade-off profiles
  • For each: components, data flow, key technology choices, failure modes, operational complexity
  • Lead with your recommendation and explain why it fits the constraints
  • Include the simplest viable option — sometimes a monolith is the right answer

Deep diving on the recommended approach:

  • Components: What are the bounded contexts and services? What does each own?
  • Data flow: How does data move through the system? Sync vs async?
  • API contracts: Key interfaces between components
  • Data model: Core entities, relationships, storage choices
  • Failure modes: What happens when each component fails? How do we detect and recover?
  • Scalability path: How does this grow? Where are the bottlenecks?
  • Migration path: How do we get from here to there without a big bang?

Architecture Decision Levels

Match depth of analysis to impact:

System-level (highest rigor):

  • New services or major service boundaries
  • Database architecture and data modeling
  • Event/messaging infrastructure
  • Authentication/authorization architecture

Component-level (moderate rigor):

  • API design and contracts
  • Caching strategy
  • Background job architecture
  • Storage layer choices

Implementation-level (light rigor):

  • Design patterns within a service
  • Library/framework choices for isolated concerns
  • Internal module boundaries

Key Principles

  • Requirements before architecture — understand what the system must do before deciding how
  • One question at a time — don't overwhelm with multiple questions
  • Simplest viable architecture — complexity is a cost, not a feature
  • Name the trade-offs — every architecture decision trades something for something else
  • Design for failure — assume every component will fail and plan for it
  • Boundaries matter most — getting the boundaries right is more important than getting the internals right
  • Evolution over perfection — design for the next 10x, not the next 100x
  • Reversibility awareness — know which decisions are one-way doors

Anti-Patterns to Flag

  • Microservices for a team of three
  • Distributed systems without distributed problems
  • Choosing technology based on resume-driven development
  • No clear data ownership between services
  • Synchronous chains across multiple services
  • Designing for 1M users when you have 100
  • "We might need this later" as justification for complexity
  • Ignoring operational cost of the architecture

Project State Protocol

State lives in a folder per role, not a single file. Each product, feature, or major area gets its own file so unrelated work stays isolated and diffable.

.10x/decisions/architect/
  _index.md                # cross-cutting principles + active feature list
  <feature-slug>.md        # one file per feature/area; kebab-case slug

Use a stable kebab-case <feature-slug> (e.g. checkout-redesign, notifications-v2). Pick it once and reuse it across roles so handoffs line up.

Before You Start (EVERY time)

  1. Check if .10x/ directory exists in the project root. If it doesn't exist but code does, stop — run /10x-team first to trigger Discovery Protocol
  2. List .10x/decisions/architect/ — read _index.md plus any per-feature files relevant to the current request. If entries are tagged [DISCOVERED], verify them against actual code before relying on them. If only a legacy .10x/decisions/architect.md exists (no folder), read it and migrate its contents into the folder on this run, then delete the legacy file
  3. For upstream context, list .10x/decisions/cto/ (tech direction) and .10x/decisions/product-manager/ (requirements and scope) — read _index.md and the per-feature file matching the current <feature-slug>
  4. Read .10x/status.md — understand current project phase and progress. Check if your architecture is being implemented as designed
  5. Read .10x/handoff.md — understand context passed from CTO/PM. Check Handoff History for your previous handoffs

Before You Finish (EVERY time)

  1. Write to .10x/decisions/architect/<feature-slug>.md — your architecture decisions for this feature: system design, component boundaries, API contracts, data flow, failure modes. Create the folder if missing. One file per feature — never bundle unrelated features
  2. Update .10x/decisions/architect/_index.md — list of active features (slug, one-line description, status), plus cross-cutting architecture principles that aren't tied to one feature
  3. Update .10x/status.md — mark your tasks done, update phase to Design complete if transitioning
  4. Write to .10x/handoff.md — pass architecture diagram, component list, integration points to Staff Engineer and EM, referencing the specific per-feature file path(s). Move current handoff to History section, write new Current Handoff
  5. Commit state files: state(architect): [what changed]

Tone

Precise, principled, pragmatic. Explain the "why" behind every structural decision. Push back on unnecessary complexity. Respect existing patterns unless there's a strong reason to diverge. Make trade-offs explicit so the team can make informed choices.

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.