roast-my-code
Gives a direct code review with a quality engineering focus: correctness, testability, error handling, design smells and weak tests, each with evidence and a fix, in a mild, medium or savage tone. Use when the user says 'roast my code' or 'be brutal'. Not for proving bugs (use bug-hunter).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- roast-my-code
- license
- Apache-2.0
- description
- Gives a direct code review with a quality engineering focus: correctness, testability, error handling, design smells and weak tests, each with evidence and a fix, in a mild, medium or savage tone. Use when the user says 'roast my code' or 'be brutal'. Not for proving bugs (use bug-hunter).
- argument-hint
- [file, folder or change] [mild|medium|savage]
03 SKILL.md 正文
roast-my-code
Objective
The roast is direct, but fair and useful. Each point attacks the code, never the person. Each point has evidence and a fix. The tone changes only the wording, never the facts.
Context
- Read
.agents/qa-project-context.mdif it exists. Use its conventions and risk areas. - If it does not exist, read the code, its tests and its callers. Do not stop the work for the context file.
Discovery questions
- What is the target, and what is the tone (
mild,mediumby default,savage)? - Is there a team style guide or architecture rule to respect?
Workflow
- Understand the purpose from the names, the documentation, the tests and the callers. A roast of code that you do not understand is noise.
- Review in this order, at most five points for each category:
- Correctness: likely bugs (the questions of
bug-hunter). - Testability: hidden dependencies (clock, randomness, global state, static calls, network); long functions with many branches; logic in constructors or the UI layer.
- Error handling: swallowed errors, broad catches, errors turned into success, missing cleanup.
- Design: duplicated logic, mixed responsibilities, leaky abstractions, magic numbers, primitive types for domain values (money as a float).
- Readability: misleading names, dead code, commented-out code, deep nesting, comments that say what instead of why.
- Tests: missing tests for the risky paths, tests that check nothing, tests that copy the logic.
- Security and data: unvalidated input, secrets in code, personal data in logs.
- Correctness: likely bugs (the questions of
- Rate each point:
HOTmust fix (bug, security, data loss),WARMshould fix (risk, cost),MILDnice to fix. - Fix for each point: one or two lines, or a small code sketch.
- Credit: name what the code does well.
Output
## Roast: <target> (tone: <tone>)
Verdict in one line: ...
| # | Heat | Location | Point | Fix |
|---|---|---|---|---|
What is good: ...
If you fix only three things: ...
Anti-patterns
- Personal remarks or insults about the author.
- Points without a fix or without a file and line.
- A list of 50 nitpicks. Keep the points that matter, hottest first.
- Changing the code without being asked.
Done when
- Each point has a heat, a location and a fix.
- The good parts and the top three fixes are named.
Related skills
bug-hunter: proves the correctness points.testcase-reviewer: the tests in depth.unit-testing: tests for the risky paths.security-testing: the security points in depth.
04 同仓库更多 Skills
unit-testing
Writes, fixes or improves unit tests for rules, calculations, validation and state logic: arrange-act-assert, exact oracles, boundary sets, doubles only at boundaries, controlled clock and randomness. Use when the user says 'write unit tests', 'TDD this' or 'mock this dependency'. Not for HTTP endpoints (use api-testing).
ui-automation
Writes, fixes or structures browser end-to-end tests for critical journeys: role, label or test ID locators, auto-waiting assertions, API data setup, page objects, auth reuse and traces. Use when the user says 'UI test', 'end-to-end test' or 'our UI tests are brittle'. Not for business rules (use unit-testing).
testcase-reviewer
Reviews automated tests or manual test cases like a senior test architect: scores fidelity, oracles, assertion depth, edge cases and determinism, and finds tests that pass on wrong code. Use when the user says 'review my tests', 'test smells' or 'review AI-written tests'. Not for fault injection (use mutation-probe).
testability-review
Scores how testable a feature, module or design is before tests exist (seams for clock, randomness and network, hidden state, observability) and gives the smallest production change per blocker. Use when the user asks 'is this testable' or 'why is this hard to test'. Not for writing the tests (use unit-testing).
test-strategy
Writes a test strategy for a product, system or team: quality goals, test levels and their share, environments, data, automation scope, non-functional testing, metrics and a roadmap. Use when the user says 'test strategy' or 'QA strategy'. Not for one sprint or release plan (use test-planning).
test-runner
Finds how a project runs its tests, runs the right subset, and triages each failure as product bug, test defect, environment problem or flaky test, with evidence. Use when the user says 'run the tests' or asks 'which tests fail and why'. Not for pipeline design (use ci-cd-integration).