decebals avatar

Api Contract Review

This is the kind of review you want before API changes hit production. It catches the classics: POST used for idempotent operations, missing versioning in URL paths, JPA entities leaking into responses, and that cursed pattern of returning 200 with error messages in the body. The HTTP verb semantics table alone is worth having around. It's opinionated about URL path versioning over headers and pushes proper status codes hard, which is the right call. The examples are Java/Spring but the principles apply anywhere. Good for pre-release audits or when onboarding developers who haven't internalized REST conventions yet.

skills.sh installs
315
GitHub stars
771
last updated
Feb 8, 2026

Install

$ npx -y skills add decebals/claude-code-java --skill api-contract-review --agent claude-code

Installs into .claude/skills of the current project.

Files

API Contract Review Skill

Audit REST API design for correctness, consistency, and compatibility.

When to Use

  • User asks "review this API" / "check REST endpoints"
  • Before releasing API changes
  • Reviewing PR with controller changes
  • Checking backward compatibility

Quick Reference: Common Issues

IssueSymptomImpact
Wrong HTTP verbPOST for idempotent operationConfusion, caching issues
Missing versioning/users instead of /v1/usersBreaking changes affect all clients
Entity leakJPA entity in responseExposes internals, N+1 risk
200 with error{"status": 200, "error": "..."}Breaks error handling
Inconsistent naming/getUsers vs /usersHard to learn API

HTTP Verb Semantics

Verb Selection Guide

VerbUse ForIdempotentSafeRequest Body
GETRetrieve resourceYesYesNo
POSTCreate new resourceNoNoYes
PUTReplace entire resourceYesNoYes
PATCHPartial updateNo*NoYes
DELETERemove resourceYesNoOptional

Sponsors

Details

Repository
github.com/decebals/claude-code-java
Categories
Backend & APIs, Git & Pull Requests, Code Review & Quality, Java & JVM
License
MIT
First seen
Jun 11, 2026

More from decebals/claude-code-java

All 18
1davila7 avatarfda-databasedavila7/claude-code-templatesQuery openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data anal313skills.sh installs
2patricio0312rev avatarprisma-migration-assistantpatricio0312rev/skillsPlans and executes safe Prisma schema migrations with data backfills, rollback strategies, and SQL preview. Handles complex schema changes including data transf313skills.sh installs
3charlietlamb avataropenlogs-server-logscharlietlamb/openlogsFetch and inspect recent local server logs in repos that use openlogs or the `ol` CLI. Use when a user asks what happened in the server, wants recent dev-server273skills.sh installs
4davila7 avatargene-databasedavila7/claude-code-templatesQuery NCBI Gene via E-utilities/Datasets API. Search by symbol/ID, retrieve gene info (RefSeqs, GO, locations, phenotypes), batch lookups, for gene annotation a272skills.sh installs
5martinholovsky avatarwebsocketmartinholovsky/claude-skills-generatorReal-time bidirectional communication with security focus on CSWSH prevention, authentication, and message validation269skills.sh installs
6thebushidocollective avatardjango-rest-frameworkthebushidocollective/hanUse when Django REST Framework for building APIs with serializers, viewsets, and authentication. Use when creating RESTful APIs.263skills.sh installs