plan-review 1.0.5 → 1.1.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 +40 -36
- package/dist/browser/app.js +62 -38
- package/dist/browser/index.html +358 -40
- package/dist/index.js +40 -7
- package/dist/index.js.map +1 -1
- package/dist/server/routes.d.ts +5 -0
- package/dist/server/routes.js +81 -1
- package/dist/server/routes.js.map +1 -1
- package/dist/transport.d.ts +10 -0
- package/dist/transport.js +27 -0
- package/dist/transport.js.map +1 -1
- package/examples/renderer-fixture.md +246 -0
- package/package.json +6 -2
- package/skills/plan-review/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# plan-review
|
|
2
2
|
|
|
3
|
-
Interactive CLI for reviewing AI-generated markdown plans. Parses
|
|
3
|
+
Interactive CLI for reviewing AI-generated markdown plans. Parses a plan into sections, opens a three-panel browser review UI, collects line-anchored comments, and pipes structured feedback back — to the AI that wrote the plan, your clipboard, or a file.
|
|
4
|
+
|
|
5
|
+

|
|
4
6
|
|
|
5
7
|
## Install
|
|
6
8
|
|
|
@@ -19,21 +21,21 @@ plan-review install-skill
|
|
|
19
21
|
## Quick start
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
|
-
#
|
|
23
|
-
plan-review
|
|
24
|
+
# Review a plan — opens the browser UI (default)
|
|
25
|
+
plan-review path/to/plan.md
|
|
24
26
|
|
|
25
|
-
#
|
|
26
|
-
plan-review
|
|
27
|
+
# Try the included fixture
|
|
28
|
+
plan-review examples/renderer-fixture.md
|
|
27
29
|
|
|
28
|
-
# Pipe feedback directly to Claude
|
|
29
|
-
plan-review path/to/plan.md
|
|
30
|
+
# Pipe feedback directly back to Claude
|
|
31
|
+
plan-review path/to/plan.md -o claude
|
|
30
32
|
```
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
That's it. The browser mode is the default and the recommended way to review plans — line-anchored comments, auto-save, full markdown rendering including mermaid, math, footnotes, and admonitions.
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
## Browser mode (default)
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
Three panels:
|
|
37
39
|
|
|
38
40
|
```
|
|
39
41
|
+------------------+----------------------------+------------------+
|
|
@@ -43,30 +45,32 @@ The browser mode opens a three-panel review UI:
|
|
|
43
45
|
| | | |
|
|
44
46
|
| - Milestone 1 | ## Task 1.1 | [Add comment] |
|
|
45
47
|
| * Task 1.1 ✓ | | |
|
|
46
|
-
| * Task 1.2 | **Depends on:** 1.0 | > "Line 3-5"
|
|
48
|
+
| * Task 1.2 | **Depends on:** 1.0 | > "Line 3-5" |
|
|
47
49
|
| - Milestone 2 | **Blocks:** 1.2 | Fix the error |
|
|
48
50
|
| * Task 2.1 | | handling here |
|
|
49
51
|
| | Content with line | |
|
|
50
|
-
| | gutters for anchoring | [Submit Review]
|
|
52
|
+
| | gutters for anchoring | [Submit Review]|
|
|
51
53
|
| | comments to ranges | |
|
|
52
54
|
+------------------+----------------------------+------------------+
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
**Line-anchored comments
|
|
57
|
+
**Line-anchored comments.** Click a gutter marker to start a selection, shift-click another line to extend the range. Comments anchor to the exact lines and travel back in the output.
|
|
56
58
|
|
|
57
|
-
**Section-level comments
|
|
59
|
+
**Section-level comments.** "Add comment to entire section" under any section header when line-level granularity isn't needed.
|
|
58
60
|
|
|
59
|
-
**Auto-save
|
|
61
|
+
**Auto-save.** Your progress writes to `~/.plan-review/sessions/` as you work. Close the tab, come back later, pick up where you left off. Closing the tab mid-review exits the CLI cleanly with the session preserved.
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
**Full markdown rendering.** Paragraphs, nested lists, task lists, tables, code fences, blockquotes, GFM admonitions (`> [!NOTE]`), footnotes, inline HTML (`<kbd>`, `<sub>`, `<sup>`, `<details>`), emoji shortcodes, horizontal rules, images, reference-style links — plus mermaid diagrams and KaTeX math, both lazy-loaded from CDN only when the plan contains them.
|
|
62
64
|
|
|
63
|
-
## Terminal mode (
|
|
65
|
+
## Terminal mode (`--cli`)
|
|
66
|
+
|
|
67
|
+
For SSH sessions, CI, or headless environments where launching a browser isn't an option:
|
|
64
68
|
|
|
65
69
|
```bash
|
|
66
|
-
plan-review path/to/plan.md
|
|
70
|
+
plan-review path/to/plan.md --cli
|
|
67
71
|
```
|
|
68
72
|
|
|
69
|
-
Interactive terminal UI with table of contents, section navigation, and inline commenting.
|
|
73
|
+
Interactive terminal UI with a table of contents, section navigation, and inline commenting.
|
|
70
74
|
|
|
71
75
|
| Command | Action |
|
|
72
76
|
|---------|--------|
|
|
@@ -78,6 +82,8 @@ Interactive terminal UI with table of contents, section navigation, and inline c
|
|
|
78
82
|
| *(enter)* | Skip section |
|
|
79
83
|
| *(any text)* | Add comment on current section |
|
|
80
84
|
|
|
85
|
+
Terminal mode is a fallback — you get text rendering and section-level comments, but no line anchors, no mermaid, no math, no live markdown preview.
|
|
86
|
+
|
|
81
87
|
## Options
|
|
82
88
|
|
|
83
89
|
```
|
|
@@ -85,53 +91,51 @@ Interactive terminal UI with table of contents, section navigation, and inline c
|
|
|
85
91
|
--output-file <path> Custom output file path (with --output file)
|
|
86
92
|
--split-by <strategy> Force split strategy: heading, separator
|
|
87
93
|
--fresh Skip session resume, start clean review
|
|
88
|
-
--
|
|
94
|
+
--cli Use the terminal review UI instead (SSH/CI/headless)
|
|
89
95
|
-V, --version Show version
|
|
90
96
|
-h, --help Show help
|
|
91
97
|
```
|
|
92
98
|
|
|
93
99
|
## The AI feedback loop
|
|
94
100
|
|
|
95
|
-
The
|
|
101
|
+
The point is closing the loop between AI-generated plans and human review:
|
|
96
102
|
|
|
97
103
|
```
|
|
98
104
|
AI writes plan → You review with plan-review → Feedback pipes to Claude → AI revises
|
|
99
105
|
```
|
|
100
106
|
|
|
101
107
|
```bash
|
|
102
|
-
# Review in browser, send feedback straight to Claude
|
|
103
|
-
plan-review plan.md
|
|
108
|
+
# Review in browser, send structured feedback straight to Claude
|
|
109
|
+
plan-review plan.md -o claude
|
|
104
110
|
```
|
|
105
111
|
|
|
106
|
-
|
|
112
|
+
Line-anchored, section-scoped comments become input the AI can act on — not a wall of prose in a chat message.
|
|
107
113
|
|
|
108
114
|
## How it works
|
|
109
115
|
|
|
110
|
-
1. **Parses** your markdown — auto-detects plan-style documents (milestones, tasks, dependencies) or falls back to generic heading-based splitting
|
|
111
|
-
2. **Renders** in
|
|
112
|
-
3. **Collects** your comments as you review each section
|
|
113
|
-
4. **Outputs** structured markdown with your comments alongside the original content
|
|
116
|
+
1. **Parses** your markdown — auto-detects plan-style documents (milestones, tasks, dependencies) or falls back to generic heading-based splitting.
|
|
117
|
+
2. **Renders** in the browser by default, or in the terminal via `--cli`.
|
|
118
|
+
3. **Collects** your comments as you review each section.
|
|
119
|
+
4. **Outputs** structured markdown with your comments alongside the original content.
|
|
114
120
|
|
|
115
121
|
### Plan mode
|
|
116
122
|
|
|
117
|
-
Documents with `## Milestone` / `### Task` hierarchy and fields like `**Depends On:**`, `**Blocks:**`, `**Verification:**` are detected as plans. Sections show dependency metadata and task IDs.
|
|
123
|
+
Documents with `## Milestone` / `### Task` hierarchy and fields like `**Depends On:**`, `**Blocks:**`, `**Verification:**` are detected as plans. Sections show dependency metadata and task IDs in the sidebar.
|
|
118
124
|
|
|
119
125
|
### Generic mode
|
|
120
126
|
|
|
121
|
-
Any markdown with headings gets split into reviewable sections.
|
|
127
|
+
Any markdown with headings gets split into reviewable sections. Non-plan docs still work — you just don't get the plan-specific chrome.
|
|
122
128
|
|
|
123
129
|
## Output targets
|
|
124
130
|
|
|
125
|
-
- **stdout** — print to terminal (default)
|
|
131
|
+
- **stdout** — print to terminal (default when not prompted otherwise)
|
|
126
132
|
- **clipboard** — copy to clipboard (pbcopy/xclip)
|
|
127
|
-
- **file** — write to `<input>.review.md` or custom path
|
|
128
|
-
- **claude** — pipe directly to Claude Code CLI
|
|
133
|
+
- **file** — write to `<input>.review.md` or a custom path via `--output-file`
|
|
134
|
+
- **claude** — pipe directly to the Claude Code CLI
|
|
129
135
|
|
|
130
136
|
## Saved sessions
|
|
131
137
|
|
|
132
|
-
Review progress
|
|
133
|
-
|
|
134
|
-
Sessions are stored in `~/.plan-review/sessions/`.
|
|
138
|
+
Review progress auto-saves as you work. Re-running `plan-review` on the same file prompts to resume. Stored in `~/.plan-review/sessions/`.
|
|
135
139
|
|
|
136
140
|
```
|
|
137
141
|
plan-review plan.md --fresh Skip session resume, start clean
|