agentleFS
Phelan164Phelan164/codex-howto/skills/build-backend/SKILL.md

build-backend

Skill15 starsChanged 3 months agoMITView on GitHub

Build or modify backend APIs, services, jobs, persistence, and integrations while preserving contracts, authorization, data integrity, and failure behavior. Use for server-side features, database changes, background processing, backend defects, and service refactors; do not use for frontend-only or infrastructure-only work.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Keep multi-write operations atomic where partial state would violate invariants.

    line 15
  2. Distinctive:

    Do not query or mutate production data without explicit authorization.

    line 17
  3. Distinctive:

    Do not fabricate migration, framework, or API behavior.

    line 18
  4. Distinctive:

    Avoid broad service abstractions that are used once.

    line 19
  5. Distinctive:

    Read references/contracts-and-data.md when the task changes a public API, schema, transaction, job, or integration.

    line 23

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

Build Backend

Domain contract

  • Trace changed behavior from input through validation, authorization, domain logic, persistence, side effects, and response mapping.
  • Preserve published contracts unless the request explicitly changes them.
  • Enforce authorization at a trustworthy server-side boundary.
  • Validate untrusted input before domain or persistence operations.
  • Keep multi-write operations atomic where partial state would violate invariants.
  • Design external calls for timeouts, retries, idempotency, and duplicate delivery where applicable.
  • Do not query or mutate production data without explicit authorization.
  • Do not fabricate migration, framework, or API behavior; verify version-sensitive details.
  • Avoid broad service abstractions that are used once.

Execute and verify

Read references/contracts-and-data.md when the task changes a public API, schema, transaction, job, or integration.

Implement the smallest change at the owning layer. Cover success, invalid input, authorization, and material failure paths. Prefer:

reproducing/focused test → contract/integration test → type/lint → build

For migrations, validate forward behavior and document rollback or roll-forward strategy.

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.