compound-engineering-pi 0.2.3 → 0.2.4
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 +39 -87
- package/package.json +1 -1
- package/plugins/compound-engineering/.claude-plugin/plugin.json +1 -1
- package/plugins/compound-engineering/CHANGELOG.md +6 -0
- package/plugins/compound-engineering/README.md +1 -1
- package/plugins/compound-engineering/commands/deepen-plan.md +6 -4
- package/plugins/compound-engineering/commands/test-xcode.md +1 -1
- package/plugins/compound-engineering/commands/triage.md +1 -1
- package/plugins/compound-engineering/commands/workflows/brainstorm.md +4 -4
- package/plugins/compound-engineering/commands/workflows/plan.md +11 -9
- package/plugins/compound-engineering/commands/workflows/review.md +2 -2
- package/plugins/compound-engineering/skills/file-todos/SKILL.md +1 -1
- package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +1 -1
- package/prompts/deepen-plan.md +6 -4
- package/prompts/workflows-brainstorm.md +4 -4
- package/prompts/workflows-plan.md +11 -9
- package/prompts/workflows-review.md +2 -2
- package/skills/file-todos/SKILL.md +1 -1
- package/skills/{resolve_pr_parallel → resolve-pr-parallel}/SKILL.md +1 -1
- package/src/converters/claude-to-pi.ts +30 -0
- /package/skills/{resolve_pr_parallel → resolve-pr-parallel}/scripts/get-pr-comments +0 -0
- /package/skills/{resolve_pr_parallel → resolve-pr-parallel}/scripts/resolve-pr-thread +0 -0
package/README.md
CHANGED
|
@@ -1,124 +1,76 @@
|
|
|
1
1
|
# Compound Engineering for Pi
|
|
2
2
|
|
|
3
|
-
[](https://github.com/gvkhosla/compound-engineering-pi/actions/workflows/ci.yml)
|
|
4
3
|
[](https://www.npmjs.com/package/compound-engineering-pi)
|
|
4
|
+
[](https://github.com/gvkhosla/compound-engineering-pi/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
|
-
Pi-
|
|
7
|
-
|
|
8
|
-
## 🙌 Credit to the original creators
|
|
9
|
-
|
|
10
|
-
This project builds directly on the original work by **Every** and **Kieran**.
|
|
11
|
-
|
|
12
|
-
- Upstream plugin (source of truth): https://github.com/EveryInc/compound-engineering-plugin
|
|
13
|
-
- Compound engineering writeup: https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents
|
|
14
|
-
|
|
15
|
-
If you’re using Claude Code, Codex, OpenCode, or anything non-Pi-focused, use the upstream repo above.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Why this exists
|
|
20
|
-
|
|
21
|
-
The Every plugin is excellent, but Pi has different runtime semantics. This extension adapts the workflow for Pi so it feels native and works out of the box.
|
|
22
|
-
|
|
23
|
-
### What this Pi extension adds
|
|
24
|
-
|
|
25
|
-
- Native Pi package install
|
|
26
|
-
- Prebuilt Pi resources (`prompts/`, `skills/`, `extensions/`)
|
|
27
|
-
- Compatibility tool layer for Claude-style workflows
|
|
28
|
-
- Subagent orchestration in Pi (`single`, `parallel`, `chain`)
|
|
29
|
-
- MCP compatibility through **MCPorter** (`mcporter_list`, `mcporter_call`)
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Install (recommended)
|
|
34
|
-
|
|
35
|
-
### 1) Install Pi
|
|
36
|
-
|
|
37
|
-
- Pi project: https://github.com/mariozechner/pi-coding-agent
|
|
38
|
-
- Pi package gallery: https://shittycodingagent.ai/packages
|
|
39
|
-
- Discovery request opened with Pi maintainers: https://github.com/badlogic/pi-mono/issues/1480
|
|
6
|
+
Compound Engineering adapted for [Pi](https://github.com/mariozechner/pi-coding-agent). 47 skills, 9 workflow prompts, and a native compatibility layer, all installable in one command.
|
|
40
7
|
|
|
41
|
-
|
|
8
|
+
## Install
|
|
42
9
|
|
|
43
10
|
```bash
|
|
44
|
-
npm i -g mcporter
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### 3) Install this extension in Pi
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
# after npm publish:
|
|
51
11
|
pi install npm:compound-engineering-pi -l
|
|
52
|
-
# fallback (works now):
|
|
53
|
-
pi install git:github.com/gvkhosla/compound-engineering-pi@v0.2.3 -l
|
|
54
12
|
```
|
|
55
13
|
|
|
56
|
-
|
|
14
|
+
Reload your session, then you're ready:
|
|
57
15
|
|
|
58
16
|
```bash
|
|
59
17
|
/reload
|
|
60
|
-
pi -p "/workflows-plan Build a todo app"
|
|
61
18
|
```
|
|
62
19
|
|
|
63
|
-
|
|
20
|
+
## Quick start
|
|
64
21
|
|
|
65
22
|
```bash
|
|
66
|
-
|
|
23
|
+
pi -p "/workflows-plan Build a todo app"
|
|
24
|
+
pi -p "/workflows-work"
|
|
25
|
+
pi -p "/workflows-review"
|
|
26
|
+
pi -p "/workflows-compound"
|
|
67
27
|
```
|
|
68
28
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
## What you get immediately in Pi
|
|
29
|
+
These follow the core loop: **Plan, Work, Review, Compound**.
|
|
72
30
|
|
|
73
|
-
|
|
74
|
-
- Converted skills and reviewer agents
|
|
75
|
-
- Pi compatibility extension with tools:
|
|
76
|
-
- `ask_user_question`
|
|
77
|
-
- `subagent`
|
|
78
|
-
- `mcporter_list`
|
|
79
|
-
- `mcporter_call`
|
|
31
|
+
## What's included
|
|
80
32
|
|
|
81
|
-
|
|
33
|
+
### Workflow prompts
|
|
82
34
|
|
|
83
|
-
|
|
35
|
+
| Prompt | What it does |
|
|
36
|
+
|--------|-------------|
|
|
37
|
+
| `/workflows-plan` | Create a structured project plan |
|
|
38
|
+
| `/workflows-work` | Execute work from a plan |
|
|
39
|
+
| `/workflows-review` | Multi-agent code review |
|
|
40
|
+
| `/workflows-compound` | Document learnings for future sessions |
|
|
41
|
+
| `/workflows-brainstorm` | Explore ideas before planning |
|
|
42
|
+
| `/deepen-plan` | Add depth to an existing plan |
|
|
43
|
+
| `/test-browser` | Run browser tests on your pages |
|
|
44
|
+
| `/feature-video` | Record a video walkthrough of a feature |
|
|
45
|
+
| `/resolve_todo_parallel` | Resolve all pending todos in parallel |
|
|
84
46
|
|
|
85
|
-
|
|
47
|
+
### 47 skills
|
|
86
48
|
|
|
87
|
-
|
|
49
|
+
Code review, research, design, workflow automation, and more. Specialized reviewers for Rails, Python, and TypeScript. Security auditing, architecture analysis, design iteration, git worktree management, image generation, and browser automation.
|
|
88
50
|
|
|
89
|
-
|
|
51
|
+
Run `pi skills` after installing to see the full list.
|
|
90
52
|
|
|
91
|
-
|
|
92
|
-
- Uses `mcporter` CLI under the hood
|
|
93
|
-
- Supports project/global config and bundled fallback config
|
|
53
|
+
### Pi compatibility extension
|
|
94
54
|
|
|
95
|
-
|
|
55
|
+
Four tools that bridge common agent workflows into Pi:
|
|
96
56
|
|
|
97
|
-
|
|
57
|
+
- `ask_user_question` - prompt the user for input
|
|
58
|
+
- `subagent` - orchestrate tasks (`single`, `parallel`, `chain`)
|
|
59
|
+
- `mcporter_list` - list available MCP servers
|
|
60
|
+
- `mcporter_call` - call MCP server tools
|
|
98
61
|
|
|
99
|
-
|
|
62
|
+
### Optional: MCP support via MCPorter
|
|
100
63
|
|
|
101
|
-
|
|
64
|
+
For MCP interoperability, install [MCPorter](https://github.com/steipete/mcporter):
|
|
102
65
|
|
|
103
66
|
```bash
|
|
104
|
-
|
|
67
|
+
npm i -g mcporter
|
|
105
68
|
```
|
|
106
69
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
## Non-Pi usage (upstream)
|
|
110
|
-
|
|
111
|
-
For all non-Pi usage and canonical plugin docs, use:
|
|
112
|
-
|
|
113
|
-
- https://github.com/EveryInc/compound-engineering-plugin
|
|
114
|
-
|
|
115
|
-
That includes Claude Code-native setup, canonical command/skill design, and upstream issues/roadmap.
|
|
70
|
+
## Credits
|
|
116
71
|
|
|
117
|
-
|
|
72
|
+
Built on the [Compound Engineering plugin](https://github.com/EveryInc/compound-engineering-plugin) by [Every](https://every.to) and [Kieran Klaassen](https://github.com/kieranklaassen). Read the [original writeup](https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents).
|
|
118
73
|
|
|
119
|
-
##
|
|
74
|
+
## License
|
|
120
75
|
|
|
121
|
-
|
|
122
|
-
- Validation report: [VALIDATION.md](VALIDATION.md)
|
|
123
|
-
- npm release checklist: [NPM_PUBLISH.md](NPM_PUBLISH.md)
|
|
124
|
-
- Upstream canonical component docs: https://github.com/EveryInc/compound-engineering-plugin/blob/main/plugins/compound-engineering/README.md
|
|
76
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compound-engineering",
|
|
3
|
-
"version": "2.31.
|
|
3
|
+
"version": "2.31.2",
|
|
4
4
|
"description": "AI-powered development tools. 29 agents, 24 commands, 18 skills, 1 MCP server for code review, research, design, and workflow automation.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kieran Klaassen",
|
|
@@ -5,6 +5,12 @@ All notable changes to the compound-engineering plugin will be documented in thi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.31.2] - 2026-02-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`resolve-pr-parallel` skill naming compliance** — Updated skill frontmatter name to `resolve-pr-parallel` (hyphen-case) and aligned command references in docs to avoid Pi package validation warnings for invalid skill names.
|
|
13
|
+
|
|
8
14
|
## [2.31.1] - 2026-02-09
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -98,7 +98,7 @@ Core workflow commands use `workflows:` prefix to avoid collisions with built-in
|
|
|
98
98
|
| `/report-bug` | Report a bug in the plugin |
|
|
99
99
|
| `/reproduce-bug` | Reproduce bugs using logs and console |
|
|
100
100
|
| `/resolve_parallel` | Resolve TODO comments in parallel |
|
|
101
|
-
| `/
|
|
101
|
+
| `/resolve-pr-parallel` | Resolve PR comments in parallel |
|
|
102
102
|
| `/resolve_todo_parallel` | Resolve todos in parallel |
|
|
103
103
|
| `/triage` | Triage and prioritize issues |
|
|
104
104
|
| `/test-browser` | Run browser tests on PR-affected pages |
|
|
@@ -480,18 +480,20 @@ After writing the enhanced plan, use the **AskUserQuestion tool** to present the
|
|
|
480
480
|
|
|
481
481
|
**Options:**
|
|
482
482
|
1. **View diff** - Show what was added/changed
|
|
483
|
-
2. **
|
|
484
|
-
3. **
|
|
483
|
+
2. **Use `/technical_review`** - Get feedback from reviewers on enhanced plan
|
|
484
|
+
3. **Use `/workflows:work`** - Begin implementing this enhanced plan
|
|
485
485
|
4. **Deepen further** - Run another round of research on specific sections
|
|
486
486
|
5. **Revert** - Restore original plan (if backup exists)
|
|
487
487
|
|
|
488
488
|
Based on selection:
|
|
489
489
|
- **View diff** → Run `git diff [plan_path]` or show before/after
|
|
490
|
-
- **`/technical_review`** →
|
|
491
|
-
- **`/workflows:work`** →
|
|
490
|
+
- **`/technical_review`** → Run `pi --no-session -p "/technical_review [plan_path]"`
|
|
491
|
+
- **`/workflows:work`** → Run `pi --no-session -p "/workflows:work [plan_path]"`
|
|
492
492
|
- **Deepen further** → Ask which sections need more research, then re-run those agents
|
|
493
493
|
- **Revert** → Restore from git or backup
|
|
494
494
|
|
|
495
|
+
**Important:** Slash commands (like `/workflows:work`) are prompt templates, not shell executables. Never run `/...` directly via bash.
|
|
496
|
+
|
|
495
497
|
## Example Enhancement
|
|
496
498
|
|
|
497
499
|
**Before (from /workflows:plan):**
|
|
@@ -328,5 +328,5 @@ mcp__xcodebuildmcp__shutdown_simulator({ simulator_id: "[uuid]" })
|
|
|
328
328
|
When reviewing PRs that touch iOS code, the `/workflows:review` command can spawn this as a subagent:
|
|
329
329
|
|
|
330
330
|
```
|
|
331
|
-
Task general-purpose("
|
|
331
|
+
Task general-purpose("Invoke `/xcode-test` as a prompt for scheme [name]. Build, install on simulator, test key screens, check for crashes. Never run `/xcode-test` directly via bash.")
|
|
332
332
|
```
|
|
@@ -305,7 +305,7 @@ When done give these options
|
|
|
305
305
|
```markdown
|
|
306
306
|
What would you like to do next?
|
|
307
307
|
|
|
308
|
-
1.
|
|
308
|
+
1. invoke `/resolve_todo_parallel` as a prompt to resolve the todos
|
|
309
309
|
2. commit the todos
|
|
310
310
|
3. nothing, go chill
|
|
311
311
|
```
|
|
@@ -86,7 +86,7 @@ Use **AskUserQuestion tool** to present next steps:
|
|
|
86
86
|
|
|
87
87
|
**Options:**
|
|
88
88
|
1. **Review and refine** - Improve the document through structured self-review
|
|
89
|
-
2. **Proceed to planning** -
|
|
89
|
+
2. **Proceed to planning** - Invoke `/workflows:plan` as a prompt (will auto-detect this brainstorm)
|
|
90
90
|
3. **Done for now** - Return later
|
|
91
91
|
|
|
92
92
|
**If user selects "Review and refine":**
|
|
@@ -95,8 +95,8 @@ Load the `document-review` skill and apply it to the brainstorm document.
|
|
|
95
95
|
|
|
96
96
|
When document-review returns "Review complete", present next steps:
|
|
97
97
|
|
|
98
|
-
1. **Move to planning** - Continue
|
|
99
|
-
2. **Done for now** - Brainstorming complete. To start planning later
|
|
98
|
+
1. **Move to planning** - Continue by invoking `/workflows:plan` with this document
|
|
99
|
+
2. **Done for now** - Brainstorming complete. To start planning later, invoke `/workflows:plan [document-path]`
|
|
100
100
|
|
|
101
101
|
## Output Summary
|
|
102
102
|
|
|
@@ -111,7 +111,7 @@ Key decisions:
|
|
|
111
111
|
- [Decision 1]
|
|
112
112
|
- [Decision 2]
|
|
113
113
|
|
|
114
|
-
Next:
|
|
114
|
+
Next: Invoke `/workflows:plan` when ready to implement.
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## Important Guidelines
|
|
@@ -497,24 +497,26 @@ After writing the plan file, use the **AskUserQuestion tool** to present these o
|
|
|
497
497
|
|
|
498
498
|
**Options:**
|
|
499
499
|
1. **Open plan in editor** - Open the plan file for review
|
|
500
|
-
2. **
|
|
501
|
-
3. **
|
|
500
|
+
2. **Use `/deepen-plan`** - Enhance each section with parallel research agents (best practices, performance, UI)
|
|
501
|
+
3. **Use `/technical_review`** - Technical feedback from code-focused reviewers (DHH, Kieran, Simplicity)
|
|
502
502
|
4. **Review and refine** - Improve the document through structured self-review
|
|
503
|
-
5. **
|
|
504
|
-
6. **
|
|
503
|
+
5. **Use `/workflows:work`** - Begin implementing this plan locally
|
|
504
|
+
6. **Use `/workflows:work` on remote** - Begin implementing in Claude Code on the web (use `&` to run in background)
|
|
505
505
|
7. **Create Issue** - Create issue in project tracker (GitHub/Linear)
|
|
506
506
|
|
|
507
507
|
Based on selection:
|
|
508
508
|
- **Open plan in editor** → Run `open docs/plans/<plan_filename>.md` to open the file in the user's default editor
|
|
509
|
-
- **`/deepen-plan`** →
|
|
510
|
-
- **`/technical_review`** →
|
|
509
|
+
- **`/deepen-plan`** → Run `pi --no-session -p "/deepen-plan docs/plans/<plan_filename>.md"` to enhance with research
|
|
510
|
+
- **`/technical_review`** → Run `pi --no-session -p "/technical_review docs/plans/<plan_filename>.md"`
|
|
511
511
|
- **Review and refine** → Load `document-review` skill.
|
|
512
|
-
- **`/workflows:work`** →
|
|
513
|
-
- **`/workflows:work` on remote** → Run
|
|
512
|
+
- **`/workflows:work`** → Run `pi --no-session -p "/workflows:work docs/plans/<plan_filename>.md"`
|
|
513
|
+
- **`/workflows:work` on remote** → Run `pi --no-session -p "/workflows:work docs/plans/<plan_filename>.md" &` to start work in background
|
|
514
514
|
- **Create Issue** → See "Issue Creation" section below
|
|
515
515
|
- **Other** (automatically provided) → Accept free text for rework or specific changes
|
|
516
516
|
|
|
517
|
-
**
|
|
517
|
+
**Important:** Slash commands (like `/deepen-plan`) are prompt templates, not shell executables. Never run `/...` directly via bash.
|
|
518
|
+
|
|
519
|
+
**Note:** If running `/workflows:plan` with ultrathink enabled, automatically run `/deepen-plan` after plan creation by invoking `pi --no-session -p "/deepen-plan docs/plans/<plan_filename>.md"`.
|
|
518
520
|
|
|
519
521
|
Loop back to options after Simplify or Other changes until user selects `/workflows:work` or `/technical_review`.
|
|
520
522
|
|
|
@@ -485,7 +485,7 @@ After presenting the Summary Report, offer appropriate testing based on project
|
|
|
485
485
|
Spawn a subagent to run browser tests (preserves main context):
|
|
486
486
|
|
|
487
487
|
```
|
|
488
|
-
Task general-purpose("
|
|
488
|
+
Task general-purpose("Invoke `/test-browser` as a prompt for PR #[number]. Test all affected pages, check for console errors, handle failures by creating todos and fixing. Never run `/test-browser` directly via bash.")
|
|
489
489
|
```
|
|
490
490
|
|
|
491
491
|
The subagent will:
|
|
@@ -504,7 +504,7 @@ The subagent will:
|
|
|
504
504
|
Spawn a subagent to run Xcode tests (preserves main context):
|
|
505
505
|
|
|
506
506
|
```
|
|
507
|
-
Task general-purpose("
|
|
507
|
+
Task general-purpose("Invoke `/xcode-test` as a prompt for scheme [name]. Build for simulator, install, launch, take screenshots, check for crashes. Never run `/xcode-test` directly via bash.")
|
|
508
508
|
```
|
|
509
509
|
|
|
510
510
|
The subagent will:
|
|
@@ -186,7 +186,7 @@ Work logs serve as:
|
|
|
186
186
|
| Trigger | Flow | Tool |
|
|
187
187
|
|---------|------|------|
|
|
188
188
|
| Code review | `/workflows:review` → Findings → `/triage` → Todos | Review agent + skill |
|
|
189
|
-
| PR comments | `/
|
|
189
|
+
| PR comments | `/resolve-pr-parallel` → Individual fixes → Todos | gh CLI + skill |
|
|
190
190
|
| Code TODOs | `/resolve_todo_parallel` → Fixes + Complex todos | Agent + skill |
|
|
191
191
|
| Planning | Brainstorm → Create todo → Work → Complete | Skill |
|
|
192
192
|
| Feedback | Discussion → Create todo → Triage → Work | Skill + slash |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: resolve-pr-parallel
|
|
3
3
|
description: Resolve all PR comments using parallel processing. Use when addressing PR review feedback, resolving review threads, or batch-fixing PR comments.
|
|
4
4
|
argument-hint: "[optional: PR number or current PR]"
|
|
5
5
|
disable-model-invocation: true
|
package/prompts/deepen-plan.md
CHANGED
|
@@ -479,18 +479,20 @@ After writing the enhanced plan, use the **ask_user_question tool** to present t
|
|
|
479
479
|
|
|
480
480
|
**Options:**
|
|
481
481
|
1. **View diff** - Show what was added/changed
|
|
482
|
-
2. **
|
|
483
|
-
3. **
|
|
482
|
+
2. **Use `/technical_review`** - Get feedback from reviewers on enhanced plan
|
|
483
|
+
3. **Use `/workflows-work`** - Begin implementing this enhanced plan
|
|
484
484
|
4. **Deepen further** - Run another round of research on specific sections
|
|
485
485
|
5. **Revert** - Restore original plan (if backup exists)
|
|
486
486
|
|
|
487
487
|
Based on selection:
|
|
488
488
|
- **View diff** → Run `git diff [plan_path]` or show before/after
|
|
489
|
-
- **`/technical_review`** →
|
|
490
|
-
- **`/workflows-work`** →
|
|
489
|
+
- **`/technical_review`** → Run `pi --no-session -p "/technical_review [plan_path]"`
|
|
490
|
+
- **`/workflows-work`** → Run `pi --no-session -p "/workflows-work [plan_path]"`
|
|
491
491
|
- **Deepen further** → Ask which sections need more research, then re-run those agents
|
|
492
492
|
- **Revert** → Restore from git or backup
|
|
493
493
|
|
|
494
|
+
**Important:** Slash commands (like `/workflows-work`) are Pi prompt templates, not shell executables. Never run `/...` directly via bash.
|
|
495
|
+
|
|
494
496
|
## Example Enhancement
|
|
495
497
|
|
|
496
498
|
**Before (from /workflows-plan):**
|
|
@@ -85,7 +85,7 @@ Use **ask_user_question tool** to present next steps:
|
|
|
85
85
|
|
|
86
86
|
**Options:**
|
|
87
87
|
1. **Review and refine** - Improve the document through structured self-review
|
|
88
|
-
2. **Proceed to planning** -
|
|
88
|
+
2. **Proceed to planning** - Invoke `/workflows-plan` as a Pi prompt (will auto-detect this brainstorm)
|
|
89
89
|
3. **Done for now** - Return later
|
|
90
90
|
|
|
91
91
|
**If user selects "Review and refine":**
|
|
@@ -94,8 +94,8 @@ Load the `document-review` skill and apply it to the brainstorm document.
|
|
|
94
94
|
|
|
95
95
|
When document-review returns "Review complete", present next steps:
|
|
96
96
|
|
|
97
|
-
1. **Move to planning** - Continue
|
|
98
|
-
2. **Done for now** - Brainstorming complete. To start planning later
|
|
97
|
+
1. **Move to planning** - Continue by invoking `/workflows-plan` with this document
|
|
98
|
+
2. **Done for now** - Brainstorming complete. To start planning later, invoke `/workflows-plan [document-path]` as a Pi prompt
|
|
99
99
|
|
|
100
100
|
## Output Summary
|
|
101
101
|
|
|
@@ -110,7 +110,7 @@ Key decisions:
|
|
|
110
110
|
- [Decision 1]
|
|
111
111
|
- [Decision 2]
|
|
112
112
|
|
|
113
|
-
Next:
|
|
113
|
+
Next: Invoke `/workflows-plan` as a Pi prompt when ready to implement.
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Important Guidelines
|
|
@@ -496,24 +496,26 @@ After writing the plan file, use the **ask_user_question tool** to present these
|
|
|
496
496
|
|
|
497
497
|
**Options:**
|
|
498
498
|
1. **Open plan in editor** - Open the plan file for review
|
|
499
|
-
2. **
|
|
500
|
-
3. **
|
|
499
|
+
2. **Use `/deepen-plan`** - Enhance each section with parallel research agents (best practices, performance, UI)
|
|
500
|
+
3. **Use `/technical_review`** - Technical feedback from code-focused reviewers (DHH, Kieran, Simplicity)
|
|
501
501
|
4. **Review and refine** - Improve the document through structured self-review
|
|
502
|
-
5. **
|
|
503
|
-
6. **
|
|
502
|
+
5. **Use `/workflows-work`** - Begin implementing this plan locally
|
|
503
|
+
6. **Use `/workflows-work` on remote** - Begin implementing in Claude Code on the web (use `&` to run in background)
|
|
504
504
|
7. **Create Issue** - Create issue in project tracker (GitHub/Linear)
|
|
505
505
|
|
|
506
506
|
Based on selection:
|
|
507
507
|
- **Open plan in editor** → Run `open docs/plans/<plan_filename>.md` to open the file in the user's default editor
|
|
508
|
-
- **`/deepen-plan`** →
|
|
509
|
-
- **`/technical_review`** →
|
|
508
|
+
- **`/deepen-plan`** → Run `pi --no-session -p "/deepen-plan docs/plans/<plan_filename>.md"` to enhance with research
|
|
509
|
+
- **`/technical_review`** → Run `pi --no-session -p "/technical_review docs/plans/<plan_filename>.md"`
|
|
510
510
|
- **Review and refine** → Load `document-review` skill.
|
|
511
|
-
- **`/workflows-work`** →
|
|
512
|
-
- **`/workflows-work` on remote** → Run
|
|
511
|
+
- **`/workflows-work`** → Run `pi --no-session -p "/workflows-work docs/plans/<plan_filename>.md"`
|
|
512
|
+
- **`/workflows-work` on remote** → Run `pi --no-session -p "/workflows-work docs/plans/<plan_filename>.md" &` to start work in background
|
|
513
513
|
- **Create Issue** → See "Issue Creation" section below
|
|
514
514
|
- **Other** (automatically provided) → Accept free text for rework or specific changes
|
|
515
515
|
|
|
516
|
-
**
|
|
516
|
+
**Important:** Slash commands (like `/deepen-plan`) are Pi prompt templates, not shell executables. Never run `/...` directly via bash.
|
|
517
|
+
|
|
518
|
+
**Note:** If running `/workflows-plan` with ultrathink enabled, automatically run `/deepen-plan` after plan creation by invoking `pi --no-session -p "/deepen-plan docs/plans/<plan_filename>.md"`.
|
|
517
519
|
|
|
518
520
|
Loop back to options after Simplify or Other changes until user selects `/workflows-work` or `/technical_review`.
|
|
519
521
|
|
|
@@ -484,7 +484,7 @@ After presenting the Summary Report, offer appropriate testing based on project
|
|
|
484
484
|
Spawn a subagent to run browser tests (preserves main context):
|
|
485
485
|
|
|
486
486
|
```
|
|
487
|
-
Run subagent with agent="general-purpose" and task=""
|
|
487
|
+
Run subagent with agent="general-purpose" and task=""Invoke `/test-browser` as a Pi prompt for PR #[number]. Test all affected pages, check for console errors, handle failures by creating todos and fixing. Never run `/test-browser` directly via bash."".
|
|
488
488
|
```
|
|
489
489
|
|
|
490
490
|
The subagent will:
|
|
@@ -503,7 +503,7 @@ The subagent will:
|
|
|
503
503
|
Spawn a subagent to run Xcode tests (preserves main context):
|
|
504
504
|
|
|
505
505
|
```
|
|
506
|
-
Run subagent with agent="general-purpose" and task=""
|
|
506
|
+
Run subagent with agent="general-purpose" and task=""Invoke `/xcode-test` as a Pi prompt for scheme [name]. Build for simulator, install, launch, take screenshots, check for crashes. Never run `/xcode-test` directly via bash."".
|
|
507
507
|
```
|
|
508
508
|
|
|
509
509
|
The subagent will:
|
|
@@ -186,7 +186,7 @@ Work logs serve as:
|
|
|
186
186
|
| Trigger | Flow | Tool |
|
|
187
187
|
|---------|------|------|
|
|
188
188
|
| Code review | `/workflows:review` → Findings → `/triage` → Todos | Review agent + skill |
|
|
189
|
-
| PR comments | `/
|
|
189
|
+
| PR comments | `/resolve-pr-parallel` → Individual fixes → Todos | gh CLI + skill |
|
|
190
190
|
| Code TODOs | `/resolve_todo_parallel` → Fixes + Complex todos | Agent + skill |
|
|
191
191
|
| Planning | Brainstorm → Create todo → Work → Complete | Skill |
|
|
192
192
|
| Feedback | Discussion → Create todo → Triage → Work | Skill + slash |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: resolve-pr-parallel
|
|
3
3
|
description: Resolve all PR comments using parallel processing. Use when addressing PR review feedback, resolving review threads, or batch-fixing PR comments.
|
|
4
4
|
argument-hint: "[optional: PR number or current PR]"
|
|
5
5
|
disable-model-invocation: true
|
|
@@ -127,6 +127,36 @@ function transformContentForPi(body: string): string {
|
|
|
127
127
|
return `/${normalizeName(withoutPrefix)}`
|
|
128
128
|
})
|
|
129
129
|
|
|
130
|
+
result = rewriteSlashCommandExecutionForPi(result)
|
|
131
|
+
|
|
132
|
+
return result
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function rewriteSlashCommandExecutionForPi(body: string): string {
|
|
136
|
+
let result = body
|
|
137
|
+
|
|
138
|
+
result = result.replace(/Call the \/([a-z][a-z0-9_-]*) command/gi, (_match, commandName: string) => {
|
|
139
|
+
return `Invoke \`/${commandName}\` as a Pi prompt (never as a direct bash command)`
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
result = result.replace(/Run `\/([a-z][a-z0-9_-]*)([^`]*)`/gi, (_match, commandName: string, rawArgs: string) => {
|
|
143
|
+
let args = (rawArgs ?? "").trim()
|
|
144
|
+
let backgroundSuffix = ""
|
|
145
|
+
|
|
146
|
+
if (args.endsWith("&")) {
|
|
147
|
+
args = args.slice(0, -1).trimEnd()
|
|
148
|
+
backgroundSuffix = " &"
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const prompt = args.length > 0 ? `/${commandName} ${args}` : `/${commandName}`
|
|
152
|
+
const escapedPrompt = prompt.replace(/"/g, '\\"')
|
|
153
|
+
return `Run \`pi --no-session -p "${escapedPrompt}"${backgroundSuffix}\``
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
if (result !== body && !result.includes("Slash commands are Pi prompt templates")) {
|
|
157
|
+
result += "\n\n**Important:** Slash commands are Pi prompt templates, not shell executables. Never run `/...` directly via bash."
|
|
158
|
+
}
|
|
159
|
+
|
|
130
160
|
return result
|
|
131
161
|
}
|
|
132
162
|
|
|
File without changes
|
|
File without changes
|