Repository navigation
poteto-mode: say where its playbooks are (2.5.3) - #72
Merged
Merged
Conversation
The Playbooks section said to open a playbook at `playbooks/<title>.md` without a base, while the head of the file gives bundled skills as `../<name>/SKILL.md` from this file. Codex agents that read a playbook in one shell call with sibling skills gave it that skills/ base and opened skills/playbooks/<title>.md, which does not exist (#71). An anchored substitution now says the path is from this file and spells out skills/poteto-mode/playbooks/<title>.md. poteto-mode's SKILL.md is a declared fork, so its copy carries the substitution's text, and its own lines against derived upstream are unchanged.
Main's version history wins, so the merge drops the branch's 2.2.9 entry and stamps. Its rule anchored on "open its full steps at `playbooks/<title>.md`,", which Lauren's pstack 0.15.43 reworded, so it matched nothing on main and goes too. The next commit re-anchors it.
…rent sentence poteto-mode's Playbooks section names `playbooks/<title>.md` with no base, while bundled skills are `../<name>/SKILL.md` from this file. Codex agents that read a playbook in one shell call with a sibling skill give it the skills/ base and open skills/playbooks/<title>.md, which does not exist (#71, by @adryanev). The rule now anchors on the sentence Lauren's 0.15.43 wrote, "open its steps at `playbooks/<title>.md`, with the title in kebab case.", and adds "from this file (`skills/poteto-mode/playbooks/<title>.md`)". The forked SKILL.md carries the same words, so derived upstream at 0b46ec3 differs from it by the four declared fork rules alone, as on main.
poteto-mode says where its playbooks are (#71). README names v2.5.3. The notices keep cursor/plugins 0b46ec3, since this release syncs nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A Codex agent following poteto-mode should open the playbook it matched on the first try. The Playbooks section says to open a playbook's steps at
playbooks/<title>.mdand names no base, while the head of the file gives bundled skills as../<name>/SKILL.mdfrom this file. A Codex agent that reads a playbook in one shell call with sibling skills gives the playbook thatskills/base too, as incat <plugin>/skills/how/SKILL.md <plugin>/skills/playbooks/investigation.md. That read fails withNo such file or directory, and the agent spends a turn findingskills/poteto-mode/playbooks/. @adryanev reported it and diagnosed it in #71.What changed
tools/substitutions.json. The sentence now reads "open its steps atplaybooks/<title>.mdfrom this file (skills/poteto-mode/playbooks/<title>.md), with the title in kebab case." "From this file" is how the head of the file states its base, and the parenthetical is a suffix that holds in the plugin cache and in a repo checkout.playbooks/<title>.md,". Lauren's pstack 0.15.43 (cursor/plugins2f87c85) reworded that to "open its steps atplaybooks/<title>.md, with the title in kebab case.", so the old rule matched nothing on main. The new rule anchors on the current sentence, which is the same at the pin0b46ec3and at cursor/pluginsmainas ofaaeb0ea.SKILL.mdcarries the rule's text.tools/forks.jsondeclares poteto-mode'sSKILL.mda fork, and the sync keeps a fork's copy, so the copy needs the same words.VERSION, theCHANGES.mdentry with the evidence below, the stamped manifests, and the README's two tag examples. The notices keep0b46ec3, since this release syncs nothing.Evidence
skills/playbooks/<title>.md, in 3 sessions, on 2.0.0-rc.5, rc.9, rc.15, rc.17, 2.1.0, and 2.2.0. 5 of the 6 ran ongpt-6.1-soland 1 ongpt-6-astra, and 5 of the 6 read the playbook in the same call as a sibling skill. Each was followed by a read of the right path 5 to 29 seconds later. In each case Codex had handed the model the whole SKILL.md, Playbooks sentence included, a few seconds before, so a cut read does not explain it.playbooks/<title>.md, from poteto-mode's directory rather than their own, and Babysit names../references/bugbot-triage.md. No session on this Mac shows a failed read of either kind, so this PR leaves them.Proof
12 fresh Codex threads on T3 0.1.8-nightly.20261108.4367 tested this PR's first draft, whose suffix is the same, against 2.2.8 as the control. Each ran in its own throwaway git repository and was asked a question for the Investigation playbook. Three ran per arm on
codex/gpt-6-astraand three oncodex/gpt-6.1-sol, all at xhigh. The counts come from each thread's Codex rollout, not from its reply.codex/gpt-6-astraxhighcodex/gpt-6.1-solxhigh<checkout>/plugins/pstack/skills/poteto-mode/playbooks/investigation.mdfirst trycataswhyandunslopThe control did not reproduce the failure. That fits the logs' rate of 6 in 93, at which six runs see no failure about two times in three. So these runs show that the new words resolve to the right file, including in the batched read where the failures happened. They do not measure the rate drop, which would take hundreds of runs per arm. These runs were not repeated on 2.5.3's wording.
On this branch, deriving poteto-mode's
SKILL.mdfrom upstream at0b46ec3with the substitutions gives this line:Diffed against the forked copy, the derived file shows only the four declared fork rules: the deploy-skill trigger, stopping an abandoned agent, the closed review gate, and the
.audit/<task-slug>.todo.mdfallback. That is the same diff as on main, with the new words on both sides.Verification
On macOS 27.0:
bun tools/generate.mjs --checkpasses, with 14 generated files current.GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000gives 545 pass, 56 skip, 0 fail.T3_PSTACK_E2E=1 GIT_CONFIG_GLOBAL=/dev/null bun test tests/install-e2e.test.mjs --timeout 300000passes 18 of 18 with Claude Code 2.1.329 and Codex 0.171.0.node tools/validate-skills.mjs plugins/pstack/skillskeeps every local link inside the skills tree.bun tools/sync.mjs <component> 0b46ec3 --dry-runforpstack,cursor-team-kit, andthermosexits 0, and each report matches main's line for line, so there is no undeclared fork and no rule that matches nothing.Closes #71
Note
Low Risk
Documentation and substitution text only in poteto-mode guidance; no runtime, auth, or installer logic changes beyond version bumps.
Overview
Patch 2.5.3 fixes Codex agents opening the wrong playbook path when
poteto-mode’s Playbooks line only gave a relativeplaybooks/<title>.md, which led batched shell reads to try non-existentskills/playbooks/…(#71).The Playbooks instruction and a new
tools/substitutions.jsonrule (re-anchored after upstream rewording) now state the path from this file and include the explicit suffixskills/poteto-mode/playbooks/<title>.md. Version stamps and README tag examples move to 2.5.3;CHANGES.mddocuments the failure mode, evidence, and verification. No upstream sync beyond existing pins.Reviewed by Cursor Bugbot for commit c28b1f3. Bugbot is set up for automated code reviews on this repo. Configure here.