Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ShipWithAI/shipwithai-plugins --skill spring-rest-endpointgit clone --depth 1 https://github.com/ShipWithAI/shipwithai-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shipwithai/shipwithai-plugins/spring-rest-endpoint)<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/spring-rest-endpoint"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/spring-rest-endpoint.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00076 | $0.00984 |
| Opus 5 | $0.00038 | $0.00492 |
| Sonnet 5 | $0.00015 | $0.00197 |
| Haiku 4.5 | $0.00008 | $0.00098 |
Grade A, and why
spring-rest-endpoint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spring REST Endpoint — Scaffold
Generates a controller that returns DTOs only, so the entity-in-controller
guardrail never fires. Output: controller, response DTO, request DTO, a service
method, and an entity→DTO mapper.
Step 1 — Detect conventions
- Base package: infer from
src/main/java/.../(the deepest package holding existing*Controller.java, else the application's root package). - Existing patterns: if the project already has a
mapper/dtopackage or MapStruct on the classpath, match it; otherwise generate a plain hand-written mapper.
Step 2 — Gather the resource
Ask (or take from argument): resource name (e.g. Order), and which operations
(GET /{id}, GET list, POST, PUT, DELETE). Default to read + create if unspecified.
Step 3 — Render templates
From assets/, substitute {{PACKAGE}}, {{RESOURCE}}, {{RESOURCE_LOWER}}:
Controller.java.tmpl→<pkg>/web/{{RESOURCE}}Controller.javaResponseDto.java.tmpl→<pkg>/web/dto/{{RESOURCE}}Response.javaRequestDto.java.tmpl→<pkg>/web/dto/{{RESOURCE}}Request.java
Rules baked into the templates:
- Controller methods return
{{RESOURCE}}Response/List<{{RESOURCE}}Response>/ResponseEntity<{{RESOURCE}}Response>— never the entity. @PostMapping/@PutMappingtake@Valid @RequestBody {{RESOURCE}}Request.- A
{{RESOURCE}}Mapper(or inline mapping in the service) converts entity → response.
Step 4 — Wire the service
If a {{RESOURCE}}Service exists, add the method; otherwise generate a minimal
service that depends on the repository and returns the mapped DTO. Keep the
@Transactional boundary on the public service method (not the controller).
Variant — Cursor (keyset) pagination
For list endpoints that page large or frequently-written tables, prefer cursor
pagination over OFFSET/Pageable. Offset re-scans and skips the leading rows
(slower as the page number grows) and skips or duplicates rows when concurrent
inserts/deletes shift the offset between requests. Keyset paging is stable because
it pages by the last seen key, not a row count.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 87 lines · 76 tokens per session scan A af330509e8a1
spring-rest-endpoint is a skill published in the GitHub repository ShipWithAI/shipwithai-plugins (10 stars, last pushed 24d ago), licensed MIT. It adds 76 tokens to every session and 984 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
java-coding-standards
Java coding standards for Spring Boot services: naming, immutability, Optional usage, streams, exceptions, generics, and project layout.
spring-boot-patterns
Spring Boot best practices and patterns. Use when creating controllers, services or repositories, or when the user asks about Spring Boot layering, wiring, configuration or exception handling. For JPA and Hibernate behaviour, use jpa-patterns instead.
supabase-python
FastAPI with Supabase and SQLAlchemy/SQLModel.
java-coding-standards
A set of Java coding standards for Spring Boot services, covering naming, immutable data, optional values, streams, and exceptions.
reddit-api
Reddit API with PRAW (Python) and Snoowrap (Node.js).
spring-cloud-openfeign
Declarative HTTP client for microservices communication with Spring Cloud OpenFeign. Covers @FeignClient, error handling, interceptors, and circuit breaker integration. USE WHEN: user mentions "feign", "openfeign", "@FeignClient", "declarative HTTP client", "service-to-service communication", "microservices client" DO…