diff --git a/.omp-plugin/marketplace.json b/.omp-plugin/marketplace.json index d6dc2e9..dfacd8f 100644 --- a/.omp-plugin/marketplace.json +++ b/.omp-plugin/marketplace.json @@ -5,13 +5,13 @@ }, "metadata": { "description": "pstack, poteto's engineering methodology for Cursor, ported to oh-my-pi. Model and provider agnostic.", - "version": "0.15.4800" + "version": "0.15.4801" }, "plugins": [ { "name": "pstack", "description": "60 skills, 22 playbooks, 24 principles, the poteto-mode pin, and two agents. Upstream cursor/plugins pstack 0.15.48 at 9e278fe.", - "version": "0.15.4800", + "version": "0.15.4801", "category": "development", "license": "MIT", "source": "./plugins/pstack" diff --git a/PORTING.md b/PORTING.md index 8dc7689..a230908 100644 --- a/PORTING.md +++ b/PORTING.md @@ -323,6 +323,25 @@ unified diffs applied after the rules, which is where a change no substitution c and runtime contract. `omp-mechanics` keeps only pstack-specific OMP deltas. Upstream syncs preserve these paths without rewriting them. +### Skill commands are derived, not listed + +omp registers each skill only as `/skill:`. A bare `/how` reaches the model as literal text and +never loads the skill, so every `/name` upstream writes has to become `/skill:name`. One rule in +`rules.sed` does it, and its left side carries the token `@skill-names@` instead of a list of +skills. `apply_rules` replaces the token with every directory under the tree's `skills/`, plus the +owned skills in `owned.txt`, minus `poteto-mode`, so a skill upstream adds is covered by the build +that brings it in and nobody edits a rule or a README. `poteto-mode` is a real extension command +that the port registers itself, so its bare form stays as upstream wrote it. The probes that read +`rules.sed` as data expand the token the same way. + +A name is rewritten after the start of a line, a space, `(`, a backtick, or `"`, when the next +character cannot continue a name, a path, or a longer name (a letter, digit, `_`, `/`, or `-`). +Paths, URLs, `skill://name`, `/how-to`, and `/reframed` are left alone. The rule consumes the one +character after the name, so two names a single space apart rewrite only the first. The +`skill command form` check uses the same boundaries with lookaround, so that line fails the gate +instead of shipping. The READMEs carry no skill, playbook, or principle counts for the same reason. +`marketplace.json` carries them, written by the build, and `counts` holds it to the live tree. + `omp-port/excluded.txt` names upstream paths the port does not ship, one per line. `extract_upstream` deletes each one right after the export, so no rule, patch, or probe sees that text, and a rule that only an excluded file matched reads as stale. The `excluded paths` check fails when an excluded path diff --git a/README.md b/README.md index 79d8e2d..ea5bae5 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ pstack-omp ports Lauren Tan's [pstack](https://github.com/cursor/plugins/tree/main/pstack) from Cursor to [oh-my-pi](https://github.com/can1357/oh-my-pi) (`omp`). It is for omp users who want pstack's `poteto-mode` router, its playbooks for bug fixes, features, reviews, and shipping, and its -review panels. The plugin carries 60 skills, with 22 playbooks and 24 principle leaves, and two -extensions. +review panels. The plugin carries the full pstack skill set, its playbooks and principle leaves, +and two extensions. ## Install diff --git a/omp-port/RELEASE b/omp-port/RELEASE index 573541a..d00491f 100644 --- a/omp-port/RELEASE +++ b/omp-port/RELEASE @@ -1 +1 @@ -0 +1 diff --git a/omp-port/check-port.sh b/omp-port/check-port.sh index c72f27a..d1eac00 100755 --- a/omp-port/check-port.sh +++ b/omp-port/check-port.sh @@ -233,17 +233,18 @@ runtime_contract() { report "cursor tool names" "PASS no Cursor tool name, capitalised Task included" fi - # Derived from the tree, not from a list: a hand-kept list of names is a list that forgets. bare="" - while read -r n; do - hits=$(grep -rInF "\`/$n\`" --include='*.md' "${SCOPE[@]}" 2>/dev/null || true) - [ -n "$hits" ] && bare="$bare$hits"$'\n' - done < <(find skills -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort) - if [ -n "$bare" ]; then - report "skill command form" "FAIL" - while read -r line; do [ -n "$line" ] && violate "$line"; done <<<"$bare" + if names=$(skill_names_alt .); then + bare=$(grep -rInP "(?/dev/null || true) + if [ -n "$bare" ]; then + report "skill command form" "FAIL" + while read -r line; do [ -n "$line" ] && violate "$line"; done <<<"$bare" + else + report "skill command form" "PASS every skill command uses the registered /skill: form" + fi else - report "skill command form" "PASS every skill command uses the registered /skill: form" + report "skill command form" "FAIL" + violate "no skill names to check under skills/" fi bad="" @@ -615,18 +616,13 @@ else report "conflict markers" "PASS no unresolved merge left" fi -# The counts are generated by omp-port/sync-upstream.sh into marketplace.json. The two READMEs -# carry them by hand, so they rot silently unless the live tree is the judge. "principle" with no -# trailing s so it matches both "principles" and "principle leaves". read -r nskills nplays nprinc < <(port_counts .) MARKET=../../.omp-plugin/marketplace.json pin7=$(cut -c1-7 ../../omp-port/UPSTREAM) stale="" -for f in ../../README.md README.md "$MARKET"; do - grep -qF "$nskills skills" "$f" 2>/dev/null || stale="$stale$f wants \"$nskills skills\""$'\n' - grep -qF "$nplays playbooks" "$f" 2>/dev/null || stale="$stale$f wants \"$nplays playbooks\""$'\n' - grep -qF "$nprinc principle" "$f" 2>/dev/null || stale="$stale$f wants \"$nprinc principle\""$'\n' -done +grep -qF "$nskills skills" "$MARKET" 2>/dev/null || stale="$stale$MARKET wants \"$nskills skills\""$'\n' +grep -qF "$nplays playbooks" "$MARKET" 2>/dev/null || stale="$stale$MARKET wants \"$nplays playbooks\""$'\n' +grep -qF "$nprinc principles" "$MARKET" 2>/dev/null || stale="$stale$MARKET wants \"$nprinc principles\""$'\n' grep -qF " at $pin7." "$MARKET" 2>/dev/null || stale="$stale$MARKET wants the pinned sha \" at $pin7.\""$'\n' if [ -n "$stale" ]; then diff --git a/omp-port/lib.sh b/omp-port/lib.sh index 365ed5f..01e424f 100644 --- a/omp-port/lib.sh +++ b/omp-port/lib.sh @@ -108,13 +108,49 @@ extract_upstream() { [ -d "$work/skills" ] && [ -d "$work/agents" ] } +extension_commands() { + grep -rhoE 'registerCommand\("[a-z0-9-]+"' "$REPO_ROOT/plugins/pstack/extensions" --include=index.js | + sed -E 's/^registerCommand\("(.*)"$/\1/' +} + +skill_command_names() { + { + find "$1/skills" -mindepth 1 -maxdepth 1 -type d -printf '%f\n' + owned_paths | sed -n 's#^skills/\([^/]*\)$#\1#p' + } | grep -E '^[a-z0-9][a-z0-9-]*$' | grep -vxF -f <(extension_commands) | LC_ALL=C sort -u +} + +# The same names as one ERE alternation for the @skill-names@ token in rules.sed. +skill_names_alt() { + local list + list=$(skill_command_names "$1") && [ -n "$list" ] || { + printf 'no skill directories under %s/skills\n' "$1" >&2 + return 1 + } + paste -sd'|' - <<<"$list" +} + +# with the @skill-names@ token replaced by the names of the skills in . +expand_rules() { + local alt + alt=$(skill_names_alt "$1") || return 1 + sed "s#@skill-names@#$alt#g" "$2" +} + # Step 2, the substitution table. Binary files are skipped rather than corrupted, which is what # grep -I reports when the empty pattern does not match. One sed takes a batch of files, and -i -# implies -s, so each file is still its own stream and a range address ends with its file. +# implies -s, so each file is still its own stream and a range address ends with its file. The apply_rules() { - local work="$1" rules="$2" - grep -rIlZ '' "$work" | - xargs -0 -r -n 64 -P "$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 2)" sed -E -i -f "$rules" + local work="$1" rules="$2" expanded st=0 + expanded=$(mktemp) || return 1 + if expand_rules "$work" "$rules" >"$expanded"; then + grep -rIlZ '' "$work" | + xargs -0 -r -n 64 -P "$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 2)" sed -E -i -f "$expanded" || st=$? + else + st=1 + fi + rm -f "$expanded" + return "$st" } # Step 3, the port's own code. A patch that no longer applies is a hard stop, because the @@ -428,7 +464,7 @@ dead_rules() { # Exits 1, printing nothing, when the extract or any rule fails to parse, so a caller cannot read # an empty result as "nothing is stale". dead_rule_causes() { - local sha="$1" dead="$2" work catchall n rule prog by span st=0 + local sha="$1" dead="$2" work catchall n rule prog by span alt st=0 [ -n "$dead" ] || return 0 work=$(mktemp -d) if ! mkdir "$work/up" || ! extract_upstream "$sha" "$work/up"; then @@ -436,12 +472,17 @@ dead_rule_causes() { return 1 fi text_blob "$work/up" >"$work/blob" - mark_rules >"$work/marked" + if ! alt=$(skill_names_alt "$work/up"); then + rm -rf "$work" + return 1 + fi + mark_rules | sed "s#@skill-names@#$alt#g" >"$work/marked" catchall=$(grep -nF "$CATCHALL_REPL" "$RULES" | head -n1 | cut -d: -f1) declare -A progs - while IFS=$'\t' read -r n _ _ _ _ prog _; do progs[$n]=$prog; done < <(rule_table) + while IFS=$'\t' read -r n _ _ _ _ prog _; do progs[$n]=${prog//@skill-names@/$alt}; done < <(rule_table) while IFS=$'\t' read -r n rule; do [ -n "$n" ] || continue + rule=${rule//@skill-names@/$alt} printf '%s\n' "${rule//$RULE_NL/$'\n'}" >"$work/rule.sed" if ! sed -E -f "$work/rule.sed" "$work/blob" >"$work/out" 2>/dev/null; then st=1 @@ -458,7 +499,7 @@ dead_rule_causes() { prog=${progs[$n]:--} if [ "$prog" != - ]; then sed -nE "$prog" "$work/blob" | spans_of | LC_ALL=C sort -u >"$work/spans" - head -n "$((n - 1))" "$RULES" >"$work/prefix.sed" + head -n "$((n - 1))" "$RULES" | sed "s#@skill-names@#$alt#g" >"$work/prefix.sed" sed -E -f "$work/prefix.sed" "$work/spans" >"$work/after" if ! cmp -s "$work/spans" "$work/after"; then head -n "$((n - 1))" "$work/marked" >"$work/prefix.sed" diff --git a/omp-port/rules.sed b/omp-port/rules.sed index e832ffd..f355d75 100644 --- a/omp-port/rules.sed +++ b/omp-port/rules.sed @@ -388,14 +388,9 @@ s#\[`/setup-pstack`\]#[Choose models]#g s#\.\./setup-pstack/SKILL\.md#../omp-mechanics/SKILL.md\#choose-models#g s#`/setup-pstack`#the Choose models section of `skill://omp-mechanics`#g # omp registers one slash command per skill as /skill:; a bare /how is not a command on this -# harness. `/poteto-mode` is in the alternation only because the gate scans for it like any other -# name; the port's own extension registers that command, so the rewrite is a no-op in practice. -# -# One rule covers every name rather than one rule per skill. The per-skill form was a list that -# forgot: upstream added eighteen skills after it was written and every one of them shipped a bare -# /name the gate could not accept. Adding a skill upstream now means adding its name to the -# alternation, once. -s#`/(teach|recall|reflect|reframe|tdd|swarm|arena|interrogate|correct|automate-me|figure-it-out|show-me-your-work|benchmark-checklist|blast-radius|ketchup-video|ketchup|bro|make-bot-ui|poteto-help|no-comments|unslop|create-verification-skill|maintain-verification-skill|create-formal-verification-skill|maintain-formal-verification-skill|statechart|architect|why|how|technical-writing|sharpen|in-your-own-words|typescript-best-practices|poteto-mode|principle-[a-z-]+)`#`/skill:\1`#g +# harness, and with `disable-model-invocation: true` the skill is hidden from the index, so the +# model cannot recover it either. +s#(^|[ (`"])/(@skill-names@)([^A-Za-z0-9_/-]|$)#\1/skill:\2\3#g # One verdict vocabulary. pstack-omp and swarm both name PASS/ISSUES/BLOCKED; shipping named a # different three, and its landing rule tested for a different set, so a verifier told by one file # and checked by another could not satisfy both. @@ -466,15 +461,6 @@ s#- Workers never rebase and never run `gt`\.#- Workers never rebase and never t ## rewritten on one side of a page and not the other, and a paraphrase of a harness rule that ## dropped half of it. Both are invisible to a diff that only looks for Cursor vocabulary. -# Bare `/` is not an omp command. Skills register as `/skill:`; unhandled slash input -# falls through as literal prompt text, and with `disable-model-invocation: true` the skill is -# hidden from the index, so the model cannot recover it either. The gate only greps the backticked -# form, which is why the description form survived. A per-name list here missed ketchup, sharpen, -# correct, and then ketchup-video, the same miss the alternation above records. One rule now -# covers every `Use for /`. -s#Use for /([a-z][a-z0-9-]*)([ ,.])#Use for /skill:\1\2# -s#like /ketchup,#like /skill:ketchup,# - # `cursor location` is a Cursor composer affordance: the editor injects the caret position. omp is # a terminal harness with no editor-state primitive, so an agent following the hint looks for a # signal that does not exist. diff --git a/omp-port/test-gate-mutations.sh b/omp-port/test-gate-mutations.sh index f6d6db2..ec9c763 100755 --- a/omp-port/test-gate-mutations.sh +++ b/omp-port/test-gate-mutations.sh @@ -172,6 +172,53 @@ mutate_bare_skill_command() { printf '\nRun `/how` first, then `/skill:how`.\n' >>"$FIXTURE/skills/no-comments/SKILL.md" } +mutate_bare_skill_args() { + printf '\n- `/sharpen `\n' >>"$FIXTURE/skills/poteto-help/references/recipes.md" +} + +mutate_bare_skill_prose() { + printf '\nType /how with a question.\n' >>"$FIXTURE/skills/poteto-help/SKILL.md" +} + +mutate_not_a_skill_command() { + printf '\nSee skills/how/SKILL.md, ../how/SKILL.md, skill://how, https://example.com/how, `/how-to`, /reframed, `/poteto-mode`, and `/skill:how`.\n' \ + >>"$FIXTURE/skills/poteto-help/SKILL.md" +} + +make_fake_canon() { + FAKE_CANON="$WORK/fake-canon" + mkdir -p "$FAKE_CANON" + git -C "$CANON" archive "$PIN" pstack/skills pstack/agents | tar -x -C "$FAKE_CANON" + fake_git() { + git -C "$FAKE_CANON" -c init.defaultBranch=main -c user.name=gate -c user.email=gate@localhost \ + -c commit.gpgsign=false -c core.hooksPath=/dev/null "$@" + } + fake_git init -q && fake_git add -A && fake_git commit -qm pin + mkdir -p "$FAKE_CANON/pstack/skills/fakenewskill" + printf -- '---\nname: fakenewskill\ndescription: A skill upstream added after this port was written. Use for /fakenewskill.\n---\n\n# Fake new skill\n' \ + >"$FAKE_CANON/pstack/skills/fakenewskill/SKILL.md" + sed -i '/\[`\/tdd`\](\.\.\/tdd\/SKILL\.md)/a | Try the new thing | [`/fakenewskill`](../fakenewskill/SKILL.md) |' "$FAKE_CANON/pstack/skills/poteto-help/SKILL.md" + printf '\nType /fakenewskill with a question, or run `/fakenewskill `.\n' >>"$FAKE_CANON/pstack/skills/poteto-help/SKILL.md" + fake_git add -A && fake_git commit -qm 'add fakenewskill' + FAKE_SHA=$(fake_git rev-parse HEAD) +} + +mutate_new_upstream_skill() { + local build p + build=$(mktemp -d) + (CANON="$FAKE_CANON" build_tree "$FAKE_SHA" "$build") >"$build.log" 2>&1 || { + cat "$build.log" + return 1 + } + rm -rf "$FIXTURE/skills" "$FIXTURE/agents" + mv "$build/skills" "$build/agents" "$FIXTURE/" + while IFS= read -r p; do + rm -rf "${FIXTURE:?}/$p" + cp -a "$PORT_DIR/../plugins/pstack/$p" "$FIXTURE/$p" + done < <(owned_paths) + rm -rf "$build" "$build.log" +} + mutate_required_item_field() { sed -i 's/solutionSpace/spaceField/g' "$FIXTURE/skills/pstack-omp/SKILL.md" } @@ -378,6 +425,9 @@ start_case 'guide prototype playbook' 'guide claims' '' contracts mutate_guide_p start_case 'guide feature map' 'guide claims' 'feature map' contracts mutate_guide_feature_map start_case 'readonly after another' 'readonly posture' 'another readonly' contracts mutate_readonly_another start_case 'bare skill command' 'skill command form' '`/how`' contracts mutate_bare_skill_command +start_case 'bare skill command with arguments' 'skill command form' '`/sharpen `' contracts mutate_bare_skill_args +start_case 'bare skill command in prose' 'skill command form' 'Type /how with' contracts mutate_bare_skill_prose +start_case 'paths, longer names, and poteto-mode' '' '' contracts mutate_not_a_skill_command start_case 'required item field' 'runtime contract fields' 'solutionSpace' contracts mutate_required_item_field # The README half only: PORTING.md lives outside the plugin root, so no fixture reaches it. start_case 'external veto provenance' 'external capability provenance' '' contracts mutate_veto_provenance @@ -397,6 +447,8 @@ start_case 'shipped change at a higher version' '' '' contracts mutate_shipped_b # these cases run the whole gate and need the clone. The clone is fetched here, one sha at a time, # before any case starts: the cases run in parallel and two fetches into one clone collide. if ensure_canon "$PIN" "$OLD_TARGET" >/dev/null 2>&1; then + make_fake_canon + start_case 'new upstream skill linked in poteto-help' '' '' contracts mutate_new_upstream_skill start_case 'rule matching no upstream text' 'rule staleness' 'a sentence upstream has never contained' full mutate_unmatched_rule start_case 'delete rule matching no line' 'rule staleness' 'a line upstream has never contained' full mutate_unmatched_delete start_case 'exemption on a live rule' 'rule staleness' 'which matches upstream text' full mutate_exemption_on_live_rule diff --git a/plugins/pstack/README.md b/plugins/pstack/README.md index 2b9e2a8..edb7641 100644 --- a/plugins/pstack/README.md +++ b/plugins/pstack/README.md @@ -1,8 +1,8 @@ # pstack for oh-my-pi -Lauren Tan's pstack methodology, ported to omp. 60 skills, 22 playbooks, 24 principle -leaves, the `poteto-mode` pin, and the `poteto-agent` and `comment-sicko` agents. -58 skills are built from upstream. `omp-mechanics` and `pstack-omp` are port-owned. +Lauren Tan's pstack methodology, ported to omp. The full pstack skill set with its playbooks and +principle leaves, the `poteto-mode` pin, and the `poteto-agent` and `comment-sicko` agents. +Every skill but `omp-mechanics` and `pstack-omp` is built from upstream. Those two are port-owned. ## Install @@ -11,7 +11,7 @@ leaves, the `poteto-mode` pin, and the `poteto-agent` and `comment-sicko` agents /marketplace install pstack@pstack-omp ``` -That loads the 60 skills and both extensions, `potetomode` and `pstackpolicy`. The two agents are optional. +That loads every skill and both extensions, `potetomode` and `pstackpolicy`. The two agents are optional. On omp 18.1.13 a marketplace plugin's `agents/` directory is scanned only through the `claude-plugins` discovery provider, and enabling that provider also loads every Claude Code plugin cached under `~/.claude/plugins`. Link the agents into omp's native root instead: diff --git a/plugins/pstack/agents/poteto-agent.md b/plugins/pstack/agents/poteto-agent.md index e80ee5b..da02753 100644 --- a/plugins/pstack/agents/poteto-agent.md +++ b/plugins/pstack/agents/poteto-agent.md @@ -1,9 +1,9 @@ --- name: poteto-agent spawns: "*" -description: Delegate subagent for code-writing and helper tasks spawned during a `/skill:poteto-mode` run. Use for delegates, not as the runner for `/skill:poteto-mode` itself. Spawn a fresh `poteto-agent` for each new task, and resume one only in the strict cases that poteto-mode's Subagents section names. Reads the `poteto-mode` skill's `SKILL.md` in full before any work, including its inline Principles index, then `skill://omp-mechanics`. Substituting `task` (omp's general-purpose bundled agent) skips that read and drifts. +description: Delegate subagent for code-writing and helper tasks spawned during a `/poteto-mode` run. Use for delegates, not as the runner for `/poteto-mode` itself. Spawn a fresh `poteto-agent` for each new task, and resume one only in the strict cases that poteto-mode's Subagents section names. Reads the `poteto-mode` skill's `SKILL.md` in full before any work, including its inline Principles index, then `skill://omp-mechanics`. Substituting `task` (omp's general-purpose bundled agent) skips that read and drifts. --- # Poteto subagent -You are operating as poteto-mode's full agent style. The chat that receives `/skill:poteto-mode` owns the playbook, the todo list, and every `task` spawn. You are one of its delegates. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Use the absolute path your parent gave you. With no path, before any other work, search `~/.omp/plugins/` for a file whose path ends in `skills/poteto-mode/SKILL.md`. If more than one file matches, use the copy whose `package.json` beside its `skills/` directory has the highest `version`. Your skill catalog hides this skill, so a missing catalog entry does not mean pstack is absent. If no such file exists, stop and tell your parent. Navigate to a leaf `principle-*` skill whenever you apply that principle. +You are operating as poteto-mode's full agent style. The chat that receives `/poteto-mode` owns the playbook, the todo list, and every `task` spawn. You are one of its delegates. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Use the absolute path your parent gave you. With no path, before any other work, search `~/.omp/plugins/` for a file whose path ends in `skills/poteto-mode/SKILL.md`. If more than one file matches, use the copy whose `package.json` beside its `skills/` directory has the highest `version`. Your skill catalog hides this skill, so a missing catalog entry does not mean pstack is absent. If no such file exists, stop and tell your parent. Navigate to a leaf `principle-*` skill whenever you apply that principle. diff --git a/plugins/pstack/package.json b/plugins/pstack/package.json index 77a6aaa..2045911 100644 --- a/plugins/pstack/package.json +++ b/plugins/pstack/package.json @@ -1,6 +1,6 @@ { "name": "pstack", - "version": "0.15.4800", + "version": "0.15.4801", "license": "MIT", "omp": { "extensions": [ diff --git a/plugins/pstack/skills/poteto-help/SKILL.md b/plugins/pstack/skills/poteto-help/SKILL.md index 9660978..d51e51a 100644 --- a/plugins/pstack/skills/poteto-help/SKILL.md +++ b/plugins/pstack/skills/poteto-help/SKILL.md @@ -1,6 +1,6 @@ --- name: poteto-help -description: Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question. +description: Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /skill:poteto-help with a question. disable-model-invocation: true --- @@ -17,7 +17,7 @@ This file maps questions to the skills and guide pages that hold the answers. Th Infer the need from the message and the conversation. A named situation, such as "which skill reviews a PR?", goes straight to its section. If the need is still unclear, ask one multiple-choice question with these options, then answer only the section they pick: - Get set up -- Start a task with `/skill:poteto-mode` +- Start a task with `/poteto-mode` - Pick a skill for a situation - Fix a run that went wrong - Make pstack my own @@ -37,19 +37,19 @@ When required role overrides are missing and model selection matters, ask whethe 1. Install with `/marketplace add negoro26/pstack-omp`, then `/marketplace install pstack@pstack-omp`. 2. Models need no configuration. Each agent runs on its frontmatter model, then on the chat model. To pick models per agent, follow [Choose models](../omp-mechanics/SKILL.md#choose-models). Offer once each to generate a verification skill with `/skill:create-verification-skill` and a formal verification skill with `/skill:create-formal-verification-skill`, unless the project already has one. -3. Start a real task with `/skill:poteto-mode`, a goal, and a check that can pass or fail. +3. Start a real task with `/poteto-mode`, a goal, and a check that can pass or fail. Skills run when invoked or routed. The installed extension also provides the session pin commands. The [README](../../README.md) and [guide page 1](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/01-setup.md) have the details. Offer to word their first prompt with them, per [`references/prompting.md`](references/prompting.md). -If cost is the worry, explain that extra workers and review panels spend more tokens. To spend fewer, pick a lower effort or cheaper available models per [Choose models](../omp-mechanics/SKILL.md#choose-models). An agent without a model override uses its frontmatter or inherits the chat model. Never write `auto` or `inherit-parent` as an OMP model selector. Save `/skill:poteto-mode` for work that needs rigor. +If cost is the worry, explain that extra workers and review panels spend more tokens. To spend fewer, pick a lower effort or cheaper available models per [Choose models](../omp-mechanics/SKILL.md#choose-models). An agent without a model override uses its frontmatter or inherits the chat model. Never write `auto` or `inherit-parent` as an OMP model selector. Save `/poteto-mode` for work that needs rigor. pstack installs in omp with `/marketplace add negoro26/pstack-omp`, then `/marketplace install pstack@pstack-omp`. Invoke skills as `/skill:`, such as `/skill:poteto-mode`. Read `skill://pstack-omp` for the live task and runtime contract and `skill://omp-mechanics` for pstack-specific OMP differences. The engineering workflows come from upstream. `skill://pstack-omp` maps worker execution and lifecycle to OMP, `skill://omp-mechanics` says how to choose models, and the mode extension preserves the session pin. -## Start a task with `/skill:poteto-mode` +## Start a task with `/poteto-mode` -`/skill:poteto-mode` matches the task to a playbook, copies the playbook's steps into the todo list, and runs the other skills as the steps need them. A good prompt states the goal and how to tell it's done. It doesn't list skills, because a hand-written sequence tends to drop or reorder steps the playbook would keep. Read [`references/prompting.md`](references/prompting.md) before you help word one. [Guide page 2](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/02-poteto-mode.md) has examples. +`/poteto-mode` matches the task to a playbook, copies the playbook's steps into the todo list, and runs the other skills as the steps need them. A good prompt states the goal and how to tell it's done. It doesn't list skills, because a hand-written sequence tends to drop or reorder steps the playbook would keep. Read [`references/prompting.md`](references/prompting.md) before you help word one. [Guide page 2](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/02-poteto-mode.md) has examples. Choose whether to invoke the router once or pin it for the session: @@ -61,11 +61,11 @@ Link the installed [OMP README](../../README.md) for pin commands and [runtime m ## Pick a skill -The default answer is `/skill:poteto-mode`, which runs most of the others when its steps need them. Name a skill directly when the user wants more or less of something than the playbook gives. Read the skill before you recommend it, and give one example prompt. +The default answer is `/poteto-mode`, which runs most of the others when its steps need them. Name a skill directly when the user wants more or less of something than the playbook gives. Read the skill before you recommend it, and give one example prompt. | The user wants to | Skill | |---|---| -| Do any non-trivial task with rigor | [`/skill:poteto-mode`](../poteto-mode/SKILL.md) | +| Do any non-trivial task with rigor | [`/poteto-mode`](../poteto-mode/SKILL.md) | | Check that the agent understood their goal and the problem before it starts | [`/skill:in-your-own-words`](../in-your-own-words/SKILL.md) | | Get a prompt rewritten deeper, not bigger, before sending it: what a top professional would add, their raw material and methods, and an outside check. It returns the prompt and doesn't do the task | [`/skill:sharpen`](../sharpen/SKILL.md) | | Learn the expert words for what they're building, including words borrowed from neighboring fields, with every cited source checked, and get their description rewritten with them | [`/skill:reframe`](../reframe/SKILL.md) | @@ -119,7 +119,7 @@ Not in pstack: ## Playbooks and principles -Playbooks are step lists inside `/skill:poteto-mode`, not skills, so they have no slash command. Inside `/skill:poteto-mode`, describing the task picks one, and these phrases name one directly: +Playbooks are step lists inside `/poteto-mode`, not skills, so they have no slash command. Inside `/poteto-mode`, describing the task picks one, and these phrases name one directly: - "babysit this pr" or "check on pr 123" runs Babysit. It drives the PR to merge-ready and stops there. It doesn't merge unless the user asks to merge, land, or ship. - "land the stack" runs Shipping. @@ -128,11 +128,11 @@ Playbooks are step lists inside `/skill:poteto-mode`, not skills, so they have n - "full autopilot on this queue" runs Autopilot-full. "autopilot, don't merge" runs Autopilot-stack. - "run the eval playbook" runs Eval. -Without `/skill:poteto-mode`, the runtime may route a phrase using other enabled skills. Invoke the router explicitly to select pstack's playbook. The Playbooks section of [`poteto-mode`](../poteto-mode/SKILL.md) lists every playbook. [Guide page 6](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/06-verify-and-ship.md) gives upstream workflow examples, not OMP runtime commands. +Without `/poteto-mode`, the runtime may route a phrase using other enabled skills. Invoke the router explicitly to select pstack's playbook. The Playbooks section of [`poteto-mode`](../poteto-mode/SKILL.md) lists every playbook. [Guide page 6](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/06-verify-and-ship.md) gives upstream workflow examples, not OMP runtime commands. -pstack has no planning skill. For work that spans phases or stacked PRs, asking `/skill:poteto-mode` for a plan runs the [Multi-phase plan playbook](../poteto-mode/playbooks/multi-phase-plan.md), which writes the plan and doesn't implement it. For a design question, the Prototype playbook or `/skill:architect` settles it in code first. +pstack has no planning skill. For work that spans phases or stacked PRs, asking `/poteto-mode` for a plan runs the [Multi-phase plan playbook](../poteto-mode/playbooks/multi-phase-plan.md), which writes the plan and doesn't implement it. For a design question, the Prototype playbook or `/skill:architect` settles it in code first. -Principles are one-rule skills that `/skill:poteto-mode` reads and cites in its replies. The user rarely invokes one. They steer with the names instead, as in "apply prove it works. show me the real output." Typing `/skill:principle-` loads one on demand. [Guide page 8](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/08-principles.md) lists them. +Principles are one-rule skills that `/poteto-mode` reads and cites in its replies. The user rarely invokes one. They steer with the names instead, as in "apply prove it works. show me the real output." Typing `/skill:principle-` loads one on demand. [Guide page 8](https://github.com/cursor/plugins/blob/main/pstack/docs/guide/08-principles.md) lists them. ## Fix a run that went wrong @@ -151,7 +151,7 @@ For a run that drifts, [`references/prompting.md`](references/prompting.md) has ## Make pstack my own -- [`/skill:automate-me`](../automate-me/SKILL.md) drafts a personal mode skill from the user's own history, to use alongside `/skill:poteto-mode`. +- [`/skill:automate-me`](../automate-me/SKILL.md) drafts a personal mode skill from the user's own history, to use alongside `/poteto-mode`. - [`/skill:reflect`](../reflect/SKILL.md) after a session turns its lessons into skill edits the user approves. - `/poteto-mode write a skill for ` runs the authoring playbook. The eval playbook tests a skill change blind. - Fix a misbehaving skill in its own PR, not inside the feature work where it went wrong. diff --git a/plugins/pstack/skills/poteto-help/references/recipes.md b/plugins/pstack/skills/poteto-help/references/recipes.md index ec294a1..e5b5a9e 100644 --- a/plugins/pstack/skills/poteto-help/references/recipes.md +++ b/plugins/pstack/skills/poteto-help/references/recipes.md @@ -5,19 +5,19 @@ Swap in the real paths, skills, and done checks. Informal wording works. ## Understand - `/poteto-mode read . restate the underlying issue in your own words, in plain english.` -- `/in-your-own-words ` -- `/sharpen ` +- `/skill:in-your-own-words ` +- `/skill:sharpen ` - `/poteto-mode investigate why . give me what we know, what data you used, and your best hypotheses. don't change any code yet.` -- `use /how to understand . then use /why to find out why it broke recently.` -- `/recall my work on from last week, then read .` -- `/teach me why you implemented it this way and not . what did you trade off?` +- `use /skill:how to understand . then use /skill:why to find out why it broke recently.` +- `/skill:recall my work on from last week, then read .` +- `/skill:teach me why you implemented it this way and not . what did you trade off?` - `/poteto-mode take over this branch. read the decision log, find what's done, and continue. don't redo finished work.` ## Build - Bug: `/poteto-mode . repro first, then fix and verify.` - Bug in an app: `/poteto-mode repro this with /verify-. if it repros on main, fix it and show me a video as proof.` -- Bug with a cheap test: `/poteto-mode repro first. if there's a cheap test path, /tdd it. then fix and rerun.` +- Bug with a cheap test: `/poteto-mode repro first. if there's a cheap test path, /skill:tdd it. then fix and rerun.` - Feature: `/poteto-mode add . stays byte-identical. verify both.` - Refactor: `/poteto-mode move into one module, zero behavior change. record the current output first and prove it's unchanged after.` - Perf: `/poteto-mode takes