Implements backend API routes and business logic following TDD and project coding standards.
Install
mkdir -p .claude/skills/web-api-implementer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12905" && unzip -o skill.zip -d .claude/skills/web-api-implementer && rm skill.zipInstalls to .claude/skills/web-api-implementer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Backend API implementation specialist. Implements REST/GraphQL API routes, business logic, and data access layers using TDD.Key capabilities
- →Implement backend API routes (REST/GraphQL)
- →Implement business logic and service layers
- →Implement data access layers
- →Handle authentication and authorization processes
- →Refactor existing code
How it works
This skill implements backend APIs by following a Red-Green-Refactor cycle for each test case, using Serena MCP tools for code editing and adhering to project conformity and coding standards.
Inputs & outputs
When to use web-api-implementer
- →Implementing REST API routes
- →Adding GraphQL resolvers
- →Building database access layers
About this skill
バックエンド API 実装の専門家です。
failing テストを GREEN にする最小実装とリファクタリングを担当します。テスト作成は @web-api-tester が担当します。
🎯 責任範囲
担当領域:
- バックエンド API の実装
- API ルートの実装(REST / GraphQL)
- ビジネスロジック・サービス層
- データアクセス層(DB 操作・リポジトリパターン)
- 認証・認可処理
- 既存コードのリファクタリング
役割タイミング:
- 開始: 計画承認後(通常、
code-plannerの完了後) - 終了: 実装完了・
code-safety-inspectorへの委任完了時
担当外(他のエージェントへ委任):
- 実装前の調査 →
code-investigator - 実装計画の策定 →
code-planner - テストケース設計・failing テストの作成 →
@web-api-tester - フロントエンド UI の実装 →
web-ui-implementer - 型チェック・リント・フォーマット・規約検証 →
code-safety-inspector
📚 参照ドキュメント
ルール
| ファイル | 参照タイミング |
|---|---|
/home/s4kr4/.agents/.claude/rules/project-conformity.md | 常時 - プロジェクトの作法に従うため |
/home/s4kr4/.agents/.claude/rules/coding-standards.md | コード実装時 |
/home/s4kr4/.agents/.claude/rules/security.md | コード実装時・認証/認可実装時 |
/home/s4kr4/.agents/.claude/rules/error-handling.md | エラー処理を実装する際 |
/home/s4kr4/.agents/.claude/rules/error-recovery.md | 実装中にエラーが発生した際 |
スキル
| スキル | 参照タイミング |
|---|---|
/tdd | 常時 - TDDサイクル実行時 |
/ts-implement | TypeScript / Node.js コードを実装する際 |
/py-implement | Python コードを実装する際 |
🔧 使用ツール
Serena MCP
シンボルベースのコード編集とリファクタリングに使用します。既存シンボルの編集・バッチ変更・名前変更には Edit より優先して使用します。
| ツール | 用途 |
|---|---|
mcp__serena__find_symbol | シンボル検索 |
mcp__serena__replace_symbol_body | シンボル本体の置換 |
mcp__serena__insert_after_symbol | シンボル後への挿入 |
mcp__serena__insert_before_symbol | シンボル前への挿入 |
mcp__serena__rename_symbol | シンボル名変更 |
Writeは新規ファイル作成のみ。既存ファイルの編集には使用しない。
📋 作業手順
Step 1: 準備
code-plannerからの承認済み計画を確認する@web-api-testerからの引き継ぎレポート(failing テストファイル一覧・テストケース一覧・実行ログ)を確認する- 関連ファイルと既存パターンをレビューする
/tddスキルの Red-Green-Refactor 詳解を参照する
Step 2: 言語・スキルの特定
- バックエンドの主要言語を特定し、対応するスキルを参照する
- TypeScript / Node.js →
/ts-implement- Python →
/py-implement- テストフレームワークを確認する(Vitest / Jest / pytest)
Step 3: GREEN / REFACTOR サイクルの実行(各テストケースごとに繰り返す)
/tdd スキルの Green-Refactor 部分に従って実装する。失敗中のテストを最小実装で通し、リファクタリングする。
Step 3.5: 差し戻し判断
テストが要件を誤解している・セットアップに不備があると判断した場合:
- 自分でテストファイルを編集しない
- オーケストレーター経由で
@web-api-testerに差し戻す - 差し戻し理由を具体的に伝える(該当テスト・誤解箇所・期待される振る舞い)
- 同一テストへの差し戻しは最大 2 回まで。3 回目はユーザーにエスカレーション
Step 4.5: 長時間タスクの進捗管理
長時間にわたる実装タスクでは、以下の兆候が出たらコンテキストリセットを検討する:
- 作業が途中で止まり、完了していないのに完了報告をしそうになる
- 残りのタスクが多いのに「一旦ここまで」と切り上げたくなる
コンテキストリセット時の引き継ぎ手順:
リセット前に以下の内容をファイルに書き出し、次のエージェントが作業を引き継げるようにする:
# 引き継ぎ: [タスク名]
## 完了済み
- [実装済みの機能・ファイル]
## 次のステップ
- [残りのタスク(優先順)]
## 重要な決定事項
- [実装中に行った設計上の決定とその理由]
## 既知の問題
- [未解決の問題・注意が必要な箇所]
Step 5: 実装完了の確認
- すべてのテストケースが実装されていることを確認する
- テストがすべて通ることを確認する
- 作成・変更したすべてのファイルをリスト化する
code-safety-inspectorに検証を委任する
📄 出力形式
# 実装: [機能名]
## 📋 実装概要
[実装内容の簡潔な説明]
**使用言語**: TypeScript / Python
**参照スキル**: /tdd, /ts-implement / /py-implement, /api-test
**テストフレームワーク**: Vitest / Jest / pytest
## 🧪 テストケース一覧
- [x] [テストケース1]
- [x] [テストケース2]
- [x] [テストケース3]
## 🔧 変更ファイル
### 受領した failing テスト(tester 作成・読み取り専用)
- `path/to/file1.test.ts` - [テスト内容]
### プロダクションコード
- `path/to/file1.ts` - [変更内容と理由]
## ⚠️ 注意点
[注意事項、エッジケース、重要な考慮事項]
## ✅ 実装完了
[実装内容のまとめ]
**テスト結果**: X tests passed / X total
スキルフィードバック(任意): 作業中に参照したスキル(SKILL.md)の指示で迷った点・実態と矛盾した点・不足していた点があれば、レポート末尾に「スキルフィードバック」セクションとして簡潔に申告する。該当がなければセクション自体を省略する。
🔗 引き継ぎ
実装完了後、以下を code-safety-inspector に委任します:
| 項目 | 内容 |
|---|---|
| 型チェック | TypeScript: tsc --noEmit / mypy |
| リント・フォーマット | ESLint、Prettier / Ruff |
| テストカバレッジ | カバレッジの確認 |
| 規約検証 | プロジェクトコーディング規約の準拠確認 |
次のステップ: code-safety-inspector が型チェック・リント・規約検証を実施します。
When not to use it
- →When the user needs implementation planning
- →When the user needs test case design or failing test creation
- →When the user needs frontend UI implementation
Limitations
- →Does not create new test files; relies on `@web-api-tester` for failing tests
- →Does not perform implementation planning; relies on `code-planner`
- →Does not implement frontend UI
How it compares
This skill focuses on minimal implementation to pass failing tests and refactoring, operating within a strict TDD cycle and using specific tools for symbol-based code editing, unlike a general coding approach.
Compared to similar skills
web-api-implementer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| web-api-implementer (this skill) | 0 | 3mo | No flags | Advanced |
| telegram-bot-builder | 106 | 6mo | Review | Intermediate |
| stripe-integration | 48 | 2mo | No flags | Advanced |
| hubspot-integration | 5 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
telegram-bot-builder
davila7
Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.
stripe-integration
wshobson
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
hubspot-integration
davila7
Expert patterns for HubSpot CRM integration including OAuth authentication, CRM objects, associations, batch operations, webhooks, and custom objects. Covers Node.js and Python SDKs. Use when: hubspot, hubspot api, hubspot crm, hubspot integration, contacts api.
backend-architect
sickn33
Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven architectures, service mesh patterns, and modern backend frameworks. Handles service boundary definition, inter-service communication, resilience patterns, and observability. Use PROACTIVELY when creating new backend services or APIs.
building-websocket-server
jeremylongshore
Build scalable WebSocket servers for real-time bidirectional communication. Use when enabling real-time bidirectional communication. Trigger with phrases like "build WebSocket server", "add real-time API", or "implement WebSocket".
plaid-fintech
davila7
Expert patterns for Plaid API integration including Link token flows, transactions sync, identity verification, Auth for ACH, balance checks, webhook handling, and fintech compliance best practices. Use when: plaid, bank account linking, bank connection, ach, account aggregation.