@lebronj/pi-suite 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/package.json +1 -1
- package/prompts/commit.md +83 -0
- package/prompts/review.md +67 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ curl -fsSL https://registry.npmjs.org/@lebronj/pi-suite/-/pi-suite-0.1.8.tgz | t
|
|
|
21
21
|
## What Is Included
|
|
22
22
|
|
|
23
23
|
- Local extensions: goal mode, pet, prompt URL widget, TUI redraw stats, snake, TPS notifications.
|
|
24
|
-
- Prompts: changelog audit, issue analysis, PR review, wrap workflow.
|
|
24
|
+
- Prompts: changelog audit, issue analysis, PR review, review workflow, commit workflow, wrap workflow.
|
|
25
25
|
- Skills: provider checklist, weather, LeetCode array practice, Pi capability reference, image-to-editable-PPT workflow.
|
|
26
26
|
- Vendored package: `@jhp/pi-memory`, including qmd search, external curator service, and memory/skill-draft versioning.
|
|
27
27
|
|
|
@@ -81,6 +81,14 @@ Useful commands:
|
|
|
81
81
|
|
|
82
82
|
Memory evolution is local-only by default and does not configure a shared remote. If a user wants backup sync, set `PI_EVOLUTION_REMOTE` to their own private repo before bootstrap/setup, or add a personal remote later with `git -C ~/.pi/agent/evolution remote add origin <url>`. Set `PI_EVOLUTION_AUTO_PUSH=1` only if automatic remote sync is desired.
|
|
83
83
|
|
|
84
|
+
## Review And Commit Workflows
|
|
85
|
+
|
|
86
|
+
Use `/review [target] [--fix] [--comment] [--summary]` to inspect current diffs, branch ranges, or PRs with findings first and a verdict last. It is local-only by default: GitHub comments are drafted first and posted only after explicit confirmation.
|
|
87
|
+
|
|
88
|
+
Use `/commit [message|split|pr|apply]` to inspect current changes, warn about mixed concerns, draft commit messages, suggest split points, or draft PR text. It does not stage, commit, or push unless you explicitly confirm the exact action.
|
|
89
|
+
|
|
90
|
+
These workflows are prompt-template workflows only. They do not merge read behavior, add tool discovery, rewrite memory/skills, or run as hidden background processes.
|
|
91
|
+
|
|
84
92
|
## Goal Mode
|
|
85
93
|
|
|
86
94
|
Use `/goal <objective>` to keep Pi working on one task until it is verified complete. Goal mode injects hidden task context, enables a `goal` tool for completion/drop/resume, and auto-continues between turns instead of stopping at a minimal implementation.
|
package/package.json
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Draft commit messages, split advice, and PR text without side effects
|
|
3
|
+
argument-hint: "[message|split|pr|apply] [scope]"
|
|
4
|
+
---
|
|
5
|
+
Run the `/commit` workflow for: $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Scope and guardrails:
|
|
8
|
+
- This workflow is only for commit planning, commit message drafting, split advice, PR description drafting, and explicitly confirmed commit execution.
|
|
9
|
+
- Do not change core read behavior, do not introduce unified resource reads, and do not use or build tool discovery.
|
|
10
|
+
- Default to local-only analysis. Do not create commits, push, or update remote PR text unless I explicitly confirm the exact action after seeing the draft or plan.
|
|
11
|
+
- Do not rewrite memory or skills as part of this workflow.
|
|
12
|
+
- Never stage unrelated files. Never use `git add .` or `git add -A`.
|
|
13
|
+
|
|
14
|
+
Default behavior:
|
|
15
|
+
1. Inspect `git status --short --branch`.
|
|
16
|
+
2. Inspect staged and unstaged diffs for the requested scope.
|
|
17
|
+
3. Detect mixed concerns before drafting any final commit plan.
|
|
18
|
+
4. Draft commit messages and PR text in plain language.
|
|
19
|
+
5. Keep execution separate from suggestions.
|
|
20
|
+
|
|
21
|
+
Mode handling:
|
|
22
|
+
- No mode or `message`: summarize the current changes and draft one commit message. If changes are mixed, warn and suggest split boundaries first.
|
|
23
|
+
- `split`: explain whether the diff should be split, group files by intent, and recommend commit order.
|
|
24
|
+
- `pr`: draft a PR title and body that answer what changed, why it changed, and how it was validated.
|
|
25
|
+
- `apply`: only create a commit after I confirm the exact file scope and commit message. If confirmation is missing or ambiguous, show the proposed plan and stop.
|
|
26
|
+
|
|
27
|
+
Commit message rules:
|
|
28
|
+
- Prefer conventional commit shape when appropriate.
|
|
29
|
+
- Keep the title short and specific.
|
|
30
|
+
- Use the body only when it adds useful why/context.
|
|
31
|
+
- Avoid jargon and AI-flavored prose.
|
|
32
|
+
- Avoid embedding large diff summaries.
|
|
33
|
+
|
|
34
|
+
Commit draft format:
|
|
35
|
+
```text
|
|
36
|
+
Change Summary
|
|
37
|
+
- ...
|
|
38
|
+
|
|
39
|
+
Split Advice
|
|
40
|
+
- ...
|
|
41
|
+
|
|
42
|
+
Draft Commit Message
|
|
43
|
+
fix(scope): concise title
|
|
44
|
+
|
|
45
|
+
Optional body explaining why the change matters.
|
|
46
|
+
|
|
47
|
+
Next Step
|
|
48
|
+
Reply with the exact files or commit message to apply if you want me to commit.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
PR draft format:
|
|
52
|
+
```md
|
|
53
|
+
## What changed
|
|
54
|
+
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
## Why
|
|
58
|
+
|
|
59
|
+
...
|
|
60
|
+
|
|
61
|
+
## Validation
|
|
62
|
+
|
|
63
|
+
- ...
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Split advice rules:
|
|
67
|
+
- Call out mixed concerns before any commit action.
|
|
68
|
+
- Recommend commit order.
|
|
69
|
+
- Group files by intent, not by convenience.
|
|
70
|
+
- Do not auto-split unless I explicitly ask.
|
|
71
|
+
|
|
72
|
+
Confirmed execution rules:
|
|
73
|
+
1. Re-read `git status --short` immediately before staging.
|
|
74
|
+
2. Stage only the confirmed files or hunks.
|
|
75
|
+
3. Commit only the confirmed scope.
|
|
76
|
+
4. Return the commit hash and message.
|
|
77
|
+
5. Leave unrelated dirty files untouched.
|
|
78
|
+
6. Never push unless I explicitly confirm a separate push action.
|
|
79
|
+
|
|
80
|
+
No-op rules:
|
|
81
|
+
- If there are no changes, do not invent a message. Say the worktree has no changes to commit.
|
|
82
|
+
- If the requested scope has no diff, say so and stop.
|
|
83
|
+
- If mixed dirty files are present outside the confirmed scope, mention that they were left untouched.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review local changes, branch ranges, or PRs with prioritized findings
|
|
3
|
+
argument-hint: "[target] [--fix] [--comment] [--summary]"
|
|
4
|
+
---
|
|
5
|
+
Run the `/review` workflow for: $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Scope and guardrails:
|
|
8
|
+
- This workflow is only for code review and the optional bounded fix/comment/summary modes described here.
|
|
9
|
+
- Do not change core read behavior, do not introduce unified resource reads, and do not use or build tool discovery.
|
|
10
|
+
- Default to local-only analysis. Do not post GitHub comments unless I explicitly confirm after seeing the draft.
|
|
11
|
+
- Do not commit, push, rewrite memory, or rewrite skills as part of this workflow.
|
|
12
|
+
- Do not switch branches or check out PR branches unless I explicitly ask.
|
|
13
|
+
|
|
14
|
+
Target resolution:
|
|
15
|
+
- If no target is provided, review the current worktree diff, including staged and unstaged changes.
|
|
16
|
+
- If a git range is provided, review that range with `git diff <range>` and related files as needed.
|
|
17
|
+
- If a PR number or URL is provided, inspect PR metadata and diff with `gh pr view`, `gh pr diff`, `gh api`, or fetched refs without changing branches.
|
|
18
|
+
- If the target is ambiguous, ask one concise clarifying question before reviewing.
|
|
19
|
+
|
|
20
|
+
Review process:
|
|
21
|
+
1. Inspect `git status` before local review so unrelated dirty files are visible.
|
|
22
|
+
2. Read the relevant diff first, then read full related files when needed to validate behavior.
|
|
23
|
+
3. Focus on concrete bugs, user-visible regressions, security/data-loss risks, missing validation, and meaningful test gaps.
|
|
24
|
+
4. Prioritize findings by severity and actionability. Do not pad with style nits.
|
|
25
|
+
5. If no findings are found, state that explicitly and mention residual risks or unrun checks.
|
|
26
|
+
|
|
27
|
+
Severity meanings:
|
|
28
|
+
- P0: data loss, security issue, or complete breakage.
|
|
29
|
+
- P1: clear bug or user-visible regression.
|
|
30
|
+
- P2: edge case, missing coverage, or maintenance risk.
|
|
31
|
+
- P3: style, wording, or low-risk improvement.
|
|
32
|
+
|
|
33
|
+
Output format:
|
|
34
|
+
```text
|
|
35
|
+
Findings
|
|
36
|
+
|
|
37
|
+
P1 path/to/file.ts:88
|
|
38
|
+
Problem statement in one sentence.
|
|
39
|
+
Impact: why this matters.
|
|
40
|
+
Suggestion: the smallest useful fix.
|
|
41
|
+
|
|
42
|
+
P2 path/to/test.ts:45
|
|
43
|
+
Problem statement in one sentence.
|
|
44
|
+
Impact: why this matters.
|
|
45
|
+
Suggestion: the smallest useful fix.
|
|
46
|
+
|
|
47
|
+
Verdict
|
|
48
|
+
Fix P1 before merging. P2 should be addressed if this area is changing.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Formatting rules:
|
|
52
|
+
- Findings come first. Keep summary prose after findings, not before.
|
|
53
|
+
- Include file paths and line numbers for concrete issues when available.
|
|
54
|
+
- Use plain language a non-author can understand.
|
|
55
|
+
- Keep the verdict short and specific.
|
|
56
|
+
|
|
57
|
+
Mode handling:
|
|
58
|
+
- `--summary`: add a concise review summary after the verdict.
|
|
59
|
+
- `--comment`: draft one general GitHub PR comment after the verdict, show it locally, and wait for my confirmation before posting.
|
|
60
|
+
- `--fix`: review first. If I did not already name the exact findings or severities to fix, stop after the review and ask which findings to repair. If I did name them, apply only those confirmed fixes, run targeted validation, then report what changed and what risk remains.
|
|
61
|
+
|
|
62
|
+
Fix loop constraints:
|
|
63
|
+
- Keep fixes minimal and bounded to the selected findings.
|
|
64
|
+
- Do not rewrite unrelated files.
|
|
65
|
+
- Do not chase speculative issues.
|
|
66
|
+
- Run targeted validation after edits when a relevant local check exists.
|
|
67
|
+
- If a fix is broad or risky, ask for confirmation before editing even when `--fix` is present.
|