Requirements → Code — TDD Pipeline
From Jira ticket to merged PR. Claude reads the ticket, finds gaps, writes failing tests first, then implements. Each prompt is tuned for minimal tokens.
// Workflow 1 Checkpoint
Unit Testing with JUnit 5 + Mockito
Comprehensive test generation, coverage gap analysis, integration tests. All prompts tuned for minimal token usage — code output only, no prose.
| Scenario | Naming pattern | Example |
|---|---|---|
| Happy path | should_[result]_when_[condition] | should_returnUser_when_validIdProvided |
| Exception | should_throw_[Ex]_when_[condition] | should_throw_NotFound_when_idMissing |
| Null input | should_throw_[Ex]_when_[param]IsNull | should_throw_IllegalArg_when_emailNull |
| Side effect | should_call_[method]_when_[condition] | should_callEmailService_when_userCreated |
| No side effect | should_not_call_[method]_when_[condition] | should_not_callEmail_when_userExists |
// Workflow 2 Checkpoint
Solution Design & Architecture
Claude as a principal engineer — architecture critique, ADR generation, STRIDE threat modelling. Get decisions, not essays.
// Workflow 3 Checkpoint
Multi-Repo Knowledge + Confluence MCP
Cursor Memories (not Notepads — deprecated), .cursor/rules/*.mdc (not .cursorrules), Confluence MCP via 2025-06-18 spec, and onboarding to any codebase in hours.
.cursor/rules/*.mdc files (not .cursorrules)..code-workspace. Now @folder and @Codebase search across ALL repos. Share the .code-workspace file with your team..cursor/rules/*.mdc. Use alwaysApply: true for universal constraints. Use autoApply with file glob for context-specific rules (e.g. auto-apply Java rules when *.java files are open). Keep total rules under 3k tokens.// Workflow 4 Checkpoint
Full Stack Understanding
Backend (Spring Boot 3.x, Spring AI 1.1), frontend (React/Angular/Vue), infrastructure (Terraform, Kubernetes) — prompts for understanding every layer.
// Workflow 5 Checkpoint
Daily Team Practices
Code review, debugging, sprint planning, incident response, documentation. The recurring tasks where AI saves hours every week. Prompts tuned for minimum token spend.
// Workflow 6 Checkpoint
⚡ Cut Your Claude Bill by 60–75%
A 6-person team reduced Claude Code spend from $2,400/month to $680 by applying prompt caching, model routing, and session focus. These techniques apply to every workflow on this page.
| Model | Input per 1M | Output per 1M | Cached input | Best for |
|---|---|---|---|---|
| Haiku 4.5 | $1.00 | $5.00 | ~$0.10 | CHEAPEST Classification, routing, simple summaries |
| Sonnet 4.6 | $3.00 | $15.00 | ~$0.30 | DEFAULT Most coding, RAG, analysis, generation |
| Opus 4.8 | $5.00 | $25.00 | ~$0.50 | Complex agents, architecture, long tasks |
| Opus 4.8 Fast | $10.00 | $50.00 | ~$1.00 | Opus quality at 2.5x speed — latency-sensitive Opus work |
| Any model — Batch | 50% off all tiers — use for offline workloads | BEST RATIO | ||
.cursor/rules/*.mdc files. Each rule file has a scope: Always / Auto / Agent-requested / Manual.