docs(prompts): use build style in reviews

This commit is contained in:
2026-09-17 12:39:58 -04:00
parent b59240bdec
commit df828a52cf

View File

@@ -10,8 +10,8 @@ Choose skills from the reviewed files:
- Use the `nix-style` skill for `*.nix` files. - Use the `nix-style` skill for `*.nix` files.
- Use the `rust-style` skill for `*.rs` files. - Use the `rust-style` skill for `*.rs` files.
- Use the `rust-style` skill for `Cargo.toml` files. - Use the `build-style` skill for `Cargo.toml` files.
- Use the `rust-style` skill for Bazel files that define Rust targets. - Use the `build-style` skill for Bazel `BUILD` files.
If the target includes multiple matching file types, use all matching skills. If the target includes multiple matching file types, use all matching skills.
If the target is a diff, choose skills from the changed files. If the target is a diff, choose skills from the changed files.
@@ -35,7 +35,7 @@ Fix: suggested fix
Keep the code excerpt to one to three lines when possible. Keep the code excerpt to one to three lines when possible.
Use a longer excerpt only when the violation needs surrounding context. Use a longer excerpt only when the violation needs surrounding context.
Use `...` to omit unrelated lines from a multi-line excerpt. Use `...` to omit unrelated lines from a multi-line excerpt.
Use a style-skill rule citation, such as `rust::files.md:23` or `nix::let.md:7`. Use a style-skill rule citation, such as `rust::files.md:23`, `build::dependencies.md:7`, or `nix::let.md:7`.
Make the fix direct. Make the fix direct.
Do not include alternatives when one fix best follows the cited rule. Do not include alternatives when one fix best follows the cited rule.