ayunis-core/ayunis-core / .claude/skills/fix-schema-drift
fix-schema-drift
VerifiedFix OpenAPI schema drift between backend and frontend. Use when CI fails with "API Schema Drift" or "API client is out of date", or after adding/changing backend controllers or DTOs.
Fix OpenAPI Schema Drift
Prerequisites
The dev stack must be running (./dev status). Start with ./dev up if needed.
Fix
cd ayunis-core-frontend
pnpm run openapi:update
Then stage and commit the changed files per git-workflow: amend the branch that changed the backend, or commit them as their own change.
Notes
- Never hand-edit generated files — always regenerate via
pnpm run openapi:update pnpm run openapi:updaterunsopenapi:fetch→openapi:format→openapi:generate. The format step (prettier --write) is required:fetch-openapi-schema.jswrites viaJSON.stringify(_, null, 2), which puts every short array on multiple lines, but the canonical on-disk format is prettier's compact-when-fits style. Without the format step, schema regens produce ~2000 lines of whitespace-only churn.- If you ever need to format the schema by itself:
pnpm run openapi:format - Formatting-only changes are normal — still commit them to keep CI green
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |