plan-page
Skill452 starsChanged 10 days agoApache-2.0View on GitHub
Write, check, repair and publish a plan page: a project's plans and subject files under its plans directory, rendered by .agents/pstack/plan-page.mjs and rendered as one local HTML page per subject with a local index of every subject, and published to claude.ai at each hand-back for comments and feedback. The page is how planned work hands back to the user. Use before writing or changing a plan, a subject file in <plans>/topics or its page; at every stop that hands back work with a plan, such as a review verdict other than a review-only panel's, a next answer or a playbook's close; before writing or updating a PR body, which renders from the PR's plan, or a comment about your commits on someone else's PR; when a plan page or its claude.ai artifact looks wrong or refuses to render; to republish a page; or to change the page shape or a playbook's page sections.
- Commits and pushes
4 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- udecode/dotaiedited, first seen Nov 7, 2026
- udecode/plateedited, first seen Oct 17, 2026
- Pablomg02/pamaga-agent-toolkittheir own version, first seen Oct 11, 2026
- Aetheria-Labs1/storefront-skillstheir own version, first seen Aug 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- udecode/plate★ 17k98% same
- udecode/dotai★ 1.2k98% same
Wrote their own version · 2
- Aetheria-Labs1/storefront-skills★ 8same name
- Pablomg02/pamaga-agent-toolkit★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 4-ultraciteSkill
- agent-browser-issueSkill
- better-auth-best-practicesSkill
- changeset-doc-syncSkill
- changeset-resolveSkill
- changesetSkill
- chipsSkill
- cleanupSkill
- component-colocationSkill
- concave-paritySkill
- concaveSkill
- convex-release-auditSkill
- designSkill
- jotai-xSkill
- kitcnSkill
- next-dev-loopSkill
- nextjsSkill
- package-release-auditSkill
- react-querySkill
- redoSkill
- research-wikiSkill
- shadcn-paritySkill
- sync-convex-authSkill
- test-auditSkill
- toastSkill
- turborepoSkill
- verifySkill
- video-transcriptsSkill
- walkthroughSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Read references/shape.md before writing a plan or a subject file.
- Very specific: line 38
Run node .agents/pstack/plan-page.mjs <plan> --check.
- Distinctive: line 43
Every subject section the plan changes carries a Delta table keyed to the subject's rows.
- Distinctive: line 46
Every universal quantifier, such as all, each or every, on a plan line changed since the last commit matches the log row or check that …
- Distinctive: line 50
When more than one subject waits on the owner, every answer word a brief, a question or a reply offers names its subject, such as "go …
- Distinctive: line 78
Run sync-pstack's Lesson mode, which owns the gates, the corpus rules and the delivery.
- Distinctive: line 84
Before a plan names a new heading, field or status word that the renderer parses, count its existing uses across every managed project's …
- Distinctive: line 102
When the leading plan names no playbook, every playbook's sections and requirements apply.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Plan page
The user reads pages, not replies; the block's Plan pages rule says when to publish and what the reply holds. A subject is one thing the work changes, and it has one page. Its file, <plans>/topics/<slug>.md, holds the current state. Each plan that continues it is an iteration carrying only its delta. node .agents/pstack/plan-page.mjs <plan> renders the page from both into <plans>/artifacts/, a local copy that regenerates from the committed plan and subject files, which are the record. node .agents/pstack/plan-page.mjs --index renders every subject's page there and an index linking them. A published claude.ai page is where the user comments on one hand-back; it is not the record. sync-pstack ships that renderer and status.mjs into every project it manages.
Read references/shape.md before writing a plan or a subject file. It holds every file shape, the page order and the renderer's refusals.
| Mode | Use it to |
| Render | publish a page at every stop the block's Plan pages rule lists |
| Refresh | render the named plan's page again with Render steps 5, 7 and 8 while the plan is not done; with no plan named, use the open plan of the subject the session works on, and ask when there is none |
| Check | audit a plan and its subject before handing the page back |
| Repair | fix a page whose shape is wrong |
| PR | write or update a PR body as the page of the PR's plan, or a comment about your commits on someone else's PR |
| Change | change the page shape, the renderer, or a playbook's page sections |
Render
- Pick the subject before writing the plan. Continue the subject whose thing the work changes. Start a new one only for a new thing that will be revisited. A one-off plan, such as a review verdict's, has no subject and keeps its own page. A review verdict or a "next" answer with no plan yet writes one now, either the iteration that later stops continue or a one-off plan. Work that keeps no plan under the block's Plans and trails rule, such as a single fix, writes none and hands back in its reply. A read-only request still has its subject. Render its plan from a copy outside the repository, and publish it to that subject's
Page:URL, never to a second page. - Name the subject with
Topic: <slug>underStatus:, or through the first entry of the frontmatter list the project names inpageTopic.field, so list the scope that owns the change first. A plan whose list-named subject has no file yet keeps its own page until someone creates that file; the renderer refuses aTopic:line whose subject has no file until that file exists. - Name the playbook poteto-mode picked with
Playbook: <name>underStatus:, so the rail shows it. When a project playbook in.agents/playbooks/writes the plan, name that one, so its page sections lead and its required sections apply; otherwise name pstack's, such asfeatureorbug-fix. The renderer refuses a name that is neither. - Write the leading plan's
## Brieffirst, then its## Teach, per references/shape.md. They are the parts the owner reads first. Loadpstack:teachand follow its method for Teach, reusing what the run'showandwhywork found instead of running them again. A page with a brief then shows How it works, Demo, Needs you, Picked for you, the plan's changes, Verification once the plan is done, and Open work, and the plan file keeps the steps and history. The PR body walks the same order. - Walk Check's reading list before the first publish and after each revision, then run
node .agents/pstack/plan-page.mjs <plan>. It refuses every shape it can check and names the fix. Fix the plan or the subject file, never the HTML. - When the work does something the owner can try, write the plan's
## Demoper references/shape.md before the hand-back, reusing the frames verification captured. At a close, write the plan's## Closebefore rendering: what landed, the proof and its limits, the counts the block's Todo list and close rule requires, reversals and deviations first, and open work with owners and stops. The page shows the brief, not the Close, so rewrite Changes and Risks to tell the owner what the Close holds. - When the page belongs to a subject, run
node .agents/pstack/plan-page.mjs --index, then render the plan again.--indexrenders every subject's page and the index locally, and it leads each page with its newest open iteration. The second render restores the page of the plan this stop is for. The index is never published. - Publish to the subject's
Page:URL, or to the one-off plan's own, so the user can comment on it. In Claude Code the publish goes throughpage-stop.mjs, as the Plan pages rule says: read every file it names in full, then send what it prints, and never publish the whole page the renderer prints. A checkout publishes to its ownPage:line when that line changed since the checkout forked fromorigin/<branch>, as long asorigin/<branch>'s line still matches the fork or names a link the clone recorded as gone. Otherwise it publishes toorigin/<branch>'s line, which the render prints. A subject's first publish makes its page, and the helper then tells the lead to writePage: <url>under the subject file's title, or under a one-off plan'sStatus:line. When that link no longer opens, because the page was deleted or belongs to another account, run the helper again with--newwithout asking the owner, send what it prints and replace the line as it says.--newrecords the old link as gone in a file that every worktree of the clone reads. The owner may have deleted it on purpose, so the plan the reply links also gets a Defaults row that names the old and new links, keeps the new page and gives the word that drops it. To read a page, open its rendered file under the plans directory or its plan and subject files, never the published page, except theindex.htmlread by path that a refused publish's--baseneeds. The block's Plan pages rule says what the reply holds and what a Codex session does instead. On a subject page's first publish, offer once to pin it. When the owner asks in chat where a page is, answer with the link and offer the pin again.
Check
Run node .agents/pstack/plan-page.mjs <plan> --check. It runs every refusal and writes nothing. Then read the plan and its subject for what the renderer cannot judge:
- Every sentence the page shows reads in the
pstack:brovoice. Run the plan's prose pass, such asunslop, first. Then, as the last pass, loadpstack:broand restate the brief, Teach, each open question, each Defaults row and each sentence above a before and after pair through it, so no later pass undoes it. Keep the plainer version, and drop a detail the owner does not need when the plan's other sections already hold it. The pass may change a claim's words but never its scope, so keep every count and every qualifier that limits a claim, such as which cases were tried. After the pass, compare each restated claim with the sentence it replaced and with the log row that records it. One bro pass turned "no better on the tasks tried" into "added nothing" and two trials into three. - Each
beforefence is a real call site at the commit before the plan, and itsafterfence the same call in the checkout, or the planned call while the plan is unbuilt. Each fence names its path in a comment, with one sentence above the pair. - While the plan is open, the subject file shows the state before it. That holds for a subject the plan created too.
- Every subject section the plan changes carries a Delta table keyed to the subject's rows. Otherwise the page marks the section unchanged.
- Main changes lists only non-public changes that alter how the code works.
- Each box closed since the last render matches its approved
Proof:clause, on the exact bytes and in the place the proof ran. A change to the shared source counts as live in a project only after that project syncs from its pushed commit. - Every universal quantifier, such as all, each or every, on a plan line changed since the last commit matches the log row or check that enumerated that set.
- A settled build input that this run found and that lives only in the run directory, such as a request shape, a store path, an environment variable's name or a doc URL, is copied into the plan or its subject file before the step that needs it, never as a secret value or a real payload.
- A project's docs check may read every backticked
.mdname in a plan or subject file as a doc link and refuse one under the ignored run directory. Then move that pointer to a decision-log row'sproof:label, as the block's Plans and trails rule says, and never replace it with prose. Status:is one short line: the state word, then what the plan waits on. Open items go in their own section, each with its owner, where it is tracked and its stop.- When more than one subject waits on the owner, every answer word a brief, a question or a reply offers names its subject, such as "go model", so a bare "go" cannot land on the wrong page.
Repair
- Copy each file to the run directory before rewriting it, and keep the copy as the must-refuse fixture for any refusal that should have caught it.
- Run Check and fix each finding at its source. A subject that shows a plan's delta while its steps are all closed and its proof done is a finished fold whose
Status:was not flipped yet; flip it instead of restoring. For an early fold, restore the subject file to its state before the open plan from the plan'sbeforefences andgit show <base>:<path>, and move the delta into the plan. - Log one decision-log row for the repair.
- A ledger record that binds the plan's bytes goes stale on the edit. Rebind it by the project's record rule.
- Render and republish to the same URL.
PR
A PR body is the page of the PR's plan, rendered as GitHub Markdown, so a reviewer reads the same brief, rail, models, How it works, Demo, picks and API pairs the owner reads.
- Pick the PR's plan. When one plan covers the whole diff, use it. When the PR carries several plans, or changes that no plan covers, write a PR plan: a one-off plan whose
Plans:line underStatus:lists each plan it carries, by path relative to it. Title it after the change, as the PR title reads; the renderer refuses a PR number in the title, which says nothing inside that PR. Write it with Render steps 3 to 6 so its brief, Teach, Demo, Public API pairs and Defaults cover the whole diff, and give each change no plan covers its place in those sections. Whichever plan the PR uses, rewrite its Changes and Risks for a reviewer at PR time, since a brief written mid-run speaks to the owner; the renderer refuses a PR number in the brief. Its Demo gives one step per change a reviewer can see, with that change's before and after clips as frames and any limit of the clip in the step. Its## Verificationnames each run and where proof stops in at most three bullets, and its## Open worknames what the PR leaves out. Drop local run-folder paths from every section the PR shows, because they do not open on GitHub. Run Check on it,pstack:brolast. - After the last push, run
node .agents/pstack/plan-page.mjs <plan> --prfrom the repository root, so its links point at the pushed commit. It runs every refusal a page render runs, refuses a plan without a brief whatever its state, and writes<plans>/artifacts/<name>.pr.md. It prints that path, then one--attach <file>line for each local Demo or Teach frame the body has not uploaded yet. - In a project that lands through
land.mjs, land.mjs renders this body and opens the new PR itself, and its guard denies an agent's owngh pr createinto the trunk branch. Elsewhere a new PR opens withgh pr create --body-file <file>and the printed--attachlines. To update a PR, save its body withgh pr view <number> --json body --jq .body > <run directory>/body.md, render with--into <run directory>/body.md, and rungh pr edit <number> --body-file <file>with the printed--attachlines.ghuploads each attached frame and rewrites its reference. The render replaces only the text between itsplan-pagemarkers, keeps the rest of the body, such as a release block or hand-attached videos, and reuses each frame the body already uploaded. Rerender after each push that changes the plan or its diff, so the body stays true to the pushed diff.
On a PR someone else opened, leave their description alone. One comment from you covers only your commits on top of theirs:
- Write the plan for those commits. Its brief and Teach speak to the owner, as on any page, and the comment leaves them out. Each before fence of Public API and the playbook's design sections is the code at the author's last commit before yours. Its Demo shows what the PR changes on screen, such as a bug before and after its fix, and a step for each screen your commits change. A step whose clip the PR's description already shows uses that clip's link as its frame, so the comment leaves it out; any other step uses the frames your verification captured, and the comment carries them. The plan has no Demo only when nothing a user sees changes. Add a
## On top of the PRsection that lists what you kept, changed and dropped from their version. The comment has no other list of what your commits changed, so the renderer refuses a comment without it. The plan's Verification names where the proof of your commits stops, such as a case only a throwaway probe checked, because the comment shows no Risks. - After your push, from a checkout at the PR's pushed head, save the description with
gh pr view <number> --json body --jq .body > <run directory>/description.md. Then runnode .agents/pstack/plan-page.mjs <plan> --comment <author's last commit> --against <run directory>/description.md. It writes<plans>/artifacts/<name>.comment.mdand links DiffsHub's compare view from that commit to your head. The comment holds that link, On top of the PR, the Demo, Public API, the playbook's design sections and Verification. It leaves out what the author already knows or only the owner reads: the brief, How it works, the run's models and stages, open questions, Defaults, open work and the plan link. It also leaves out each Demo clip the description already shows, and each step whose clips all are. - Post it with
gh pr comment <number> --body-file <file>and the printed--attachlines. After a later push, save that comment's body to the run directory, render with--intoit as well, and update it withgh pr comment <number> --edit-last --body-file <file>while it is still your last comment. Once someone has replied below it, post a new one.
Change
The renderer source is skills/sync-pstack/assets/pstack/plan-page.mjs in the dotai checkout, with status.mjs beside it. Its tests are the plan-page tests in skills/sync-pstack/scripts/sync-pstack.test.mjs. A section that only one project's plans write belongs in that project's playbook frontmatter, never in the renderer.
Run sync-pstack's Lesson mode, which owns the gates, the corpus rules and the delivery. This mode adds the renderer's specifics inside its steps:
- In Lesson step 2, edit the dotai checkout on
main, never a worktree, even when another session holds uncommitted edits there, as dotai'sAGENTS.mdsays. - In Lesson step 3, give each new refusal or behavior a test that fails on the old renderer for its named defect. A refusal that compares text gets one must-pass and one must-refuse case on each axis before any panel: case, indentation, spacing inside literals, punctuation-only lines, line order, partial overlap with another iteration and a missing section.
- In Lesson step 4, copy each managed project's plans, subject files, hubs,
.agents/pstack.jsonand playbooks to scratch once, for the old renderer, thencp -Rthat copy and apply the change's migration to it for the new one, and diff the two plan lists before any body. When the live trees hold no instance of a state a refusal gates, also replay subject files at past commits where an iteration was open, and the scratch copies Repair kept. Give a renderer that predates--checkan adapter that exits before it writes. Run both over every plan, list each newly refused plan with its owner, then render every plan with both and diff the bodies, ignoring the Updated line. - Also in Lesson step 4, render one real plan in each mode the renderer branches on: a one-off plan, a subject with an open iteration, a subject with none and an executed plan rendered while another iteration is open. Use a scratch copy with its
Status:flipped when no live subject is in a mode. Publish both versions for the owner to compare. Before the dotai commit, also render the change's own plan in its closed state on its real subject page. - Before a plan names a new heading, field or status word that the renderer parses, count its existing uses across every managed project's plans, so a word already in use does not change old pages by surprise.
Playbook sections
A project playbook in .agents/playbooks/<name>.md names the review sections its plans write, as comma lists in its frontmatter beside extends and when:
page-lead: What other editors do, Document shape, Layer and owner
page-pairs: Document shape
page-require: What other editors do
page-pr: What other editors do, Document shapepage-leadsections render right after Public API, the leading plan's playbook first.page-pairssections holdbeforeandafterpairs, like Public API.page-requiresections must exist in the subject file, or in the plan that leads the page when that plan has a brief, whenever the project'spageTopic.hubfile exists for that subject.page-prsections are thepage-leadsections a reviewer judges the design by. The PR body shows them after Public API, inpage-leadorder. A PR shows each section that the playbook of any plan it carries names, and a PR plan without one shows each carried plan's under that plan's title. A title missing from the same playbook'spage-leadis refused.
When the leading plan names no playbook, every playbook's sections and requirements apply. The playbook, or the skill it names, defines what each section holds.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

