Communitygithub.com

APIアーキテクト

REST、GraphQL、gRPCアーキテクチャに特化したエキスパートAPIデザイナー。API設計、REST API、GraphQLスキーマ、gRPCサービス、OpenAPI、Swagger、APIバージョニング、エンドポイント設計、レート制限、OAuthフローに対応。

APIアーキテクト とは?

このスキルは、REST、GraphQL、gRPC、WebSocketの各アーキテクチャに精通したAIエージェントを提供し、API設計のベストプラクティスに従った高品質なAPIコントラクトの作成を支援します。APIファースト開発アプローチを推進し、OpenAPI仕様、GraphQL SDL、Protocol Buffersなどの仕様書の作成から、バリデーション、SDK生成、Postmanコレクションの出力までをカバーします。アンチパターン(動詞ベースのURL、一貫性のないレスポンスエンベロープ、バージョニングなしの破壊的変更、N+1問題、過剰フェッチ、ページネーション欠如、冪等性キーの欠如、内部エラーのリーク、CORS設定漏れ、レート制限の欠如)を積極的に検出・修正し、堅牢でスケーラブルなAPI設計を実現します。Claude Code、Coder、CodexなどのAIエージェントプラットフォームで動作し、`./references/` ディレクトリに完全な動作サンプルを提供します。

対応~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/api-architect

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

APIアーキテクト は何をしますか?

REST、GraphQL、gRPC、WebSocketアーキテクチャに特化したエキスパートAPIデザイナー。

アクティベーショントリガー

アクティブにする条件: 「API設計」「REST API」「GraphQLスキーマ」「gRPCサービス」「OpenAPI」「Swagger」「APIバージョニング」「エンドポイント設計」「レート制限」「OAuthフロー」「APIゲートウェイ」

対象外: データベーススキーマ → data-pipeline-engineer | フロントエンド消費 → web-design-expert | デプロイメント → devops-automator

クイックスタート

  1. 最初にAPIコントラクトを定義 (APIファースト設計)
  2. パラダイムを選択: CRUDにはREST、柔軟なクエリにはGraphQL、内部サービスにはgRPC
  3. 仕様を作成: RESTにはOpenAPI、GraphQLにはSDL、gRPCには.proto
  4. エラーレスポンスを設計 一貫性のある構造で
  5. 初回リリース前にバージョニングを計画

コア機能

ドメインテクノロジー
RESTOpenAPI 3.1、HATEOAS、ページネーション
GraphQLSDL、Relay、DataLoader、Federation
gRPCProtocol Buffers、ストリーミングパターン
セキュリティOAuth 2.0、JWT、APIキー、RBAC
DXSwagger UI、SDK生成、サンドボックス

アーキテクチャパターン

APIファースト開発

設計コントラクト → スタブ生成 → 実装 → 仕様に基づくテスト

レスポンスエンベロープ

success: { data: <リソース>, meta: { page, total } }
error: { error: { code, message, details: [{ field, issue }] } }

バージョニングオプション

  • URL: /v1/users (最も明示的)
  • ヘッダー: Accept: application/vnd.api+json;version=1
  • クエリ: /users?version=1

リファレンスファイル

./references/ 内の完全な動作例:

ファイル説明行数
openapi-spec.yaml完全なOpenAPI 3.1仕様162
graphql-schema.graphqlRelay接続を使用したGraphQL111
grpc-service.proto全ストリーミングのProtocol Buffer95
rate-limiting.yaml階層ベースのレート制限設定85
api-security.yaml認証、CORS、セキュリティヘッダー130

アンチパターン (避けるべきもの)

1. 動詞ベースのURL

症状: /getUsers、/createOrder、/deleteProduct 修正: 名詞を使用 (/users、/orders)、HTTPメソッドでアクションを表現

2. 一貫性のないレスポンスエンベロープ

症状: ある時は {data: [...]}、別の時は生の配列 修正: 常に一貫したエンベロープ構造を使用

3. バージョニングなしの破壊的変更

症状: フィールドの削除、型の変更を警告なしに行う 修正: セマンティックバージョニング、非推奨ヘッダー、猶予期間

4. GraphQLのN+1問題

症状: リスト内の各アイテムに対してリゾルバがデータベースにクエリを実行 修正: バッチ処理のためのDataLoaderパターン、大きなペイロードには@defer

5. RESTエンドポイントの過剰フェッチ

症状: クライアントが3つしか必要としないのに /users が50個のフィールドを返す 修正: スパースフィールドセット (?fields=id,name,email) またはGraphQL

6. ページネーションの欠如

症状: リストエンドポイントがすべてのレコードを返す 修正: デフォルト制限、カーソルベースのページネーション、hasMore インジケーター

7. 冪等性キーの欠如

症状: 重複したPOSTリクエストが重複リソースを作成 修正: Idempotency-Key ヘッダーを受け入れ、キャッシュされたレスポンスを返す

8. 内部エラーのリーク

症状: スタックトレース、SQLエラーが500レスポンスで露出 修正: 本番環境では汎用エラーメッセージ、デバッグ用にリクエストID

9. CORS設定の欠如

症状: CORSエラーでブラウザクライアントがブロックされる 修正: 許可するオリジン、メソッド、ヘッダーを明示的に設定

10. レート制限の欠如

症状: APIが悪用に対して脆弱、使用状況の可視性がない 修正: 階層ごとに制限を実装、X-RateLimit-* ヘッダーを返す

バリデーションスクリプト

./scripts/validate-api-spec.sh を実行して以下をチェック:

  • OpenAPI仕様のバージョン、セキュリティスキーム、operationId
  • GraphQLスキーマのQuery型、ページネーション、エラーハンドリング
  • Protocol Buffersの構文、パッケージ、フィールド番号
  • ハードコードされたURL、バージョニング欠如などの一般的な問題

品質チェックリスト

[ ] すべてのエンドポイントが動詞ではなく名詞を使用している
[ ] 一貫したレスポンスエンベロープ構造
[ ] エラーレスポンスにコードとアクション可能なメッセージが含まれている
[ ] すべてのリストエンドポイントにページネーションが実装されている
[ ] 認証/認可が文書化されている
[ ] レート制限ヘッダーが定義されている
[ ] バージョニング戦略が文書化されている
[ ] 既知のオリジンに対してCORSが設定されている
[ ] 変更操作に冪等性キーが使用されている
[ ] OpenAPI仕様がエラーなく検証される
[ ] SDK生成がテストされている
[ ] すべてのリクエスト/レスポンスタイプの例が存在する

出力成果物

  1. OpenAPI仕様 - 完全なAPIコントラクト
  2. GraphQLスキーマ - 接続を含む型定義
  3. Protocol Buffers - gRPCサービス定義
  4. APIドキュメント - 開発者ガイド
  5. SDK例 - クライアントコードサンプル
  6. Postmanコレクション - APIテストスイート

利用可能なツール

  • Read、Write、Edit - 仕様のファイル操作
  • Bash(npm:*, npx:*) - OpenAPIリンティング、コード生成
  • Bash(openapi-generator:*) - SDK生成

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

関連スキル