Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kouroshez/coding-os --skill backend-fundamentalsgit clone --depth 1 https://github.com/kouroshez/coding-osWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kouroshez/coding-os/backend-fundamentals)<a href="https://agentmods.dev/skills/kouroshez/coding-os/backend-fundamentals"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/backend-fundamentals/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kouroshez/coding-os/backend-fundamentals"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/backend-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.05376 |
| Opus 5.5 | $0.00034 | $0.02150 |
| Sonnet 5.5 | $0.00017 | $0.01075 |
| Haiku 4.5 | $0.00009 | $0.00538 |
Grade A, and why
backend-fundamentals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Fundamentals — Stack-Agnostic Patterns
Universal guidance that holds for Django, FastAPI, Go (stdlib + Fiber), Rails, NestJS, Spring, and any other server-side framework. Framework-specific layering (DRF ViewSets, Pydantic Depends, Fiber middleware chain) lives in the stack-specific skill that depends_on: [backend-fundamentals].
Loaded automatically when enforce-skill.sh routes a file under backend/ that matches a stack skill.
0. Scale mindset (think before writing)
Every handler, query, and API must be written as if it will be called by 1,000 concurrent users on a 50M-row table. Before writing:
- How many rows does this touch? Unknown → run
EXPLAIN ANALYZEor ask. - How many callers at once? Single-user admin page vs. public endpoint changes everything.
- Where's the bottleneck? DB index miss · network hop · CPU work.
- What's the latency budget? Default P99 < 500 ms; surface the number in the PR description.
- What happens if step 3 of 5 fails? Transactions · idempotency key · compensating action.
Code that works on 10 rows but collapses on 10 M is a production incident waiting for traffic. Correct answer to "will this scale?" is a number, not "yes".
1. Service / selector split
Business logic lives in services (write path — mutates state, encapsulates a transaction). Read-only DB queries live in selectors (pure functions, cached when possible). Controllers / views / handlers only:
- Parse and validate the request.
- Call a service or selector.
- Shape the response.
No ORM calls in controllers. No business rules in serializers. No DB writes in selectors. This split makes unit testing trivial (mock the service boundary) and keeps transaction boundaries visible.
2. Standard response envelope
Every handler returns one of:
{ "ok": true, "data": <T> }
{ "ok": false, "error": { "code": "<UPPER_SNAKE>", "message": "<human>", "retryable": true|false } }
Error codes come from a project-level registry (list every code in one file, e.g. backend/errors.py or docs/api-contracts/error-codes.md). Never invent codes on the fly — if a new case doesn't fit an existing code, add the new code to the registry first, then reference it.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 289 lines · 86 tokens per session scan A 8cb3768d7d03
backend-fundamentals is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed 5d ago), licensed Apache-2.0. It adds 86 tokens to every session and 5,376 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
backend-fundamentals compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-fundamentalskouroshez/coding-os | Skill | 7 | 5d ago | Apache-2.0 | A | 86 | Claude Code |
| potpie-repo-baselinepotpie-ai/potpie | Skill | 5.8k | 14d ago | Apache-2.0 | A | 75 | Claude Code, Codex |
| potpie-infra-architecturepotpie-ai/potpie | Skill | 5.8k | 14d ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| potpie-project-preferencespotpie-ai/potpie | Skill | 5.8k | 14d ago | Apache-2.0 | A | 63 | Claude Code, Codex |
| browser-2471a991FuRongJun-1999/dsh-memory | Skill | 672 | today | MIT | A | 90 | Claude Code |
| browser-e947a564FuRongJun-1999/dsh-memory | Skill | 672 | today | MIT | A | 97 | Claude Code |
| browser-0754386dFuRongJun-1999/dsh-memory | Skill | 672 | today | MIT | A | 90 | Claude Code |