feat(skills): add nix style guidance
This commit was merged in pull request #54.
This commit is contained in:
21
.pi/prompts/review-nix.md
Normal file
21
.pi/prompts/review-nix.md
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
description: Review Nix changes against repository Nix style rules
|
||||
argument-hint: "[target]"
|
||||
---
|
||||
|
||||
Use the `nix-style` skill.
|
||||
Audit ${ARGUMENTS:-the staged diff} for violations of the repository Nix 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
|
||||
`path:line`: Finding title.
|
||||
Summary: why the code breaks the rule
|
||||
Fix: suggested fix
|
||||
```
|
||||
|
||||
It is acceptable to report no findings when the reviewed Nix already follows the loaded rules.
|
||||
1
.pi/skills/nix-style
Symbolic link
1
.pi/skills/nix-style
Symbolic link
@@ -0,0 +1 @@
|
||||
../../src/skills/nix-style
|
||||
Reference in New Issue
Block a user