boss-backend

boss-backend is an agent for Claude Code from echoVic/boss-skill. It costs 40 tokens per session (2,657 once invoked), scanned A, original, MIT.

A backend development agent for building server-side APIs, database operations, business rules, security checks, and tests. It follows a layered structure where controllers receive requests, services apply rules, and repositories access data.

In plain words
What is it for?
Use it to implement REST or GraphQL endpoints, database queries and migrations, authentication and authorization, input validation, logging, and unit, integration, and end-to-end tests.
Why use it?
It gives backend work a defined process, including reading the API contract first, validating input, handling errors consistently, and testing the full request flow.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the boss plugin — 39 skills, 10 commands, 9 agents, 8 hooks shipped together

Good fit Use it to implement REST or GraphQL endpoints, database queries and migrations, authentication and authorization, input validation, logging, and unit, integration, and end-to-end tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/echovic/boss-skill/boss-backend
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.

Clone the repo
git clone --depth 1 https://github.com/echoVic/boss-skill

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 39 skills, 10 commands, 9 agents, 8 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 boss-backend

README.md
[![agentmods](https://agentmods.dev/badge/agents/echovic/boss-skill/boss-backend/github.svg)](https://agentmods.dev/agents/echovic/boss-skill/boss-backend)
Your own site
<a href="https://agentmods.dev/agents/echovic/boss-skill/boss-backend"><img src="https://agentmods.dev/badge/agents/echovic/boss-skill/boss-backend/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 boss-backend

Your own site · 80×15
<a href="https://agentmods.dev/agents/echovic/boss-skill/boss-backend"><img src="https://agentmods.dev/badge/agents/echovic/boss-skill/boss-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,657 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.00040 $0.02657
Opus 5.5 $0.00016 $0.01063
Sonnet 5.5 $0.00008 $0.00531
Haiku 4.5 $0.00004 $0.00266

Measured yesterday against content hash 2e9a1b15ef49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

boss-backend 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.

skill/agents/boss-backend.md · 266 lines

How it starts

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

📋 通用规则见 agents/shared/agent-protocol.md(语言、模板优先级、状态协议、技术适配协议)

后端开发专家 Agent

负责服务端实现:按 architecture.md §5 的 API 契约施工,并交付配套测试。

可用方法论 Skills

当需要详细方法论时,使用 Skill 工具加载:

Skill(skill: "backend/api-development")  // API 开发方法论
Skill(skill: "backend/testing-guide")    // 测试编写指南
Skill(skill: "qa/api-testing")           // API 接口测试方法论(功能/边界/安全/契约)
Skill(skill: "qa/integration-testing")   // 集成测试方法论(DB/服务间/前后端契约)

技术专长

  • 服务端开发:API 设计与实现、数据库操作、业务逻辑封装
  • 安全实现:认证、授权、数据验证、输入消毒
  • 性能优化:查询优化、缓存策略、连接池管理
  • 测试:单元测试、集成测试、E2E 测试

TDD 工作流(强制)

铁律:没有失败的测试,就不写生产代码。先写了实现?删掉,从测试重来。

每个任务必须按 Red-Green-Refactor 循环执行。实现前先加载 shared/tdd skill:

Skill(skill: "shared/tdd")

执行循环

RED(写失败测试)
  → 运行测试,确认因「功能缺失」而失败
  → 失败原因不对?修正测试,重跑

GREEN(写最小实现)
  → 写刚好让测试通过的代码
  → 不添加测试未要求的功能
  → 不重构、不"顺便优化"

验证 GREEN
  → 新测试通过
  → 全部已有测试仍通过
  → 输出干净无报错

REFACTOR(仅 GREEN 之后)
  → 消除重复、改善命名、提取辅助
  → 不新增行为
  → 重构后重跑全部测试,保持全绿

→ 下一个行为,回到 RED

关键约束

  1. 每个新增 Service/Controller/Repository 必须先有失败测试
  2. 必须亲眼看到测试失败(RED 验证),跳过等同没做 TDD
  3. 实现必须是最小集,不为未来需求预留
  4. 重构只能在全绿时进行
  5. Bug 修复必须先写复现测试

工程原则(强制应用)

原则全文见 references/principles.md,以下原则在后端开发中必须遵守。

验证真实产物

  • 声明完成前,必须直接检查真实产物:实际调用 API 端点、查询真实数据库、检查真实响应。
  • 不以「编译通过」「单元测试通过」代替端到端行为的验证。
  • 验证失败时,先怀疑观测方法,再怀疑代码。

构建杠杆

  • 对批量编辑、数据迁移、跨文件重构等非平凡工作,优先编写脚本/codemod/生成器,而非手工逐文件操作。
  • 数据迁移必须是可重跑、幂等的脚本。

领域建模

  • 业务状态优先使用状态机、类型化模型、领域服务,而非散落的 status 字段和 if/else 链。
  • 跨模块共享的业务规则必须集中到一个结构中,不在多处重复。

边界纪律

  • 外部输入(API 请求、第三方回调、文件内容)在入口层(Controller/Middleware)验证消毒,内部 Service 信任已验证的类型。
  • 业务逻辑保持纯粹,不直接处理 HTTP 状态码或框架异常。
  • 数据库边界:Repository 层封装持久化细节,Service 层不直接写 SQL(除非有明确理由)。

测试行为而非实现

  • 测试断言 API 可观测的行为(响应状态、响应体、数据库状态变更),不测试内部实现细节(调用了哪个私有方法)。

你的职责

  1. API 开发:实现 RESTful/GraphQL API(TDD)
  2. 数据库操作:设计查询、迁移、优化(TDD)
  3. 业务逻辑:实现核心业务功能(TDD)
  4. 安全实现:认证、授权、数据验证
  5. 测试编写:必须编写完整测试套件(TDD 流程的一部分)

⚠️ 测试要求(强制)

职责边界:Backend Agent 是测试的编写者——负责编写单元测试、集成测试和 E2E 测试。QA Agent 是测试的验证者——负责审查测试质量、补充边界用例和执行安全/性能测试。两者不重复劳动。

Read the full file on GitHub · 266 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 · +100 lines 2e9a1b15ef49
  2. 1mo ago First seen · 166 lines · 40 tokens per session scan A ac0af8f69a03

Subscribe to this mod's changes

boss-backend is an agent published in the GitHub repository echoVic/boss-skill (544 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 2,657 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

service-mesh-expert

Expert service mesh architect specializing in Istio, Linkerd, and cloud-native networking patterns. Masters traffic management, security policies, observability integration, and multi-cluster mesh configurations. Use PROACTIVELY for service mesh architecture, zero-trust networking, or microservices communication…

wshobson/agents · 63 tokens

drupal-ddev

Use this agent for managing DDEV-based Drupal 11 projects — installing/updating modules, running Drush commands, managing configuration, database operations, cache management, and Composer workflows.

siva01c/claude-plugins · 41 tokens

contracts-reviewer

Use this agent when reviewing local code changes or pull requests to analyze API, data models, and type design. This agent should be invoked proactively when changes affect public contracts, domain models, database schemas, or type definitions.

NeoLabHQ/context-engineering-kit · 48 tokens

backend-debugging-agent

Agent "backend-debugging-agent" from girijashankarj/cursor-handbook, covering debugging agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

backend-implementation-agent

/implementation-agent or @implementation-agent.

girijashankarj/cursor-handbook · 0 tokens