agentleFS
vorlaxen-labsvorlaxen-labs/Agent-Skills/skills/web/backend/SKILL.md

web-backend

Skill6 starsChanged 3 months agoMITView on GitHub

Backend decision boundaries. Constrain decisions, not implementations. Use for APIs, services, database access, auth, and server-side logic.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Never hallucinate: Do not invent routes, handlers, services, models, tables, columns, or API contracts.

    line 19
  2. Distinctive:

    Match risk to action: Stop and ask for schema, auth flow, or API shape — not for placement or patterns already in the codebase.

    line 20
  3. Distinctive:

    Required: read existing handlers, services, and models before writing anything.

    line 35
  4. Distinctive:

    Required before any contract change: read schemas, types, consumers, and validation.

    line 47
  5. Distinctive:

    Required: read existing schema and models first.

    line 74
  6. Distinctive:

    If names or relationships are unknown: stop and read, or ask.

    line 76
  7. Distinctive:

    If the task needs infrastructure beyond current scope: stop, describe, ask, wait.

    line 108
  8. Distinctive:

    Required: consider security at external boundaries.

    line 114
  9. Distinctive:

    If unsure whether a change is in scope: stop and ask.

    line 129

≈ “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

Core Principle

Constrain decisions, not implementations.

These rules add backend decision boundaries on top of global standards.

They do not prescribe frameworks, ORMs, folder layouts, or service patterns. Follow the project.


Hard Rules — Read First

  1. Never hallucinate. Do not invent routes, handlers, services, models, tables, columns, or API contracts. Read the codebase first.
  2. Match risk to action. Stop and ask for schema, auth flow, or API shape — not for placement or patterns already in the codebase. Read first, then proceed or ask.
  3. Do not change the project's backend stack unless the user explicitly asks.
  4. These rules constrain decisions only. Implementation style comes from the existing codebase.

Decision: Stack & Architecture

Forbidden without explicit user request:

  • Introducing a new framework, ORM, or validation library
  • Introducing a service layer if the project does not use one
  • Moving business logic out of handlers if the project keeps it there
  • Imposing a different architectural pattern than the project uses

Required: read existing handlers, services, and models before writing anything.


Decision: API Contracts

Forbidden without explicit user request:

  • Breaking changes to existing API contracts
  • Renaming or removing fields used by existing consumers
  • Inventing endpoints, fields, or response shapes

Required before any contract change: read schemas, types, consumers, and validation.

Required outcome: clients never receive raw database errors, stack traces, or internal details.


Decision: Input & Auth

Required outcomes:

  • Untrusted input is validated at the API boundary
  • Client-provided auth or ownership claims are verified server-side

Forbidden: introducing a second validation or auth system.

Not your decision: which validation or auth library to use — follow the project.


Decision: Database

Forbidden:

  • Guessing table names, columns, or relationships
  • Inventing schema
  • Schema changes beyond what the task requires

Required: read existing schema and models first.

If names or relationships are unknown: stop and read, or ask.

Required outcomes for multi-step mutations:

  • Data remains consistent on failure
  • Duplicate-sensitive operations are handled safely when the domain requires it

Not your decision: whether to use transactions, idempotency keys, or specific query patterns — follow the project unless the task demands a specific fix.


Decision: Error Handling

Required outcomes:

  • Errors are never silently swallowed
  • Success is never returned on failure
  • Client responses do not leak sensitive internals
  • Useful context is preserved for logging

Not your decision: specific error types or response format — follow the project.


Decision: Infrastructure & Background Systems

Forbidden unless the task explicitly requires it or the user approves:

  • Adding queues, caches, distributed locks, or background jobs
  • Adding Redis, BullMQ, or similar infrastructure
  • Adding caching without a defined invalidation strategy

If the task needs infrastructure beyond current scope: stop, describe, ask, wait.


Decision: Security

Required: consider security at external boundaries.

Forbidden: adding security infrastructure unrelated to the current feature.

Not your decision: specific security tooling — follow the project.


Decision: Scope

Forbidden without approval:

  • Refactoring unrelated services
  • Migrating the backend to a new pattern or stack

If unsure whether a change is in scope: stop and ask.

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.