A PR into next gets its body from node .agents/pstack/land.mjs. An agent that writes the body itself runs on a branch older than next's agent rules. This skill brings the branch up to date once and fixes the bodies that already failed. After that, each session's start checks the agent's plugins against the checkout's pins and prints any fix.
- Count the agent-rule commits your branch lacks. Use the remote for
udecode/plate,upstreamin a fork andoriginotherwise:git fetch <remote> next && git rev-list --count HEAD..<remote>/next -- AGENTS.md .agents .claude .codex. When it prints more than 0, merge<remote>/nextor rebase onto it, ask the human to start a new agent session with this skill, and stop here. - Apply each
fix:the session-start check printed, in order. When this session shows none because its runtime ran no hook, runnode .agents/rules/contributor-setup/scripts/doctor.mjsand apply what it prints until it printsok:. - List your open PRs into
nextwhose body check failed:gh pr list --repo udecode/plate --author @me --base next --state open --json url,statusCheckRollup --jq '.[] | select(any(.statusCheckRollup[]; .name == "PR body" and .conclusion == "FAILURE")) | .url'. - Rewrite each one's body the way
land.mjswould. Save it withgh pr view <number> --json body --jq .body > <file>. When the PR changes exactly one plan underdocs/plans/, render that plan into the file as theplan-pageskill's PR section says, with--into <file>. Otherwise keep the body and add two sections.## Whyholds a short paragraph on why the change exists.## Verificationlists each command or check run on the PR's head with its outcome, and names what was not tested. When nothing has run yet, run the PR's focused tests first. End the body with a line that startsBeyond the ask:and names each change the request did not ask for, or saysnone. Update the PR withgh pr edit <number> --body-file <file>, and the check runs again. This step is done when step 3's command prints nothing.
Land later changes with land.mjs, as .agents/pstack/rules/land.md says. It opens the PR into next with the right body.