with one click
write-tests
Write tests for the current changeset
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Write tests for the current changeset
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | write-tests |
| description | Write tests for the current changeset |
Current changes to write tests for:
!jj show
Review the current changes and write tests following docs/development/testing.md and docs/development/code-style.md.
Validate your work using mise run test and ensure all code is properly formatted using mise run format.
No inline comments - Tests should be self-documenting through clear variable names and structure.
Setup + space + assertion - Separate setup from assertions with a blank line:
#[test]
fn it_does_a_thing() {
let foo = "foo";
let bar = "bar";
assert_ne!(foo, bar);
}
#[test]
fn multiple_assertions() {
let foo = "foo";
let bar = "bar";
assert_ne!(foo, bar);
let baz = "baz";
assert_ne!(foo, baz);
}
When a test has multiple logical steps, separate each setup+assertion group with a blank line.
Update CHANGELOG.md with recent changes following Keep a Changelog format
Prepare and publish a new crate release
Format code according to specified style guide
Write Architecture Decision Records (ADRs) and technical documentation. Use when documenting design decisions, architectural choices, or technical specifications.
Senior Rust code reviewer. Use proactively after implementing features to review for correctness, safety, performance, and best practices.
Analyze Rust dependencies for security, quality, and maintenance status. Use proactively to audit Cargo.toml, check for outdated crates, or evaluate new dependencies.