/ratchet-backend:service-boundariesfrom ratchet-backend
Use when writing or reviewing code that calls another service or a third-party API, handles a webhook, reads another service's data, or puts deployment topology in a repository. Keep the boundary between services, and between a service and an outside partner, explicit - own your data, map foreign payloads once, keep raw bodies for replay, and test the contract.
Ships in ratchet-backend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults.
These rules are for runtime code. An end-to-end test may seed another service's store to set up a case. A captured payload is still scrubbed before it is committed.
A boundary holds when each side can change its insides without asking the other. These rules keep one side's shapes and storage from leaking into the other.
Do not read or write another service's database, cache, or queue directly. Call its API or consume the events it publishes. Direct access couples you to its schema, skips its validation and authorization, and means its owner cannot migrate without breaking you.
Route an event by where the sender is and what its auth needs. For a new source, read
references/event-ingress.md for the decision order. Verifying,
deduplicating, and ordering a webhook's deliveries, and sending webhooks, are in
webhooks.
Store the raw request or response body from a partner before mapping it, with a retention period and access limits. When a mapping fails or a partner disputes what was sent, the raw body is the only evidence, and it lets the failure be replayed after the fix.
A model call is an outside API call, so the timeout and failure rules above apply to it. What is specific to a model is in llm-calls: one call per decision, where the model id comes from, a static system prompt, and untrusted content in a prompt.
Keep deployment topology out of application repositories: instance counts, scaling limits, resource identifiers, region lists. Put it in the infrastructure repository and pass the application what it needs as configuration. Application code that knows its own topology has to be released to change it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
18 skills in this plugin
/bounded-iterationUse when writing or reviewing a sweep, scheduled job, reconciler, cleanup, dispatcher, backfill, or export - any loop that reads rows. Covers bounding the rows each run reads, sweeps that re-select their own writes, and effects that repeat on every run./error-handlingUse when writing or reviewing code that throws, catches, or matches an error, turns a failure into a response, or reports errors to a tracker such as Sentry, including a review of a diff that does. Covers one defined list of error codes, matching on type or code instead of message, details as attributes on the error, and reporting only errors someone can act on./npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-backend