Agent skill
context-api-contracts
Frontend-backend API contracts, routes, clients, and type definitions. Handles API endpoint definitions, request/response types, route configuration, and cross-stack integration. Use when working with API endpoints, request/response types, route definitions, or frontend-backend integration, or when user mentions API design, adding endpoints, type mismatches, API contracts, REST endpoints, client integration, "404 Not Found" errors, "Type error" in API calls, or route configuration issues.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/context-api-contracts
SKILL.md
API Contracts
Navigate frontend-backend API integration, routes, clients, and data flow.
Overview
API contracts define frontend ↔ backend communication. Critical for cross-stack changes.
Backend API Routes
backend/api/*.py- API v1 endpointsbackend/api/v2/*.py- API v2 endpointsbackend/api/analytics_api.pybackend/api/brokerage_connections.pybackend/api/accounts.pybackend/api/securities.py
Frontend API Clients
frontend/src/services/analyticsApi.tsfrontend/src/services/researchApi.tsfrontend/src/lib/apiClient.ts- Base API client
TypeScript Contracts
supabase/types/database.types.ts- Database typesfrontend/src/types/**/*.ts- Frontend types
Backend Middleware
backend/middleware/*.py- Auth, CORS, etc.
Tests
backend/tests/integration/- API integration testsfrontend/e2e/- E2E API tests
Documentation
- Internal:
docs/backend/API_CONTRACTS.md(create if needed)
Related Areas
- See
context-clerk-integrationfor auth middleware - See
context-testing-infrastructurefor API test patterns
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?