pi-feature-dev 1.3.0 → 1.4.0

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 CHANGED
@@ -21,6 +21,10 @@ isolated workers and Git access.
21
21
 
22
22
  ## Install
23
23
 
24
+ ```
25
+ npx skills add https://github.com/r13v/pi-feature-dev
26
+ ```
27
+
24
28
  From npm:
25
29
 
26
30
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-feature-dev",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Portable coding-agent workflows packaged as skills.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -5,7 +5,7 @@ description: Create structured implementation plans in docs/plans/ for feature w
5
5
 
6
6
  # Implementation Plan Creation
7
7
 
8
- Create an implementation plan in `docs/plans/YYYYMMDD-title.md` after focused discovery and user-guided scope decisions.
8
+ Create an implementation plan in `docs/plans/YYYYMMDD-title.md` after focused discovery and user-guided scope decisions. The plan file is the execution contract: a fresh agent must be able to execute it without reading the prior chat.
9
9
 
10
10
  ## Workflow
11
11
 
@@ -14,9 +14,10 @@ Create an implementation plan in `docs/plans/YYYYMMDD-title.md` after focused di
14
14
  3. Present a concise context summary, including likely affected areas and any uncertainty.
15
15
  4. Ask focused questions one at a time. Prefer multiple-choice questions with a recommended option when the answer can be bounded.
16
16
  5. If there are multiple viable implementation paths, present 2-3 approaches with trade-offs and recommend one. Ask the user to choose before writing the plan. Skip this only when the path is obvious or the user already specified the approach.
17
- 6. Preserve enough context in the plan for an isolated reviewer to understand the request, decisions, assumptions, and non-goals without hidden conversation context.
17
+ 6. Preserve enough context in the plan for an isolated executor and reviewer to understand the request, decisions, assumptions, non-goals, implementation path, and verification commands without hidden conversation context.
18
18
  7. Create the plan file under `docs/plans/` using the current date and a short slug.
19
- 8. After creating the plan, ask the user whether to review, start implementation, or stop after the plan.
19
+ 8. Before finishing, audit the plan against the Self-Contained Plan Contract below and revise until it passes.
20
+ 9. After creating the plan, ask the user whether to review, start implementation, or stop after the plan.
20
21
 
21
22
  ## Project Guidance Discovery
22
23
 
@@ -85,6 +86,31 @@ Which direction do you prefer?
85
86
 
86
87
  If repeated code is involved, explicitly compare duplication versus abstraction and ask when both are reasonable.
87
88
 
89
+ ## Self-Contained Plan Contract
90
+
91
+ Every plan must be autonomous. Treat the plan as the only document available to a fresh implementation worker besides the repository itself.
92
+
93
+ A self-contained plan includes:
94
+ - The original request and the exact outcome expected.
95
+ - Explicit assumptions, decisions, non-goals, and unresolved questions.
96
+ - Relevant repository context discovered during planning, with concrete file paths, components, exports, APIs, commands, and patterns.
97
+ - The selected approach and why alternatives were rejected when alternatives were considered.
98
+ - Acceptance criteria that define when the work is complete.
99
+ - Ordered tasks with exact files to create or modify, specific implementation actions, specific test actions, and exact validation commands.
100
+ - Any external dependency, credential, manual step, or environment constraint required to complete or verify the work.
101
+
102
+ Avoid hidden-context references:
103
+ - Do not write "as discussed", "current behavior", "use the existing helper", "same as above", or "the relevant file" without naming the file, symbol, or behavior.
104
+ - Do not leave placeholders such as `[command]`, `[TBD]`, `[exact/path]`, or `[if needed]` in the final plan.
105
+ - Do not rely on future executor discovery for decisions already made during planning. If discovery is still needed, make it an explicit task with what to inspect and why.
106
+ - Do not include speculative abstractions, future-proofing, or optional work as implementation tasks. Put external or manual follow-up in Post-Completion.
107
+
108
+ Before writing the final file, verify:
109
+ - Could a fresh agent start from this plan and the repository alone?
110
+ - Does every task explain why it exists and how to verify it?
111
+ - Are all referenced commands, files, and symbols concrete?
112
+ - Are all assumptions and user decisions recorded in the plan?
113
+
88
114
  ## Plan Template
89
115
 
90
116
  Use this structure and adapt it to the project:
@@ -96,17 +122,21 @@ Use this structure and adapt it to the project:
96
122
  - Clear description of the feature/change.
97
123
  - Problem it solves and key benefits.
98
124
  - How it integrates with the existing system.
125
+ - Acceptance criteria for completion.
99
126
 
100
127
  ## Context
101
128
  - Files/components involved: [list from discovery]
102
- - Related patterns found: [patterns discovered]
129
+ - Related patterns found: [patterns discovered, with file paths and symbols]
103
130
  - Dependencies identified: [dependencies]
131
+ - Relevant commands discovered: [test/lint/build commands]
132
+ - Constraints from project guidance: [AGENTS.md/CLAUDE.md/README rules that affect this plan]
104
133
 
105
134
  ## Review Handoff
106
135
  - Original request: [user's requested outcome]
107
136
  - Key decisions made during planning: [brief bullets]
108
137
  - Explicit non-goals: [if any]
109
138
  - Open questions or assumptions: [if any]
139
+ - Hidden context: none; this plan is self-contained for a fresh executor.
110
140
 
111
141
  ## Development Approach
112
142
  - Testing approach: [TDD / Regular]
@@ -115,11 +145,13 @@ Use this structure and adapt it to the project:
115
145
  - Every code-change task must include new or updated tests.
116
146
  - All tests for a task must pass before starting the next task.
117
147
  - Update this plan when scope changes during implementation.
148
+ - Do not rely on chat history; decisions and constraints must be recorded here before execution.
118
149
 
119
150
  ## Testing Strategy
120
151
  - Unit tests required for every code-change task.
121
152
  - E2E tests required for UI flows when the project has an E2E setup.
122
153
  - Cover success, error, and edge cases.
154
+ - Exact validation commands: [commands discovered during planning]
123
155
 
124
156
  ## Progress Tracking
125
157
  - Mark completed items with `[x]` immediately when done.
@@ -134,14 +166,16 @@ Use this structure and adapt it to the project:
134
166
  ## Implementation Steps
135
167
 
136
168
  ### Task 1: [specific name]
169
+ **Why:** [reason this task is needed for the requested outcome]
170
+
137
171
  **Files:**
138
172
  - Create: `exact/path/to/new_file`
139
173
  - Modify: `exact/path/to/existing_file`
140
174
 
141
- - [ ] [specific code action with file reference]
175
+ - [ ] [specific code action with file and symbol reference]
142
176
  - [ ] [specific test action for success cases]
143
177
  - [ ] [specific test action for error/edge cases]
144
- - [ ] Run relevant tests and confirm they pass before next task.
178
+ - [ ] Run relevant tests and confirm they pass before next task
145
179
 
146
180
  ### Task N-1: Verify Acceptance Criteria
147
181
  - [ ] Verify all Overview requirements are implemented.
@@ -155,9 +189,11 @@ Use this structure and adapt it to the project:
155
189
  - [ ] Move this plan to `docs/plans/completed/`.
156
190
 
157
191
  ## Technical Details
192
+ - Existing APIs, exports, components, or commands the implementation must use.
158
193
  - Data structures and changes.
159
194
  - Parameters and formats.
160
195
  - Processing flow.
196
+ - Invariants and edge cases the executor must preserve.
161
197
 
162
198
  ## Post-Completion
163
199
  Items requiring manual intervention or external systems.