@needfspeed/skills-library 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CATALOG.md +64 -1
- package/README.md +13 -2
- package/docs/pstack/README.md +55 -0
- package/docs/pstack/agents/comment-sicko.md +32 -0
- package/docs/pstack/agents/poteto-agent.md +9 -0
- package/package.json +5 -2
- package/skills/pstack/LICENSE +21 -0
- package/skills/pstack/architect/SKILL.md +79 -0
- package/skills/pstack/architect/references/design-red-flags.md +57 -0
- package/skills/pstack/architect/references/rationale-template.md +35 -0
- package/skills/pstack/architect/references/runner-prompt.md +20 -0
- package/skills/pstack/arena/SKILL.md +48 -0
- package/skills/pstack/automate-me/SKILL.md +104 -0
- package/skills/pstack/benchmark-checklist/SKILL.md +39 -0
- package/skills/pstack/blast-radius/SKILL.md +50 -0
- package/skills/pstack/bro/SKILL.md +7 -0
- package/skills/pstack/correct/SKILL.md +32 -0
- package/skills/pstack/create-formal-verification-skill/SKILL.md +43 -0
- package/skills/pstack/create-verification-skill/SKILL.md +44 -0
- package/skills/pstack/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/skills/pstack/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/skills/pstack/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/skills/pstack/figure-it-out/SKILL.md +52 -0
- package/skills/pstack/how/SKILL.md +36 -0
- package/skills/pstack/how/references/explainer-prompt.md +55 -0
- package/skills/pstack/how/references/explorer-prompt.md +35 -0
- package/skills/pstack/in-your-own-words/SKILL.md +7 -0
- package/skills/pstack/interrogate/SKILL.md +31 -0
- package/skills/pstack/ketchup/SKILL.md +43 -0
- package/skills/pstack/ketchup-video/SKILL.md +29 -0
- package/skills/pstack/maintain-formal-verification-skill/SKILL.md +58 -0
- package/skills/pstack/maintain-verification-skill/SKILL.md +39 -0
- package/skills/pstack/make-bot-ui/SKILL.md +115 -0
- package/skills/pstack/no-comments/SKILL.md +24 -0
- package/skills/pstack/poteto-help/SKILL.md +163 -0
- package/skills/pstack/poteto-help/references/prompting.md +51 -0
- package/skills/pstack/poteto-help/references/recipes.md +51 -0
- package/skills/pstack/poteto-mode/SKILL.md +150 -0
- package/skills/pstack/poteto-mode/playbooks/authoring-a-skill.md +12 -0
- package/skills/pstack/poteto-mode/playbooks/autonomous-run.md +13 -0
- package/skills/pstack/poteto-mode/playbooks/autopilot-full.md +25 -0
- package/skills/pstack/poteto-mode/playbooks/autopilot-stack.md +8 -0
- package/skills/pstack/poteto-mode/playbooks/babysit.md +23 -0
- package/skills/pstack/poteto-mode/playbooks/bug-fix.md +15 -0
- package/skills/pstack/poteto-mode/playbooks/eval.md +25 -0
- package/skills/pstack/poteto-mode/playbooks/feature.md +21 -0
- package/skills/pstack/poteto-mode/playbooks/hillclimb.md +21 -0
- package/skills/pstack/poteto-mode/playbooks/investigation.md +14 -0
- package/skills/pstack/poteto-mode/playbooks/multi-phase-plan.md +155 -0
- package/skills/pstack/poteto-mode/playbooks/opening-a-pr.md +34 -0
- package/skills/pstack/poteto-mode/playbooks/orchestrate.md +25 -0
- package/skills/pstack/poteto-mode/playbooks/pause-safely.md +10 -0
- package/skills/pstack/poteto-mode/playbooks/perf-issue.md +25 -0
- package/skills/pstack/poteto-mode/playbooks/prototype.md +14 -0
- package/skills/pstack/poteto-mode/playbooks/refactoring.md +16 -0
- package/skills/pstack/poteto-mode/playbooks/runtime-forensics.md +11 -0
- package/skills/pstack/poteto-mode/playbooks/session-pickup.md +11 -0
- package/skills/pstack/poteto-mode/playbooks/shipping.md +12 -0
- package/skills/pstack/poteto-mode/playbooks/trace-forensics.md +14 -0
- package/skills/pstack/poteto-mode/playbooks/visual-parity.md +11 -0
- package/skills/pstack/poteto-mode/playbooks/worktree-cleanup.md +12 -0
- package/skills/pstack/poteto-mode/references/bugbot-triage.md +142 -0
- package/skills/pstack/poteto-mode/scripts/bootstrap.ts +62 -0
- package/skills/pstack/poteto-mode/scripts/bun.lock +67 -0
- package/skills/pstack/poteto-mode/scripts/check-plan.mjs +205 -0
- package/skills/pstack/poteto-mode/scripts/check-plan.test.ts +110 -0
- package/skills/pstack/poteto-mode/scripts/package.json +16 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/cli.ts +223 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/github.ts +726 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/policy.ts +842 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/render.ts +169 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/types.ts +414 -0
- package/skills/pstack/poteto-mode/scripts/watch-pr/watch-pr +6 -0
- package/skills/pstack/poteto-mode/scripts/worktree-audit.sh +134 -0
- package/skills/pstack/principle-attack-the-premise/SKILL.md +21 -0
- package/skills/pstack/principle-boundary-discipline/SKILL.md +34 -0
- package/skills/pstack/principle-build-the-lever/SKILL.md +23 -0
- package/skills/pstack/principle-encode-lessons-in-structure/SKILL.md +11 -0
- package/skills/pstack/principle-exhaust-the-design-space/SKILL.md +9 -0
- package/skills/pstack/principle-experience-first/SKILL.md +19 -0
- package/skills/pstack/principle-explain-the-number/SKILL.md +18 -0
- package/skills/pstack/principle-fix-root-causes/SKILL.md +21 -0
- package/skills/pstack/principle-foundational-thinking/SKILL.md +21 -0
- package/skills/pstack/principle-guard-the-context-window/SKILL.md +12 -0
- package/skills/pstack/principle-laziness-protocol/SKILL.md +10 -0
- package/skills/pstack/principle-make-operations-idempotent/SKILL.md +22 -0
- package/skills/pstack/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
- package/skills/pstack/principle-minimize-reader-load/SKILL.md +18 -0
- package/skills/pstack/principle-model-the-domain/SKILL.md +24 -0
- package/skills/pstack/principle-never-block-on-the-human/SKILL.md +15 -0
- package/skills/pstack/principle-outcome-oriented-execution/SKILL.md +21 -0
- package/skills/pstack/principle-prove-it-works/SKILL.md +22 -0
- package/skills/pstack/principle-redesign-from-first-principles/SKILL.md +16 -0
- package/skills/pstack/principle-separate-before-serializing-shared-state/SKILL.md +16 -0
- package/skills/pstack/principle-sequence-verifiable-units/SKILL.md +17 -0
- package/skills/pstack/principle-subtract-before-you-add/SKILL.md +18 -0
- package/skills/pstack/principle-test-behavior-not-implementation/SKILL.md +20 -0
- package/skills/pstack/principle-type-system-discipline/SKILL.md +13 -0
- package/skills/pstack/recall/SKILL.md +35 -0
- package/skills/pstack/reflect/SKILL.md +69 -0
- package/skills/pstack/reflect/references/divergent-reviewer.md +38 -0
- package/skills/pstack/reflect/references/judgment-reviewer.md +37 -0
- package/skills/pstack/reflect/references/synthesizer.md +56 -0
- package/skills/pstack/reflect/references/tooling-reviewer.md +48 -0
- package/skills/pstack/setup-pstack/SKILL.md +78 -0
- package/skills/pstack/sharpen/SKILL.md +16 -0
- package/skills/pstack/show-me-your-work/SKILL.md +82 -0
- package/skills/pstack/show-me-your-work/references/decision-log-template.tsv +1 -0
- package/skills/pstack/show-me-your-work/scripts/log.sh +42 -0
- package/skills/pstack/statechart/SKILL.md +82 -0
- package/skills/pstack/statechart/references/render.md +93 -0
- package/skills/pstack/statechart/scripts/backends/cfg.ts +33 -0
- package/skills/pstack/statechart/scripts/backends/mermaid.ts +201 -0
- package/skills/pstack/statechart/scripts/backends/plain-text.ts +72 -0
- package/skills/pstack/statechart/scripts/backends/report.ts +177 -0
- package/skills/pstack/statechart/scripts/frontends/config.ts +276 -0
- package/skills/pstack/statechart/scripts/frontends/dot.ts +74 -0
- package/skills/pstack/statechart/scripts/frontends/marks.ts +93 -0
- package/skills/pstack/statechart/scripts/frontends/messages.ts +52 -0
- package/skills/pstack/statechart/scripts/frontends/spec.ts +114 -0
- package/skills/pstack/statechart/scripts/frontends/trace.ts +24 -0
- package/skills/pstack/statechart/scripts/frontends/value.ts +166 -0
- package/skills/pstack/statechart/scripts/frontends/verdict.ts +40 -0
- package/skills/pstack/statechart/scripts/frontends/view.ts +119 -0
- package/skills/pstack/statechart/scripts/ir.ts +547 -0
- package/skills/pstack/statechart/scripts/package.json +11 -0
- package/skills/pstack/statechart/scripts/passes/annotate.ts +128 -0
- package/skills/pstack/statechart/scripts/passes/label.ts +269 -0
- package/skills/pstack/statechart/scripts/passes/lift.ts +85 -0
- package/skills/pstack/statechart/scripts/passes/loop-check.ts +68 -0
- package/skills/pstack/statechart/scripts/passes/paths.ts +60 -0
- package/skills/pstack/statechart/scripts/passes/reach.ts +135 -0
- package/skills/pstack/statechart/scripts/passes/region-check.ts +97 -0
- package/skills/pstack/statechart/scripts/passes/regions.ts +295 -0
- package/skills/pstack/statechart/scripts/pipeline.ts +76 -0
- package/skills/pstack/statechart/scripts/run.ts +481 -0
- package/skills/pstack/statechart/scripts/statechart +29 -0
- package/skills/pstack/statechart/scripts/statechart.ts +164 -0
- package/skills/pstack/statechart/scripts/test/ConfigOracle.java +63 -0
- package/skills/pstack/statechart/scripts/test/chart.test.ts +1210 -0
- package/skills/pstack/statechart/scripts/test/charts/Braces.mmd +7 -0
- package/skills/pstack/statechart/scripts/test/charts/Escapes.mmd +11 -0
- package/skills/pstack/statechart/scripts/test/charts/Phases.mmd +29 -0
- package/skills/pstack/statechart/scripts/test/cli.test.ts +1314 -0
- package/skills/pstack/statechart/scripts/test/config-fuzz.test.ts +263 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/report.md +7 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/report.md +27 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/report.md +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
- package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/Login.tla +62 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/chart.mmd +27 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/graph.dot +40 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/report.md +7 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
- package/skills/pstack/statechart/scripts/test/corpus/Login/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
- package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
- package/skills/pstack/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/report.md +8 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
- package/skills/pstack/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
- package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
- package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
- package/skills/pstack/statechart/scripts/test/corpus.test.ts +403 -0
- package/skills/pstack/statechart/scripts/test/differential.test.ts +565 -0
- package/skills/pstack/statechart/scripts/test/grid/Grid.cfg +2 -0
- package/skills/pstack/statechart/scripts/test/grid/Grid.tla +9 -0
- package/skills/pstack/statechart/scripts/test/grid/sany.out +2 -0
- package/skills/pstack/statechart/scripts/test/java.ts +63 -0
- package/skills/pstack/statechart/scripts/test/labels.ts +643 -0
- package/skills/pstack/statechart/scripts/test/messages.test.ts +212 -0
- package/skills/pstack/statechart/scripts/test/pipeline.test.ts +270 -0
- package/skills/pstack/statechart/scripts/test/plain-tlc.test.ts +255 -0
- package/skills/pstack/statechart/scripts/test/render.test.ts +81 -0
- package/skills/pstack/statechart/scripts/test/tlc-out.test.ts +90 -0
- package/skills/pstack/statechart/scripts/test/tlc.ts +158 -0
- package/skills/pstack/statechart/scripts/tsconfig.json +11 -0
- package/skills/pstack/statechart/scripts/worker.ts +35 -0
- package/skills/pstack/swarm/SKILL.md +41 -0
- package/skills/pstack/tdd/SKILL.md +42 -0
- package/skills/pstack/teach/SKILL.md +21 -0
- package/skills/pstack/technical-writing/SKILL.md +106 -0
- package/skills/pstack/typescript-best-practices/SKILL.md +31 -0
- package/skills/pstack/typescript-best-practices/references/patterns.md +328 -0
- package/skills/pstack/unslop/SKILL.md +62 -0
- package/skills/pstack/why/SKILL.md +98 -0
- package/skills/pstack/why/references/epistemics.md +71 -0
- package/skills/pstack/why/references/investigator-prompt.md +84 -0
- package/skills/pstack/why/references/source-playbook.md +17 -0
- package/skills/pstack/why/references/sources/code-archaeology.md +51 -0
- package/skills/pstack/why/references/sources/databricks.md +70 -0
- package/skills/pstack/why/references/sources/datadog.md +97 -0
- package/skills/pstack/why/references/sources/incident-postmortem.md +5 -0
- package/skills/pstack/why/references/sources/linear.md +48 -0
- package/skills/pstack/why/references/sources/notion.md +55 -0
- package/skills/pstack/why/references/sources/sentry.md +66 -0
- package/skills/pstack/why/references/sources/slack.md +17 -0
- package/skills/pstack/why/references/synthesizer-prompt.md +129 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: benchmark-checklist
|
|
3
|
+
description: "Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it. Use when you run a benchmark or report a speedup or regression you measured."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Benchmark checklist
|
|
8
|
+
|
|
9
|
+
Use this when you produce a performance number: a PR's before and after, a regression claim, a hillclimb harness, or a library or config choice. Answer each question with evidence from a run, not a guess about the code.
|
|
10
|
+
|
|
11
|
+
For a quick ballpark the user asked for, one run is enough. Still check questions 4 and 7, and say that it is one run. Skip the rest unless that run looks wrong. A choice between options is never a ballpark.
|
|
12
|
+
|
|
13
|
+
## Before you run anything
|
|
14
|
+
|
|
15
|
+
- Write down the claim you expect to make, in the words you would ship ("export is 30% faster at p50 on the 60k-row dataset"). The questions test that sentence.
|
|
16
|
+
- Read the measurement script. Note what it times, counts, and ignores.
|
|
17
|
+
- Check the load average with `uptime` and the core count with `nproc`. If the machine is busy, find out what is running. If you cannot stop it, interleave the sides so both see the same noise, and say so in the report.
|
|
18
|
+
|
|
19
|
+
## The questions
|
|
20
|
+
|
|
21
|
+
1. **Why not double?** Name the limiter. Profile in a run you do not report, because profilers and tracers slow the work down. Use CPU per process (`top`, `pidstat`), a runtime profiler (`node --cpu-prof`, `py-spy`, `perf`), I/O wait, and syscall counts (`strace -c` on Linux), then map the hot spot to source. Watch the load generator too: if it saturates first, you measured the load generator. If a change did not move the number, the limiter explains why, so find it before you call the change useless.
|
|
22
|
+
2. **Was it tuned?** Run every side the way production runs it: release builds, production flags and env, batching and transaction settings, connection pools, caches as warm or cold as production sees them, and the same versions and data. If one side runs on defaults, you compared configurations, not implementations. A limiter that is a setting (a commit per row, a debug build, a missing index) means that side is untuned. Tune it and measure again before you pick a winner. If you cannot tune it, do not pick a winner from that run. When the user is choosing what to adopt, narrowing the claim to the code as it ships today does not fix this, because they adopt the option, not today's settings.
|
|
23
|
+
3. **Did it break limits?** Do the arithmetic. Compare bytes per second with disk and network bandwidth, operations per second times cost per operation with your cores, and the time saved with the time the changed piece took. Removing a piece that takes 10% of the run can make the run at most about 11% faster. A result past a limit measured something other than the work, such as a cache, a no-op, or a bug.
|
|
24
|
+
4. **Did it error?** Count failures and non-success responses, and check that outputs are correct, not just present. Rejections are often fast, and timeouts and retries are slow. If the script does not count errors, add the count.
|
|
25
|
+
5. **Does it reproduce?** Run each side at least 5 times, alternating (A, B, A, B, and so on) so warmup, lazy initialization, caches, and drift favor neither. Report the median and range. A gap smaller than the run-to-run variation is no measurable difference. When the call is close, use a rank-sum test or the harness's own statistics.
|
|
26
|
+
6. **Does it matter?** Next to any micro result, measure the end-to-end path a user waits on, with realistic data sizes and concurrency, and report the micro result as a share of the whole. A helper that takes 1% of a request can make the request at most 1% faster, however fast the helper gets.
|
|
27
|
+
7. **Did it even happen?** Confirm the work ran inside the timed region: the request reached the server, the rows were written, the bytes were read, and the code used the result. Lazy code (generators nobody iterates, promises nobody awaits, results the JIT can discard) and timeouts produce numbers for work that never happened.
|
|
28
|
+
|
|
29
|
+
## Report
|
|
30
|
+
|
|
31
|
+
- Lead with the verdict: faster, slower, no measurable difference, or inconclusive.
|
|
32
|
+
- Give the number with its unit, the run count, the range, and the limiter. For example, "p50 41 ms → 33 ms, median of 7 runs per side, range 32 to 35 ms after, bound by JSON parsing on one core."
|
|
33
|
+
- Call the verdict inconclusive when you claim a difference but cannot name the limiter, when a side ran untuned, or when you could not check questions 4 and 7. Name the gap.
|
|
34
|
+
- Keep a PR body to one primary number, per the **Opening a PR** playbook. Put the runs, range, and limiter evidence in a linked artifact or notes file.
|
|
35
|
+
|
|
36
|
+
## Other perf material
|
|
37
|
+
|
|
38
|
+
- Vet the **Perf issue** playbook's baseline before the playbook plans from it, and every number after that.
|
|
39
|
+
- Vet the **Hillclimb** playbook's harness before it is frozen. The frozen harness then prints error and work counts, so each keep-or-revert checks questions 4 and 7 for free.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: blast-radius
|
|
3
|
+
description: "Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Blast radius
|
|
8
|
+
|
|
9
|
+
Find what a change breaks somewhere else, before it ships. Use for "blast radius of X", "what could this break", or reviewing a small diff you don't trust yet.
|
|
10
|
+
|
|
11
|
+
Companion to `how` and `why`. `how` tells you what the code does. `why` tells you why it's shaped that way. Blast radius tells you what it breaks somewhere else.
|
|
12
|
+
|
|
13
|
+
Listing the callers is not the job. The agent can grep those in a second. The job is the breakage grep won't show you.
|
|
14
|
+
|
|
15
|
+
## Don't trust your own writeup
|
|
16
|
+
|
|
17
|
+
A blast-radius writeup that sounds right is worthless. It reads as convincing whether or not it's true. So don't hand back the writeup. Find the one or two facts the whole thing depends on and prove them by running code.
|
|
18
|
+
|
|
19
|
+
### How sure are you
|
|
20
|
+
|
|
21
|
+
For each fact the change's safety depends on, get it as far down this list as is cheap, and say where it stopped.
|
|
22
|
+
|
|
23
|
+
1. You said so. Worthless on its own.
|
|
24
|
+
2. You pointed at the line. A real `file:line`, or the library's own source.
|
|
25
|
+
3. You showed the bad case can't happen. You walked the failure step by step and it doesn't reach.
|
|
26
|
+
4. You ran it. A script or test that calls the real code and fails loud if you're wrong.
|
|
27
|
+
5. You reproduced it in the running app.
|
|
28
|
+
|
|
29
|
+
Step 4 is usually one small script that imports the same library the app ships and calls the exact function you're worried about.
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
1. Read the change. The diff, the symbols it adds, changes, and deletes, and what it now does differently, including the part the diff doesn't spell out. Use `why` step 2 to pull the PR and commits.
|
|
34
|
+
2. Find the one fact it's safe because of. Most changes that look risky are safe because of a single fact, like "this call only drops already-dead cache entries and does nothing else". Find that fact. If it holds, most risky cases are cleared at once. Spend your time here, not on a long list of maybes.
|
|
35
|
+
3. Look where grep stops. Read the source of the library you call, and check its pinned version and any local patch. Work out when things run: microtasks, unmount and teardown, Solid versus React. Follow what a symbol search misses: the JSON an API returns, a DB column, a wire format, another language reading the same bytes, a feature flag, code three hops downstream.
|
|
36
|
+
4. Be honest about each risk. Give it a real chance of happening and a real cost if it does. Keep the risks you confirmed. List the ones you checked and cleared separately. Same rules as `why`. Cite a real `file:line`, a search that finds nothing is still an answer, and never make up a caller or an API.
|
|
37
|
+
5. Prove the one fact. Write a script or test that runs the real code, run it, and paste what happened.
|
|
38
|
+
6. For a big or wide change, run it as an `arena`. Ask more than one model the same question and merge the answers. Different models catch different real bugs.
|
|
39
|
+
|
|
40
|
+
## What to hand back
|
|
41
|
+
|
|
42
|
+
- **What it does.** What changed, including the part that isn't obvious.
|
|
43
|
+
- **The one fact it's safe because of.** State it, say which step you got it to, and show the proof. If you couldn't prove it, write unproven.
|
|
44
|
+
- **Risks.** Each names how it breaks, the `file:line`, how likely and how bad, and how to check. Paste the proof for the ones that matter.
|
|
45
|
+
- **Cleared.** What you checked and why it's fine.
|
|
46
|
+
- **Before you merge.** The cheapest test or repro that catches the real bug, including the script you wrote.
|
|
47
|
+
|
|
48
|
+
Write it through `unslop`, cite real code, and strip anything private before it goes anywhere public.
|
|
49
|
+
|
|
50
|
+
**Reply:** the writeup above, with the one safety fact either proven or marked unproven.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bro
|
|
3
|
+
description: Restate the last message in plain human language, with no jargon.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Restate your last message. Stop using jargon and speak coherently. State it more simply and concisely, like one human talking to another.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: correct
|
|
3
|
+
description: "Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last. Prove each check fails on a real past mistake. Repeat this each time the operator corrects you. Use for /correct."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Correct
|
|
8
|
+
|
|
9
|
+
The operator keeps correcting agents in this repo for the same mistakes. Change the repo so the next agent can't make them.
|
|
10
|
+
|
|
11
|
+
Assume every contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Design the repo so a change that looks right from one file is right for the whole repo.
|
|
12
|
+
|
|
13
|
+
## Find the mistake classes
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
## Fix each class at the highest level that works
|
|
18
|
+
|
|
19
|
+
1. **Eliminate it with architecture.** Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
|
|
20
|
+
2. **Enforce it with types so the bad state can't be written.** If bad code still compiles, add a lint or CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more.
|
|
21
|
+
3. **Test the behavior.** Fix or delete any test that still passes when the behavior it checks breaks, or that fails when only the internals change.
|
|
22
|
+
4. **Write docs or agent rules last, only for judgment calls.** Nothing fails when an agent skips them.
|
|
23
|
+
|
|
24
|
+
## Fix and prove
|
|
25
|
+
|
|
26
|
+
Then fix the most frequent classes now, one commit each. Prove each new check fails on a real past mistake. Run the same command locally and in CI. Exceptions go on the offending line with a reason, an expiry date, and a human's approval.
|
|
27
|
+
|
|
28
|
+
## Keep the rule table
|
|
29
|
+
|
|
30
|
+
Last, keep a table in the agent instruction file that pairs each rule with what enforces it. When the operator corrects you, fix the mistake and add the rule. If the rule was already there and nothing enforces it, that's a repeat, so fix it at the highest level in the same change. Drop a rule once its mistake can't happen.
|
|
31
|
+
|
|
32
|
+
**Reply:** each class with its evidence, the level you picked, and why a higher level didn't work.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-formal-verification-skill
|
|
3
|
+
description: "Generate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, \"model-check this race\", \"prove this invariant\", or when concurrency, retries, state machines, parsers, or unsafe code need more than tests."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Create a formal verification skill
|
|
8
|
+
|
|
9
|
+
A test checks the cases that someone thought to write. Formal verification checks every case in a stated scope: every order of steps in a model, every input up to a bound, or every input. This skill finds the part of the repo where that matters most, verifies one property of it, and leaves a project-local skill that lets the next agent check a change against that property. Write that skill for an agent who reads it cold, mid-change, and has never seen your work. The user must be able to trust the result and act on it without learning the verification language.
|
|
10
|
+
|
|
11
|
+
## Choose the target from the code
|
|
12
|
+
|
|
13
|
+
Answer from the codebase, and ask the user only what you cannot observe. If the user named an area or a bug, start there.
|
|
14
|
+
|
|
15
|
+
A good target is a promise the code makes, where a break harms users and tests rarely reach the case that breaks it. Choose the strongest such target in the repo, not the one that is easiest to verify.
|
|
16
|
+
|
|
17
|
+
## Let the question choose the tool
|
|
18
|
+
|
|
19
|
+
Pick the tool that answers the question at the lowest cost: a model checker, a proof assistant, an SMT-backed verifier, or another tool. Whether events can happen in a bad order usually suits a model checker over a small model of the design, and TLA+ is the default for that in any language. Whether the code itself behaves for every input, as with memory safety, overflow, or a data-structure invariant, usually suits a verifier that runs on the code. If no verifier runs on this language, say so, and test the real code with generated inputs, not a hand model of the function. A property that must hold at every size, where a bound is not enough, can need a proof. Prefer a tool that the repo's developers can install and run, and tell the user why you chose it.
|
|
20
|
+
|
|
21
|
+
## What makes it good
|
|
22
|
+
|
|
23
|
+
- **True to the code.** Every part of the model or proof points to code that a reviewer can open. What the verification treats as one indivisible step is one indivisible step in the code. Names come from this repo.
|
|
24
|
+
- **Able to fail.** A check that you have never seen fail proves nothing. Show each property failing on a broken variant of the code it guards, such as a removed check or a reordered step.
|
|
25
|
+
- **Findings stay findings.** When the current code breaks the property, report it with the counterexample in the code's terms. Do not weaken the property or the model until it passes, and do not change product code unless the user asks.
|
|
26
|
+
- **Honest about scope.** Say what is verified, under which bounds and assumptions, and what is left out. A pass covers the model or the bound, not the whole system.
|
|
27
|
+
- **Readable without the tool.** State the property and the harm in one plain sentence each. Tell a counterexample as a short sequence of steps in the code's words.
|
|
28
|
+
- **Cheap to rerun.** One command, a reproducible tool version, and a run short enough that the next agent will use it on every relevant change.
|
|
29
|
+
- **Kept in step with the code.** Record which files and functions each check covers, and the commit at which you last confirmed that the verification describes them. When the covered code changes after that commit, the next agent can see that the verification needs another look.
|
|
30
|
+
|
|
31
|
+
## Generate the verify skill
|
|
32
|
+
|
|
33
|
+
Write a project-local skill with frontmatter that names the area and says when to use it. Without frontmatter, the skill never registers. From the skill alone, the next agent must be able to tell whether a change touches the verified code, run the check, tell a real bug from a modeling error, and update the verification when a change is intended. Put the coverage record and the sync commit in the skill, and tell the next agent to move the sync commit forward only after it confirms that the verification describes the code at the new commit. Use this repo's real commands, paths, and nouns, and leave no placeholders.
|
|
34
|
+
|
|
35
|
+
If the check is a TLA+ model, tell the next agent to read every result with the pstack [`/statechart`](../statechart/SKILL.md) skill. It shows each invariant violation the checker finds as its shortest path in plain words. When the check passes, `/statechart` draws a chart of how the system moves between states. Refer to `/statechart` by name. Its commands, options, and file paths change between releases and machines, so copy none of them into the generated skill or its scripts.
|
|
36
|
+
|
|
37
|
+
## Prove it before you hand off
|
|
38
|
+
|
|
39
|
+
Follow the generated skill once, as the next agent would, on a scratch change that breaks the property in the real code. It must catch the break. Then drop the scratch change and confirm that the check is back where it started: passing, or failing only on the findings you will report. A verify skill that was never run is a draft. If the skill misses the break or a step does not run, fix the skill or the verification, not the scratch change.
|
|
40
|
+
|
|
41
|
+
## Hand off
|
|
42
|
+
|
|
43
|
+
Tell the user what you verified, which tool you used and why, the bounds, what the check found in plain words, how to run it, and what it does not cover. Suggest a second target only if you found a close one. Point the user at `/maintain-formal-verification-skill` for bringing the verification back in line after changes that did not recheck it.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-verification-skill
|
|
3
|
+
description: "Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, \"make a control skill for this repo\", or when a project has no scripted way to prove UI/CLI/service behavior."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Create a verification skill
|
|
8
|
+
|
|
9
|
+
Every serious project needs a scripted way to drive the real app and prove behavior: launch it, exercise a feature the way a user would, and capture evidence. This skill generates that as a project-local skill (`.cursor/skills/verify-<app>/`) tailored to the repo. You write the generator's output for the next agent, not for a human: it will be read cold, mid-task, by an agent that has never seen the app.
|
|
10
|
+
|
|
11
|
+
## 1. Interview the repo, not the user
|
|
12
|
+
|
|
13
|
+
Answer these from the codebase and only ask the user what you cannot observe:
|
|
14
|
+
|
|
15
|
+
- **Surface:** what does a user actually touch? A web UI, a CLI/TUI, a desktop app, an API, a mobile app, a library? A repo can have several; pick the primary one and note the rest.
|
|
16
|
+
- **Run:** how does the app start locally? Prefer the repo's own documented dev command (package scripts, Makefile, README quickstart). Note ports, env vars, seed data, auth.
|
|
17
|
+
- **Drive:** how can an agent interact with it programmatically? Existing harnesses first — Playwright/Cypress specs, expect scripts, PTY helpers, curl-able endpoints, a debug port. Only then pick a generic recipe: browser/CDP for web and Electron, a tmux/PTY harness for CLI/TUI, plain HTTP for services.
|
|
18
|
+
- **Observe:** what evidence can be captured? Screenshots, terminal transcripts, response bodies, logs, exit codes, DB state.
|
|
19
|
+
- **Isolate:** can two instances run side by side (ports, data dirs, profiles)? If not, say so in the generated skill: refusing to double-drive a shared instance beats corrupting the user's session.
|
|
20
|
+
|
|
21
|
+
If the checkout doesn't build or start as-is, fix that first (or report it precisely) before generating; a skill written against a broken base teaches wrong steps. When an irrelevant missing asset blocks startup (a static dir the API never serves, a sample config), the generated skill may create it, clearly marked as verification scaffolding, and remove it in cleanup.
|
|
22
|
+
|
|
23
|
+
## 2. Generate the skill
|
|
24
|
+
|
|
25
|
+
Write `.cursor/skills/verify-<app>/SKILL.md` with YAML frontmatter (`name: verify-<app>` and a `description` that names the app, the surface, and when to reach for it — without frontmatter the skill never registers) and these sections, each grounded in what the interview actually found (no placeholders left):
|
|
26
|
+
|
|
27
|
+
- **Launch:** the exact command that starts the app for verification, and how to tell it's ready (a log line, a prompt). Launch must reach a usable state from an empty data dir, including any migrations and seed data. Ready means usable, not just that a process answers. A database health check can pass while its init scripts are still running. Include teardown. For a short-lived CLI or TUI there is no server to keep alive: launch means build the binary (or install deps) once, then start each drive in its own isolated PTY or tmux session.
|
|
28
|
+
- **Doctor:** one read-only check that answers "is this instance worth driving?" — process up, right version/build, port owned by us, auth valid. An agent runs this first whenever anything looks off.
|
|
29
|
+
- **Drive:** the harness recipe with real selectors/commands from this repo, not examples. Prefer stable handles (ARIA labels, data attributes, prompt strings, route paths) over coordinates and tab order.
|
|
30
|
+
- **Evidence:** what to capture for a proof and where it goes. State the proof standards: exercise the real user path, not internal setters or test-only endpoints; capture the action and the resulting state, not just the final screen; verify side effects (files written, rows inserted, messages sent) alongside what's visible; mocks only where a production boundary already isolates the external system. When the safe path is a dry-run or test mode, verify what it actually skips by observing (files, network, git refs) rather than trusting its name: some dry-runs still touch the network or open a browser.
|
|
31
|
+
- **Cleanup:** how to tear down instances the run created. Never kill by process name; kill what you started. Cleanup removes instances and scratch state, never the evidence: proof artifacts survive the teardown, in a location the skill names.
|
|
32
|
+
- **Helpers:** any script the skill ships is executable and its invocation is shown in the skill body. A helper the reader has to reverse-engineer is not a helper.
|
|
33
|
+
|
|
34
|
+
## 3. Seed the feature map
|
|
35
|
+
|
|
36
|
+
Create `.cursor/skills/verify-<app>/features/README.md` plus one file per user-facing feature you can identify (aim for the top 3-5 to start, from routes, commands, menus, or docs). Follow the shape in [`references/feature-map-example/`](references/feature-map-example/), with a README index and one file per feature. Each file answers, from the user's point of view: what the feature is, how to reach it, how to drive it with the harness, and what observable end state proves it works. The four H2s are `Sub-features`, `How to get to it (user POV)`, `Driving it with <harness>`, and `Gotchas`. If the seed data lacks a precondition that a journey needs, the journey reports a failure and the reason goes in that feature's `Gotchas`. Never weaken the journey to make it pass. The map is the repo's maintained verification source; a proof that drives one convenient entry point is incomplete when the map lists others.
|
|
37
|
+
|
|
38
|
+
## 4. Prove the generated skill before handing it over
|
|
39
|
+
|
|
40
|
+
Run its own instructions end to end once: launch, doctor, drive ONE mapped feature (one is enough; the map exists so later runs can cover the rest), capture evidence, clean up. After cleanup, confirm the evidence still exists at the named location — a cleanup that eats the proof fails this step. Fix what fails, and run the generated cleanup after every failed iteration too, so broken attempts don't strand processes and ports. A generated skill that was never executed is a draft, not a deliverable. If you proved it in a stand-in for the real target (a container in place of a fresh VM, a local stack in place of a remote one), list every setup step the stand-in did that the target will not. Those steps stay unverified until a run on the real target covers them.
|
|
41
|
+
|
|
42
|
+
## 5. Offer the maintenance loop
|
|
43
|
+
|
|
44
|
+
Point the user at `/maintain-verification-skill` for keeping the map honest as the app changes. Suggest a cadence only if they ask.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Notes verification map
|
|
2
|
+
|
|
3
|
+
This directory is the maintained source for verifying the user-facing behavior of Notes. Read the index before driving the app, then use the matching feature file as the recipe.
|
|
4
|
+
|
|
5
|
+
## Baseline preconditions
|
|
6
|
+
|
|
7
|
+
- Launch Notes at `http://127.0.0.1:4173` with a disposable data directory.
|
|
8
|
+
- Set `NOTES_DATA_DIR=/tmp/notes-verify-$RUN_ID` so concurrent runs do not share state.
|
|
9
|
+
- Seed notes titled `Quarterly plan` and `Grocery list`.
|
|
10
|
+
- Put `control-notes` and the `notes` CLI on `PATH`.
|
|
11
|
+
- Run `control-notes doctor` and require the expected URL, data directory, and build revision.
|
|
12
|
+
- Never drive an instance that was not started by this verification run.
|
|
13
|
+
|
|
14
|
+
## Driving conventions
|
|
15
|
+
|
|
16
|
+
- Start every recipe from the baseline state unless its preconditions say otherwise.
|
|
17
|
+
- Prefer ARIA roles and accessible names over CSS selectors or DOM position.
|
|
18
|
+
- Treat every command as literal. Keep quoted names and flags unchanged.
|
|
19
|
+
- Run browser actions through `control-notes browser`.
|
|
20
|
+
- Run terminal actions through `control-notes cli -- <command>`.
|
|
21
|
+
- Restore seeded data after a mutation. Do not remove proof artifacts during cleanup.
|
|
22
|
+
|
|
23
|
+
## Proof and skip reporting
|
|
24
|
+
|
|
25
|
+
- Capture the user action and the resulting state, not only the final screen.
|
|
26
|
+
- UI proof includes an ARIA snapshot and a screenshot with the app identity visible.
|
|
27
|
+
- CLI proof includes the command, stdout, stderr, and exit code.
|
|
28
|
+
- Mutation proof includes a read-only second view of the stored value.
|
|
29
|
+
- Record the feature ID and entry point used with every artifact.
|
|
30
|
+
- Report an unreachable path with the attempted command and the unmet precondition.
|
|
31
|
+
- Do not report a skipped entry point as verified through a different path.
|
|
32
|
+
|
|
33
|
+
## Feature entry contract
|
|
34
|
+
|
|
35
|
+
Each feature file starts with an H1 title and one paragraph describing the user-visible behavior. It then uses exactly four H2 sections in this order.
|
|
36
|
+
|
|
37
|
+
1. `Sub-features` lists short IDs with one line for each behavior.
|
|
38
|
+
2. `How to get to it (user POV)` lists every user entry point.
|
|
39
|
+
3. `Driving it with <harness>` starts with `Preconditions:` and uses labeled bullets that pair each user action with an exact command and observable result.
|
|
40
|
+
4. `Gotchas` lists traps that can waste or invalidate a verification run.
|
|
41
|
+
|
|
42
|
+
Keep implementation details out of the map. Name only user paths, stable handles, required state, commands, and observable proof.
|
|
43
|
+
|
|
44
|
+
## Features
|
|
45
|
+
|
|
46
|
+
- [Create a note](./create-note.md) covers browser and CLI creation, cancellation, persistence, and cleanup.
|
|
47
|
+
- [Search notes](./search.md) covers toolbar, keyboard, and CLI search with matching, empty, and clear states.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Create a note
|
|
2
|
+
|
|
3
|
+
Create note lets a user save a titled note from the browser or CLI, cancel an unfinished draft, and confirm the saved note from a second user-facing view.
|
|
4
|
+
|
|
5
|
+
## Sub-features
|
|
6
|
+
|
|
7
|
+
- `create-open` opens a blank editor from each browser entry point.
|
|
8
|
+
- `create-save` persists a title and body.
|
|
9
|
+
- `create-cancel` discards an unfinished browser draft.
|
|
10
|
+
- `create-cli` creates the same note shape from the terminal.
|
|
11
|
+
|
|
12
|
+
## How to get to it (user POV)
|
|
13
|
+
|
|
14
|
+
- Choose the `New note` button in the browser toolbar.
|
|
15
|
+
- Press `n` in the browser while focus is outside an editable field.
|
|
16
|
+
- Run `notes create --title <title> --body <body>` in a terminal.
|
|
17
|
+
|
|
18
|
+
## Driving it with control-notes
|
|
19
|
+
|
|
20
|
+
Preconditions:
|
|
21
|
+
|
|
22
|
+
- Notes is healthy at `http://127.0.0.1:4173`.
|
|
23
|
+
- No note is titled `Release checklist`.
|
|
24
|
+
- `control-notes doctor` reports the expected URL and disposable data directory.
|
|
25
|
+
|
|
26
|
+
- **Open editor.** Choose `New note`. Run `control-notes browser click --role button --name "New note"`. A form named `Note editor` appears with focus in the `Title` textbox.
|
|
27
|
+
- **Enter content.** Type the title and body. Run `control-notes browser fill --role textbox --name "Title" --value "Release checklist"` and `control-notes browser fill --role textbox --name "Body" --value "Tag and publish"`. The `Save note` button becomes enabled.
|
|
28
|
+
- **Save note.** Choose `Save note`. Run `control-notes browser click --role button --name "Save note"`. A status named `Note saved` appears and the heading reads `Release checklist`.
|
|
29
|
+
- **Confirm persistence.** Return to the note list and reopen the note. Run `control-notes browser click --role link --name "All notes"` and `control-notes browser click --role link --name "Release checklist"`. The editor shows both saved values.
|
|
30
|
+
- **Cancel draft.** Open a new note, enter `Discard me`, and choose `Cancel`. Run `control-notes browser click --role button --name "New note"`, `control-notes browser fill --role textbox --name "Title" --value "Discard me"`, and `control-notes browser click --role button --name "Cancel"`. The note list returns and has no `Discard me` link.
|
|
31
|
+
- **CLI entry.** Create a second note. Run `control-notes cli -- notes create --title "CLI note" --body "Created from terminal" --format json`. Exit code `0` and stdout contain the new note ID and title.
|
|
32
|
+
- **Proof.** Reopen both saved notes from `All notes`. Run `control-notes browser snapshot --aria --path artifacts/create-note/list.aria.txt` and `control-notes browser screenshot --path artifacts/create-note/list.png`. The artifacts show `Release checklist` and `CLI note`.
|
|
33
|
+
|
|
34
|
+
## Gotchas
|
|
35
|
+
|
|
36
|
+
- Pressing `n` while a textbox has focus types the character instead of opening a new editor.
|
|
37
|
+
- Titles are trimmed on save. Assert the rendered title, not the draft input value.
|
|
38
|
+
- A save status alone is insufficient proof. Reopen the note from the list.
|
|
39
|
+
- Remove `Release checklist` and `CLI note` during fixture cleanup, but retain their proof artifacts.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Search notes
|
|
2
|
+
|
|
3
|
+
Search lets a user find notes by title or body text, inspect a matching note, and distinguish no matches from an unavailable search.
|
|
4
|
+
|
|
5
|
+
## Sub-features
|
|
6
|
+
|
|
7
|
+
- `search-open` opens search from each supported browser entry point.
|
|
8
|
+
- `search-match` returns title and body matches without changing note data.
|
|
9
|
+
- `search-open-result` opens a result in the note editor.
|
|
10
|
+
- `search-empty` shows a complete empty state for a query with no matches.
|
|
11
|
+
- `search-clear` removes the query and restores the recent-notes view.
|
|
12
|
+
- `search-cli` returns the same matching notes from the terminal.
|
|
13
|
+
|
|
14
|
+
## How to get to it (user POV)
|
|
15
|
+
|
|
16
|
+
- Choose the `Search` button in the browser toolbar.
|
|
17
|
+
- Press `/` in the browser while focus is outside an editable field.
|
|
18
|
+
- Run `notes search <query>` in a terminal.
|
|
19
|
+
|
|
20
|
+
## Driving it with control-notes
|
|
21
|
+
|
|
22
|
+
Preconditions:
|
|
23
|
+
|
|
24
|
+
- Notes is healthy at `http://127.0.0.1:4173`.
|
|
25
|
+
- The disposable data directory contains `Quarterly plan` with body text `Draft budget`.
|
|
26
|
+
- `control-notes doctor` reports the expected URL and data directory.
|
|
27
|
+
|
|
28
|
+
- **Toolbar entry.** Choose the `Search` button. Run `control-notes browser click --role button --name "Search"`. A dialog named `Search notes` appears with focus in its searchbox.
|
|
29
|
+
- **Keyboard entry.** Close the dialog, focus the page, and press `/`. Run `control-notes browser press --key "/"`. The same dialog appears and the page does not insert a slash.
|
|
30
|
+
- **Title match.** Type `quarterly`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "quarterly"`. The `Search results` list contains `Quarterly plan` and does not contain `Grocery list`.
|
|
31
|
+
- **Body match.** Replace the query with `budget`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "budget"`. The result `Quarterly plan` remains visible with a body-match excerpt.
|
|
32
|
+
- **Open result.** Choose `Quarterly plan`. Run `control-notes browser click --role link --name "Quarterly plan"`. The dialog closes and the editor heading reads `Quarterly plan`.
|
|
33
|
+
- **Empty state.** Reopen search and enter `volcano`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "volcano"`. A status named `No matching notes` appears after search completes.
|
|
34
|
+
- **Clear query.** Choose `Clear search`. Run `control-notes browser click --role button --name "Clear search"`. The searchbox is empty and the `Recent notes` region replaces the result list.
|
|
35
|
+
- **CLI match.** Search from the terminal. Run `control-notes cli -- notes search "quarterly" --format json`. Exit code `0` and stdout contain one object whose title is `Quarterly plan`.
|
|
36
|
+
- **CLI miss.** Search for an absent value. Run `control-notes cli -- notes search "volcano" --format json`. Exit code `0` and stdout are `[]`.
|
|
37
|
+
- **Proof.** Capture the populated result state. Run `control-notes browser snapshot --aria --path artifacts/search/results.aria.txt` and `control-notes browser screenshot --path artifacts/search/results.png`. Both artifacts identify Notes, the query, and `Quarterly plan`.
|
|
38
|
+
|
|
39
|
+
## Gotchas
|
|
40
|
+
|
|
41
|
+
- Pressing `/` while the editor or searchbox has focus inserts text instead of opening search.
|
|
42
|
+
- Results update after a short debounce. Wait for the results list or empty status, not a fixed sleep.
|
|
43
|
+
- Archived notes are excluded unless the user enables `Include archived`.
|
|
44
|
+
- The CLI defaults to human-readable output. Use `--format json` for stable assertions.
|
|
45
|
+
- Opening a result changes browser state. Reopen search before proving another query.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: figure-it-out
|
|
3
|
+
description: "Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions. Use for /figure-it-out or 'figure it out'."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Figure it out
|
|
8
|
+
|
|
9
|
+
When the task matches no playbook, design one. The deliverable before any code is the workflow itself: a sequence of phases that scales rigor to the task, runs the scientific method, and leaves a decision trail a human can audit after stepping away.
|
|
10
|
+
|
|
11
|
+
## Start
|
|
12
|
+
|
|
13
|
+
Open a todolist whose first item is to read the Principles section of the **poteto-mode** skill. Then add the phases below as todos.
|
|
14
|
+
|
|
15
|
+
## Phase A: Frame
|
|
16
|
+
|
|
17
|
+
Ground first, then commit. Don't start the run until you can state:
|
|
18
|
+
|
|
19
|
+
- The definition of done as a falsifiable predicate (the **prove-it-works** principle skill).
|
|
20
|
+
- Scope, quantified: rough units and effort, plus the blockers grounding surfaced.
|
|
21
|
+
- 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".
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
## Phase B: Design the workflow
|
|
26
|
+
|
|
27
|
+
Decompose into atomic, independently-landable units. Sequence riskiest-unknown-first. Scaffold and verification come before features (the **foundational-thinking** principle skill).
|
|
28
|
+
|
|
29
|
+
- Build the verification harness before the work, with the baseline captured from the pre-change state, so the check reads as "old value vs new value".
|
|
30
|
+
- For one-way-door design decisions, run the **architect** skill (it runs **arena**). Skip it for mechanical work whose shape is already concrete. A second arena over a settled design is over-engineering (the **laziness-protocol** principle skill).
|
|
31
|
+
- Decide what fans out. Parallelize only across seams, and give each worker its own worktree or branch (the **separate-before-serializing-shared-state** principle skill). Don't over-fan. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **poteto-mode** skill.
|
|
32
|
+
- Write the designed phase list down. That list is what the human reviews.
|
|
33
|
+
|
|
34
|
+
Then execute the design. Add its steps to the todolist as concrete items between the Phase C and Phase D entries. Run each under the Phase C loop discipline, and weave the Phase D log through them, a row as each step lands, rather than saving the whole trail for the end.
|
|
35
|
+
|
|
36
|
+
## Phase C: Run the loop
|
|
37
|
+
|
|
38
|
+
Each unit is an experiment. State the hypothesis, make the smallest change, measure against the predicate on the real artifact, keep it if it advanced, revert it if it didn't. Apply the **sequence-verifiable-units** principle skill, verifying each unit before starting the next instead of batching checks at the end.
|
|
39
|
+
|
|
40
|
+
- Verify by inspecting the artifact, never a self-report. When something passes too easily, suspect the observation method before the system.
|
|
41
|
+
- Pair delegated work with a judge. If a worker games the gate, reset and harden the contract. If the gate itself is wrong, fix the gate in its own change rather than routing around it.
|
|
42
|
+
- A verdict is VERIFIED, NOT VERIFIED, or INCONCLUSIVE. Inconclusive is not a pass. Don't hide a negative.
|
|
43
|
+
|
|
44
|
+
## Phase D: Keep the audit trail
|
|
45
|
+
|
|
46
|
+
Log the run via the **show-me-your-work** skill. figure-it-out's work is usually ambitious enough to commit the trail so the reviewer can read it in the PR. The trail plus the diff is what lets the human come back and trust the work.
|
|
47
|
+
|
|
48
|
+
## Phase E: Verify and hand back
|
|
49
|
+
|
|
50
|
+
Check the whole against the Phase A predicate on the real product, not just the harness. Encode any recurring correction as a gate, a lint rule, a check, or a script (the **encode-lessons-in-structure** principle skill).
|
|
51
|
+
|
|
52
|
+
**Reply:** the playbook you designed, the rigor level and why, the decision-trail path, what's verified against the predicate, and what's still open.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: how
|
|
3
|
+
description: "Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# How
|
|
8
|
+
|
|
9
|
+
Explore the codebase to answer "how does X work?" questions. Produce architectural explanations at the level of a senior engineer onboarding onto a subsystem, enough to build a working mental model, not so much that it reads like annotated source code.
|
|
10
|
+
|
|
11
|
+
Every spawn is a Task subagent with `subagent_type: generalPurpose` and `readonly: true`. Explorers use the `how explorer` line in the `pstack-models.mdc` rule (default `grok-4.7-xhigh-fast`), and every explainer uses the `how explainer` line (default `claude-opus-5-5-xhigh`). Set `model` to that line's value, or to the default if the rule or the line is missing. Leave `model` unset when the value is `auto` or `inherit-parent`. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **poteto-mode** skill.
|
|
12
|
+
|
|
13
|
+
## 1. Assess complexity
|
|
14
|
+
|
|
15
|
+
If the scope is ambiguous, state your interpretation and explore. The user can redirect.
|
|
16
|
+
|
|
17
|
+
- **Simple** (a single module, a small utility, a narrow question such as "how does function X work"): no explorers. Spawn one explainer that explores and explains in one pass, built from `references/explainer-prompt.md` without the explorer-findings section. Go to step 4.
|
|
18
|
+
- **Complex** (a subsystem spanning multiple files or services, a cross-cutting feature, a full architectural overview): go to step 2.
|
|
19
|
+
|
|
20
|
+
When in doubt, take the simple path.
|
|
21
|
+
|
|
22
|
+
## 2. Explore (complex only)
|
|
23
|
+
|
|
24
|
+
Decompose the question into 2 to 4 angles, each a distinct slice of the subsystem. Spawn all explorers in a single message, each with `references/explorer-prompt.md` and its angle filled in.
|
|
25
|
+
|
|
26
|
+
## 3. Synthesize (complex only)
|
|
27
|
+
|
|
28
|
+
Once all explorers have returned, spawn one explainer with `references/explainer-prompt.md` and every explorer's findings filled in.
|
|
29
|
+
|
|
30
|
+
## 4. Present
|
|
31
|
+
|
|
32
|
+
Present the explainer's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.
|
|
33
|
+
|
|
34
|
+
## Output format
|
|
35
|
+
|
|
36
|
+
The explanation uses the sections defined in `references/explainer-prompt.md`, dropping any that do not apply: Overview, Key Concepts, How It Works, Where Things Live, Gotchas.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Explainer Prompt Template
|
|
2
|
+
|
|
3
|
+
Build the explainer subagent's prompt from this template. Fill in the placeholders.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are writing an architectural explanation for a senior engineer. Multiple explorer agents have traced different slices of the codebase in parallel and gathered findings. Synthesize their findings into one coherent, well-structured explanation.
|
|
8
|
+
|
|
9
|
+
## Original Question
|
|
10
|
+
|
|
11
|
+
> {QUESTION}
|
|
12
|
+
|
|
13
|
+
## Explorer Findings
|
|
14
|
+
|
|
15
|
+
{EXPLORER_FINDINGS_ALL}
|
|
16
|
+
|
|
17
|
+
## Instructions
|
|
18
|
+
|
|
19
|
+
The explorers each investigated a different angle of the same subsystem. Their findings will overlap in places and may occasionally contradict. Reconcile them. Merge overlapping descriptions, resolve contradictions by checking the code yourself, and combine the separate slices into a unified picture.
|
|
20
|
+
|
|
21
|
+
Write an explanation a senior engineer unfamiliar with this area could read and walk away with a solid mental model, understanding the architecture well enough to start working in it confidently.
|
|
22
|
+
|
|
23
|
+
You have read-only access to the codebase to check anything, clarify a detail, or fill a gap. Use Read, Grep, and Glob as needed. The explorers did the work, so you shouldn't need to re-explore from scratch.
|
|
24
|
+
|
|
25
|
+
## Output Format
|
|
26
|
+
|
|
27
|
+
Use this structure, adapted to what makes sense for the question. Not every section is needed for every question.
|
|
28
|
+
|
|
29
|
+
### Overview
|
|
30
|
+
1-2 paragraphs. What is this thing, what does it do, why does it exist. Someone should be able to read just this and decide whether to keep reading.
|
|
31
|
+
|
|
32
|
+
### Key Concepts
|
|
33
|
+
The important types, services, or abstractions needed to follow the rest. Brief definitions, not exhaustive.
|
|
34
|
+
|
|
35
|
+
### How It Works
|
|
36
|
+
The core of the explanation, and the longest section. Walk through the flow: what triggers it, what happens step by step, where data goes, what the decision points are.
|
|
37
|
+
|
|
38
|
+
Use prose, not pseudocode. Reference specific files and functions so the reader knows where to look, but don't dump large code blocks unless a snippet is essential to a point.
|
|
39
|
+
|
|
40
|
+
When the flow involves multiple components talking to each other, or data transforming through stages, include a diagram. Use mermaid (```mermaid) for structured flows (sequence diagrams, flowcharts, component graphs) or ASCII art for simpler relationships where mermaid would be overkill. Use your judgment. A diagram should clarify, not decorate. If prose covers the flow, skip the diagram.
|
|
41
|
+
|
|
42
|
+
### Where Things Live
|
|
43
|
+
A brief file/directory map. Just the ones someone would need to start working here.
|
|
44
|
+
|
|
45
|
+
### Gotchas
|
|
46
|
+
Non-obvious things, surprising behavior, historical context, pitfalls. Skip this section if there's nothing worth calling out.
|
|
47
|
+
|
|
48
|
+
## Communication Style
|
|
49
|
+
|
|
50
|
+
- Use concrete language, not abstractions-about-abstractions
|
|
51
|
+
- Say "the `UserService` calls `AuthClient.refresh()`" not "the service delegates to the client"
|
|
52
|
+
- When something is complex, explain why it's complex. Don't just describe the complexity
|
|
53
|
+
- When something is simple, don't pad it out
|
|
54
|
+
- If there's a helpful analogy, use it. If there isn't, don't force one
|
|
55
|
+
- If the explorers flagged open questions or gaps, acknowledge them rather than hiding them
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Explorer Prompt Template
|
|
2
|
+
|
|
3
|
+
Build each explorer subagent's prompt from this template. Fill in the placeholders.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Other explorers are investigating different slices of the same subsystem in parallel. Don't try to cover everything. Focus on your assigned angle and go deep.
|
|
8
|
+
|
|
9
|
+
## Question
|
|
10
|
+
|
|
11
|
+
> {QUESTION}
|
|
12
|
+
|
|
13
|
+
## Your Exploration Angle
|
|
14
|
+
|
|
15
|
+
{EXPLORATION_ANGLE}
|
|
16
|
+
|
|
17
|
+
## Output
|
|
18
|
+
|
|
19
|
+
### Components Found
|
|
20
|
+
The key types, services, classes, and abstractions. For each: name, file path, and a one-sentence description of what it does.
|
|
21
|
+
|
|
22
|
+
### Flow
|
|
23
|
+
The execution flow step by step. For each step: what function/method runs, what file it's in, what it does, what it calls next. Include the data that flows between steps.
|
|
24
|
+
|
|
25
|
+
### Files Read
|
|
26
|
+
Every file you read during exploration, so the explainer can reference them.
|
|
27
|
+
|
|
28
|
+
### Boundaries
|
|
29
|
+
Where this subsystem connects to other parts of the codebase. The inputs and outputs.
|
|
30
|
+
|
|
31
|
+
### Non-Obvious Things
|
|
32
|
+
Anything surprising, historically motivated, or easy to get wrong. Things that look like they should work one way but work another.
|
|
33
|
+
|
|
34
|
+
### Open Questions
|
|
35
|
+
Anything you couldn't fully trace or understand. Be honest about gaps.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: in-your-own-words
|
|
3
|
+
description: "Restate in your own words what you think the user's goals are and what problem they're trying to solve. Use for /in-your-own-words."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Restate in your own words what you think the user's goals are and what problem they're trying to solve.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: interrogate
|
|
3
|
+
description: "Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Adversaries try to break a change or design, and only findings proven by a run survive."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Interrogate
|
|
8
|
+
|
|
9
|
+
Adversaries try to break a change or a design. A finding survives only when a run proves it. Report the findings. Do not apply fixes.
|
|
10
|
+
|
|
11
|
+
## Frame
|
|
12
|
+
|
|
13
|
+
The scope is what the user names. Otherwise it is the branch diff from its merge base with the base branch, through the working tree. State the intent with the **in-your-own-words** skill, from the user's message, the commits, and the PR description. Ask the user when the intent is unclear.
|
|
14
|
+
|
|
15
|
+
## Fan out
|
|
16
|
+
|
|
17
|
+
Run Phase A steps 3 and 4 and Phase B of the **arena** skill, with four changes. Read the `interrogate reviewers` line in place of `arena runners`. Copy the scope's uncommitted changes into each worktree. Spawn each adversary as `generalPurpose`. In place of the arena task and rationale, give each adversary the scope, the intent, and this brief:
|
|
18
|
+
|
|
19
|
+
> Break this change. Prove each finding with a run against the real code, such as a failing test, a repro script, or command output that shows the wrong behavior. For a design or plan, run a prototype or probe the current tree. Keep repros in your own worktree. Report each finding with a title, the exact command, the output it printed, and the output the intent requires. Leave out anything you did not run. That covers style, naming, structure, and risks that need a future change to matter. No findings is a valid result.
|
|
20
|
+
|
|
21
|
+
## Verify
|
|
22
|
+
|
|
23
|
+
Verify each finding per arena Phase F by rerunning its command. Keep a finding when the output shows the failure and the failure breaks the intent. Drop the rest. Merge findings that share a root cause.
|
|
24
|
+
|
|
25
|
+
Skip arena Phases C, D, and E. Adversaries find different failures, so the verdict keeps every verified finding, not one adversary's list.
|
|
26
|
+
|
|
27
|
+
## Output
|
|
28
|
+
|
|
29
|
+
- **Intent**: the restatement.
|
|
30
|
+
- **Findings**: for each verified finding, the command, its output, how it breaks the intent, and the adversaries that found it. Say "no verified findings" when none survive.
|
|
31
|
+
- **Dropped**: for each adversary, the count of dropped findings and why.
|