agentleFS
sivaprasadreddysivaprasadreddy/sivalabs-agent-skills/skills/architecture-guidelines/SKILL.md

architecture-guidelines

Skill198 starsChanged 4 days agoMITView on GitHub

Apply technology-agnostic architecture principles when designing, reviewing, or changing an application. Use for component boundaries, modularity, dependency direction, and maintainability decisions.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when starting an application or feature, changing module boundaries, introducing a new dependency, reviewing architectural …

    line 12
  2. Distinctive:

    Prefer the simplest architecture that meets current needs: Do not introduce microservices, distributed messaging, CQRS, event sourcing, …

    line 16
  3. Distinctive:

    Organize around business capabilities: Keep related behavior and data close.

    line 17
  4. Distinctive:

    Encapsulate change: Place volatile implementation details behind boundaries only when doing so reduces meaningful coupling.

    line 20
  5. Distinctive:

    Treat data ownership as an architectural decision: Avoid multiple components independently mutating the same state without an explicit …

    line 22
  6. Distinctive:

    Evolve incrementally: Prefer reversible decisions and small refactorings over speculative redesigns.

    line 24
  7. Distinctive:

    Check whether the design can be tested, deployed, observed, and changed independently where needed.

    line 35
  8. Distinctive:

    Do not force a diagram or lengthy architecture document for a trivial change.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Architecture Guidelines

Purpose

Guide application architecture without prescribing a programming language, framework, hosting platform, or architectural style.

When to use

Use this skill when starting an application or feature, changing module boundaries, introducing a new dependency, reviewing architectural complexity, or deciding where business rules belong.

Working principles

  1. Start with requirements and constraints. Identify business capabilities, quality attributes, scale assumptions, team constraints, regulatory needs, and deployment realities before choosing an architecture.
  2. Prefer the simplest architecture that meets current needs. Do not introduce microservices, distributed messaging, CQRS, event sourcing, repositories, factories, or layers merely because they are familiar patterns.
  3. Organize around business capabilities. Keep related behavior and data close. Prefer cohesive modules with explicit responsibilities over arbitrary technical-layer fragmentation.
  4. Make boundaries explicit. Define each component's responsibility, public interface, owned data, and dependencies.
  5. Control dependency direction. High-level business policy should not be coupled unnecessarily to infrastructure details or delivery mechanisms.
  6. Encapsulate change. Place volatile implementation details behind boundaries only when doing so reduces meaningful coupling.
  7. Avoid both duplication and premature generalization. Share stable concepts; do not create generic frameworks for hypothetical future requirements.
  8. Treat data ownership as an architectural decision. Avoid multiple components independently mutating the same state without an explicit consistency model.
  9. Design for operability. Architecture must account for deployment, configuration, observability, security, backup, recovery, and support.
  10. Evolve incrementally. Prefer reversible decisions and small refactorings over speculative redesigns.

Workflow

  1. Summarize the relevant functional requirements and quality attributes.
  2. Identify actors, major business capabilities, core workflows, and external systems.
  3. Propose the smallest useful set of components or modules.
  4. For each component, state its responsibility, owned data, public interface, and dependencies.
  5. Explain important dependency and data-flow directions.
  6. Identify consistency, transaction, failure, and security boundaries.
  7. Compare simpler alternatives before recommending additional infrastructure or patterns.
  8. Record material decisions, assumptions, and consequences.
  9. Check whether the design can be tested, deployed, observed, and changed independently where needed.

Design review checklist

  • Are responsibilities cohesive and boundaries understandable?
  • Are business rules located in the component that owns the relevant capability?
  • Are dependencies explicit and directed intentionally?
  • Is shared mutable state minimized?
  • Are interfaces smaller than their implementations?
  • Are cross-module calls and data ownership clear?
  • Does the design avoid unnecessary distributed-system complexity?
  • Are failure modes and operational requirements addressed?
  • Can the design be introduced incrementally?

Expected output

For non-trivial design work, provide:

  • A concise architecture summary.
  • Components/modules and their responsibilities.
  • Key interactions and dependency directions.
  • Data ownership and consistency notes.
  • Important risks and trade-offs.
  • Decisions that should be recorded.

Do not force a diagram or lengthy architecture document for a trivial change. Ask focused questions only when missing information materially changes the design.

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.