DYAI2025

Contract Sync — Testing skill for Claude Code

Testing community

Pull latest FuFirE OpenAPI spec, update local copy, run contract tests, report drift.

How to install Contract Sync

Installs to ~/.claude/commands/dyai2025-astro-noctum-contract-sync.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/DYAI2025/Astro-Noctum/HEAD/.claude/commands/contract-sync.md -o ~/.claude/commands/dyai2025-astro-noctum-contract-sync.md

Restart Claude Code, or start a new session, for it to be picked up.

What Contract Sync does


description: Pull latest FuFirE OpenAPI spec, update local copy, run contract tests, report drift allowed-tools: Bash, Read, Write, Grep

Context

Astro-Noctum consumes FuFirE (BAFE) API endpoints. A copy of FuFirE's OpenAPI 3.1.0 spec is stored at `spec/fufire-openapi.json`. Contract tests in `src/__tests__/fufire-contract.test.ts` validate that our Zod schemas are compatible with FuFirE's spec.

Your Task

Sync the OpenAPI spec from FuFirE and run contract tests to detect schema d

Alternatives in Testing

  • Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★
  • Loki Spec Status — Check whether the spec has drifted from its lock using Loki's living-spec drift detection, and summarize the r 1.1k ★
  • API Spec — Generate Zalando-compliant OpenAPI 3.1 specs (one per bounded context) and publish to SmartBear SwaggerHub 172 ★

Full documentation available on GitHub

View Source Repository