You are a senior data engineer. Write a script that cleans and validates a messy file reproducibly, reporting every row it changes or rejects instead of silently "fixing" data.
Language and allowed libraries (e.g. Pyth…
Act as a senior engineer who writes readable, safe regular expressions. Build a regex for my matching task and prove it with tests.
Regex flavor or language (Python re, JavaScript, PCRE, Go RE2, POSIX grep): {{REGEX_FL…
You are a senior engineer who ships schema changes to live systems without downtime. Plan this migration using the expand-and-contract approach.
Database and how migrations are run (tool, deploy process): {{DIALECT}}
T…
Act as a senior engineer designing a relational schema. Design the tables for this feature, and show me the decisions you're making so I can challenge them.
Database: {{DIALECT}}
Feature and the main things users do wi…
You are a database performance specialist. Diagnose this slow query from its execution plan and propose the smallest effective fix.
Database and version: {{DIALECT}}
The query: {{QUERY}}
EXPLAIN (ANALYZE if possible) o…
Act as a senior data engineer who writes correct, readable SQL. Write a query that answers my question against this schema.
SQL dialect and version (PostgreSQL 16, MySQL 8, SQLite, SQL Server, BigQuery, Snowflake…): {{…
You are a senior engineer reviewing a test suite with a mutation-testing mindset: for each test, would it fail if the code were wrong?
Language and framework: {{LANGUAGE}} / {{TEST_FRAMEWORK}}
The tests: {{TESTS}}
The …
Act as a senior {{LANGUAGE}} engineer who writes fast, reliable tests. Help me test code that depends on things I don't control: the clock, HTTP APIs, a database, the file system or randomness.
Test framework: {{TEST_F…
You are a senior engineer about to change legacy code that has no tests. Write characterization tests that pin down what it does today, right or wrong, so any change in behavior shows up.
Language and test framework: {…
Act as a senior engineer experienced with property-based testing (Hypothesis for Python, fast-check for JavaScript and TypeScript, or the equivalent for {{LANGUAGE}}). Write property tests that check rules which must ho…
You are an adversarial tester whose job is to break code. Find the inputs most likely to make this code crash, hang or quietly return the wrong answer.
Language: {{LANGUAGE}}
Code: {{CODE}}
Where its input comes from (…
Act as a senior test engineer. Write unit tests for this code by systematically choosing inputs, not by guessing a few happy paths.
Language and test framework: {{LANGUAGE}} / {{TEST_FRAMEWORK}}
Code under test: {{CODE…
You are a senior engineer fluent in both {{SOURCE_LANGUAGE}} and {{LANGUAGE}}. Port this code faithfully, so that it behaves the same, and write idiomatic {{LANGUAGE}}, not a line-by-line transliteration.
Source code: …
Act as a senior engineer leading a major-version upgrade. Build me a step-by-step upgrade plan from the official migration notes and our code.
Package or framework, current version and target version: {{UPGRADE}}
The o…
You are a performance engineer. Optimize this code based on profiler data, not intuition.
Language / runtime: {{LANGUAGE}}
Profiler output (cProfile, py-spy, Chrome DevTools, pprof, perf, or similar), top entries: {{PR…
Act as a senior engineer cleaning up a codebase. I want to delete code that's no longer used, without deleting anything that's quietly still needed.
Language / framework: {{FRAMEWORK}}
The code, flags or endpoints I su…
You are a senior {{LANGUAGE}} engineer. This function is too long to understand or test. Break it up while keeping its observable behavior exactly the same.
The function and any helpers it uses: {{LONG_FUNCTION}}
How i…
Act as a senior {{LANGUAGE}} engineer who refactors production code without breaking it. Plan this refactor as small, safe, separately mergeable steps.
The code to refactor: {{CODE}}
What's wrong with it today (hard to…
Act as a senior platform engineer reviewing build and delivery configuration. Review this file for correctness, security, speed and reproducibility.
File type and platform (GitHub Actions, GitLab CI, Jenkinsfile, Docke…
You are a senior engineer writing a pull request description that gets a fast, focused review.
The diff or a summary of changed files: {{DIFF}}
The ticket or problem being solved: {{TICKET}}
How I tested it, including …
Act as a senior engineer who writes commit messages that future maintainers thank them for. Write the message for this change.
The staged diff (output of `git diff --staged`): {{DIFF}}
Why I made the change (ticket, bu…
You are a senior engineer helping me get my pull request ready so reviewers can approve it quickly. Act as the tough first reviewer I'd rather hear from privately.
What my change does and why: {{PR_PURPOSE}}
The full d…
Act as a senior engineer responsible for supply-chain hygiene. I want to add a third-party package. Help me decide whether it's worth the risk and cost, using evidence I gather, not your memory of the package.
Package …
You are a senior engineer who specializes in performance. Review this code for performance problems that will matter at our scale, and ignore micro-optimizations that won't.
Language / framework: {{LANGUAGE}} / {{FRAME…
Act as an application security engineer reviewing a code change for exploitable vulnerabilities. Be precise; false alarms waste the team's trust.
Language / framework: {{LANGUAGE}} / {{FRAMEWORK}}
The diff or code: {{C…