From de69607d8ecd6abee4d4e6edc2d721a20e9b256c Mon Sep 17 00:00:00 2001 From: Fardin Iqbal <52869603+FardinIqbal@users.noreply.github.com> Date: Fri, 20 Nov 2026 13:32:22 -0500 Subject: [PATCH] feat(pstack): five rules learned from Claude Code runs poteto-mode opens a named skill that does not fit and names the better one. correct does not trust an author login as proof that a person wrote a review. figure-it-out logs which targets carry over when a goal changes. recall routes correction mining to correct. show-me-your-work evidence tests the claim as worded. pstack 0.15.47. Co-Authored-By: Claude Opus 5.5 --- harness/pstack/claude-code/.claude-plugin/plugin.json | 2 +- harness/pstack/claude-code/plugin.json | 2 +- harness/pstack/claude-code/skills/correct/SKILL.md | 2 +- harness/pstack/claude-code/skills/figure-it-out/SKILL.md | 2 +- harness/pstack/claude-code/skills/poteto-mode/SKILL.md | 1 + harness/pstack/claude-code/skills/recall/SKILL.md | 2 +- harness/pstack/claude-code/skills/show-me-your-work/SKILL.md | 2 +- pstack/.cursor-plugin/plugin.json | 2 +- pstack/plugin.json | 2 +- pstack/skills/correct/SKILL.md | 2 +- pstack/skills/figure-it-out/SKILL.md | 2 +- pstack/skills/poteto-mode/SKILL.md | 1 + pstack/skills/recall/SKILL.md | 2 +- pstack/skills/show-me-your-work/SKILL.md | 2 +- 14 files changed, 14 insertions(+), 12 deletions(-) diff --git a/harness/pstack/claude-code/.claude-plugin/plugin.json b/harness/pstack/claude-code/.claude-plugin/plugin.json index fce40ca898..1a333c8bbc 100644 --- a/harness/pstack/claude-code/.claude-plugin/plugin.json +++ b/harness/pstack/claude-code/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "pstack", - "version": "0.15.46", + "version": "0.15.47", "description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.", "author": { "name": "Lauren Tan" diff --git a/harness/pstack/claude-code/plugin.json b/harness/pstack/claude-code/plugin.json index fce40ca898..1a333c8bbc 100644 --- a/harness/pstack/claude-code/plugin.json +++ b/harness/pstack/claude-code/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "pstack", - "version": "0.15.46", + "version": "0.15.47", "description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.", "author": { "name": "Lauren Tan" diff --git a/harness/pstack/claude-code/skills/correct/SKILL.md b/harness/pstack/claude-code/skills/correct/SKILL.md index c45e06f48a..cefd4ce1c2 100644 --- a/harness/pstack/claude-code/skills/correct/SKILL.md +++ b/harness/pstack/claude-code/skills/correct/SKILL.md @@ -12,7 +12,7 @@ Assume every contributor is an agent that sees only the files it opened, copies ## Find the mistake classes -First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice. +First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice. Split agent-written text from the operator's own by content or marker. An author login does not prove a person wrote it, because agent reviews often post under the operator's account. ## Fix each class at the highest level that works diff --git a/harness/pstack/claude-code/skills/figure-it-out/SKILL.md b/harness/pstack/claude-code/skills/figure-it-out/SKILL.md index a18126c630..a1e5496178 100644 --- a/harness/pstack/claude-code/skills/figure-it-out/SKILL.md +++ b/harness/pstack/claude-code/skills/figure-it-out/SKILL.md @@ -22,7 +22,7 @@ Ground first, then commit. Don't start the run until you can state: - Scope, quantified: rough units and effort, plus the blockers grounding surfaced. - The rigor level, biased high. One-way doors and high blast radius get more. Reversible low-stakes steps get less. Rigor is gates and artifacts, not "try harder". -Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the **never-block-on-the-human** principle skill), but a multi-hour run earns one checkpoint. +When a new goal replaces an old one, compare the two definitions of done and log which targets carry over and which were dropped. Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the **never-block-on-the-human** principle skill), but a multi-hour run earns one checkpoint. ## Phase B: Design the workflow diff --git a/harness/pstack/claude-code/skills/poteto-mode/SKILL.md b/harness/pstack/claude-code/skills/poteto-mode/SKILL.md index 94e889568a..55a8cab989 100644 --- a/harness/pstack/claude-code/skills/poteto-mode/SKILL.md +++ b/harness/pstack/claude-code/skills/poteto-mode/SKILL.md @@ -29,6 +29,7 @@ The remaining triggers live only here: - PR status → the **Babysit** playbook, not Cursor's built-in babysit skill. Landing a green stack → the **Shipping** playbook. - Bot review comments → judge each on its merits. - Long or unattended work → **show-me-your-work**. +- A named skill that does not fit the job → open it, say where its contract misses, and name the better fit. Never log another skill's output under the named one. ## Principles diff --git a/harness/pstack/claude-code/skills/recall/SKILL.md b/harness/pstack/claude-code/skills/recall/SKILL.md index 960a04784f..1ef9e3ecb4 100644 --- a/harness/pstack/claude-code/skills/recall/SKILL.md +++ b/harness/pstack/claude-code/skills/recall/SKILL.md @@ -16,7 +16,7 @@ Your context lives in two records. Your own chat history holds what you did and Transcripts live at `~/.cursor/projects//agent-transcripts//.jsonl`, where `` is the workspace path with the leading slash dropped and each "/" turned into "-" (so `/Users/you/proj` becomes `Users-you-proj`). Every line is one chat message. -1. Classify, then route. One specific prior chat to resume is the `session-pickup` playbook, not this. Turning habits into a durable skill is `automate-me`. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining. +1. Classify, then route. One specific prior chat to resume is the `session-pickup` playbook, not this. Turning habits into a durable skill is `automate-me`. Mining the operator's corrections into mistake classes is the **correct** skill. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining. 2. Lock the scope before searching. Pin the window ("recent" is a real range, default the last 7 days), the topic if named, and the workspace (default the active one. Never read another project's transcripts without being asked). State the scope back. Never quietly turn "all" into "recent N". 3. Fan out across your chat history. Spawn parallel subagents on a fast, cheap model, each taking a slice of the corpus. Tell every subagent to order candidates by real modification time (`ls -t`) and never by UUID name, grep the topic first and then read only the matching chats and only their relevant regions, and skip the current chat plus obvious noise (subagent, eval, and test chats). Each returns the same schema, one block per chat: topic, the user's goal, decisions, open threads, struggles and corrections, and artifacts (PRs, tickets, branches), each citing the chat UUID. For one or two chats, skip the fan-out and search directly. The raw transcripts stay in the subagents. The main thread gets only their findings. Pick each subagent's reasoning level for the job, per the Subagents section of the **poteto-mode** skill. 4. Sweep the shared record whenever the topic names a feature, file, subsystem, area, or bug. This is the default, not a judgment call, and "my work on X" does not exempt it. Spawn one investigator subagent per source, in agent mode because readonly strips MCP access, and ask each "what's the current state, what's been tried and didn't hold, and what are users still reporting". Run them in parallel with the chat-history mining. Null results are findings. Skip an unavailable MCP and say so. Fold what comes back into the brief. Skip this step only for pure activity recall with no named target ("what did I do this week"), where your own history and live state are the entire answer. diff --git a/harness/pstack/claude-code/skills/show-me-your-work/SKILL.md b/harness/pstack/claude-code/skills/show-me-your-work/SKILL.md index 387fe57190..34c610f57d 100644 --- a/harness/pstack/claude-code/skills/show-me-your-work/SKILL.md +++ b/harness/pstack/claude-code/skills/show-me-your-work/SKILL.md @@ -20,7 +20,7 @@ Copy `references/decision-log-template.tsv` (the header row) to start a clean lo - **phase.** The phase or workstream. - **decision.** What was chosen or done, one line. - **why.** The reason in plain words. If a principle drove it, say it plainly, not as a jargon tag. -- **evidence.** A link or path that proves it: commit SHA, PR number, `file:line`, or an artifact, trace, or screenshot path. Never a paragraph. +- **evidence.** A link or path that proves it: commit SHA, PR number, `file:line`, or an artifact, trace, or screenshot path. Never a paragraph. It tests the claim as worded, not a weaker one: a row that says "fresh checkout" cites `git status --short`, not only `git rev-parse HEAD`. - **result.** The outcome or predicate state: `tests green`, `reverted`, `pixel-diff 0`, `INCONCLUSIVE`, `open`. An example, plain-spoken so a reviewer reads it at a glance. diff --git a/pstack/.cursor-plugin/plugin.json b/pstack/.cursor-plugin/plugin.json index b1668706ec..97f4bed667 100644 --- a/pstack/.cursor-plugin/plugin.json +++ b/pstack/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "pstack", "displayName": "pstack", - "version": "0.15.46", + "version": "0.15.47", "description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.", "author": { "name": "Lauren Tan" diff --git a/pstack/plugin.json b/pstack/plugin.json index fce40ca898..1a333c8bbc 100644 --- a/pstack/plugin.json +++ b/pstack/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "pstack", - "version": "0.15.46", + "version": "0.15.47", "description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.", "author": { "name": "Lauren Tan" diff --git a/pstack/skills/correct/SKILL.md b/pstack/skills/correct/SKILL.md index c45e06f48a..cefd4ce1c2 100644 --- a/pstack/skills/correct/SKILL.md +++ b/pstack/skills/correct/SKILL.md @@ -12,7 +12,7 @@ Assume every contributor is an agent that sees only the files it opened, copies ## Find the mistake classes -First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice. +First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice. Split agent-written text from the operator's own by content or marker. An author login does not prove a person wrote it, because agent reviews often post under the operator's account. ## Fix each class at the highest level that works diff --git a/pstack/skills/figure-it-out/SKILL.md b/pstack/skills/figure-it-out/SKILL.md index 625a53c4d8..623a23c12e 100644 --- a/pstack/skills/figure-it-out/SKILL.md +++ b/pstack/skills/figure-it-out/SKILL.md @@ -20,7 +20,7 @@ Ground first, then commit. Don't start the run until you can state: - Scope, quantified: rough units and effort, plus the blockers grounding surfaced. - The rigor level, biased high. One-way doors and high blast radius get more. Reversible low-stakes steps get less. Rigor is gates and artifacts, not "try harder". -Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the **never-block-on-the-human** principle skill), but a multi-hour run earns one checkpoint. +When a new goal replaces an old one, compare the two definitions of done and log which targets carry over and which were dropped. Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the **never-block-on-the-human** principle skill), but a multi-hour run earns one checkpoint. ## Phase B: Design the workflow diff --git a/pstack/skills/poteto-mode/SKILL.md b/pstack/skills/poteto-mode/SKILL.md index 82a1941713..3e63e7bd10 100644 --- a/pstack/skills/poteto-mode/SKILL.md +++ b/pstack/skills/poteto-mode/SKILL.md @@ -27,6 +27,7 @@ The remaining triggers live only here: - PR status → the **Babysit** playbook, not Cursor's built-in babysit skill. Landing a green stack → the **Shipping** playbook. - Bot review comments → judge each on its merits. - Long or unattended work → **show-me-your-work**. +- A named skill that does not fit the job → open it, say where its contract misses, and name the better fit. Never log another skill's output under the named one. ## Principles diff --git a/pstack/skills/recall/SKILL.md b/pstack/skills/recall/SKILL.md index a4ce69d251..e48bc86633 100644 --- a/pstack/skills/recall/SKILL.md +++ b/pstack/skills/recall/SKILL.md @@ -14,7 +14,7 @@ Your context lives in two records. Your own chat history holds what you did and Transcripts live at `~/.cursor/projects//agent-transcripts//.jsonl`, where `` is the workspace path with the leading slash dropped and each "/" turned into "-" (so `/Users/you/proj` becomes `Users-you-proj`). Every line is one chat message. -1. Classify, then route. One specific prior chat to resume is the `session-pickup` playbook, not this. Turning habits into a durable skill is `automate-me`. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining. +1. Classify, then route. One specific prior chat to resume is the `session-pickup` playbook, not this. Turning habits into a durable skill is `automate-me`. Mining the operator's corrections into mistake classes is the **correct** skill. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining. 2. Lock the scope before searching. Pin the window ("recent" is a real range, default the last 7 days), the topic if named, and the workspace (default the active one. Never read another project's transcripts without being asked). State the scope back. Never quietly turn "all" into "recent N". 3. Fan out across your chat history. Spawn parallel subagents on a fast, cheap model, each taking a slice of the corpus. Tell every subagent to order candidates by real modification time (`ls -t`) and never by UUID name, grep the topic first and then read only the matching chats and only their relevant regions, and skip the current chat plus obvious noise (subagent, eval, and test chats). Each returns the same schema, one block per chat: topic, the user's goal, decisions, open threads, struggles and corrections, and artifacts (PRs, tickets, branches), each citing the chat UUID. For one or two chats, skip the fan-out and search directly. The raw transcripts stay in the subagents. The main thread gets only their findings. Pick each subagent's reasoning level for the job, per the Subagents section of the **poteto-mode** skill. 4. Sweep the shared record whenever the topic names a feature, file, subsystem, area, or bug. This is the default, not a judgment call, and "my work on X" does not exempt it. Spawn one investigator subagent per source, in agent mode because readonly strips MCP access, and ask each "what's the current state, what's been tried and didn't hold, and what are users still reporting". Run them in parallel with the chat-history mining. Null results are findings. Skip an unavailable MCP and say so. Fold what comes back into the brief. Skip this step only for pure activity recall with no named target ("what did I do this week"), where your own history and live state are the entire answer. diff --git a/pstack/skills/show-me-your-work/SKILL.md b/pstack/skills/show-me-your-work/SKILL.md index bf64d5de06..b1919cae1b 100644 --- a/pstack/skills/show-me-your-work/SKILL.md +++ b/pstack/skills/show-me-your-work/SKILL.md @@ -18,7 +18,7 @@ Copy `references/decision-log-template.tsv` (the header row) to start a clean lo - **phase.** The phase or workstream. - **decision.** What was chosen or done, one line. - **why.** The reason in plain words. If a principle drove it, say it plainly, not as a jargon tag. -- **evidence.** A link or path that proves it: commit SHA, PR number, `file:line`, or an artifact, trace, or screenshot path. Never a paragraph. +- **evidence.** A link or path that proves it: commit SHA, PR number, `file:line`, or an artifact, trace, or screenshot path. Never a paragraph. It tests the claim as worded, not a weaker one: a row that says "fresh checkout" cites `git status --short`, not only `git rev-parse HEAD`. - **result.** The outcome or predicate state: `tests green`, `reverted`, `pixel-diff 0`, `INCONCLUSIVE`, `open`. An example, plain-spoken so a reviewer reads it at a glance.