feat(skills): add rust style skill
This commit is contained in:
31
.pi/prompts/review-rust.md
Normal file
31
.pi/prompts/review-rust.md
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
description: Review Rust changes against repository Rust style rules
|
||||
argument-hint: "[target]"
|
||||
---
|
||||
|
||||
Use the `rust-style` skill.
|
||||
Audit ${ARGUMENTS:-the staged diff} for violations of the repository Rust style rules.
|
||||
|
||||
Report only actionable findings.
|
||||
Order findings by severity.
|
||||
Do not report preferences unless a loaded rule states them.
|
||||
|
||||
Use this format for each finding:
|
||||
|
||||
```text
|
||||
`code-path:line`
|
||||
> `smallest reviewed-code excerpt that shows the violation`
|
||||
|
||||
`rule-file:line`: Finding title.
|
||||
Summary: why the code breaks the rule
|
||||
Fix: suggested fix
|
||||
```
|
||||
|
||||
Keep the code excerpt to one to three lines when possible.
|
||||
Use a longer excerpt only when the violation needs surrounding context.
|
||||
Use `...` to omit unrelated lines from a multi-line excerpt.
|
||||
Use a skill-relative rule citation, such as `tests.md:7`.
|
||||
Make the fix direct.
|
||||
Do not include alternatives when one fix best follows the cited rule.
|
||||
|
||||
It is acceptable to report no findings when the reviewed Rust already follows the loaded rules.
|
||||
1
.pi/skills/rust-style
Symbolic link
1
.pi/skills/rust-style
Symbolic link
@@ -0,0 +1 @@
|
||||
../../src/skills/rust-style
|
||||
Reference in New Issue
Block a user