refactor(prompts): qualify style rule citations

This commit is contained in:
2026-09-17 09:18:44 -04:00
parent 94a7d87928
commit 9adbd8f8e6

View File

@@ -27,7 +27,7 @@ Use this format for each finding:
`code-path:line`
> `smallest reviewed-code excerpt that shows the violation`
`rule-file:line`: Finding title.
`skill::rule-file:line`: Finding title.
Summary: why the code breaks the rule
Fix: suggested fix
```
@@ -35,7 +35,7 @@ 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`.
Use a style-skill rule citation, such as `rust::files.md:23` or `nix::let.md:7`.
Make the fix direct.
Do not include alternatives when one fix best follows the cited rule.