Skip to content
Back to skills

Context Api Contracts

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmenttypescripttestingapidatabasefrontendbackenddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill context-api-contracts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Api Contracts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Api Contracts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-context-api-contracts/badge)](https://www.skillsdirectory.com/skills/majiayu000-context-api-contracts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-api-contracts
description: |
  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.
tags: [api, contracts, integration, cross-stack]
---

# 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 endpoints
- `backend/api/v2/*.py` - API v2 endpoints
- `backend/api/analytics_api.py`
- `backend/api/brokerage_connections.py`
- `backend/api/accounts.py`
- `backend/api/securities.py`

## Frontend API Clients

- `frontend/src/services/analyticsApi.ts`
- `frontend/src/services/researchApi.ts`
- `frontend/src/lib/apiClient.ts` - Base API client

## TypeScript Contracts

- `supabase/types/database.types.ts` - Database types
- `frontend/src/types/**/*.ts` - Frontend types

## Backend Middleware

- `backend/middleware/*.py` - Auth, CORS, etc.

## Tests

- `backend/tests/integration/` - API integration tests
- `frontend/e2e/` - E2E API tests

## Documentation

- **Internal**: `docs/backend/API_CONTRACTS.md` (create if needed)

## Related Areas

- See `context-clerk-integration` for auth middleware
- See `context-testing-infrastructure` for API test patterns

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.