@lebronj/pi-suite 0.1.9 → 0.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lebronj/pi-suite",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "JHP's Pi extension suite for team coding workflows",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -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.
@@ -218,4 +218,8 @@ Provider: openai
218
218
  Base URL: $TEAM_BASE_URL
219
219
  Model: $TEAM_MODEL
220
220
  Run: pi
221
+
222
+ Optional Figma tools are not installed by default.
223
+ Enable later with: pi install npm:pi-mono-figma
224
+ Disable later with: pi remove npm:pi-mono-figma
221
225
  MSG
@@ -18,6 +18,7 @@ When adding, removing, renaming, or materially changing any pi capability in thi
18
18
  - `edit`: precise exact-text replacements in one file.
19
19
  - `write`: create or overwrite files.
20
20
  - `goal`: inspect, resume/drop, or complete an active goal-mode objective when goal mode is running.
21
+ - `autogoal`: inspect, checkpoint, pause/resume/drop, block, or complete an active bounded autogoal run when `/autogoal` is running.
21
22
  - `lsp_diagnostics` / `lsp_navigation`: code-intelligence path for diagnostics, definitions, references, hover, symbols, call hierarchy, rename, and workspace diagnostics when pi-lens/LSP tools are installed.
22
23
  - `ast_grep_search` / `ast_grep_replace` / `ast_dump`: AST-aware code search and replacement when pi-lens tools are installed; prefer over raw text search for structural code patterns.
23
24
  - `lens_diagnostics`: inspect pi-lens warnings/errors for files touched this session when available.
@@ -170,6 +171,19 @@ mcp({ tool: "tool_name", args: "{}" })
170
171
 
171
172
  Do not route built-in pi tools through MCP; call them directly.
172
173
 
174
+ ## Autogoal
175
+
176
+ Autogoal is provided by `autogoal.ts`.
177
+
178
+ - Start with `/autogoal <task>`.
179
+ - It persists the objective, injects hidden loop context, enables the `autogoal` tool, and auto-continues until verified complete, paused, dropped, blocked, or interrupted.
180
+ - It uses bounded loop defaults: 12 autonomous turns per session, 2 no-progress turns, 3 repeated repair attempts, and 4 subagent jobs per run.
181
+ - Context thresholds are 60% prepare, 75% checkpoint, and 85% checkpoint plus automatic new-session continuation.
182
+ - Completion is gated by current-state evidence: changed files must be read after edits and a relevant validation command must pass before `autogoal({ op: "complete" })` succeeds.
183
+ - Subagents are optional; scout/reviewer/verifier are allowed when useful, while worker subagents must use isolated worktrees.
184
+ - Run artifacts are audit-only and live under `~/.pi/agent/workflow-runs/autogoal-<run-id>/`; checkpoints also live under `~/.pi/agent/autogoal/checkpoints/`.
185
+ - Useful commands: `/autogoal status`, `/autogoal pause`, `/autogoal resume`, `/autogoal checkpoint`, `/autogoal drop`, `/autogoal auto on`, `/autogoal auto off`.
186
+
173
187
  ## Goal Mode
174
188
 
175
189
  Goal mode is provided by `goal-mode.ts`.
@@ -209,6 +223,7 @@ Suite skills currently include:
209
223
 
210
224
  Optional package-provided skills can include:
211
225
 
226
+ - `figma`: Figma REST/API design exploration and design-to-code workflows from `pi-mono-figma`; not installed or loaded by default, enabled with `pi install npm:pi-mono-figma`.
212
227
  - `librarian`: library internals research with source citations.
213
228
  - `pi-subagents`: subagent delegation workflows.
214
229
  - `ast-grep`: AST-aware code search/replace guidance.
@@ -231,11 +246,12 @@ Global user package configuration is in `~/.pi/agent/settings.json`; project pac
231
246
 
232
247
  Current suite package:
233
248
 
234
- - `@lebronj/pi-suite`: bundles local extensions, prompts, suite skills, vendored `@jhp/pi-memory`, and optional package hooks for `pi-mcp-adapter`, `pi-subagents`, and `pi-web-access`.
249
+ - `@lebronj/pi-suite`: bundles local extensions, prompts, suite skills, vendored `@jhp/pi-memory`, and optional package hooks for `pi-mcp-adapter`, `pi-subagents`, and `pi-web-access`. It does not install or load `pi-mono-figma` by default.
235
250
 
236
251
  Common project packages:
237
252
 
238
253
  - `@jhp/pi-memory`
254
+ - `pi-mono-figma` (install and enable only on demand with `pi install npm:pi-mono-figma`)
239
255
  - `pi-web-access`
240
256
  - `pi-mcp-adapter`
241
257
  - `pi-subagents`
@@ -246,7 +262,8 @@ Bootstrap behavior:
246
262
  - Installs global `@earendil-works/pi-coding-agent`.
247
263
  - Writes the team OpenAI-compatible provider to `~/.pi/agent/models.json`.
248
264
  - Sets default provider/model in `~/.pi/agent/settings.json`.
249
- - Runs `pi install npm:@lebronj/pi-suite` by default.
265
+ - Runs `pi install npm:@lebronj/pi-suite` by default; this does not install or load `pi-mono-figma`.
266
+ - Prints follow-up instructions for enabling Figma later with `pi install npm:pi-mono-figma` and disabling it with `pi remove npm:pi-mono-figma`.
250
267
  - Creates `~/.pi/agent/memory` and links it into the workspace `.pi/memory` when safe.
251
268
  - Optionally initializes the local `~/.pi/agent/evolution` repo for memory/skill-draft snapshots; it never writes tokens or enables auto-push.
252
269
  - Links suite skills into the workspace `.pi/skills` when safe.