Agent skill
generate-api-client
Orval APIクライアント生成スキル(OpenAPI仕様書から型安全なAPIクライアントを自動生成)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/generate-api-client
SKILL.md
Generate API Client Skill - Orval APIクライアント生成スキル
役割
OpenAPI仕様書(api-docs.yaml)から型安全なAPIクライアントを自動生成するスキルです。
実行フロー
Phase 1: 仕様書確認
# OpenAPI仕様書の存在確認
ls backend/src/main/resources/static/api-docs.yaml
Phase 2: Orval実行
cd frontend
# Orvalで型安全なAPIクライアント生成
pnpm run generate:api
Phase 3: 生成確認
# 生成されたファイル確認
ls frontend/src/lib/api/generated/
Phase 4: 型チェック
# TypeScript型チェック
npx tsc --noEmit
Phase 5: 完了報告
## Generate API Client 完了報告
### 生成結果
- ✅ APIクライアント生成完了
- ✅ 型定義生成完了
- ✅ TypeScript型チェック成功
### 生成ファイル
- frontend/src/lib/api/generated/api.ts
- frontend/src/lib/api/generated/model.ts
### 次のステップ
生成されたAPIクライアントをimportして使用できます。
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?