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.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kill-ai-slopSkill
- globalSkill
- bar-jsSkill
- huk-jsSkill
- kargomucuz-sdkSkill
- web-frontendSkill
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
- Distinctive: line 19
Never hallucinate: Do not invent routes, handlers, services, models, tables, columns, or API contracts.
- Distinctive: line 20
Match risk to action: Stop and ask for schema, auth flow, or API shape — not for placement or patterns already in the codebase.
- Distinctive: line 35
Required: read existing handlers, services, and models before writing anything.
- Distinctive: line 47
Required before any contract change: read schemas, types, consumers, and validation.
- Distinctive: line 74
Required: read existing schema and models first.
- Distinctive: line 76
If names or relationships are unknown: stop and read, or ask.
- Distinctive: line 108
If the task needs infrastructure beyond current scope: stop, describe, ask, wait.
- Distinctive: line 114
Required: consider security at external boundaries.
- Distinctive: line 129
If unsure whether a change is in scope: stop and ask.
≈ “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.
Files
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
- Never hallucinate. Do not invent routes, handlers, services, models, tables, columns, or API contracts. Read the codebase first.
- 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.
- Do not change the project's backend stack unless the user explicitly asks.
- 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.
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
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.

