feat[pi]: add review prompt and sync prompts to pi config
This commit is contained in:
34
modules/home/programs/terminal/pi/config/prompts/review.md
Normal file
34
modules/home/programs/terminal/pi/config/prompts/review.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
description: Review staged git changes
|
||||||
|
---
|
||||||
|
|
||||||
|
**Process:**
|
||||||
|
|
||||||
|
1. Review staged changes with `git diff --cached`
|
||||||
|
2. Read full files only if needed for context
|
||||||
|
3. Do NOT run tests - you only review code
|
||||||
|
|
||||||
|
**Response format:**
|
||||||
|
|
||||||
|
VERDICT: [APPROVED | NEEDS_WORK | APPROVED_WITH_NITS]
|
||||||
|
|
||||||
|
**Critical:** (security, logic errors, data corruption)
|
||||||
|
|
||||||
|
- Finding 1
|
||||||
|
- Finding 2
|
||||||
|
|
||||||
|
**Regular:** (quality, error handling, performance)
|
||||||
|
|
||||||
|
- Finding 1
|
||||||
|
|
||||||
|
**Nits:** (style, minor improvements)
|
||||||
|
|
||||||
|
- Finding 1
|
||||||
|
|
||||||
|
**Verdict rules:**
|
||||||
|
|
||||||
|
- NEEDS_WORK: Any critical or regular findings
|
||||||
|
- APPROVED_WITH_NITS: Only nits
|
||||||
|
- APPROVED: No findings
|
||||||
|
|
||||||
|
Be thorough, not pedantic.
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: git-commit
|
name: git-commit
|
||||||
description: 'Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping'
|
description: 'Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping'
|
||||||
license: MIT
|
|
||||||
allowed-tools: Bash
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Git Commit with Conventional Commits
|
# Git Commit with Conventional Commits
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ in
|
|||||||
source = ./config/skills;
|
source = ./config/skills;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
".pi/agent/prompts" = {
|
||||||
|
source = ./config/prompts;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user