Plan With Review Page
ASecurityUse before a change that touches many files, needs many steps, or has open design choices. Also use it when the user says "plan this first", "make a plan", "think this through", or "do not code yet". Explores the code read-only, finds the cause, and asks the open decisions with the recommended option first. Writes one Markdown plan with a part for the person and a part for the next agent. Renders the plan as one page, and shows it as an artifact when the host can publish one. Not for checking...
- 30 stars
- 0 votes
- 0 copies
- 1 view
- Added October 10, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add theonly1me/shadowclone --skill plan-with-review-page --agent claude-codeAre you the author of Plan With Review Page?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/theonly1me-plan-with-review-page)---
name: plan-with-review-page
description: 'Use before a change that touches many files, needs many steps, or has open design choices. Also use it when the user says "plan this first", "make a plan", "think this through", or "do not code yet". Explores the code read-only, finds the cause, and asks the open decisions with the recommended option first. Writes one Markdown plan with a part for the person and a part for the next agent. Renders the plan as one page, and shows it as an artifact when the host can publish one. Not for checking finished work (use `verify-and-review`).'
metadata:
shadowclone-category: workflow
shadowclone-section: workflow
shadowclone-applies-when: before a change that has many steps or open design choices
---
# Plan With a Review Page
## Use when
A change touches many files, needs many steps, or has a design choice that belongs to the user. An approved plan stops work in the wrong direction. A small and clear change does not need this skill.
The plan is the reference for the person who approves the work and for the next agent. Neither may have read the conversation, so the plan alone must let them judge and continue the change.
## Gates
1. Are you read-only until the user approves? Before approval, write only the plan file and its page.
2. Did you read the code, the documents, and the history before you asked? Never ask what the code can answer.
3. Did you ask in rounds until no decision was open? Each risky choice, such as a skip, a block, a fallback, or a default, belongs in a round. Each round has at most 4 questions, each with 2 to 4 options and the recommended option first.
4. Can a reader who missed the conversation judge the change from "For you" alone, and continue it from "For the next agent" alone?
5. Does each cause have a change that removes it and a check that proves the fix?
6. Is there one plan file for this conversation, and does `scripts/render.mjs` print 0 errors for it?
## Process
### Explore
1. Read the code that the request touches, and the instructions of the repository for that code.
2. Reproduce or observe the problem. Record each fact with its source: a `path:line`, a command and its output, or a URL. Label each fact as measured, read, inferred, or reported.
3. Find each cause: the first place where the behavior goes wrong, with its `path:line`. For a new feature, a cause is a limit of the current design that blocks the feature.
4. Record each cause that you tested and rejected, with the observation that ruled it out.
5. Find the functions and patterns that the change can use again. For a broad search, use a read-only subagent if the host has one.
6. Stop when you can name the causes, the change, its tests, and what users would see break. Write each follow-up as one line in the plan. Do not research a follow-up first.
### Ask
1. List each open decision about scope, behavior, edge cases, data, release, and tests.
2. Ask at most 4 questions in each round. Put the recommended option first, with one reason.
3. Use the question tool of the host if it has one. If not, use a numbered list in the chat.
4. If an answer is not clear or opens a new decision, ask another round. Do not guess.
### Write
1. If this session holds a seat in a shadowclone project, put the plan at `plans/<slug>.md` in that project's context folder. Do the same if the owner named a project for this plan. Otherwise, put it at `/tmp/agent-artifacts/<repo>/<date>-<slug>/plan.md`. If the sandbox blocks `/tmp`, use the temporary folder of the agent.
2. Start the file with front matter: `title`, `status` (draft, approved, in progress, or done), `stage` (plan, build, verify, review, or merged), and `updated`.
3. Write `## For you` for the person who approves the work. Define each project term the first time you use it. Use these `###` headings in this order:
- **Summary:** what changes, why, and the result, in two or three sentences.
- **The problem:** what is wrong or missing as the user sees it, with its impact.
- **What happened:** the facts in a table, each with its source and its label.
- **Why it happened:** each cause with an id such as `C1` and its origin, and each cause that you ruled out.
- **The fix:** the approach, then each change with an id such as `F1`, its files, the causes that it addresses, and why it works.
- **Alternatives considered:** each other option, including no change, with its trade-off.
- **Risks:** each risk with an id such as `R1`, and how the plan prevents it or finds it early.
- **Decisions:** one `decision` block for each question, in the format of "Plan blocks" below.
- **Open questions:** each question, and the step that waits for its answer.
- **Steps:** a task list (`- [ ]` or `- [x]`), then each check with the result that proves the fix, then one line for each follow-up.
4. Add a `mermaid` block under "The fix" when the change has more than two parts. The page draws it when the pinned Mermaid file loads.
5. Write `## For the next agent` with these `###` headings:
- **Resume here:** the branch, the head, the next step, and what waits.
- **Files changed:** one `files` block.
- **Files already read:** one line on what each file holds.
- **Commands run:** each command and its result.
6. Run `node scripts/render.mjs <plan.md> <index.html>`. Put the page in `/tmp/agent-artifacts/<repo>/<date>-<slug>/`, even when the plan is in a project. If Node is not available, run the script with `bun`. Fix each error.
### Show
1. If the host can publish an HTML artifact, such as Claude with its Artifact tool, publish `index.html` as a private artifact. Give the user the link.
2. If it cannot, give the user the absolute path of `index.html`.
3. Also give the plan path, the summary, the main risk, and the open questions.
4. If the host has a plan approval step, use it. If not, ask "Do you approve this plan?" Wait for approval in this conversation.
### Plan blocks
A decision block names its id after `decision`, then the question, then one line for each option. Mark the recommended option. After the user answers, add a `chosen:` line:
````markdown
```decision D1
What happens when Redis is down?
- Let requests through (recommended): The API stays up. Limits stop during the outage.
- Reject with 503: Limits always hold. An outage takes the API down.
chosen: Let requests through
```
````
A `files` block has one line for each changed file: the path, the line counts, and the intent, separated by `|`. For example: `src/limits/window.ts | +58 -0 | Counts requests in a 60 second window.`
### Execute
1. Do the steps in order. After each step, update its task in the plan, render the page again, and publish it again where you published it.
2. If a fact changes a decision or a cause, stop. Update the plan, and ask again.
3. Keep a step that you skip in the list, with "skipped" and the reason.
## Example
**Situation:** The user asks for a fix to a sync command. Sync replaced installed skills, and some installed copies contained edits that the user made.
**Easy route:** Write four steps: read the sync code, add a check, add a test, and open a pull request.
**Hidden cost:** The reviewer cannot tell why sync replaced the edits, or whether the check removes that cause. The plan also hides a choice that deletes the work of the user. The reviewer approves a guess.
**Best route:** Write the cause `C1` with its `path:line`: sync compares the file name and not the fingerprint. Link the change `F1` to `C1`, and name the test that proves it. List the rejected alternative "always save a backup" with its trade-off. Ask whether to keep and list edited copies (recommended) or to replace them and save a backup.
**Evidence:** The "For you" part shows `C1`, `F1`, and the test that proves the fix. The decision block shows `chosen: Keep and list`. The renderer printed "render: 0 errors".
## Guardrails
- Approval covers only the steps in the plan. Ask before a step that the plan does not list.
- Never commit the plan or the page to the repository that you change.
- Keep the page self-contained. It loads nothing from the network except the pinned Mermaid file.
- Publish an artifact only as private. Never share it.
- Do not open a decision again unless a new fact changes it.
- Make the plan complete first. Keep it easy to scan with tables, short sentences, and one idea in each sentence.
- Keep the label of each fact true. Do not present an inference as a measurement.
## Completion
- The plan path, and the artifact link or the page path.
- The render command and its result line.
- Each question round, with the recommended option first in each question.
- Each cause, the change that addresses it, and the check that proves the fix.
- Each step with its status, and each skipped step with its reason.
Files in this skill
- SKILL.md
- assets/review-page.html
- scripts/validate-page.mjs
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.