chrisbenincasa

Regen API — Testing skill for Claude Code

Testing community

Regenerate the OpenAPI spec and web API client after server API changes.

How to install Regen API

Installs to ~/.claude/commands/chrisbenincasa-tunarr-regen-api.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/chrisbenincasa/tunarr/HEAD/.claude/commands/regen-api.md -o ~/.claude/commands/chrisbenincasa-tunarr-regen-api.md

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

What Regen API does


allowed-tools: Bash(cd server && pnpm generate-openapi:*), Bash(cd web && pnpm generate-client:*), Bash(cd web && pnpm regen-routes:*), Bash(git diff:*) description: Regenerate the OpenAPI spec and web API client after server API changes

Context

  • Changed API/types files: !git diff --name-only HEAD | grep -E "^(server/src/api/|types/src/)"

Your task

Regenerate the full API contract chain after server-side changes:

  1. Generate OpenAPI spec — run `cd server && pnpm generat

Alternatives in Testing

  • Web Design — A Claude Code SKILL for designing beautiful, consistent web pages — spec first, code second 686 ★
  • Mda — MDA Open Spec — a Markdown superset for agent-facing documents 615 ★
  • Test After Change Diagnostics.V1 — If any program code changes, run unit-tests and follow up on the test-result (fix code if there is an error) 272 ★

Full documentation available on GitHub

View Source Repository