Skip to content

Jrecos/omp-pstack / skills/poteto-mode

poteto-mode

Unverified

poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

FileKindSize
SKILL.mdskill md25.2 KB
playbooks/authoring-a-skill.mdmarkdown829 B
playbooks/autonomous-run.mdmarkdown2.1 KB
playbooks/autopilot-full.mdmarkdown6.9 KB
playbooks/autopilot-stack.mdmarkdown877 B
playbooks/babysit.mdmarkdown8.3 KB
playbooks/bug-fix.mdmarkdown2.3 KB
playbooks/eval.mdmarkdown2.6 KB
playbooks/feature.mdmarkdown7.0 KB
playbooks/hillclimb.mdmarkdown4.3 KB
playbooks/investigation.mdmarkdown928 B
playbooks/multi-phase-plan.mdmarkdown14.0 KB
playbooks/opening-a-pr.mdmarkdown6.6 KB
playbooks/orchestrate.mdmarkdown4.8 KB
playbooks/pause-safely.mdmarkdown1.8 KB
playbooks/perf-issue.mdmarkdown1.4 KB
playbooks/prototype.mdmarkdown2.1 KB
playbooks/refactoring.mdmarkdown3.4 KB
playbooks/runtime-forensics.mdmarkdown1.3 KB
playbooks/session-pickup.mdmarkdown2.2 KB
playbooks/shipping.mdmarkdown5.9 KB
playbooks/trace-forensics.mdmarkdown1.8 KB
playbooks/visual-parity.mdmarkdown1.2 KB
playbooks/worktree-cleanup.mdmarkdown3.6 KB
references/bugbot-triage.mdmarkdown9.4 KB
references/omp-control-cli.mdmarkdown6.2 KB
references/omp-control-ui.mdmarkdown7.0 KB
references/omp-create-skill.mdmarkdown3.6 KB
references/omp-deslop.mdmarkdown1.1 KB
scripts/check-plan.mjsexecutablescript8.1 KB
scripts/check-plan.test.tsscript4.0 KB
scripts/watch-pr/cli.test.tsscript6.0 KB
scripts/watch-pr/cli.tsscript6.8 KB
scripts/watch-pr/fakes.test-helper.tsscript3.3 KB
scripts/watch-pr/github.test.tsscript15.8 KB
scripts/watch-pr/github.tsscript25.0 KB
scripts/watch-pr/policy.test.tsscript17.6 KB
scripts/watch-pr/policy.tsscript25.5 KB
scripts/watch-pr/render.tsscript7.2 KB
scripts/watch-pr/tsconfig.jsonconfig270 B
scripts/watch-pr/types.compile.tsscript2.2 KB
scripts/watch-pr/types.tsscript12.7 KB
scripts/watch-pr/watch-prexecutablescript906 B
scripts/worktree-audit.tsexecutablescript21.9 KB

playbooks/worktree-cleanup.md

View on GitHub
### Worktree and simulator cleanup

1. Snapshot and audit. Record `df -h /`, then resolve the installed plugin root with the `PSTACK_ROOT` resolver documented in the README. Inside the plugin checkout, use `PSTACK_ROOT="$(pwd)"`. Run `bun "$PSTACK_ROOT/src/cli.ts" worktree-audit [-b <pr-base-ref>] [repo-path]` (principle-build-the-lever). Without `-b`, the audit selects `origin/HEAD`, then the canonical remote default branch, then existing main or master refs. Pass `-b origin/<branch>` when PRs target another branch. The report names the selected base and keeps unknown evidence conservative. It reads paths from `git worktree list`, never hand-typed, since a hand-typed `myrepo-worktrees/x` misses one that lives at `.omp/worktrees/myrepo/x` (principle-encode-lessons-in-structure). It classifies each worktree by size, age, merge state, uncommitted work, PR state, and the newest chat that touched it, then suggests a bucket. The transcript scan is slow, so background it.
2. The bucket is advice, not permission. The pinned and active chats are the real artifact (principle-prove-it-works). Get that set from the user or sidebar and cross-check every candidate. The lever has marked `safe` a worktree the user had pinned, so the pinned set wins.
3. Verify usage before deleting. For every `verify-recent-chat` row, or anything you doubt, fan subagents out to read the transcripts and report whether the chat is pinned or ongoing and which worktrees it touches (principle-guard-the-context-window, transcripts are bulk). A pinned chat spawns arena and repro trees into sibling worktrees via background subagents, and those are in use even when their names never hit the sidebar. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section.
4. Pause on irreversible loss. `wip:N` is N tracked uncommitted edits. Show the diff and get a decision first, since removing a clean worktree is recoverable from its branch but uncommitted work is gone. `scratch:N` is untracked throwaway, safe to drop, but name the files. Per Autonomy, clean and merged and not-in-use proceeds. `wip` and in-use pause.
5. Prune the confirmed set. Per path, `git worktree remove --force <path>`. If the dir survives on ignored build artifacts, `rm -rf` it, then `git worktree prune`. Branch refs survive, so no commits are lost. Confirm with `df -h /` and re-list.
6. Simulators and other reclaimers. Simulators are usually the next-biggest win. `xcrun simctl --set testing delete all` (XCTestDevices clones), `xcrun simctl delete unavailable`, and `xcrun simctl runtime list` then `runtime delete <id>` for old runtimes. More when needed: Xcode `DerivedData` and `iOS DeviceSupport`; your agent profile dir (`~/.omp/agent`), and any leftover editor profile when present (`state.vscdb.backup`, and `snapshots/roots/<root>` where a `<root>` named for a folder you opened as a workspace balloons); package caches (pnpm, uv, brew, yarn). Clear only caches the user has not said to keep.

This is the one playbook that deletes user state with no code review to catch a slip, so the gates above are the review.

Native `worktree.onExit` cleanup is not this audit. It can delete ignored files and does not guarantee worktree ownership survives a restart. Keep `worktree.onExit=keep` for auditable work. Preserve the manual pinned-chat and WIP checks even for native-created worktrees. Neither a native cleanup prompt nor a clean tracked diff authorizes losing ignored artifacts.

**Reply:** `df -h /` before and after with space reclaimed, the worktrees pruned, and a one-line reason for each held back (in-use by which chat, or uncommitted work).
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall