agentleFS
adymireadymire/CraftLayer/skills/backend-architecture/SKILL.md

backend-architecture

Skill0 starsChanged 3 days agoMITView on GitHub

Shape backend changes around explicit boundaries, data ownership, reliability, security, and the project's actual scale.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-architecture.

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.
  • MicrosoftSkill

    frontend-architecture

    Internal frontend architecture, design, implementation, verification, and audit rules loaded only when an explicitly invoked repository SDD prompt directs the agent to this skill.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 13

    Distinctive

    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 for new backend services, major domain features, service boundaries, data flows, or production-readiness review.

    line 10
  2. Distinctive:

    Do not split a small application into services without an operational reason.

    line 15
  3. Distinctive:

    Keep domain rules in the existing appropriate layer.

    line 29
  4. Distinctive:

    Add timeouts, bounded retries, rate limits, and observability at external boundaries.

    line 35
  5. Distinctive:

    Avoid secrets in logs; define data retention and sensitive-field handling.

    line 37
  6. Distinctive:

    Test invariants, permissions, failure paths, migrations, and integration contracts.

    line 39
  7. Distinctive:

    Document operational assumptions, monitoring, recovery, and known limitations.

    line 41
  8. Distinctive:

    Start with the simplest architecture that meets verified requirements.

    line 46
  9. Distinctive:

    Every resource read or write must enforce the correct owner/tenant access.

    line 47
  10. Distinctive:

    Do not log full credentials, tokens, or sensitive payloads.

    line 50
  11. Distinctive:

    Treat migration and deletion as user-impacting operations requiring an explicit plan.

    line 51
  12. Distinctive:

    Keep request parsing and domain validation explicit:

    line 56
  13. Distinctive:

    Use the backend boundary and reliability guide when the change crosses persistence, tenant boundaries, external services, or asynchronous …

    line 84

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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

Backend Architecture

When to use

Use for new backend services, major domain features, service boundaries, data flows, or production-readiness review.

When not to use

Do not split a small application into services without an operational reason. Do not prescribe a database, cloud, queue, or framework before understanding requirements.

Inputs and assumptions

Inspect the existing runtime, deployment model, data stores, domain boundaries, traffic and latency needs, failure tolerance, tenancy, privacy, team operations, and migration constraints.

Workflow

  1. Describe actors, business invariants, trust boundaries, request/data flows, and failure cases.
  2. Keep domain rules in the existing appropriate layer; separate transport, persistence, and external-service concerns using local conventions.
  3. Define API contracts, validation, authorization, error semantics, idempotency, and pagination before implementation.
  4. Plan schema changes and backfills for compatibility, rollback, and existing data.
  5. Add timeouts, bounded retries, rate limits, and observability at external boundaries.
  6. Avoid secrets in logs; define data retention and sensitive-field handling.
  7. Test invariants, permissions, failure paths, migrations, and integration contracts.
  8. Document operational assumptions, monitoring, recovery, and known limitations.

Decision rules

  • Start with the simplest architecture that meets verified requirements.
  • Every resource read or write must enforce the correct owner/tenant access.
  • Retry only operations that are safe to retry; use idempotency for externally retried writes.
  • Do not log full credentials, tokens, or sensitive payloads.
  • Treat migration and deletion as user-impacting operations requiring an explicit plan.

Python example

Keep request parsing and domain validation explicit:

def require_non_empty(value: str, field: str) -> str:
    normalized = value.strip()
    if not normalized:
        raise ValueError(f"{field} must not be empty")
    return normalized

Translate validation failures into the service's established error contract; do not expose internal stack traces to clients.

Common failures

  • Premature microservices or unbounded background work.
  • Authorization checked only in the UI.
  • Retrying non-idempotent operations after timeouts.
  • Destructive schema changes without a recovery strategy.

Validation

Review data ownership, authorization, input boundaries, error behavior, timeouts, retry/idempotency, migration safety, tests, and operational visibility.

Supporting guide

Use the backend boundary and reliability guide when the change crosses persistence, tenant boundaries, external services, or asynchronous work.

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.