reproduce-and-fix-issu…
Reproduce triaged Slack bugs through a configured app-control adapter, verify existing fixes, and open a bounded draft pull…
Apply when designing commands, lifecycle steps, or processing loops that run amid crashes, restarts, and retries. Converge to the same end state regardless of partial prior runs.
Claude Code
$ npx -y skills add backnotprop/pstack --skill principle-make-operations-idempotent --agent claude-code
Codex
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a codex -y
Cursor
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a cursor -y
Gemini CLI
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a gemini-cli -y
GitHub Copilot
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a github-copilot -y
OpenCode
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a opencode -y
Windsurf
$ npx skills add backnotprop/pstack --skill principle-make-operations-idempotent -a windsurf -y
name: principle-make-operations-idempotent description: "Apply when designing commands, lifecycle steps, or processing loops that run amid crashes, restarts, and retries. Converge to the same end state regardless of partial prior runs." disable-model-invocation: true
Design every state-changing operation to converge to the correct state however many times it runs and wherever the previous run stopped.
Derive each step from the state that exists, not from what the previous run meant to do. Read the current state, compare it to the goal, and apply only the difference.
Anything a run leaves behind (a lock, a temporary file, a half-written record, a claimed job) must be recognizable as stale by the next run, by evidence that holds wherever the previous run could have stopped. Write to a temporary path and rename it into place.
The test: what happens if this runs twice? What if the previous run crashed at every possible point? If the answer depends on what was left behind, add a reconciliation step.
i'm poteto. i'm not a president or ceo, but i've worked with millions of lines of code at Meta, Netflix, and Cursor. i'm also on the react core team where i help build and maintain react compiler. there's a growing sense that ai writes too much slop code.
Reproduce triaged Slack bugs through a configured app-control adapter, verify existing fixes, and open a bounded draft pull…
Configure Benny and prepare its triage and repro automations. Use when installing Benny or changing its Slack, tracker,…
Triage Slack issue reports with one thread-only verdict, evidence review, cause-aware routing, tracker dedupe, and fail-closed…
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\",…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…