Agent Prompts Library
Battle-tested prompts engineered for real software development workflows — code reviews, production incidents, architecture RFCs, test generation, and autonomous coding agents.
Code Review & Quality
Rigorous pull request and service audits focusing on correctness, concurrency, and security.
Debugging & Incident Analysis
Hypothesis-driven root cause analysis for production exceptions, memory leaks, and deadlocks.
Architecture & API Design
System design reviews, schema indexing, and backward-compatible REST/gRPC API contracts.
Testing & QA
Comprehensive test suite generation spanning boundary conditions, mutation tests, and mocks.
Spring Boot REST Service & JPA Code Review
Deep code review for Spring Boot services examining transaction boundaries, JPA N+1 queries, concurrency, and validation.
Next.js App Router & React Server Components Review
Review Next.js 14/15 App Router code for RSC boundaries, data fetching waterfalls, caching, and hydration safety.
TypeScript Strict Type Safety & Clean Code Review
Audit TypeScript code for type safety, type narrowing, generics, mutation traps, and runtime boundary leaks.
Pull Request Severity-Graded Code Review
Structured PR review prompt that categorizes findings into Blocker, Major, Minor, and Nitpick with actionable diffs.
Security Vulnerability & OWASP Code Audit
Audit backend and frontend code for OWASP Top 10 vulnerabilities, authentication bypasses, IDOR, and injection flaws.
Production Exception & Stack Trace Root-Cause Analyzer
Analyze production stack traces, error logs, and surrounding code using hypothesis-driven debugging.
Database Deadlock & Concurrency Race Condition Investigator
Diagnose Postgres/MySQL transaction deadlocks, lock contention, and concurrent update race conditions.
API Performance Regression & N+1 Query Debugger
Identify slow database queries, serialization bottlenecks, and memory churn in sluggish API endpoints.
Node.js & V8 Memory Leak / CPU Spike Investigator
Analyze heap snapshots, unclosed event listeners, and runaway closures causing Node.js OOM crashes.
Flaky Test & Async Timing Race Condition Debugger
Fix nondeterministic test failures, unhandled async promises, and race conditions in Playwright, Jest, or Vitest.
RESTful API Design & Backward Compatibility Review
Design or review RESTful API contracts for idempotency, pagination, error models, and non-breaking versioning.
Database Schema & Relational Indexing Strategy
Design production PostgreSQL schemas with composite indexes, foreign key strategies, and partitioning.
Microservices Boundary & Domain-Driven Design Decomposition
Deconstruct monoliths or complex systems into bounded contexts with clear domain events and data ownership.
Technical Design Document (RFC) Generator
Generate thorough, engineering-ready Request for Comments (RFC) and Architecture Decision Records (ADRs).
Event-Driven Architecture & Message Ordering Review
Review Kafka, RabbitMQ, or SQS/SNS event architectures for exactly-once semantics, out-of-order delivery, and DLQs.
Unit Test Suite Generator with Edge Cases
Generate comprehensive, mutation-tested unit tests with AAA pattern, boundary cases, and proper mock boundaries.
Integration & Contract Test Plan (Testcontainers / Playwright)
Create robust integration test suites with real databases in Docker containers and contract verification.
API Endpoint Fuzzing & Boundary Value Test Matrix
Generate adversarial fuzzing test cases, SQL injection payloads, and schema violation matrices for REST endpoints.
Database Migration Rollback & Data Integrity Test Plan
Validate database schema migrations for zero data loss, backward compatibility, and forward/backward rollbacks.
Mutation Testing & Missing Branch Coverage Finder
Audit test suites by simulating mutant bugs (flipped conditionals, off-by-one errors) to expose weak assertions.
Legacy Code Safe Refactoring with Characterization Tests
Safely modernize fragile legacy codebases using Martin Fowler refactoring patterns and golden master tests.
God Class & Long Method Decomposition with Design Patterns
Decompose monolithic 1,000+ line classes into Single Responsibility components using SOLID design patterns.
Synchronous Blocking to Async / Reactive Modernization
Convert blocking I/O code into non-blocking async/await, reactive streams, or virtual threads.
Deprecated Dependency & Framework Upgrade Migration Plan
Generate a step-by-step upgrade strategy for major framework shifts (e.g. Next 12 to 15, Spring 2 to 3).
Monolith to Clean / Hexagonal Architecture Refactor
Refactor tangled MVC controllers and service layers into Clean Architecture (Ports & Adapters).
User Story to Gherkin Acceptance Criteria Generator
Transform messy product requirements into razor-sharp User Stories with Given-When-Then Gherkin acceptance criteria.
Epic Breakdown into Atomic Engineering Tasks
Break large product epics into vertically sliced, independently deployable Jira engineering subtasks.
Sprint Backlog Refinement & Technical Estimation Prompt
Conduct rigorous backlog refinement, identify hidden complexity, and estimate story points with Scrum poker criteria.
Bug Triage & Reproducible Defect Specification
Turn vague user bug reports into crisp, reproducible defect tickets with root-cause hints and regression steps.
Sprint Retrospective Action-Item Synthesizer
Synthesize team retro feedback into categorized themes, root causes (5 Whys), and SMART action items.
Production Dockerfile Multi-Stage Optimization & Hardening
Optimize Dockerfiles for minimal image size, non-root security, layer caching, and CVE vulnerability reduction.
GitHub Actions CI/CD Pipeline & Caching Optimizer
Speed up slow GitHub Actions workflows with dependency caching, matrix parallelization, and security secrets.
Kubernetes Deployment, HPA & Resource Limits Review
Audit Kubernetes manifests for CPU/memory requests, readiness/liveness probes, HPA, and Pod Disruption Budgets.
Infrastructure-as-Code (Terraform) Security & Drift Review
Audit Terraform HCL code for IAM over-permissioning, unencrypted storage, public security groups, and drift risks.
Database Zero-Downtime Migration & Rollback Strategy
Plan high-volume, live table restructuring and large column migrations without application outages.
Cursor & Windsurf Rules Generator (.cursorrules / .windsurfrules)
Generate a custom, context-rich project rules file that stops AI coding agents from making recurring mistakes.
Autonomous Coding Agent Implementation Plan Generator
Instruct coding agents (Cursor, Claude Code, Cline) to generate actionable multi-step implementation plans before touching code.
Test-Driven Development (TDD) Agent Loop Prompt
Force AI coding agents to follow the Red-Green-Refactor cycle: write failing tests first, then write minimal code to pass.
Multi-File Codebase Exploration & Architectural Onboarding
Prompt an agent to analyze an unfamiliar codebase and deliver an architectural breakdown, data flows, and gotchas.
Subagent Task Delegation & Verification Prompt
Prompt orchestrating agents to delegate subtasks to child agents with strict verification gates and bounded context.
Need reusable agent workflows?
While prompts are ideal for 1-click copy into chat or Cursor, Agent Skills provide persistent skill definitions and automation scripts that coding agents execute repeatedly.