Agent skill

Backend Design

by xenitV1 in xenitV1/claude-code-maestro

Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.

MITAuto-check: notesDevOps & Cloud

Install Backend Design

skills CLI
$ npx skills add xenitV1/claude-code-maestro --skill backend-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xenitV1/claude-code-maestro backend-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xenitV1/claude-code-maestro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/backend-design .claude/skills/backend-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
backend-design
GitHub stars
229
Token cost
~2.1k tokens
SKILL.md length
982 words
Files
2
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.

  • Works in 12 steps: The "Vertical Slice" Law (The Anti-Layer… → The "Modular Monolith" Mandate → The "Zero Trust" Security Protocol → …
  • Tasks that involve Observability
  • SKILL.md covers 🚀 ELITE TIER KNOWLEDGE…, 🏗️ Reliability & Performance…, 🗄️ Database Integrity & Design and 👁️ Observability & Monitoring…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Backend Design is an agent skill from xenitV1/claude-code-maestro. Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `security-protocols.md`).

It sits in DevOps & Cloud, covering Observability. The licence is MIT.

When your agent uses it

  • Tasks that involve Observability

Example prompts

  • “/backend-design”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. The "Vertical Slice" Law (The Anti-Layer Mandate)
  2. The "Modular Monolith" Mandate
  3. The "Zero Trust" Security Protocol
  4. The "Sub-100ms" Performance Mandate
  5. API Reliability Contracts
  6. Database Integrity & Design
  7. AI & Vector Readiness
  8. Structured Logging Only
  9. Distributed Tracing (OpenTelemetry)
  10. Health Checks
  11. Circuit Breakers
  12. Rate Limiting

What it can do on your machine

Read from SKILL.md and the folder at commit 924315b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Backend Design loads about 2.1k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 982 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Glob, Grep, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xenitV1/claude-code-maestro at commit 924315b, republished under its MIT licence (© xenitV1). 982 words, ~2,113 tokens.

Download SKILL.mdSave it as .claude/skills/backend-design/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
backend-design
description
Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.
allowed-tools
Read, Write, Edit, Glob, Grep, Bash

<domain_overview>

Backend Design System

Philosophy: The Backend is the Fortress. Logic is Law. Latency is the Enemy. Core Principle: ISOLATE features. TRUST no one. SCALE linearly.

ANTI-HAPPY PATH MANDATE (CRITICAL): Never assume the ideal scenario. AI-generated code often fails by ignoring edge cases and failure modes. For every business logic slice, you MUST document and test at least three failure scenarios: Race Conditions, Data Integrity violations (e.g., unique constraint overlaps), and Boundary failures. Reject any implementation that only covers the 'Happy Path'. Engineering is the art of handling what shouldn't happen. </domain_overview>

<architectural_protocols>

🚀 ELITE TIER KNOWLEDGE (ARCHITECTURAL PROTOCOLS)

0. The "Vertical Slice" Law (The Anti-Layer Mandate)

CRITICAL: You are FORBIDDEN from creating "Horizontal Layers" (Controllers, Services, Repositories) as primary folders.

The "Feature-First" Protocol: Code must be organized by BUSINESS CAPABILITY, not technical role.

  1. The Slice: A single directory (e.g., features/create-order/) contains EVERYTHING needed for that feature:
    • handler.ts (Controller)
    • logic.ts (Domain/Service)
    • schema.ts (DTO/Validation)
    • db.ts (Data Access)
  2. The Benefit: Changing a feature requires touching only ONE folder. No "Shotgun Surgery" across 5 layers.
  3. Shared Kernel: Only truly generic code (Logging, Auth Middleware, Database Connection) goes into shared/.
1. The "Modular Monolith" Mandate
  • Microservices Ban: Do NOT start with microservices. Start with a Modular Monolith.
  • Modulith Rules:
    • Modules must be isolated (like internal microservices).
    • Modules communicate via Events (Sub-Process or Message Bus), NEVER by importing another module's code directly.
    • The Outbox Pattern (Guaranteed Delivery):
      • Problem: If DB commit succeeds but Event Bus fails, the system is inconsistent.
      • Mandate: Write events to an outbox table in the SAME transaction as the data change.
      • Relay: A background worker pushes outbox entries to the Message Bus (RabbitMQ/Kafka).
    • Data Sovereignty: Module A cannot query Module B's tables. It must ask Module B via API/Event.
2. The "Zero Trust" Security Protocol

Detailed protocols: See security-protocols.md

Quick Rules:

  1. Strict Serialization: NEVER return raw DB entities → Use ResponseDTO
  2. Validation at Gate: Schema validation (Zod/Pydantic) BEFORE logic
  3. Token Sovereignty: PASETO v4 > JWT (Ed25519 if JWT forced) </architectural_protocols>

<reliability_contracts>

🏗️ Reliability & Performance Contracts

3. The "Sub-100ms" Performance Mandate
  • The Latency Budget: P50 < 100ms. P99 < 500ms.
  • UUIDv7 (The Time-Lord Rule):
    • Ban: Never use UUIDv4 (Random) for Primary Keys. It fragments B-Tree indexes.
    • Mandate: Use UUIDv7 (Time-ordered). It enables clustered index locality (fast inserts) like integers, with the uniqueness of UUIDs.
  • N+1 Assassin:
    • Check: Always inspect ORM queries. Loops triggering DB calls are a "Level 0" error.
    • Fix: Use DataLoader pattern or explicit JOIN loading.
4. API Reliability Contracts
  • RFC 7807 (Problem Details):
    • Ban: returning { "error": "Something went wrong" }.
    • Mandate: Return standard Problem JSON:
      json
      {
        "type": "https://api.myapp.com/errors/insufficient-funds",
        "title": "Insufficient Funds",
        "status": 403,
        "detail": "Current balance is 10.00, required is 15.00",
        "instance": "/transactions/12345"
      }
  • Idempotency Keys:
    • Rule: All critical POST/PATCH (Money, State Change) must accept an Idempotency-Key header.
    • Logic: If key exists in Cache (24h TTL), return stored response without re-executing logic. </reliability_contracts>

<database_integrity>

🗄️ Database Integrity & Design

5. Database Integrity & Design
  • Hard Constraints: Application-level checks are "Suggestions". Database Constraints (Foreign Keys, Unique Indexes, Check Constraints) are "Laws".
  • Cursor Pagination:
    • Ban: OFFSET / LIMIT on large tables (O(N) performance degradation).
    • Mandate: Cursor-based pagination (WHERE created_at < cursor LIMIT 20).
  • Migration Discipline:
    • Never alter a column in a way that locks the table for >1s.
    • Use "Expand and Contract" pattern for breaking changes.
  • Concurrency Control:
    • Problem: Two users update the same record. The last one wipes the first.
    • Mandate: Use Optimistic Locking. Add a version (int) column.
    • Logic: Update WHERE id = X AND version = Y. If 0 rows affected, throw StaleObjectException.
Show full SKILL.md (406 more words)Show less
6. AI & Vector Readiness
  • Semantic Storage: Backend must be ready to store embeddings (Vector Types).
  • Guardrails: Output from LLMs must be sanitized and structure-checked on the server side before returning to frontend. </database_integrity>
<observability>
## 👁️ Observability & Monitoring (The "Glass Box" Protocol)
7. Structured Logging Only
  • Ban: console.log("User updated"). String logs are useless for machines.
  • *Mandate: JSON Logs with correlation IDs. { "level": "info", "event": "user_updated", "user_id": "u7-...", "trace_id": "..." }.
8. Distributed Tracing (OpenTelemetry)
  • Every request MUST carry a traceparent header.
  • Spans must cover: DB Queries, External API Calls, and Redis operations.
9. Health Checks
  • Liveness (/health/live): "Am I running?" (Instant, no checks).
  • Readiness (/health/ready): "Can I take traffic?" (Check DB/Redis connection).
    </observability>
<resilience>
## 🛡️ Resilience Patterns (The "Anti-Fragile" Mandate)
10. Circuit Breakers
  • Wrap ALL external calls (Payment Gateways, 3rd Party APIs) in a Circuit Breaker.
  • Logic: After 5 failures, fail fast for 30s. Don't drown the downstream service.
11. Rate Limiting
  • Protect every public endpoint with a Token Bucket rate limiter (Redis-backed).
  • Differentiate limits by User Role (Anon: 60/min, Pro: 1000/min).
    </resilience>

<workflow_rules>

🔧 Workflow Rules

1. The Pre-Flight Checklist
  1. Environment Hardening:
    • Verify all process.env variables at startup using a schema (e.g., t3-env or envalid). If a key is missing, crash immediately. Do not start the server in an undefined state. Before writing a single handler:
  2. Define the DTOs: Request Schema (Zod) and Response Schema.
  3. Define the Error States: What can go wrong? (404, 409, 429).
  4. Define the Data Access: What is the most efficient SQL query?
2. The "No Magic" Rule
  • Avoid "Magical" ORM features (Lazy Loading, Auto-Saving context).
  • Prefer Explicit over Implicit. "Write the SQL (or Query Builder) if the ORM hides expensive logic."
3. Testing Pyramid
  1. Unit: Test Domain Logic in isolation (mock DB).
  2. Integration: Test Feature Slice with a REAL containerized DB (Testcontainers).
  3. E2E: Test critical flows from the "Outside". </workflow_rules>

<audit_and_reference>

📂 Cognitive Audit Cycle

Before committing code:

  1. Is the endpoint under a feature slice? (Not in a generic controller folder).
  2. Is Input Validated with a Schema? (Zero Trust).
  3. Are DB Indexes used? (Run EXPLAIN ANALYZE).
  4. Is the Primary Key UUIDv7? (Index Perf).
  5. Are secrets managed properly? (No hardcoded strings).

🔗 CROSS-SKILL INTEGRATION

SkillBackend Adds...
@frontend-designAPI contracts, CORS config, error responses
@clean-codeInput validation, no raw SQL, dependency security
@tdd-masteryIntegration tests with Testcontainers
@planning-masteryAPI endpoint task breakdown
@debug-masteryStructured logging, distributed tracing

Command: Use these skills to architect "Fortress-Level" backend systems. </audit_and_reference>

© xenitV1, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/backend-design of xenitV1/claude-code-maestro.

  • SKILL.md
  • security-protocols.md

Open the folder on GitHubat commit 924315b

Compare with similar skills

Backend Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Backend Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Backend Design this skillxenitV1/claude-code-maestro229—~2.1kAutomated safety check: NotesMIT
Distributed Tracingwshobson/agents40k12 repos~527Automated safety check: PassMIT
Workers Best Practiceshodgef/apiker1276 repos~1.8kAutomated safety check: PassMIT
Add Metricmicrobus-io/fabric172—~1.5kAutomated safety check: PassApache-2.0
OmniRoute Health Monitoringdiegosouzapw/OmniRoute74k—~1.2kAutomated safety check: PassMIT
Telemetry Integrationrapidaai/voice-ai745—~690Automated safety check: PassCustom licence

Similar skills

  • Distributed Tracing

    wshobson/agents

    Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks.

    40k GitHub starsUsed in 12 repos~527 tokens
    DevOps & CloudAuto-check passed
  • Reviews and authors Cloudflare Workers code against production best practices.

    127 GitHub starsUsed in 6 repos~1.8k tokens
    DevOps & CloudAuto-check passed
  • Add Metric

    microbus-io/fabric

    TRIGGER when user asks to add or modify a metric, counter, gauge, or histogram, or to track/measure an operation.

    172 GitHub stars~1.5k tokensUpdated 11 days ago
    DevOps & CloudAuto-check passed
  • OmniRoute Health Monitoring

    diegosouzapw/OmniRoute

    Checks the health of an OmniRoute gateway: provider circuit breakers, latency percentiles, budget guard alerts, connection cooldowns and model lockouts.

    74k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Telemetry Integration

    rapidaai/voice-ai

    Add or modify telemetry instrumentation across assistant-api and integration-api while preserving metric schema compatibility and audit behavior.

    745 GitHub stars~690 tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Output Dev Cost Hooks

    growthxai/output

    Subscribe to cost events (cost:http:request, llm:generation:metering) to forward LLM and API spend to your own observability system.

    442 GitHub stars~2.7k tokensUpdated today
    DevOps & CloudAuto-check passed

More from xenitV1/claude-code-maestro

All 13 skills in this repo
  • Clean Code

    xenitV1/claude-code-maestro

    The Foundation Skill. An agent skill from xenitV1/claude-code-maestro.

    229 GitHub stars~1.5k tokensUpdated 8 mo ago
    Auto-check passed
  • Ralph Wiggum

    xenitV1/claude-code-maestro

    Surgical Debugger & Code Optimizer. An agent skill from xenitV1/claude-code-maestro.

    229 GitHub stars~795 tokensUpdated 8 mo ago
    Auto-check: notes
  • Brainstorming

    xenitV1/claude-code-maestro

    Design-first methodology. An agent skill from xenitV1/claude-code-maestro.

    229 GitHub stars~2k tokensUpdated 8 mo ago
    Auto-check passed
  • Browser Extension

    xenitV1/claude-code-maestro

    Master specialized skill for building 2025/2026-grade browser extensions.

    229 GitHub stars~1.2k tokensUpdated 8 mo ago
    Auto-check: notes
  • Debug Mastery

    xenitV1/claude-code-maestro

    Systematic debugging methodology with 4-phase process, root cause tracing, and elite observability standards.

    229 GitHub stars~2.5k tokensUpdated 8 mo ago
    Auto-check: notes
  • Frontend Design

    xenitV1/claude-code-maestro

    Elite Tier Web UI standards, including pixel-perfect retro aesthetics, immersive layouts, and UX psychology protocols.

    229 GitHub stars~1.1k tokensUpdated 8 mo ago
    Auto-check: notes

Questions about Backend Design

What does Backend Design do?

Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols. Backend Design is an agent skill from xenitV1/claude-code-maestro. Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.

When should I use Backend Design?

Backend Design fits situations like: tasks that involve Observability.

How do I install Backend Design in Claude Code?

Run `npx skills add xenitV1/claude-code-maestro --skill backend-design -a claude-code`. Or copy the skill folder (skills/backend-design in xenitV1/claude-code-maestro) into .claude/skills/backend-design in your project. Claude Code loads it when a task matches its description.

How do I install Backend Design in Codex?

Run `npx skills add xenitV1/claude-code-maestro --skill backend-design -a codex`. Or copy the skill folder (skills/backend-design in xenitV1/claude-code-maestro) into .agents/skills/backend-design in your project. Codex loads it when a task matches its description.

Can I use Backend Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xenitV1/claude-code-maestro --skill backend-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/backend-design, .gemini/skills/backend-design, .github/skills/backend-design and .opencode/skills/backend-design in your project.

What does Backend Design need to run?

SKILL.md names no scripts, command-line tools or credentials: Backend Design is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash.

Does Backend Design access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Backend Design safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Backend Design use?

Backend Design is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Backend Design use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Backend Design?

Skills that share tags, products or a category with Backend Design: Distributed Tracing (wshobson/agents, 40k stars), Workers Best Practices (hodgef/apiker, 127 stars), Add Metric (microbus-io/fabric, 172 stars) and OmniRoute Health Monitoring (diegosouzapw/OmniRoute, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Backend Design?

xenitV1 (a GitHub user) maintains it in xenitV1/claude-code-maestro, which has 229 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on January 24, 2026.

Source: xenitV1/claude-code-maestro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.