api-route-consistency-pattern

Community

Prevent API contract drift across gateway and tools

Authorsaintgo7
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents API route contract drift where changes to the gateway routes accidentally leave the CLI/admin-cli commands, manuals, and tests out of sync.

Core Features & Use Cases

  • 4-way consistency enforcement: Keeps FastAPI routes, CLI/admin-cli invocations, manual documentation, and test coverage aligned as one contract.
  • Fail-fast curl and smoke testing: Detects silent 4xx failures (e.g., curl returning empty results) and validates admin commands against the real gateway on every push.
  • Automated route extraction + diff: Extracts route sets from FastAPI code, CLI scripts, and manual markdown, then fails CI when mismatched.

Quick Start

Use the Skill to run a route consistency check and an admin smoke test after gateway or admin-cli changes, then fix any mismatches before merging.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: api-route-consistency-pattern
Download link: https://github.com/saintgo7/claude-skills/archive/main.zip#api-route-consistency-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.