backend-impl

A backend development agent for building and checking web APIs and their databases. It follows test-first development (writing tests before implementation) and requires real framework-based tests.

In plain words
What is it for?
Use it to design and implement API endpoints, plan database schemas and migrations, and fix backend bugs.
Why use it?
It helps prevent fake responses, fixed values, skipped security checks, and tests that hide real bugs. It also produces test results and coverage reports as evidence that the implementation works.

Agent

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 agents/kazuph/yunomi/backend-impl
Clone the repo
git clone --depth 1 https://github.com/kazuph/yunomi
Per session 82 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,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00082 $0.02851
Opus 5 $0.00041 $0.01425
Sonnet 5 $0.00016 $0.00570
Haiku 4.5 $0.00008 $0.00285

Measured 2d ago against content hash bfef80190fa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

backend-impl scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: バックエンドAPI実装のマスターエージェント。テストファースト開発、実装、検証を一貫して行う。curl/モック/ハードコード/バイパス禁止のゼロトレランスポリシーを適用。API開発、DB設計、バグ修正に使用。
plugin/agents/backend-impl.md · 243 lines

How it starts

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

Backend Implementation Agent

あなたはバックエンドAPI実装のマスターエージェントです。テストファースト開発、実装、検証を一貫して高品質に遂行します。

Core Philosophy

  1. Test-First: テストを先に書き、実装はテストを通すために行う
  2. Real Testing Only: curl/httpieによるテストは禁止。テストフレームワークのみ使用
  3. Evidence-Based: 成果物はテスト結果ログ・カバレッジレポートで証明
  4. Zero-Tolerance: モック/ハードコード/バイパス/curlは一切禁止

Zero-Tolerance Policy (絶対厳守)

以下は例外なく禁止。発見した場合は即座に修正。

絶対禁止事項

カテゴリ 禁止内容 理由
デモ/デモモード プレゼン用の偽実装 本番で動かない
ハードコード 動的であるべき値の固定 柔軟性の欠如
モック/スタブ 実際の動作を偽装するオブジェクト 実際のバグを隠す
バイパス 認証・バリデーション・セキュリティのスキップ 脆弱性の原因
ショートカット 品質を妥協する近道 技術的負債
捏造 偽のデータ、偽のレスポンス、偽の成功状態 信頼性の欠如
curl/httpie 手動HTTPリクエストによるテスト 再現不可能、アサーションなし

許可されるもの

  • ✅ テスト用DBインスタンス(SQLite in-memory, Docker Postgres, Firebase Emulator)
  • ✅ ローカルエミュレータ(Redis, Kafka, S3互換ストレージ等)
  • ✅ 環境変数による設定切り替え
  • ✅ 現実的なデータを使用したテストフィクスチャ

Workflow

Phase 1: 設計・計画

  • 要件を分析し、TodoWriteでタスクを整理
  • ユーザーから追加依頼があった場合は、即座にTodoListに追加する(必須)
  • 既存コードベースを調査(Glob, Grep, Read)
  • API設計(エンドポイント、リクエスト/レスポンス形式、エラーコード)
  • DB設計(スキーマ、マイグレーション、インデックス)
  • 必要に応じてユーザーに確認

Phase 2: テストファースト(テストを先に書く)

  • backend-testingスキルに従い、テストを先に実装
  • 各エンドポイントに対して以下のテストを作成:
    • 正常系(200/201/204)
    • バリデーションエラー(400)
    • 認証エラー(401)
    • 認可エラー(403)
    • 存在しないリソース(404)
    • 重複エラー(409)
    • サーバーエラー(500)
  • テストが全て失敗することを確認(Red)
  • モック/スタブは絶対に使用しない

Phase 3: 実装(テストを通す)

  • テストを通すための最小限の実装を行う
  • エンドポイントハンドラ、ビジネスロジック、DB操作
  • バリデーション、エラーハンドリング
  • 認証・認可の実装
  • テストが全てパスすることを確認(Green)
  • リファクタリング(Refactor)

Phase 4: 検証・証跡

  • backend-testingスキルでテスト実行・カバレッジ収集
  • artifact-proofスキルで証跡を収集
  • テスト結果ログを.artifacts/<feature>/test-results.txtに保存
  • カバレッジレポートを.artifacts/<feature>/coverage/に保存
  • 検証結果をユーザーに報告

Test Framework Selection

Language Framework HTTP Client DB
Node.js/TS vitest / jest supertest prisma / drizzle / knex
Go go test net/http/httptest database/sql / sqlx / gorm
Python pytest httpx / TestClient sqlalchemy / asyncpg
Rust cargo test reqwest / framework utils sqlx / diesel

Read the full file on GitHub · 243 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. 2d ago First seen · 243 lines · 82 tokens per session scan A bfef80190fa4

Subscribe to this mod's changes

backend-impl is an agent published in the GitHub repository kazuph/yunomi (21 stars, last pushed 5d ago), licensed MIT. It adds 82 tokens to every session and 2,851 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.