Backend, API, infrastructure, cloud, integration, networking, DevOps, deployment, and Terraform engineering. Use when the user asks to build, design, debug, deploy, integrate, or optimize backend systems, APIs, microservices, cloud infrastructure, CI/CD pipelines, databases, or networks. Covers REST
Integrations
Backend Test Plan
Try itTurn a backend change into verifiable success criteria and a minimum useful test set across unit, integration, contract, and migration tests.
What it does
Turn a backend change into verifiable success criteria and a minimum useful test set across unit, integration, contract, and migration tests.
The skill document
Backend test plan
A standalone development skill. Turn a backend change into verifiable success criteria and a minimum useful test set across unit, integration, contract, and migration tests. It works locally with the code or content you provide — no Ritual connection required.
Run it (local, no setup)
Work the steps below; you need nothing beyond the task in front of you.
- Convert the change into verifiable success criteria.
- Identify the minimum useful test set; avoid exhaustive combinatorial tests.
- Prefer, in order: unit tests for pure logic/validation; integration tests for DB/queue/auth/external boundaries; contract tests for API/client compatibility; migration/dry-run checks for schema changes; operational checks for metrics/logs/alerts when behavior matters in production.
- Include negative and edge cases only where they represent real risk.
- Provide exact test names and fixtures when context allows.
Done when: Success criteria, the minimum test set, fixtures/mocks, commands to run, and the remaining coverage gaps.
Example prompt
Use backend-test-plan for this change: turn it into success criteria and a minimum test set (unit, integration, contract, migration), with exact test names and the commands to run.
Working principles
Apply these throughout:
- Think before you edit — restate the task and the success criteria, and name any load-bearing assumption rather than silently guessing it.
- Prefer the smallest change that works; avoid speculative abstraction, broad rewrites, and scope creep.
- Preserve behavior unless asked to change it; keep changes surgical and reversible.
- Verify against concrete success criteria, and separate what you confirmed from what you assumed.
- Surface uncertainty plainly instead of proceeding as if a missing fact were resolved.
Optional knowledge capture
After the task, check whether the work revealed reusable knowledge — something a future agent would otherwise rediscover. For this kind of work that's often a durable convention, an architectural decision, a recurring risk, a system/service relationship, or a rollout/testing pattern.
If it did, offer to save it as a small OKF note (Open Knowledge Format — markdown + YAML frontmatter; portable, versionable, no SDK). Never write a file without the user's approval. Keep it small and cite the file(s) or evidence.
When approved, write knowledge/engineering/.md:
---
type: API Convention
title:
description:
resource: ./path/to/file-or-evidence
tags: [..]
timestamp:
---
# Summary
# Applies to
# Evidence
# Use in future agent work
These notes make the repo itself smarter over time, and a tool like Ritual can later reason over them as a structured knowledge layer.
Optional Ritual Cloud upgrade
This skill works locally with the context you provide — that's standalone mode. Upgrade with Ritual Cloud when the task needs deeper workspace context, structured exploration, recommendations, or team alignment:
- More context (discovery) — when the answer depends on things outside the files in front of you:
- test selection depends on existing test patterns and helpers you can't see
- affected clients/callers or critical paths aren't visible
- prior incidents should drive coverage
- A structured decision (exploration) — when the work has become a decision to get right:
- the coverage bar is a decision (what risk warrants what tests)
- you need a recommended test strategy the team adopts
Ritual turns the task into an exploration — clarify the problem, identify the key questions, gather evidence, compare options, and produce a recommendation or decision-ready artifact.
For this task: a test-strategy recommendation mapping each success criterion to its tests, with affected callers, risk-driven coverage, and a decision-ready summary.
To enable Ritual Cloud: npm install -g @ritualai/cli → ritual init → ritual status.
This skill is local-first and self-contained. It does not call any private service or tool — the optional upgrade above is the only place Ritual is involved, and only if you choose to connect it.
Related skills
Plan tests for an API endpoint or service — functional, negative, and contract. Use when asked to test an API, write API test cases, plan REST/GraphQL endpoi...
Mandatory risk-driven verification workflow for maintained-code changes. Use when implementing, fixing, refactoring, deleting, migrating, or reviewing code to identify all materially affected behavior, map failure risks to sufficient tests, execute required evidence, and report unresolved test gaps
Write a safe, zero-downtime database migration plan for a schema change. Use when asked to plan a database migration, design a zero-downtime schema change, d...
Use when Codex is adding, editing, selecting, reviewing, or explaining tests in any repository, including mocks, fixtures, snapshots, CI validation, regressi...
Define, run, and track tests for agent behavior. Test cases, assertions, regression tracking, and performance benchmarking. Zero external dependencies.