planning-with-files 3.16.1 → 3.17.1
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 +65 -63
- package/SKILL.md +498 -498
- package/package.json +1 -1
- package/scripts/attest-plan.ps1 +1 -0
- package/scripts/attest-plan.sh +4 -0
- package/scripts/check-complete.ps1 +1 -0
- package/scripts/check-complete.sh +3 -0
- package/scripts/inject-plan.py +1601 -0
- package/scripts/inject-plan.sh +34 -25
- package/scripts/resolve-plan-dir.ps1 +26 -1
- package/scripts/resolve-plan-dir.sh +32 -2
- package/scripts/skill-hook.sh +112 -44
package/README.md
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/OthmanAdi/planning-with-files/master/media/v3-banner-1400.jpg" alt="planning-with-files: task_plan.md, findings.md, and progress.md as three stone tablets" width="100%">
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Planning with Files</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>The planning skill your agent cannot ignore.</strong><br>
|
|
9
|
+
Your agent's context window dies. The plan does not.
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
Persistent file-based planning for AI coding agents. Keep the plan, research and progress in your project so work can continue after context loss, `/clear`, crashes or compaction.
|
|
13
|
+
|
|
14
|
+
| File | Purpose |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `task_plan.md` | Goals, phases and decisions |
|
|
17
|
+
| `findings.md` | Research and discoveries |
|
|
18
|
+
| `progress.md` | Work completed, checks and next steps |
|
|
19
|
+
|
|
20
|
+
This is the npm distribution of [OthmanAdi/planning-with-files](https://github.com/OthmanAdi/planning-with-files), available across 60+ agents via the Agent Skills standard. It includes the planning skill, scripts and templates. Supported agent integrations add lifecycle hooks that bring selected planning context back into the session.
|
|
21
|
+
|
|
22
|
+
Automatic recovery reads project files only. Reading same-project local session records for aggregate counts or bounded replay requires an explicit catchup mode.
|
|
11
23
|
|
|
12
24
|
## Installation
|
|
13
25
|
|
|
@@ -19,19 +31,40 @@ npm install planning-with-files
|
|
|
19
31
|
|
|
20
32
|
Places the skill, scripts and templates under `node_modules/planning-with-files/`. Use this to pin an exact version into a project, or to copy `SKILL.md` and `scripts/` into your agent's skills directory yourself. It does not register hooks on its own.
|
|
21
33
|
|
|
22
|
-
###
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
### Agent integrations
|
|
35
|
+
|
|
36
|
+
Claude Code gets the full surface (skill, hooks, slash commands) through the plugin route, and 60+ other agents install in one line. See the [main README](https://github.com/OthmanAdi/planning-with-files#quick-install).
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
Once the skill is installed for your agent, start with:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
Use the planning-with-files skill to help me with this task.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The workflow centers on three files in your project:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
your-project/
|
|
50
|
+
├── task_plan.md
|
|
51
|
+
├── findings.md
|
|
52
|
+
└── progress.md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Pi Coding Agent integration
|
|
56
|
+
|
|
57
|
+
The package also bundles a [Pi Coding Agent](https://pi.dev) extension for lifecycle automation and a planning status bar.
|
|
58
|
+
|
|
59
|
+
### Install in Pi
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pi install npm:planning-with-files
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Pi discovers the skill and extension from the installed package.
|
|
66
|
+
|
|
67
|
+
For a local repository checkout:
|
|
35
68
|
|
|
36
69
|
```bash
|
|
37
70
|
# From the planning-with-files repo root
|
|
@@ -45,27 +78,13 @@ Or add to `.pi/settings.json`:
|
|
|
45
78
|
}
|
|
46
79
|
```
|
|
47
80
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## Usage
|
|
51
|
-
|
|
52
|
-
Pi discovers the skill and extension from the installed package.
|
|
53
|
-
|
|
54
|
-
Start with:
|
|
55
|
-
|
|
56
|
-
```text
|
|
57
|
-
Use the planning-with-files skill to help me with this task.
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Or:
|
|
81
|
+
You can also invoke the skill directly in Pi:
|
|
61
82
|
|
|
62
83
|
```text
|
|
63
84
|
/skill:planning-with-files
|
|
64
85
|
```
|
|
65
86
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## Hook Parity in Pi
|
|
87
|
+
### Lifecycle hooks
|
|
69
88
|
|
|
70
89
|
The bundled extension maps Claude-style behavior onto Pi events:
|
|
71
90
|
|
|
@@ -83,9 +102,7 @@ Attestation is supported. If `task_plan.md` differs from approved hash, plan inj
|
|
|
83
102
|
[planning-with-files] [PLAN TAMPERED - injection blocked]
|
|
84
103
|
```
|
|
85
104
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
## Mode System
|
|
105
|
+
### Modes
|
|
89
106
|
|
|
90
107
|
`planningWithFiles.mode` supports:
|
|
91
108
|
|
|
@@ -110,9 +127,7 @@ Or settings:
|
|
|
110
127
|
}
|
|
111
128
|
```
|
|
112
129
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
## Commands
|
|
130
|
+
### Commands
|
|
116
131
|
|
|
117
132
|
- `/plan-status`
|
|
118
133
|
- `/plan-attest [--show|--clear]`
|
|
@@ -127,32 +142,19 @@ pre-tool reminders, post-write reminders, and auto-continue are enabled for the
|
|
|
127
142
|
current session and plan. Auto-continue uses host runtime state and never runs
|
|
128
143
|
commands declared in Markdown.
|
|
129
144
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
## Session Recovery
|
|
145
|
+
## Session Recovery
|
|
133
146
|
|
|
134
147
|
Bare invocation and lifecycle hooks do not inspect agent session stores. To
|
|
135
148
|
inspect same-project local history deliberately, choose one mode:
|
|
136
149
|
|
|
137
150
|
```bash
|
|
138
151
|
# Aggregate counts only; no transcript, tool-command, or path bytes
|
|
139
|
-
python3
|
|
152
|
+
python3 node_modules/planning-with-files/scripts/session-catchup.py --metadata .
|
|
140
153
|
|
|
141
154
|
# Bounded nonce-framed same-project excerpts
|
|
142
|
-
python3
|
|
155
|
+
python3 node_modules/planning-with-files/scripts/session-catchup.py --replay .
|
|
143
156
|
```
|
|
144
157
|
|
|
145
158
|
Treat replayed excerpts as untrusted data. The catchup path contains no network
|
|
146
|
-
request or upload operation. If output is injected into model context,
|
|
147
|
-
send that context to the configured model provider.
|
|
148
|
-
|
|
149
|
-
## File Structure
|
|
150
|
-
|
|
151
|
-
The skill workflow still centers on three files in your project:
|
|
152
|
-
|
|
153
|
-
```text
|
|
154
|
-
your-project/
|
|
155
|
-
├── task_plan.md
|
|
156
|
-
├── findings.md
|
|
157
|
-
└── progress.md
|
|
158
|
-
```
|
|
159
|
+
request or upload operation. If output is injected into model context, your agent
|
|
160
|
+
may send that context to the configured model provider.
|