@pi-unipi/workflow 0.1.15 → 0.1.17
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 -55
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
# @pi-unipi/workflow
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
20 slash commands that take work from idea to shipped code. Each command loads a skill file that tells the agent exactly what to do — brainstorm, plan, execute, review, or fix.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
19 slash commands that guide work from idea to completion. Each command maps to a skill that instructs the agent on what to do.
|
|
5
|
+
The core loop: brainstorm an idea, plan the implementation, execute in a worktree, review the result, consolidate what you learned. Everything else supports this cycle.
|
|
8
6
|
|
|
9
7
|
## Commands
|
|
10
8
|
|
|
@@ -30,17 +28,14 @@ Structured development workflow commands for Pi coding agent.
|
|
|
30
28
|
| `/unipi:chore-create` | Create reusable chore definition | `<string>` |
|
|
31
29
|
| `/unipi:chore-execute` | Execute a saved chore | `chore:<path> <string>` |
|
|
32
30
|
|
|
33
|
-
##
|
|
31
|
+
## Typical Flow
|
|
34
32
|
|
|
35
33
|
```
|
|
36
34
|
brainstorm → plan → work → review-work → consolidate
|
|
37
35
|
↑ │
|
|
38
36
|
└────────────────────────────────────────┘
|
|
39
|
-
(loop)
|
|
40
37
|
```
|
|
41
38
|
|
|
42
|
-
### Typical Flow
|
|
43
|
-
|
|
44
39
|
```bash
|
|
45
40
|
# 1. Brainstorm an idea
|
|
46
41
|
/unipi:brainstorm redesign auth system
|
|
@@ -60,34 +55,26 @@ brainstorm → plan → work → review-work → consolidate
|
|
|
60
55
|
|
|
61
56
|
### Quick Tasks
|
|
62
57
|
|
|
58
|
+
For small tasks that skip the full flow:
|
|
59
|
+
|
|
63
60
|
```bash
|
|
64
|
-
# For small tasks that don't need full flow
|
|
65
61
|
/unipi:quick-work fix typo in README
|
|
66
62
|
```
|
|
67
63
|
|
|
68
|
-
### Research
|
|
64
|
+
### Research and Advisory
|
|
69
65
|
|
|
70
66
|
```bash
|
|
71
|
-
# Gather context before brainstorming
|
|
72
67
|
/unipi:gather-context how we handle errors
|
|
73
|
-
|
|
74
|
-
# Get expert advice
|
|
75
68
|
/unipi:consultant should we use GraphQL or REST?
|
|
76
|
-
|
|
77
|
-
# Generate documentation
|
|
78
69
|
/unipi:document the auth module
|
|
79
|
-
|
|
80
|
-
# Deep research with bash access
|
|
81
70
|
/unipi:research TypeScript 5.0 migration path
|
|
82
|
-
|
|
83
|
-
# Find issues (passive scan)
|
|
84
71
|
/unipi:scan-issues focus on security
|
|
85
72
|
```
|
|
86
73
|
|
|
87
74
|
### Bug Fixing
|
|
88
75
|
|
|
89
76
|
```bash
|
|
90
|
-
#
|
|
77
|
+
# Full debug flow
|
|
91
78
|
/unipi:debug TypeError in auth middleware
|
|
92
79
|
/unipi:fix debug:2026-04-28-auth-typeerror-debug
|
|
93
80
|
|
|
@@ -98,28 +85,47 @@ brainstorm → plan → work → review-work → consolidate
|
|
|
98
85
|
### Chores
|
|
99
86
|
|
|
100
87
|
```bash
|
|
101
|
-
# Create reusable chores
|
|
102
88
|
/unipi:chore-create push to github main
|
|
103
|
-
/unipi:chore-create publish package to npm
|
|
104
|
-
|
|
105
|
-
# Execute saved chores
|
|
106
89
|
/unipi:chore-execute chore:push-github-main
|
|
107
|
-
/unipi:chore-execute chore:publish-npm
|
|
108
90
|
```
|
|
109
91
|
|
|
110
92
|
### Worktree Management
|
|
111
93
|
|
|
112
94
|
```bash
|
|
113
|
-
# Create worktree
|
|
114
95
|
/unipi:worktree-create feat/new-feature
|
|
115
|
-
|
|
116
|
-
# List worktrees
|
|
117
96
|
/unipi:worktree-list
|
|
118
|
-
|
|
119
|
-
# Merge back to main
|
|
120
|
-
/ununi:worktree-merge feat/new-feature
|
|
97
|
+
/unipi:worktree-merge feat/new-feature
|
|
121
98
|
```
|
|
122
99
|
|
|
100
|
+
## Special Triggers
|
|
101
|
+
|
|
102
|
+
Workflow skills detect installed packages and enhance their behavior automatically. This is the coexists system — each package adds capabilities without requiring configuration.
|
|
103
|
+
|
|
104
|
+
| Package Present | Skills Affected | What Changes |
|
|
105
|
+
|-----------------|-----------------|--------------|
|
|
106
|
+
| `@pi-unipi/ask-user` | All skills | Structured user input for decisions |
|
|
107
|
+
| `@pi-unipi/subagents` | brainstorm, document, gather-context, review-work, scan-issues, work | Parallel execution with file locking |
|
|
108
|
+
| `@pi-unipi/mcp` | All skills | MCP server tools available |
|
|
109
|
+
| `@pi-unipi/web-api` | research, gather-context, consultant | Web search and page reading |
|
|
110
|
+
| `@pi-unipi/compactor` | All skills (main agent) | Context tools available |
|
|
111
|
+
| `@pi-unipi/ralph` | work, review-work | Ralph loop for 3+ tasks |
|
|
112
|
+
|
|
113
|
+
When `@pi-unipi/ask-user` is installed, skills use `ask_user` for decision gates — presenting options instead of guessing. When `@pi-unipi/subagents` is installed, investigation skills spawn parallel agents to explore code faster.
|
|
114
|
+
|
|
115
|
+
The footer package subscribes to workflow events (`WORKFLOW_START`, `WORKFLOW_END`) to show current command and duration. Info-screen displays workflow state in its dashboard.
|
|
116
|
+
|
|
117
|
+
## How Skills Work
|
|
118
|
+
|
|
119
|
+
Each command maps to a skill file in `packages/workflow/skills/{name}/SKILL.md`. When you run `/unipi:brainstorm`, Pi loads the brainstorm skill and follows its instructions.
|
|
120
|
+
|
|
121
|
+
Skills define:
|
|
122
|
+
- What the agent should do step by step
|
|
123
|
+
- What tools to use (subagents, web search, ask-user)
|
|
124
|
+
- What output to produce (specs, plans, reviews)
|
|
125
|
+
- Where to save results (`.unipi/docs/`)
|
|
126
|
+
|
|
127
|
+
The agent reads the skill, executes the steps, and produces artifacts in the `.unipi/` directory.
|
|
128
|
+
|
|
123
129
|
## Directory Structure
|
|
124
130
|
|
|
125
131
|
```
|
|
@@ -140,31 +146,9 @@ brainstorm → plan → work → review-work → consolidate
|
|
|
140
146
|
└── fix/login-bug/
|
|
141
147
|
```
|
|
142
148
|
|
|
143
|
-
##
|
|
144
|
-
|
|
145
|
-
- **@pi-unipi/core** — shared constants, events, utilities
|
|
146
|
-
- **@pi-unipi/memory** — memory hooks for consolidate (optional)
|
|
147
|
-
- **@pi-unipi/subagents** — parallel research for gather-context, scan-issues (optional)
|
|
148
|
-
- **@pi-unipi/ralph** — loop integration for long-running tasks (optional)
|
|
149
|
-
- **@pi-unipi/ask-user** — structured user input for all skills (optional)
|
|
150
|
-
- **@pi-unipi/mcp** — MCP server tools for all skills (optional)
|
|
151
|
-
- **@pi-unipi/web-api** — web research for research-type skills (optional)
|
|
152
|
-
- **@pi-unipi/compactor** — compactor tools for main agent (optional)
|
|
149
|
+
## Configuration
|
|
153
150
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
## Installation
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
npm install @pi-unipi/workflow
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
Add to pi settings:
|
|
163
|
-
```json
|
|
164
|
-
{
|
|
165
|
-
"extensions": ["@unipi/workflow"]
|
|
166
|
-
}
|
|
167
|
-
```
|
|
151
|
+
Workflow has no configuration. Skills are static files — the agent follows them as-is. Behavior changes come from which packages are installed (see Special Triggers above).
|
|
168
152
|
|
|
169
153
|
## License
|
|
170
154
|
|