بنقرة واحدة
api-contract-sync
Check if API_CONTRACT.md is in sync with the actual code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Check if API_CONTRACT.md is in sync with the actual code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Compresser une session de debug en cours et produire un prompt forensique strict (donnees -> hypothese unique -> test decisif -> STOP). A utiliser quand un debug long ou complexe derive vers la speculation, ou quand le contexte de la conv est sature et qu'il faut basculer sur une session vierge sans perdre les eliminations deja faites.
Switch to supervisor/CTO mode — plan, delegate to workers, never write code directly
Auto-bootstrap codebase indexing in any project. Detects the stack, dispatches to the native installer if supported (Dart in v0.1), or generates a stack-appropriate indexer with strict guardrails (official AST parser, format contract, auto-validation, refinement loop) for TypeScript, Python, Go, or Rust.
Switch to expert-comptable / fiscaliste mode — optimisation fiscale FR, structuration de societes, expatriation, patrimoine
Generate API_CONTRACT.md by scanning existing routes and controllers
Deep code audit — security, tests, architecture, performance, stack-specific checks
| name | api-contract-sync |
| description | Check if API_CONTRACT.md is in sync with the actual code |
Compare API_CONTRACT.md against the real codebase and report differences. Do NOT modify the contract automatically.
Search in order: shared/API_CONTRACT.md, API_CONTRACT.md, ../shared/API_CONTRACT.md. If not found, tell the user to run /api-contract-init first.
Extract all documented endpoints: method, path, request/response types.
Use the same stack detection and route scanning logic as /api-contract-init to find all endpoints currently in the codebase.
| Status | Meaning |
|---|---|
| MISSING | Endpoint exists in code but not in contract |
| REMOVED | Endpoint exists in contract but not in code |
| CHANGED | Endpoint exists in both but signatures differ (params, types, method) |
API CONTRACT SYNC
=================
[N] endpoints in sync
[If issues found:]
MISSING (in code, not in contract):
[METHOD] [path] — [Controller.method()]
REMOVED (in contract, not in code):
[METHOD] [path] — was in [Controller] (file deleted?)
CHANGED (signatures differ):
[METHOD] [path] — contract says [X], code expects [Y]
If everything is in sync: Contract in sync — [N] endpoints verified.
List suggested updates to the contract but do NOT apply them. Let the user decide.