codex-skills-library: Skill for Codex

.agents/skills/backend-clean-architecture/SKILL.md

backend-clean-architecture is a skill for Codex from YankielDBC2/codex-skills-library. It costs 29 tokens per session (435 once invoked), scanned A, original, MIT.

A set of rules for organizing server-side application code, including web requests, business logic, data storage, validation, errors, authentication, and APIs.

In plain words
What is it for?
It helps modify backend routes and services, add validation or authentication, change database logic, handle errors, and refactor API architecture.
Why use it?
When these responsibilities are mixed together, code becomes difficult to test, reuse, and change safely. The rules keep each part focused and preserve existing behavior where possible.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is YankielDBC2/codex-skills-library's own configuration. It tells Codex how to work on codex-skills-library itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-skills-library configures →

Reuse

Borrowing it

Nothing to install: this file belongs to YankielDBC2/codex-skills-library. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/YankielDBC2/codex-skills-library/main/.agents/skills/backend-clean-architecture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/YankielDBC2/codex-skills-library

Made for: Codex.

Wrote 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.

agentmods badge for backend-clean-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/yankieldbc2/codex-skills-library/backend-clean-architecture/github.svg)](https://agentmods.dev/skills/yankieldbc2/codex-skills-library/backend-clean-architecture)
Your own site
<a href="https://agentmods.dev/skills/yankieldbc2/codex-skills-library/backend-clean-architecture"><img src="https://agentmods.dev/badge/skills/yankieldbc2/codex-skills-library/backend-clean-architecture/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.

agentmods 80×15 button for backend-clean-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/yankieldbc2/codex-skills-library/backend-clean-architecture"><img src="https://agentmods.dev/badge/skills/yankieldbc2/codex-skills-library/backend-clean-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00435
Opus 5 $0.00015 $0.00217
Sonnet 5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00044

Measured 8d ago against content hash 765ae923b83b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

backend-clean-architecture 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 8d 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.

.agents/skills/backend-clean-architecture/SKILL.md · 62 lines

What it actually says

Backend Clean Architecture

Goal

Produce backend code that is small, testable, reusable, and easy to reason about. Keep orchestration at the edges and business behavior in focused modules.

When to use

Use for backend features, API routes, controllers, services, database logic, auth, validation, error handling, and backend refactors.

When not to use

Do not use for frontend-only UI work, copywriting, visual design, or unrelated project management tasks.

Read first

  1. The affected route/controller/handler.
  2. Direct service/use-case imports.
  3. Existing validator/schema/error helpers.
  4. Database model/repository only if persistence changes.
  5. Related tests if behavior changes.

Do not scan the whole backend unless the task requires an architecture review.

Workflow

  1. Identify the real owner of the behavior.
  2. Keep request parsing and response formatting in routes/controllers.
  3. Put business logic in services or use-cases.
  4. Put persistence in repositories or query modules.
  5. Reuse validation, auth, mapping, and error helpers.
  6. Preserve public behavior unless the user asked for a behavior change.
  7. Add regression coverage at the smallest meaningful seam.
  8. Delete obsolete paths when safe.

Architecture rules

  • Routes/controllers parse request, call service/use-case, return response.
  • Services/use-cases own business logic.
  • Repositories/query modules own data access.
  • Validators/schemas own input validation.
  • Error helpers own normalized error responses.
  • Auth/session helpers own identity and permission checks.
  • External API calls live behind clients/adapters.
  • Do not introduce hidden global state.

Validation

Run available relevant commands: typecheck, lint, unit tests for affected modules, integration tests for changed endpoints, and build when meaningful.

Final response

Report changed files, architecture decisions, validation output, and any known risks.

Files

What ships with it

4 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.

Changes

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.

  1. 8d ago First seen · 62 lines · 29 tokens per session scan A 765ae923b83b

Subscribe to this mod's changes

backend-clean-architecture is a skill published in the GitHub repository YankielDBC2/codex-skills-library (10 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 435 once invoked, about $0.0001 per session on Opus 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.

Related

Other skills, from other repositories

api-rate-limit-handler

Implement bounded, idempotency-aware API throttling, backoff, and retry handling for 429 and transient 5xx responses.

sickn33/agentic-awesome-skills · 32 tokens

api-endpoint-builder

Builds production-ready REST API endpoints with validation, error handling, authentication, and documentation. Follows best practices for security and scalability.

sickn33/agentic-awesome-skills · 32 tokens

a0-development

Development guide for extending Agent Zero from current source and DOX. Use for framework architecture, tools, extensions, API/WebUI handlers, agent profiles, prompts, skills, projects, runtime boundaries, and contribution workflow. Load the focused reference files before giving implementation guidance.

agent0ai/agent-zero · 57 tokens

parameterized-skill

A skill with customizable parameters, usage examples for AI guidance, and controlled visibility.

agentfront/frontmcp · 21 tokens

frontmcp-development

Use when building any FrontMCP server component other than a tool (for tools, use create-tool). Covers @Resource static resources and parameterized URI templates; @Prompt reusable prompts (RAG, multi-turn); @Provider singleton dependency-injection providers (database pools, API clients); @Agent autonomous LLM agents…

agentfront/frontmcp · 196 tokens

ui5-best-practices-mdc

UI5 MDC (sap.ui.mdc) best practices for OData V4 delegate-based controls. Use when creating/troubleshooting MDC FilterBar, Chart, Field, FilterField, ValueHelp, Link, MultiValueField, or Table. Covers delegate pattern, fetchProperties, PropertyInfo, p13nMode, updateBindingInfo, Condition.createCondition, and common…

UI5/plugins-coding-agents · 248 tokens