sop-api-development
バックエンド、データベース、テスト、ドキュメント、DevOpsエージェントを連携させ、TDDアプローチで2週間以内にREST API開発ワークフローを完了させるSkill。
📜 元の英語説明(参考)
Complete REST API development workflow coordinating backend, database, testing, documentation, and DevOps agents. 2-week timeline with TDD approach.
🇯🇵 日本人クリエイター向け解説
バックエンド、データベース、テスト、ドキュメント、DevOpsエージェントを連携させ、TDDアプローチで2週間以内にREST API開発ワークフローを完了させるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o sop-api-development.zip https://jpskill.com/download/18775.zip && unzip -o sop-api-development.zip && rm sop-api-development.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18775.zip -OutFile "$d\sop-api-development.zip"; Expand-Archive "$d\sop-api-development.zip" -DestinationPath $d -Force; ri "$d\sop-api-development.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
sop-api-development.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
sop-api-developmentフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] sop-api-development
SOP: REST API 開発
テスト駆動開発とマルチエージェント連携を用いた完全な REST API 開発。
タイムライン: 2 週間
フェーズ:
- 計画 & 設計 (1-2 日目)
- 開発 (3-8 日目)
- テスト & ドキュメント作成 (9-11 日目)
- デプロイ (12-14 日目)
フェーズ 1: 計画 & 設計 (1-2 日目)
1 日目: 要件 & アーキテクチャ
シーケンシャルなワークフロー:
// ステップ 1: 要件収集
await Task("Product Manager", `
API 要件の定義:
- 必要なすべてのエンドポイントをリストアップ
- データモデルとリレーションシップを定義
- 認証/認可の指定
- レート制限とクォータの定義
- サードパーティ統合の特定
要件の保存先: api-dev/rest-api-v2/requirements
`, "planner");
// ステップ 2: API 設計
await Task("System Architect", `
要件の使用元: api-dev/rest-api-v2/requirements
設計:
- RESTful API 構造 (リソース、HTTP メソッド)
- URL パターンとバージョニング戦略
- リクエスト/レスポンス形式 (JSON スキーマ)
- エラー処理パターン
- API セキュリティアーキテクチャ
OpenAPI 3.0 仕様の生成
保存先: api-dev/rest-api-v2/openapi-spec
`, "system-architect");
// ステップ 3: データベース設計
await Task("Database Architect", `
API 仕様の使用元: api-dev/rest-api-v2/openapi-spec
データベースの設計:
- スキーマ設計 (テーブル、カラム、型)
- リレーションシップと外部キー
- パフォーマンスのためのインデックス
- 移行戦略
- バックアップとリカバリ計画
SQL スキーマの生成
保存先: api-dev/rest-api-v2/db-schema
`, "code-analyzer");
2 日目: テスト計画
// ステップ 4: テスト戦略
await Task("QA Engineer", `
使用元:
- API 仕様: api-dev/rest-api-v2/openapi-spec
- DB スキーマ: api-dev/rest-api-v2/db-schema
テスト計画の作成:
- ユニットテスト戦略 (エンドポイントごと)
- 統合テストシナリオ
- E2E テストワークフロー
- パフォーマンステスト目標
- セキュリティテストケース
テスト計画の保存先: api-dev/rest-api-v2/test-plan
`, "tester");
// ステップ 5: DevOps 計画
await Task("DevOps Engineer", `
インフラストラクチャの計画:
- 環境設定 (dev, staging, prod)
- CI/CD パイプライン設計
- 監視とロギング戦略
- デプロイ戦略 (blue-green)
- ロールバック手順
DevOps 計画の保存先: api-dev/rest-api-v2/devops-plan
`, "cicd-engineer");
成果物:
- API 要件ドキュメント
- OpenAPI 3.0 仕様
- データベーススキーマ
- テスト計画
- DevOps 計画
フェーズ 2: 開発 (3-8 日目)
3-4 日目: セットアップ & 基盤
並列ワークフロー:
// 開発環境の初期化
await mcp__ruv-swarm__swarm_init({
topology: 'hierarchical',
maxAgents: 5,
strategy: 'specialized'
});
// 並列セットアップ
const [projectSetup, dbSetup, ciSetup] = await Promise.all([
Task("Backend Developer", `
プロジェクトのセットアップ:
- Node.js/Express プロジェクトの初期化
- TypeScript の設定
- ESLint + Prettier の設定
- 環境変数の設定
- 依存関係のインストール (express, prisma, jest, etc.)
プロジェクト構造の保存先: api-dev/rest-api-v2/project-setup
`, "backend-dev"),
Task("Database Specialist", `
データベースのセットアップ:
- PostgreSQL データベースの作成
- 初期マイグレーションの実行
- テストデータのシード
- コネクションプーリングの設定
- バックアップスクリプトの設定
DB 認証情報 (暗号化) の保存先: api-dev/rest-api-v2/db-config
`, "code-analyzer"),
Task("DevOps Engineer", `
CI/CD のセットアップ:
- GitHub Actions ワークフローの設定
- Docker コンテナの設定
- 環境シークレットの設定
- コード品質チェックの設定
- 自動テストの設定
CI 設定の保存先: api-dev/rest-api-v2/ci-config
`, "cicd-engineer")
]);
5-6 日目: コア開発 (TDD)
エンドポイントごとにシーケンシャル (例: ユーザー認証):
// 各エンドポイントに対して、TDD サイクルに従う:
// 1. 最初にテストを書く
await Task("Test Engineer", `
次のテストの作成: POST /api/auth/register
ユニットテスト:
- メール/パスワードによる有効な登録
- 重複メールのリジェクト
- パスワード強度の検証
- メール形式の検証
統合テスト:
- データベースレコードの作成
- メール検証トリガー
- レスポンス形式の検証
テストの保存先: api-dev/rest-api-v2/tests/auth/register.test.ts
`, "tester");
// 2. テストに合格するように実装する
await Task("Backend Developer", `
次の実装: POST /api/auth/register
次のテストに従う: api-dev/rest-api-v2/tests/auth/register.test.ts
実装:
- リクエストの検証 (メール、パスワード)
- パスワードのハッシュ化 (bcrypt)
- データベースでのユーザー作成
- 検証メールの送信
- JWT トークンの返却
すべてのテストに合格する必要がある
実装の保存先: api-dev/rest-api-v2/src/auth/register.ts
`, "backend-dev");
// 3. リファクタリング & 最適化
await Task("Code Reviewer", `
次の実装のレビュー: api-dev/rest-api-v2/src/auth/register.ts
次のチェック:
- コード品質とスタイル
- セキュリティのベストプラクティス
- パフォーマンスの最適化
- エラー処理の完全性
改善点の提案
レビューの保存先: api-dev/rest-api-v2/reviews/auth/register-review.md
`, "reviewer");
// すべてのエンドポイント (ログイン、リフレッシュ、ログアウトなど) に対して繰り返す
7-8 日目: 高度な機能
並列開発:
const [auth, crud, search, webhook] = await Promise.all([
Task("Auth Specialist", `
認証ミドルウェアの実装:
- JWT 検証
- トークンリフレッシュロジック
- ロールベースアクセス制御 (RBAC)
- API キー認証
保存先: api-dev/rest-api-v2/src/middleware/auth.ts
`, "backend-dev"),
Task("CRUD Developer", `
すべてのリソースに対する CRUD 操作の実装:
- GET /api/resources (ページネーション、フィルタリング、ソート付きのリスト)
- GET /api/resources/:id (単一リソース)
- POST /api/resources (作成)
- PUT /api/resources/:id (更新)
- DELETE /api/resources/:id (削除)
保存先: api-dev/rest-api-v2/src/resources/
`, "backend-dev"),
Task("Search Developer", `
検索機能の実装:
- リソース全体のフルテキスト検索
- 高度なフィルタリング (演算子: eq, gt, lt, contains)
- 集計によるファセット検索
- 検索結果のランキング
保存先: api-dev/rest-api-v2/src/search/
`, "backend-dev"),
Task("Webhook Developer", `
Webhook システムの実装:
- Webhook 登録エンドポイント
- イベントトリガー
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
SOP: REST API Development
Complete REST API development using Test-Driven Development and multi-agent coordination.
Timeline: 2 Weeks
Phases:
- Planning & Design (Days 1-2)
- Development (Days 3-8)
- Testing & Documentation (Days 9-11)
- Deployment (Days 12-14)
Phase 1: Planning & Design (Days 1-2)
Day 1: Requirements & Architecture
Sequential Workflow:
// Step 1: Gather Requirements
await Task("Product Manager", `
Define API requirements:
- List all endpoints needed
- Define data models and relationships
- Specify authentication/authorization
- Define rate limiting and quotas
- Identify third-party integrations
Store requirements: api-dev/rest-api-v2/requirements
`, "planner");
// Step 2: API Design
await Task("System Architect", `
Using requirements: api-dev/rest-api-v2/requirements
Design:
- RESTful API structure (resources, HTTP methods)
- URL patterns and versioning strategy
- Request/response formats (JSON schemas)
- Error handling patterns
- API security architecture
Generate OpenAPI 3.0 specification
Store: api-dev/rest-api-v2/openapi-spec
`, "system-architect");
// Step 3: Database Design
await Task("Database Architect", `
Using API spec: api-dev/rest-api-v2/openapi-spec
Design database:
- Schema design (tables, columns, types)
- Relationships and foreign keys
- Indexes for performance
- Migration strategy
- Backup and recovery plan
Generate SQL schema
Store: api-dev/rest-api-v2/db-schema
`, "code-analyzer");
Day 2: Test Planning
// Step 4: Test Strategy
await Task("QA Engineer", `
Using:
- API spec: api-dev/rest-api-v2/openapi-spec
- DB schema: api-dev/rest-api-v2/db-schema
Create test plan:
- Unit test strategy (per endpoint)
- Integration test scenarios
- E2E test workflows
- Performance test targets
- Security test cases
Store test plan: api-dev/rest-api-v2/test-plan
`, "tester");
// Step 5: DevOps Planning
await Task("DevOps Engineer", `
Plan infrastructure:
- Environment setup (dev, staging, prod)
- CI/CD pipeline design
- Monitoring and logging strategy
- Deployment strategy (blue-green)
- Rollback procedures
Store DevOps plan: api-dev/rest-api-v2/devops-plan
`, "cicd-engineer");
Deliverables:
- API requirements document
- OpenAPI 3.0 specification
- Database schema
- Test plan
- DevOps plan
Phase 2: Development (Days 3-8)
Day 3-4: Setup & Foundation
Parallel Workflow:
// Initialize development environment
await mcp__ruv-swarm__swarm_init({
topology: 'hierarchical',
maxAgents: 5,
strategy: 'specialized'
});
// Parallel setup
const [projectSetup, dbSetup, ciSetup] = await Promise.all([
Task("Backend Developer", `
Project setup:
- Initialize Node.js/Express project
- Configure TypeScript
- Set up ESLint + Prettier
- Configure environment variables
- Install dependencies (express, prisma, jest, etc.)
Store project structure: api-dev/rest-api-v2/project-setup
`, "backend-dev"),
Task("Database Specialist", `
Database setup:
- Create PostgreSQL database
- Run initial migrations
- Seed test data
- Configure connection pooling
- Set up backup scripts
Store DB credentials (encrypted): api-dev/rest-api-v2/db-config
`, "code-analyzer"),
Task("DevOps Engineer", `
CI/CD setup:
- Configure GitHub Actions workflow
- Set up Docker containers
- Configure environment secrets
- Set up code quality checks
- Configure automated testing
Store CI config: api-dev/rest-api-v2/ci-config
`, "cicd-engineer")
]);
Day 5-6: Core Development (TDD)
Sequential per Endpoint (Example: User Authentication):
// For each endpoint, follow TDD cycle:
// 1. Write Tests First
await Task("Test Engineer", `
Write tests for: POST /api/auth/register
Unit tests:
- Valid registration with email/password
- Duplicate email rejection
- Password strength validation
- Email format validation
Integration tests:
- Database record creation
- Email verification trigger
- Response format validation
Store tests: api-dev/rest-api-v2/tests/auth/register.test.ts
`, "tester");
// 2. Implement to Pass Tests
await Task("Backend Developer", `
Implement: POST /api/auth/register
Following tests at: api-dev/rest-api-v2/tests/auth/register.test.ts
Implementation:
- Request validation (email, password)
- Password hashing (bcrypt)
- User creation in database
- Send verification email
- Return JWT token
All tests must pass
Store implementation: api-dev/rest-api-v2/src/auth/register.ts
`, "backend-dev");
// 3. Refactor & Optimize
await Task("Code Reviewer", `
Review implementation: api-dev/rest-api-v2/src/auth/register.ts
Check:
- Code quality and style
- Security best practices
- Performance optimization
- Error handling completeness
Suggest improvements
Store review: api-dev/rest-api-v2/reviews/auth/register-review.md
`, "reviewer");
// Repeat for all endpoints (login, refresh, logout, etc.)
Day 7-8: Advanced Features
Parallel Development:
const [auth, crud, search, webhook] = await Promise.all([
Task("Auth Specialist", `
Implement authentication middleware:
- JWT verification
- Token refresh logic
- Role-based access control (RBAC)
- API key authentication
Store: api-dev/rest-api-v2/src/middleware/auth.ts
`, "backend-dev"),
Task("CRUD Developer", `
Implement CRUD operations for all resources:
- GET /api/resources (list with pagination, filtering, sorting)
- GET /api/resources/:id (single resource)
- POST /api/resources (create)
- PUT /api/resources/:id (update)
- DELETE /api/resources/:id (delete)
Store: api-dev/rest-api-v2/src/resources/
`, "backend-dev"),
Task("Search Developer", `
Implement search functionality:
- Full-text search across resources
- Advanced filtering (operators: eq, gt, lt, contains)
- Faceted search with aggregations
- Search result ranking
Store: api-dev/rest-api-v2/src/search/
`, "backend-dev"),
Task("Webhook Developer", `
Implement webhook system:
- Webhook registration endpoints
- Event triggering system
- Retry logic with exponential backoff
- Webhook signature verification
Store: api-dev/rest-api-v2/src/webhooks/
`, "backend-dev")
]);
Deliverables:
- Working API with all endpoints implemented
- All tests passing (unit + integration)
- Code reviewed and optimized
Phase 3: Testing & Documentation (Days 9-11)
Day 9: Comprehensive Testing
Parallel Testing:
const [e2eTests, perfTests, securityTests] = await Promise.all([
Task("E2E Test Engineer", `
End-to-end testing:
- Complete user workflows (register → login → CRUD → logout)
- Error scenarios (invalid input, unauthorized access)
- Edge cases (rate limiting, concurrent requests)
Run E2E test suite
Store results: api-dev/rest-api-v2/test-results/e2e
`, "tester"),
Task("Performance Tester", `
Performance testing:
- Load testing (1000 req/sec target)
- Stress testing (find breaking point)
- Endurance testing (24-hour sustained load)
- API response time < 200ms (p95)
Run benchmarks
Store metrics: api-dev/rest-api-v2/test-results/performance
`, "perf-analyzer"),
Task("Security Tester", `
Security testing:
- OWASP API Security Top 10 checks
- SQL injection testing
- XSS vulnerability testing
- Authentication/authorization bypass attempts
- Rate limiting validation
Run security scan
Store audit: api-dev/rest-api-v2/test-results/security
`, "security-manager")
]);
Day 10-11: Documentation
Parallel Documentation:
const [apiDocs, devDocs, runbook] = await Promise.all([
Task("API Documentation Writer", `
Create API documentation:
- OpenAPI/Swagger interactive docs
- Authentication guide
- Endpoint reference (all endpoints)
- Code examples (cURL, JavaScript, Python)
- Rate limiting and quotas
- Error codes and handling
Host Swagger UI
Store: api-dev/rest-api-v2/docs/api-reference
`, "api-docs"),
Task("Developer Documentation", `
Create developer guide:
- Getting started (setup, authentication)
- Tutorial (common workflows)
- Best practices
- SDKs and libraries
- Changelog and versioning
Store: api-dev/rest-api-v2/docs/developer-guide
`, "api-docs"),
Task("Operations Runbook", `
Create operational docs:
- Deployment procedures
- Monitoring and alerting setup
- Troubleshooting guide
- Performance tuning
- Backup and recovery procedures
- Incident response plan
Store: api-dev/rest-api-v2/docs/operations
`, "cicd-engineer")
]);
Deliverables:
- All tests passing (unit, integration, E2E, performance, security)
- Complete API documentation
- Developer guide
- Operations runbook
Phase 4: Deployment (Days 12-14)
Day 12: Pre-Production Validation
Sequential Workflow:
// Step 1: Final Validation
await Task("Production Validator", `
Pre-production checklist:
- All tests passing (100% of test suite)
- Code coverage > 90%
- Security audit passed
- Performance benchmarks met
- Documentation complete
- Monitoring configured
- Alerts configured
- Rollback plan ready
Generate go/no-go report
Store: api-dev/rest-api-v2/validation/final-check
`, "production-validator");
// Step 2: Staging Deployment
await Task("DevOps Engineer", `
Deploy to staging:
- Deploy API to staging environment
- Run smoke tests
- Validate monitoring and logging
- Test rollback procedure
Store staging deployment report: api-dev/rest-api-v2/deployment/staging
`, "cicd-engineer");
// Step 3: Staging Validation
await Task("QA Engineer", `
Validate staging environment:
- Run full test suite against staging
- Verify data persistence
- Check error handling
- Validate monitoring dashboards
Approve for production or identify issues
Store validation: api-dev/rest-api-v2/validation/staging
`, "tester");
Day 13: Production Deployment
// Step 4: Production Deployment (Blue-Green)
await Task("DevOps Engineer", `
Production deployment (blue-green):
- Deploy to green environment (alongside blue)
- Run smoke tests on green
- Switch traffic to green (gradual canary: 10% → 50% → 100%)
- Monitor error rates and performance
- Keep blue environment ready for rollback
Store production deployment: api-dev/rest-api-v2/deployment/production
`, "cicd-engineer");
// Step 5: Post-Deployment Validation
await Task("Production Monitor", `
Monitor production:
- Track API response times
- Monitor error rates
- Check resource utilization
- Validate data integrity
- Monitor user activity
Generate hourly reports for first 24 hours
Store: api-dev/rest-api-v2/monitoring/production
`, "performance-monitor");
Day 14: Post-Launch
// Step 6: Documentation Update
await Task("Documentation Specialist", `
Update all documentation:
- Add production API URLs
- Update authentication endpoints
- Add production monitoring dashboards
- Update support contact info
Publish final docs
Store: api-dev/rest-api-v2/docs/published
`, "api-docs");
// Step 7: Knowledge Transfer
await Task("Technical Writer", `
Create knowledge transfer materials:
- Developer onboarding guide
- Support team training
- Common issues and solutions
- Escalation procedures
Store: api-dev/rest-api-v2/knowledge-transfer
`, "api-docs");
Deliverables:
- Production API (live and stable)
- Complete documentation (published)
- Monitoring dashboards (active)
- Support team trained
Success Metrics
Technical Metrics
- Test Coverage: > 90%
- API Response Time: < 200ms (p95)
- Uptime: 99.9%+
- Error Rate: < 0.1%
- Code Quality Score: A rating
Performance Metrics
- Throughput: > 1000 req/sec
- Database Query Time: < 50ms (p95)
- Memory Usage: < 512MB
- CPU Usage: < 70%
Quality Metrics
- Security Audit: Passed
- Documentation Coverage: 100%
- API Compliance: OpenAPI 3.0 valid
- Code Review Approval: 100%
Agent Coordination Summary
Total Agents Used: 8 Execution Pattern: Sequential + Parallel (TDD approach) Timeline: 2 weeks (14 days) Memory Namespaces: api-dev/rest-api-v2/*
Key Agents:
- planner - Requirements gathering
- system-architect - API design
- code-analyzer - Database architecture
- tester - Test planning and execution
- cicd-engineer - DevOps and deployment
- backend-dev - API implementation
- reviewer - Code review
- perf-analyzer - Performance testing
- security-manager - Security testing
- production-validator - Final validation
- performance-monitor - Production monitoring
- api-docs - Documentation
Usage
// Invoke this SOP skill
Skill("sop-api-development")
// Or execute with specific parameters
Task("API Development Orchestrator", `
Execute REST API development SOP for: User Management API
Requirements: {requirements}
Timeline: 2 weeks
`, "planner")
Status: Production-ready SOP Complexity: Medium (8-12 agents, 2 weeks) Pattern: Test-Driven Development with parallel optimization