WE

web-api-implementer

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.zip

Installs 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.
124 charsno explicit “when” trigger
Advanced

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

You give it
Approved plan from `code-planner` and failing test files from `@web-api-tester`
You get back
Implemented API code that passes all tests, with a summary report of changes

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-implementTypeScript / Node.js コードを実装する際
/py-implementPython コードを実装する際

🔧 使用ツール

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.

SkillInstallsUpdatedSafetyDifficulty
web-api-implementer (this skill)03moNo flagsAdvanced
telegram-bot-builder1066moReviewIntermediate
stripe-integration482moNo flagsAdvanced
hubspot-integration56moNo flagsAdvanced

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.

106130

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.

48165

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.

540

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.

1014

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".

321

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.

32

Search skills

Search the agent skills registry