backend-guidance

backend-guidance is a skill for Claude Code, Codex from n-n-code/n-n-code-skills. It costs 64 tokens per session (982 once invoked), scanned A, original, MIT.

A baseline guide for ordinary backend work involving HTTP services, gRPC, or message consumers. It applies to thin service changes and explains when broader backend-systems guidance is needed.

In plain words
What is it for?
Use it alongside language-specific guidance when changing or reviewing a simple backend route, endpoint, or message consumer. It is not intended for complex data-access, reliability, security, or service-boundary redesigns.
Why use it?
It helps keep small backend changes focused while highlighting cases that need stronger guidance, such as transactions, retries, persistence, or trust-boundary security. It also distinguishes implementation from review work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Install

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.

agentmods
npx agentmods add skills/n-n-code/n-n-code-skills/backend-guidance
Any agent
npx skills add n-n-code/n-n-code-skills --skill backend-guidance
Clone the repo
git clone --depth 1 https://github.com/n-n-code/n-n-code-skills

Made for: Claude Code, 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-guidance

README.md
[![agentmods](https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/backend-guidance.svg)](https://agentmods.dev/skills/n-n-code/n-n-code-skills/backend-guidance)
Your own site
<a href="https://agentmods.dev/skills/n-n-code/n-n-code-skills/backend-guidance"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/backend-guidance.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00064 $0.00982
Opus 5 $0.00032 $0.00491
Sonnet 5 $0.00013 $0.00196
Haiku 4.5 $0.00006 $0.00098

Measured yesterday against content hash 6598c10b2c32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

backend-guidance 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 yesterday.

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-guidance/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backend Guidance

This is a composable overlay, not a standalone workflow. Use alongside the matching principle skill (for example, coding-guidance-cpp) when the change touches backend code. Add project-core-dev only when repository-specific completion checks still need to be discovered or reported.

Choose the activity before applying the rules below:

  • for implementation, make only the requested backend changes and validate them
  • for review, inspect and report prioritized findings with evidence; do not edit files or require findings to be fixed unless the user also asks for remediation

Use this as the thin default backend overlay for ordinary backend work. If the task includes service-boundary refactors, repository or transaction work, queue or webhook reliability, stronger testing expectations, or explicit trust-boundary hardening, prefer backend-systems-guidance.

Routing examples:

  • thin route handler that delegates to existing service logic -> use this skill
  • small message consumer bug fix with no retry or persistence redesign -> use this skill
  • new endpoint with authz, repository, transaction, retry, or observability changes -> use backend-systems-guidance
  • security audit of an endpoint or tenant membership/authorization boundary -> use security first; add security-identity-access when identity, session, or tenant authorization is central, and add the backend overlay only for implementation structure

When to use

The repo has server-side networked code: HTTP route handlers, gRPC service methods, message/event consumers, or similar request-processing pipelines.

Not for

HTTP client code, CLI tools that make outbound requests, batch processors, or offline data pipelines. These do not have the handler/service/boundary shape this skill addresses.

Rules

  • Keep handlers thin in responsibility, not by literal line count — parse input, call a service function, map transport concerns, serialize output. If a handler starts owning business decisions, extract that logic into a service or core module.
  • Keep business logic testable without transport — no HTTP context, no gRPC metadata leaking into domain functions.
  • Isolate data access behind an interface when it simplifies testing. Do not add an abstraction layer when the data access is trivial or test-only.
  • Decode, normalize, and validate the external transport shape at the untrusted boundary before it reaches business logic. Do not confuse that check with domain invariants that the service or domain owner must enforce.
  • Keep transport-only concerns at the edge: request decoding, authentication, and transport-specific error mapping. Enforce authorization in the earliest shared policy layer that every relevant entrypoint traverses; an edge-only authorization check is sufficient only when no other entrypoint can bypass it.
  • Keep business invariants in service or domain code and persistence invariants in the data layer. Avoid duplicate checks that enforce the same contract, but do not remove a check merely because another layer validates a different concern.
  • Use dependency injection where it makes tests simpler — not as a default architectural pattern.

Read the full file on GitHub · 103 lines

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. yesterday Changed · -1 lines 6598c10b2c32
  2. 6d ago First seen · 104 lines · 64 tokens per session scan A b83d5628ce08

Subscribe to this mod's changes

backend-guidance is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 982 once invoked, about $0.0003 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

httpie

Use this skill whenever the user wants to make HTTP requests, test APIs, call REST endpoints, debug web services, or interact with any HTTP/HTTPS API using the HTTPie CLI tool (http command). Trigger this skill for any request involving: sending GET/POST/PUT/PATCH/DELETE requests, testing API endpoints, sending JSON…

jjmartres/ai-coding-agents · 148 tokens

web-auth-integrator

Integrate authentication and authorization flows with provider-specific setup and RBAC safeguards.

0x-Professor/Agent-Skills-Hub · 20 tokens

web-api-tester

Test API endpoints for correctness, edge cases, auth handling, and OpenAPI contract compliance.

0x-Professor/Agent-Skills-Hub · 23 tokens

web-backend-builder

Scaffold backend API, data models, ORM setup, and endpoint inventory with OpenAPI output.

0x-Professor/Agent-Skills-Hub · 24 tokens

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

jjmartres/ai-coding-agents · 61 tokens

creating-springboot-projects

Use when starting a new Spring Boot 4 project — scaffolding a service, REST API, or modular backend; picking an architecture (layered, package-by-module, modular-monolith, tomato, DDD-hexagonal); selecting Spring Boot 4 features; or applying the bundled templates and references in this skill. Not for migrating…

a-pavithraa/springboot-skills-marketplace · 91 tokens