backend-architect

backend-architect is a skill for Claude Code from k1lgor/virtual-company. It costs 28 tokens per session (2,920 once invoked), scanned A, original, MIT.

A set of instructions for building server-side software such as APIs, middleware, and database-backed services. It requires a failing test before implementing each endpoint or service method; TDD means designing the test before the code.

In plain words
What is it for?
Implementing API endpoints, authentication middleware, database integrations, and service logic with tests and verification.
Why use it?
It provides a consistent process for checking backend behavior before and after implementation. The test-first rule helps catch incorrect API contracts and service behavior early.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const app = require("../app");.

Part of the virtual-company plugin — 27 skills, 1 command, 6 agents, 3 hooks shipped together

Good fit Implementing API endpoints, authentication middleware, database integrations, and service logic with tests and verification.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/k1lgor/virtual-company
agentmods
npx agentmods add skills/k1lgor/virtual-company/13-backend-architect

Made for: Claude Code.

Or install virtual-company, the plugin that ships this one along with the rest of its 27 skills, 1 command, 6 agents, 3 hooks.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/k1lgor/virtual-company/13-backend-architect/github.svg)](https://agentmods.dev/skills/k1lgor/virtual-company/13-backend-architect)
Your own site
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/13-backend-architect"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/13-backend-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/13-backend-architect"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/13-backend-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,920 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.00028 $0.02920
Opus 5 $0.00014 $0.01460
Sonnet 5 $0.00006 $0.00584
Haiku 4.5 $0.00003 $0.00292

Measured 10d ago against content hash 33b048c5eaa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

backend-architect 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 10d 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.

skills/13-backend-architect/SKILL.md · 318 lines

How it starts

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

⚙️ Backend Architect

You are the Lead Backend Engineer. Your goal is to build high-performance, secure, and maintainable server-side logic following clean architecture principles.

🛑 The Iron Law

NO ENDPOINT WITHOUT A FAILING TEST FIRST

Every endpoint, middleware, or service method gets a test written BEFORE implementation. No exceptions for "simple CRUD" or "it's just a wrapper."

🛠️ Tool Guidance

  • Project Mapping: Use Glob to understand the service/repository layout.
  • Deep Logic: Use Read to audit business rules and controller logic.
  • Data Flow: Use Grep to trace data from request to database.
  • Verification: Use Bash to run tests and check server health.

📍 When to Apply

  • "Implement the business logic for the order service."
  • "Set up auth middleware for these routes."
  • "Optimize our database query performance."
  • "Design the service layer for user management."

Decision Tree: Backend Implementation Flow

graph TD
    A[New Endpoint/Service] --> B{API contract exists?}
    B -->|No| C[Route to api-designer first]
    B -->|Yes| D[Write failing test for contract]
    C --> D
    D --> E{Test fails correctly?}
    E -->|No| F[Fix test]
    F --> D
    E -->|Yes| G[Implement minimal logic to pass]
    G --> H{Input validation added?}
    H -->|No| I[Add validation middleware]
    I --> H
    H -->|Yes| J{Error handling covers failures?}
    J -->|No| K[Add try/catch, error responses]
    K --> J
    J -->|Yes| L{Full suite green?}
    L -->|No| M[Fix regressions]
    M --> L
    L -->|Yes| N[✅ Endpoint complete]

📜 Standard Operating Procedure (SOP)

Read the full file on GitHub · 318 lines

Files

What ships with it

1 file 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. 10d ago First seen · 318 lines · 28 tokens per session scan A 33b048c5eaa8

Subscribe to this mod's changes

backend-architect is a skill published in the GitHub repository k1lgor/virtual-company (4 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 2,920 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

cloudflare-hyperdrive

Cloudflare Hyperdrive for Workers-to-database connections with pooling and caching. Use for PostgreSQL/MySQL, Drizzle/Prisma, or encountering pool errors, TLS issues, connection refused.

secondsky/claude-skills · 45 tokens

supabase

Skill "supabase" from dhaupin/vant, covering supabase, when to use, what to do, 1. connect and supabase-js.

dhaupin/vant · 6 tokens

ccc-pro-saas

Multi-tenant SaaS scaffolds: row-level security, billing, invitations · Pro tier only.

KevinZai/commander · 24 tokens

howto-develop-with-postgres

Use when writing database access code, creating schemas, or managing transactions with PostgreSQL - enforces transaction safety with TX naming, read-write separation, type safety for UUIDs/JSONB, and snakecase conventions to prevent data corruption and type errors.

ed3dai/ed3d-plugins · 58 tokens

fastapi-backend

Build production-grade FastAPI backends with SQLModel, Pydantic, and JWT authentication. Use this skill when building REST APIs, integrating with Neon PostgreSQL, implementing Better Auth JWT verification, or creating CRUD endpoints. Includes patterns for audit logging, worker/agent parity, and OpenAPI documentation.

mjunaidca/mjs-agent-skills · 65 tokens

sqlmodel-database

Design and implement database schemas using SQLModel with sync and async patterns. Use this skill when creating database models, setting up Neon PostgreSQL connections, defining relationships (one-to-many, many-to-many), implementing FastAPI dependency injection, or migrating schemas. Covers both sync Session and…

mjunaidca/mjs-agent-skills · 65 tokens