deepmodebot 0.0.0-stage → 0.9.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/.claude-plugin/marketplace.json +26 -0
- package/.omp-plugin/marketplace.json +26 -0
- package/LICENSE +24 -0
- package/README.md +377 -2
- package/bin/deepmodebot.mjs +229 -0
- package/lib/autoupdate.mjs +47 -0
- package/lib/clients.mjs +139 -0
- package/lib/run.mjs +32 -0
- package/lib/state.mjs +52 -0
- package/lib/tree.mjs +48 -0
- package/package.json +44 -4
- package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
- package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
- package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
- package/plugins/deepmodebot/agents/scout/agent.md +34 -0
- package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
- package/plugins/deepmodebot/assets/logo.svg +8 -0
- package/plugins/deepmodebot/commands/contribute.md +8 -0
- package/plugins/deepmodebot/commands/deep.md +11 -0
- package/plugins/deepmodebot/commands/land-pr.md +12 -0
- package/plugins/deepmodebot/commands/pr-thread.md +14 -0
- package/plugins/deepmodebot/commands/project-brief.md +8 -0
- package/plugins/deepmodebot/commands/review-pr.md +10 -0
- package/plugins/deepmodebot/commands/tournament.md +12 -0
- package/plugins/deepmodebot/hooks/hooks.json +26 -0
- package/plugins/deepmodebot/hooks.json +24 -0
- package/plugins/deepmodebot/mcp_config.json +11 -0
- package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
- package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
- package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
- package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
- package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
- package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
- package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
- package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
- package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
- package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
- package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
- package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
- package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
- package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
- package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
- package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
- package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
- package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
- package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
- package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
- package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
- package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
- package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
- package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
- package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
- package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
- package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
- package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
- package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
- package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
- package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
- package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
- package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
- package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Phased build
|
|
2
|
+
|
|
3
|
+
Use when: work spans phases or PRs. Plan mode writes the plan for a change that spans phases or stacked PRs, after the design is settled. Sprint mode ships a multi-sprint spec one incremental sprint at a time for early customer or SME feedback instead of a Big Bang release. Build mode builds a single-sprint spec's tickets (Spec and Tickets playbooks) onto one integration branch and lands it as one reviewed PR ("implement the spec", "build spec #N", "build all the tickets on one branch").
|
|
4
|
+
When each ticket should land on trunk as its own PR, use Work a queue with the board source (`references/playbooks/work-a-queue.md`) instead.
|
|
5
|
+
|
|
6
|
+
## Pick the mode
|
|
7
|
+
|
|
8
|
+
| What the user has | Mode |
|
|
9
|
+
|---|---|
|
|
10
|
+
| A settled design for a change that spans phases or PRs, and nothing built yet | Plan mode. The plan is the deliverable. |
|
|
11
|
+
| A spec with `Sprint:` tickets or uncertain domain feedback, shipped one sprint at a time | Sprint mode (Build mode per sprint, with feedback gate) |
|
|
12
|
+
| A small or settled spec with tickets, to land as one reviewed change | Build mode |
|
|
13
|
+
| A spec with tickets, each to land as its own PR | Work a queue, board source |
|
|
14
|
+
|
|
15
|
+
## Plan mode
|
|
16
|
+
|
|
17
|
+
You own the plan, not the code. The plan is a checklist an owner runs box by box and the operator audits from evidence. The plan is the deliverable; do not implement.
|
|
18
|
+
|
|
19
|
+
### Steps
|
|
20
|
+
|
|
21
|
+
1. One or two files with an obvious approach → skip the plan; say so and stop.
|
|
22
|
+
Done when you have stopped with the reason stated, or found that the change needs more than one PR.
|
|
23
|
+
2. Settle open questions by prototype first (`references/playbooks/prototype.md`); keep branch, SHA, screenshots for Appendix A. Decide product and preference calls no run can settle yourself, and record each choice with its rejected options in Appendix B (SKILL.md Autonomy).
|
|
24
|
+
Done when every open question has a prototype result for Appendix A or a recorded choice for Appendix B.
|
|
25
|
+
3. Explore via `scout` tasks (`references/principles/guard-the-context-window.md`); each returns file pointers, conventions, test commands, entry points; no inlined dumps.
|
|
26
|
+
Done when every area the plan touches has a scout report with file pointers, conventions, test commands, and entry points.
|
|
27
|
+
4. Write the plan file (default `docs/<program>-plan.md` unless the user names a path) using the structure below; every heading and sub-block, in order. One section per PR; one PR = one change with its own evidence (`references/principles/sequence-verifiable-units.md`).
|
|
28
|
+
Name the execution playbook in How to read this. That is Work a queue (`references/playbooks/work-a-queue.md`) with the PR source in `merge` mode if the run may merge, or in `stack-only` mode if the user lands PRs. For a standing program it is Run a goal at program scale (`references/playbooks/run-a-goal.md`).
|
|
29
|
+
Done when the plan file exists with every heading of the structure, in order, and one section per PR.
|
|
30
|
+
5. Write with the **technical-writing** technique (`references/techniques/technical-writing.md`), then **unslop** (`references/techniques/unslop.md`). Body is how-to only; appendices hold explanation and reference. Each heading states a task or finding.
|
|
31
|
+
Done when both passes have run on the file and every heading states a task or finding.
|
|
32
|
+
6. Run the Plan checklist below against the file; fix every failure.
|
|
33
|
+
Done when the checklist reports 0 failures.
|
|
34
|
+
7. Hand back the plan path and the checklist results, then stop.
|
|
35
|
+
Done when the reply holds the plan path and the checklist results, and no code has changed.
|
|
36
|
+
|
|
37
|
+
### Plan structure
|
|
38
|
+
|
|
39
|
+
- `# <Program> plan`, then an intro under 10 non-blank lines: what changes, for whom, the rule enforced, PR ids in order.
|
|
40
|
+
- `## How to read this`, containing: "One box is one unit of work", "Every box names the evidence that checks it", "Check a box only when its evidence exists" (a file, log line, screenshot, test run, SHA), the execution playbook path, who merges, and the verification rule verbatim: **"Tests alone are not sufficient verification. A PR is verified only when its unit, live, and perf boxes are all checked."**
|
|
41
|
+
- `## Program checklist` with these `###` in order:
|
|
42
|
+
- `Arm the program`: state protocol + plan, then start once the Plan checklist passes (no user go needed, SKILL.md Autonomy).
|
|
43
|
+
- List `read skill://deepmodebot/references/playbooks/<name>.md` reads of the execution playbook and opening-a-pr, plus `read skill://<verify-skill>` for the repo's verification skill and each leaf skill (skills don't live in the repo; never `git show origin/main:`), re-read every tick.
|
|
44
|
+
- Arm a recurring hourly audit tick (scheduled job or harness loop; never left to memory) with a verbatim tick prompt. The prompt says to re-read the playbook via `skill://deepmodebot/`, audit and fix drift, probe lanes by side effects only, and replace stuck lanes.
|
|
45
|
+
- The prompt also says to post a status message only for tracked changes not yet reported (PR opened, code-ready head, round launched/closed, verdict, merge, stuck agent + action, blocker added/cleared, operator-only decision), else no reply text, and to log a decision-trail row each tick.
|
|
46
|
+
- On hold/stand-down, order every owner to zero writes at once.
|
|
47
|
+
- `Spawn owners`: one owner (`task`) per PR with full lifecycle; dependency graph as nested boxes; file boundaries per PR (exclusive globs); review-gated PR ids.
|
|
48
|
+
- `PR mechanics, for every PR`: `gh` for all PR ops; open ready via **Opening a PR**; lint + typecheck once before the PR-facing push, hooks on; slop review before commit and **no-comments** before review.
|
|
49
|
+
- Triage every automated/security review comment, plus the **pr-review** technique (`references/techniques/pr-review.md`): local mode before the first push, PR mode re-review (steps 6-7) after every push, and **security-audit** (`references/techniques/security-audit.md`, blocking = P0) on the merge head when opted in or touching auth, permissions, parsing, or secrets.
|
|
50
|
+
- Rebase onto trunk before code-ready, keep that base in fix rounds, rebase again only at merge prep, on a `git merge-tree` conflict, trunk-caused CI failure, or a known concurrent change to the same files.
|
|
51
|
+
- `Verdict and merge, for every PR`: one full swarm (the **swarm** technique, `references/techniques/swarm.md`) at the code-ready head, paced in rate-limit-safe batches (3-5 lanes per wave by default) and passing file paths rather than large inline dumps: a gates lane, live lanes scaled to the PR's surfaces (up to 10 for full UI apps; fewer for non-UI or smaller PRs), the perf lane, 2+ audit lanes with distinct focus that distrust the PR body.
|
|
52
|
+
- Another full swarm only for new behavior, redesign, or large new diff; rebase/conflict/minor fix → one targeted reproduction lane; wording-only → no extra reproduction lane. Outside an external orchestrator this never reduces the mandatory exact-head 3-verifier, 2-of-3 panel.
|
|
53
|
+
- Agent budget per PR: at most 4 concurrent review or verify agents and 12 in total across all rounds, counting swarm lanes, pr-review lenses, visual reviewers, and panel seats. At the cap, stop and report the PR to the operator instead of spawning more.
|
|
54
|
+
- Under an external orchestrator with its own review gates (Antigravity `/teamwork`, `/boost`, or `/swarm`; Claude agent teams), do not stack gates. Replace the swarm, pr-review lenses, and panel with 1 light verifier at the exact head, and let the orchestrator's gates stand as the panel.
|
|
55
|
+
- A retried or replacement agent (rate-limit respawn, `_r2`, `_r3`) starts from the prior agent's saved receipts and findings plus `git diff <last-reviewed SHA>..<head>`, never a fresh read of the whole PR diff.
|
|
56
|
+
- Root audits receipts before the verdict. Clean = no blocking finding. A trunk failure in the regression lane is recorded against trunk and does not block.
|
|
57
|
+
- The verdict is a **panel** at that head (`references/techniques/panel.md`); a new head gets a fresh panel. Merge/handoff rule from the execution playbook.
|
|
58
|
+
- `Boot recipe, for every live lane`: `git fetch origin <head-branch> && git checkout <head SHA>` in the lane's own worktree; start backend + surface, wait for ready.
|
|
59
|
+
- Input only through the project `verify-<app>` skill (in `.omp/skills/`, `.claude/skills/`, or `.agents/skills/`; else omp `eval` `browser`, Playwright/CDP, or bash), naming read-only diagnostics; save screenshots to `<root>/.scratch/tmp/swarm-<pr-id>/worker-<n>/<slug>.png` and return paths.
|
|
60
|
+
- One `## <Task as verb phrase> (<PR id>)` per PR, with bold sub-blocks in exactly this order: `**Depends on.**` (PR id or None) · `**Files.**` (Edit/Create/Delete `<path>` boxes) · `**Build.**` (one change, symbol + file) · `**You see.**` (exact log line or screen state) · `**Verify, unit.**` (test file + case, `Run <command>`) · `**Verify, live.**` · `**Verify, perf.**` · `**Review gate.**` · `**Merge.**`.
|
|
61
|
+
- The three Verify blocks open with the verification rule verbatim.
|
|
62
|
+
- Verify, live continues "Live lanes (up to ten, scaled to affected surfaces) on `<model>` at the PR head, per the boot recipe, run in waves of 3-5 concurrent lanes per provider rate limits." Boxes `Lane 1.`…`Lane N.`, each with a scenario, ``Save `<slug>.png`.``, and `Pass when <predicate>.`
|
|
63
|
+
- Lane 1 is the "Regression lane against trunk": same load-bearing scenario at trunk and head; if trunk lacks the feature, record that and gate the diff-added behavior plus the end state the user waits for; never invent a trunk result.
|
|
64
|
+
- Verify, perf boxes in order: `Metric.` (measured at trunk and head) · `Probe.` (command, run interleaved at trunk and head, both producing the metric) · `Baseline.` (trunk value first) · `Rule.` (head vs trunk, with the failing number; unlike scenarios → absolute budgets for diff-added work and user-visible end state, no ratio).
|
|
65
|
+
- Review gate: interaction-changing PR → boxes to copy lane screenshots to `<media>/<pr-id>-review-<slug>.png`, record a 30-60 s video `<media>/<pr-id>-review.mp4`, attach both to the PR and give them to the panel's verifiers as receipts. Otherwise exactly `**Review gate.** None. <PR id> is not review-gated.` with no boxes.
|
|
66
|
+
- Merge boxes: a panel pass at the exact head SHA being merged; review-comment triage done; a pr-review round on the merge head with no P0/P1 open and every P2 fixed or dismissed with a reason; **security-audit** (`references/techniques/security-audit.md`) passed when opted in or touching auth, permissions, parsing, or secrets; `gh pr merge --match-head-commit <that SHA>`; who merges.
|
|
67
|
+
- `## Close the program`: every box checked with evidence; reply with the report the execution playbook names, with each PR's review line from the pr-review technique.
|
|
68
|
+
- Then only appendices: `## Appendix A. Prototype evidence` (questions answered with branch/SHA/artifacts; what stays unproven), `B. Alternatives rejected`, `C. Risks` (per PR, what the owner watches; any surface with no verification skill), `D. Links and reading list` (docs to read, which PRs get **how** and contested-design review, the **show-me-your-work** trail).
|
|
69
|
+
|
|
70
|
+
### Gates
|
|
71
|
+
|
|
72
|
+
The Plan checklist. Every item must pass, outside code fences:
|
|
73
|
+
- No long dashes (U+2013, U+2014), no curly quotes, no mid-sentence `: ` in prose (code spans and links excepted).
|
|
74
|
+
- H1 present; intro under 10 non-blank lines; How to read this contains the four markers above, a `playbooks/` path, and the rule.
|
|
75
|
+
- Program checklist has the five `###` in order and contains `skill://deepmodebot/`, the recurring tick, and "status message".
|
|
76
|
+
- Program checklist `PR mechanics, for every PR` contains `pr-review` and the technique path `references/techniques/pr-review.md`.
|
|
77
|
+
- Program checklist `Verdict and merge, for every PR` states the per-PR agent budget, the no-stacking rule under an external orchestrator, and the retry-from-receipts rule.
|
|
78
|
+
- At least one PR section between Program checklist and Close the program; Close the program exists.
|
|
79
|
+
- Each PR section: all nine sub-blocks in exact order; Depends on non-empty; Files, Build, You see, Verify unit, Merge each have ≥1 box; three Verify blocks open with the rule.
|
|
80
|
+
- Live names the lane model and lists Lanes 1..N (up to 10, scaled to affected surfaces), every box a lane with a ``Save `…` `` screenshot and "Pass when".
|
|
81
|
+
- Perf boxes exactly Metric, Probe, Baseline, Rule.
|
|
82
|
+
- Review gate either "None." with no boxes, or boxes mentioning screenshot, video, and attaching both to the PR and the panel.
|
|
83
|
+
- Every `##` after Close the program is an Appendix; Appendix A Prototype evidence exists.
|
|
84
|
+
- Execution starts once the Plan checklist passes, under the playbook the plan names.
|
|
85
|
+
- A surface with no verification skill is a risk in Appendix C; its live block still names how each lane drives it.
|
|
86
|
+
|
|
87
|
+
### Evidence
|
|
88
|
+
|
|
89
|
+
- Plan path; PR ids with dependencies and the review-gated set.
|
|
90
|
+
- What prototypes proved and what stays unproven.
|
|
91
|
+
- Plan checklist results: per PR section, box counts per sub-block; total PR sections; the pr-review PR-mechanics item; every failure fixed (0 remaining).
|
|
92
|
+
|
|
93
|
+
## Build mode (and Sprint mode)
|
|
94
|
+
|
|
95
|
+
In **Build mode**, every ticket merges into one **integration branch**, and one PR carries that branch to trunk (`1/N` to `N/N`). In **Sprint mode** (default for multi-sprint specs or complex domains), run steps 1-8 **one sprint at a time** on `spec/<slug>-sprint-<n>` backed by the Scope Manifest (`docs/specs/<slug>-manifest.json`, `active_sprint: <n>` / `python -B "<this skill>/assets/loop/loop.py" manifest --sprint <n>`, `py -3 -B` on Windows).
|
|
96
|
+
Sprint `n` verifies every slice with `sprint <= n`, lands with live proof and **sme-review** (`references/techniques/sme-review.md`), and pauses ONLY at the explicit sprint/SME feedback checkpoint (`sme_gate: "required"` or `checkpoint_every` exit 6). Sprint `n+1..N` stay `queued`/`deferred` (`scope_complete: false`) and are reported as remaining scope (incomplete, never done).
|
|
97
|
+
|
|
98
|
+
You coordinate; ticket owners write the code. The tickets are a graph, not a list. The **frontier** is every open ticket in the active sprint whose blockers are all merged into the integration branch.
|
|
99
|
+
|
|
100
|
+
### Steps
|
|
101
|
+
|
|
102
|
+
1. **Load the graph.** Read the spec (issue and `docs/specs/<slug>.md`), its Scope Manifest (`docs/specs/<slug>-manifest.json` when present), and every ticket with its Blocked by lines, per **tracker** (`references/techniques/tracker.md`). Record the graph, manifest path, `active_sprint` (`1` in Sprint mode, or `all` in Build mode), `sme_gate` state, integration branch, `latest-summary.json` resume pointer, and each ticket's owner and state in one notes file a cold start can find (`references/playbooks/run-a-goal.md`).
|
|
103
|
+
Done when the notes file lists the integration branch, manifest/`active_sprint` state, and every ticket with its sprint, blockers, owner, and state.
|
|
104
|
+
2. **Explore once** (optional). Tickets that share unknown code → one `scout` pass that returns file pointers, conventions, and test commands. Save its report beside the notes file and give owners the path, not a pasted copy.
|
|
105
|
+
Done when the scout report sits beside the notes file, or no two tickets share unknown code.
|
|
106
|
+
3. **Integration branch.** In Build mode, use `spec/<slug>` when the Spec playbook created it; else create it off the default branch. In Sprint mode, cut `spec/<slug>-sprint-<n>` off the default branch once Sprint `n-1` has landed. When the repo has a remote, push it with an explicit refspec. Without a remote, every push and PR step below is skipped. Worktrees share one `.git`, so local branches are enough.
|
|
107
|
+
Done when `git rev-parse --verify <branch>` succeeds and, with a remote, `git ls-remote origin <branch>` lists it.
|
|
108
|
+
4. **Start the frontier.** One fresh default `task` owner per frontier ticket, each in its own worktree on branch `ticket/<n>-<slug>` cut from the integration branch tip, under Run a goal, Program scale step 3. Pin each owner's model tier and effort up front (`skill://agent-harnesses/references/delegation-efficiency.md`: small/mid for mechanical or oracle-backed tickets; flagship `L` for hard design, security, and closing review), cap concurrent owners to 3-5 per wave (higher only when quota allows), and reuse owners across fix rounds to keep prompt caches warm.
|
|
109
|
+
Each kickoff names the spec path, the ticket, the notes paths, its allowed files, and these duties:
|
|
110
|
+
- Confirm the worktree's base is the current integration tip; reset onto it if not.
|
|
111
|
+
- Build with the Feature or Bug fix playbook's steps (`references/playbooks/feature.md`, `references/playbooks/bug-fix.md`) and commit on the ticket branch, but skip their Opening a PR and Shipping steps. No ticket PR and no push to the default branch. A ticket reaches trunk only through step 5's merge and step 7's single PR.
|
|
112
|
+
- Write the ticket's Done when as failing checks first per the **tdd** technique (`references/techniques/tdd.md`) where a cheap seam exists.
|
|
113
|
+
- Prove each Done when item on the real surface.
|
|
114
|
+
- Run the **pr-review** technique (`references/techniques/pr-review.md`) in local mode against the integration branch and fix, dismiss with a reason, or escalate each finding.
|
|
115
|
+
- Merge the integration tip into the ticket branch, rerun the checks, push (when there is a remote), and report the head SHA with its evidence.
|
|
116
|
+
- Done when every frontier ticket has an owner on its `ticket/<n>-<slug>` worktree, recorded in the notes file, capped to 3-5 concurrent owners per wave (scaling higher only when quota allows).
|
|
117
|
+
5. **Merge each finished ticket.** Read the owner's evidence and diff. In a clean worktree of the integration branch, run `git merge --no-ff ticket/<n>-<slug>`, rerun the repo's checks, push when there is a remote. A conflict or red check goes back to the owner with the output.
|
|
118
|
+
No PR exists yet, because Opening a PR hands every PR straight to pr-conversation, which would land a partial build.
|
|
119
|
+
Done when the ticket's merge commit is on the integration branch and the repo's checks pass there.
|
|
120
|
+
6. **Move the frontier.** After each merge, comment the merge SHA on the ticket, recompute the frontier, and start owners for newly unblocked tickets. A ticket that grows past one session is split with the Tickets playbook's rules and the graph updated.
|
|
121
|
+
Done when the ticket has its merge-SHA comment and every newly unblocked ticket has an owner.
|
|
122
|
+
7. **Close the build (or sprint).** When every ticket in the active sprint (or build) is merged:
|
|
123
|
+
- Run pr-review on the integration branch against the default branch, with the spec as the claim, so its Spec findings check every user story and Done when item in scope. In complex domains, also run the **sme-review** lens (`references/techniques/sme-review.md`). Run **security-audit** (`references/techniques/security-audit.md`, blocking = P0) on the merge head when opted in or touching auth, permissions, parsing, or secrets.
|
|
124
|
+
- One fresh owner fixes every finding in one pass on the integration branch.
|
|
125
|
+
- Local tracker → set each finished ticket (and the spec, once the final sprint closes) to `Status: closed` on the integration branch, so the close lands with the code.
|
|
126
|
+
- With a remote, open one PR from the integration branch to the default branch through Opening a PR (`references/playbooks/opening-a-pr.md`), with `Closes #<ticket>` per finished ticket (and `Closes #<spec>` only on the final sprint). It lands through the **pr-conversation** technique (`references/techniques/pr-conversation.md`) on a **panel** pass (`references/techniques/panel.md`) at its head.
|
|
127
|
+
- No remote → after a panel pass at the integration tip, run `git merge --no-ff <integration branch>` in a clean worktree of the default branch and rerun the checks there. A red result is undone with `git revert -m 1 <merge sha>`.
|
|
128
|
+
- **Sprint feedback gate (Sprint mode, before Sprint `n+1`):** run `python -B "<this skill>/assets/loop/loop.py" manifest <manifest.json> --sprint <n>` (`py -3 -B` on Windows) when a manifest exists so slices `<= n` pass with zero `pending` inventory items, report live proof for landed Sprint `n`, and list Sprint `n+1..N` as **remaining scope (incomplete, `scope_complete: false`, never done)**. Surface unverified domain questions via **questionnaire** (`references/techniques/questionnaire.md`), fold feedback into Sprint `n+1..N`, and set `"sme_gate": "cleared"` before Sprint `n+1`.
|
|
129
|
+
- Done when the sprint or final PR is merged (no remote: local merge on default branch) on a panel pass at its head, trunk checks pass, and in Sprint mode either SME/customer feedback is gathered (with Sprint `n+1..N` explicitly reported as remaining scope) or the final sprint is closed.
|
|
130
|
+
8. **Clean up** the ticket worktrees you created, per Worktree cleanup (`references/playbooks/worktree-cleanup.md`). Keep branch refs intact unless the user explicitly asks to delete merged `ticket/*` refs.
|
|
131
|
+
Done when `git worktree list` shows none of the ticket worktrees you created.
|
|
132
|
+
|
|
133
|
+
### Gates
|
|
134
|
+
|
|
135
|
+
- Only you merge into the integration branch, and only a ticket whose evidence you read.
|
|
136
|
+
- The integration branch stays green after every merge. A red merge is reverted on the branch before the next one.
|
|
137
|
+
- Sprinting never shrinks Total Scope: Sprint `n` verifies all slices `<= n`, rejects unclassified `pending` inventory items, honors `"sme_gate": "required"`, and reports deferred Sprint `n+1..N` as incomplete remaining scope (`scope_complete: false`).
|
|
138
|
+
- The final PR (no remote: the final local merge) lands only on a panel pass at its exact head, with no P0 or P1 review finding open, and with **security-audit** passing when opted in or touching auth, permissions, parsing, or secrets.
|
|
139
|
+
- Subagent briefs carry pointers (spec, ticket, notes, commits), not copies of them.
|
|
140
|
+
|
|
141
|
+
### Evidence
|
|
142
|
+
|
|
143
|
+
- The final PR link (no remote: none), its merge SHA, and the trunk check after the merge.
|
|
144
|
+
- Per ticket: owner, merge SHA into the integration branch, and the Done when evidence.
|
|
145
|
+
- The closing review line and panel line.
|
|
146
|
+
- Decisions made on the user's behalf, each with how to reverse it.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Prototype
|
|
2
|
+
|
|
3
|
+
Use when: a design or empirical decision (layout, interaction, density, behavior, timing, approach) should be settled with a cheap throwaway. You own the decision, not the code; the real build follows Feature.
|
|
4
|
+
|
|
5
|
+
This playbook inverts the laziness protocol's "smallest change" and the verification bar: speed over polish, code quality doesn't matter, no planning.
|
|
6
|
+
Rigor goes into picking the right design cheaply. Propose variations the user didn't ask for; throw an approach away and try another.
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
1. Scope the decision the prototype exists to make. Done when the decision is written as one question with the options it chooses between.
|
|
10
|
+
2. Open design space → gather references: search prior art, summarize a moodboard (themes, palettes, layouts), pick the directions to build, and log why. Skip when the direction is set.
|
|
11
|
+
Done when each direction to build is logged with its reason and the references behind it.
|
|
12
|
+
3. Build throwaway in `<root>/.scratch/prototype-<decision>/`: inside the project root, git-excluded, outside production source (SKILL.md "Contain the work"). No project yet → create the named repo first.
|
|
13
|
+
- Visual: vanilla HTML/CSS/JS or the lightest stack that renders it, CDN deps, hot-reload dev server.
|
|
14
|
+
- Behavioral/timing: the smallest script that exercises the question.
|
|
15
|
+
- Done when each direction runs from that folder and `git status` shows no production file changed.
|
|
16
|
+
4. Comparing alternatives → put variants behind one labeled switcher (buttons or keypress) (`references/principles/exhaust-the-design-space.md`). Done when every variant is reachable from the switcher in one running build.
|
|
17
|
+
5. Verify on the matching surface.
|
|
18
|
+
- Visual → screenshot each variant via the repo's `verify-<app>` skill (in `.omp/skills/`, `.claude/skills/`, or `.agents/skills/`); if none, use omp `eval` `browser`, Playwright/CDP, or bash and drive the interaction.
|
|
19
|
+
- Behavioral → log the timing, print output, or watch the render. Observation is the test.
|
|
20
|
+
- Done when every variant has a saved screenshot or captured output.
|
|
21
|
+
6. Pick the winner by the evidence, log the choice and the tradeoffs, and hand it to Feature (or the **architect** technique (`references/techniques/architect.md`) for the shape).
|
|
22
|
+
Done when the log names the winner, the evidence that picked it, and the playbook or technique it went to.
|
|
23
|
+
|
|
24
|
+
## Gates
|
|
25
|
+
- No decision to make → no prototype; route to Feature.
|
|
26
|
+
- No production framework, no tests, no abstractions, nothing merged into production source.
|
|
27
|
+
- Output is the decision plus throwaway artifact, never shippable code.
|
|
28
|
+
|
|
29
|
+
## Evidence
|
|
30
|
+
- Variants explored; evidence (screenshots for visual, observed output/timing for behavioral); tradeoffs; recommendation; scratch path.
|
|
31
|
+
- State plainly the prototype is throwaway.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Refactoring
|
|
2
|
+
|
|
3
|
+
Use when: changing structure while behavior stays fixed, including a language port. You own the contract. Not Feature (adds behavior) or Bug fix (corrects it). Language ports use their dedicated steps below; structural refactors use the general sequence. Other large or cross-cutting structural work → the **figure-it-out** technique (`references/techniques/figure-it-out.md`).
|
|
4
|
+
|
|
5
|
+
## Language ports
|
|
6
|
+
|
|
7
|
+
Use the two accounts in `references/rust-migration-case-studies.md` as evidence, not a mandate to choose Rust or one cutover strategy.
|
|
8
|
+
|
|
9
|
+
1. **Freeze the oracle.** Record the source revision and run existing consumer-facing tests against it. Keep fixtures, snapshots, schemas, test selection and compatibility thresholds outside implementers' write scope. An intended contract change is a separate decision, not a way to turn a port green. Done when baseline commands, results and protected paths are recorded.
|
|
10
|
+
2. **Inventory behavior, not just files.** Map each public entrypoint, callback, I/O path, state owner, cancellation/disposal pair and packaging target to its destination and proof. Record numeric serialization, missing/empty values, ordering, ambient inputs, dependency semantics and release-only behavior. Done when every source surface has an owner, destination and acceptance case; unknowns stay open.
|
|
11
|
+
3. **Pilot before scaling.** Choose incremental closed slices or an all-at-once cutover from coupling, live churn and rollback needs. Translate behavior before redesigning algorithms. Run a small representative slice through compile, link, startup and its consumer path. Done when the pilot proves the recipe; a compiler-only pass is not sufficient.
|
|
12
|
+
4. **Turn failures into work.** Group compiler/runtime failures by owning slice; use Self-authoring (`references/playbooks/self-authoring.md`) for bounded repair loops. A repeated translation mistake changes the shared porting recipe and gets a regression case, not another one-off workaround. For parallel work, follow **coworkers** (`references/techniques/coworkers.md`) and pick small/mid model tiers for mechanical or oracle-backed batches (`skill://agent-harnesses/references/delegation-efficiency.md`). Done when each queue item has a reproduced failure, owner and closure evidence.
|
|
13
|
+
5. **Check parity and completeness separately.** Exercise the unchanged oracle in supported release configurations and compare externally visible results. Independently reconcile the inventory against current source, including changes that arrived during the port. Compilation cannot detect an omitted callback. Done when every row is proven or explicitly blocked; stubs, skipped tests and lowered baselines never close rows.
|
|
14
|
+
6. **Close the migration.** Migrate callers and remove superseded implementations in each closed slice. Remove temporary scaffolding before declaring the port complete. Record real consumer runs and workload-matched resource measurements; keep merge, rollout and release readiness distinct. Done when the requested native/runtime boundary holds end to end, not merely on the hot path.
|
|
15
|
+
|
|
16
|
+
The language-port steps are the acceptance sequence, not a prerequisite to structural redesign. Preserve the architecture and valid branches unless the target runtime boundary requires a change. Keep the behavior pin, real-artifact proof, and SKILL.md delivery-target rules below; mandatory subtraction and reader-load reduction do not apply. Judge the port against its stated migration objective.
|
|
17
|
+
|
|
18
|
+
Apply clean cutover to each closed slice: migrate its callers and delete its superseded implementation. Source implementations outside that slice may remain during an incremental port. Any temporary internal interop needs an approved boundary, owner and removal criterion; it cannot leave duplicate completed implementations or override repository rules. A separately approved structural redesign follows the sequence below.
|
|
19
|
+
|
|
20
|
+
## Structural refactoring steps
|
|
21
|
+
|
|
22
|
+
1. Pin the behavior contract: run the **how** technique (`references/techniques/how.md`), then write a characterization test, snapshot, or equivalence harness capturing current behavior before structure moves.
|
|
23
|
+
No coverage → write the pin first. Type check and lint are not a pin.
|
|
24
|
+
Done when the pin runs green on the unchanged code and you have its command.
|
|
25
|
+
2. Name the structure the code is missing (`references/principles/model-the-domain.md`). Boring code stays when its shape is clear and local. The reshape must delete branches or invalid states, not add indirection.
|
|
26
|
+
Done when the missing structure is named in one sentence, with the branches or invalid states it deletes.
|
|
27
|
+
3. Name the target shape: module layout, types, call graph as if built today (`references/principles/foundational-thinking.md`, `references/principles/redesign-from-first-principles.md`).
|
|
28
|
+
Target changes a module or public interface with two or more viable shapes → run the **architect** technique (`references/techniques/architect.md`) first.
|
|
29
|
+
Done when the target layout is written down, and an architect verdict exists when it was required.
|
|
30
|
+
4. Subtract before you add (`references/principles/subtract-before-you-add.md`): delete dead code, collapse one-caller wrappers, drop redundant validators, remove orphan references.
|
|
31
|
+
Ship the smallest change reaching the target (`references/principles/laziness-protocol.md`); revert speculative "might help" cleanups.
|
|
32
|
+
Done when the subtraction is committed with the pin green and no speculative cleanup remains in the diff.
|
|
33
|
+
5. Move in small behavior-preserving steps, each keeping the pin green.
|
|
34
|
+
- API reshapes: migrate every caller and delete the old API in the same wave (`references/principles/migrate-callers-then-delete-legacy-apis.md`). No shims, no parallel old/new paths.
|
|
35
|
+
- Spot-check every rename against the files; renames miss usages in strings, prose, back-references.
|
|
36
|
+
- Delegate mechanical edits to a default `task` agent on a small/mid model tier (`skill://agent-harnesses/references/delegation-efficiency.md`; reserve flagship `L` for hard boundary design and final review) with scope: file paths, names being moved, behavior to hold, exclusive file ownership.
|
|
37
|
+
- Done when the code matches the target shape, the pin is green, and a grep for each old name returns no usages.
|
|
38
|
+
6. Prove behavior unchanged on the real artifact, not "it compiles" (`references/principles/prove-it-works.md`).
|
|
39
|
+
Larger reshapes: equivalence check (old-vs-new output diff script, recorded baseline replay, or smoke run on the matching surface via the project `verify-<app>` skill).
|
|
40
|
+
Done when the real-artifact run or equivalence check shows no behavior difference, with its run path recorded.
|
|
41
|
+
7. Confirm it is worth keeping: the diff must lower reader load somewhere (`references/principles/minimize-reader-load.md`); else revert. Done when the reader-load reduction is named, or the change is reverted.
|
|
42
|
+
8. Deliver per SKILL.md's delivery-target rule: for local review or a repo with no remote, leave verified S/M edits uncommitted in the starting working tree with the pin green (no default-branch commit or push). For publication, sequence commits (subtraction, reshape, follow-on cleanup, each green per `references/principles/sequence-verifiable-units.md`), commit, and run **Opening a PR** (`references/playbooks/opening-a-pr.md`).
|
|
43
|
+
Done when the pin passes and the requested delivery target holds (verified uncommitted local tree, or green commits with the PR open).
|
|
44
|
+
|
|
45
|
+
## Gates
|
|
46
|
+
|
|
47
|
+
- No structure moves before the pin exists and is green.
|
|
48
|
+
- Unit tests and characterization pins must mock or block live production inference and paid external APIs so refactor test loops cannot burn production budgets (`https://www.youtube.com/watch?v=6TjFjHPjVH0`, 06:33).
|
|
49
|
+
- Verify renamed architectural abstractions in code, not just plans: confirm each "agent", "skill", or runtime actually implements the promised contract rather than aliasing a stub or leaving scheduled outputs empty (`https://www.youtube.com/watch?v=6TjFjHPjVH0`, 04:00–07:59).
|
|
50
|
+
- Cleanup reveals a missing feature or real bug → split it out; ship the structural change first against the pinned contract. A redesign is allowed only when named and routed to Feature.
|
|
51
|
+
- Any step turns the pin red → stop and fix before the next step.
|
|
52
|
+
- Structural refactors without a reader-load reduction are reverted. Language ports instead prove their stated migration objective.
|
|
53
|
+
|
|
54
|
+
## Evidence
|
|
55
|
+
|
|
56
|
+
- The structure that changed.
|
|
57
|
+
- The pin it was held against.
|
|
58
|
+
- The equivalence proof (run path and outcome).
|
|
59
|
+
- The reader-load delta for a structural refactor, or the runtime-boundary objective and closed-slice inventory for a language port.
|
|
60
|
+
- What shipped and what got reverted. No new behavior.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Reference Rebuild
|
|
2
|
+
|
|
3
|
+
Use when: rebuilding or redesigning a product UI to the standard of an app the user names ("make it like herdr / Grok Bot / Linear"). You own the design canvas, the build, and the proof.
|
|
4
|
+
Method adapted from Nick Vasilescu's Grok Bot rebuild (T3 Code + Paper MCP, youtu.be/vNpJz-K644k): use the reference, design first, then build from the design.
|
|
5
|
+
|
|
6
|
+
## Steps
|
|
7
|
+
|
|
8
|
+
1. **Study the reference by using it.** Launch the real app (installed build, or an unpacked Electron build with `--remote-debugging-port`) and drive it with computer use or CDP: every main screen, empty states, approvals, settings.
|
|
9
|
+
Save screenshots and a measured system sheet from computed styles (type scale, colour tokens, radii, spacing, row heights, icon library, motion).
|
|
10
|
+
Marketing pages and model-generated mockups are not a reference. Read-only: navigation only, nothing sent, created or approved.
|
|
11
|
+
Done when every main screen has a saved screenshot and the system sheet lists a measured value for each item above.
|
|
12
|
+
2. **Map the product's real data** before drawing: list every field the backend actually emits for each screen (`/state.json`, API responses). The canvas may only show fields on that list; invented values are labelled sample data.
|
|
13
|
+
Done when each screen has a field list taken from a real backend response.
|
|
14
|
+
3. **Design first on a canvas.** One frame per screen and key state, product fidelity, real labels and real data shapes. Tool order: Paper MCP, then Figma MCP, then a static self-contained HTML canvas page of frames. The canvas carries the design system as tokens, not adjectives.
|
|
15
|
+
Done when every screen and key state has a frame and the canvas defines its tokens.
|
|
16
|
+
4. **Review the canvas before code.** Run the restraint check below on every frame, then pick the direction yourself, log why (SKILL.md Autonomy), and show the user the canvas in the report. Code starts from the chosen canvas.
|
|
17
|
+
Done when every frame passes the restraint check and the chosen direction is logged with its reason.
|
|
18
|
+
5. **Build from the canvas**, one screen per owner, shared tokens and primitives first (`references/playbooks/visual-parity.md` for the harness and per-component loop). Done when every canvas screen renders in the running app.
|
|
19
|
+
6. **Prove it in the real app**, not a mock: screenshot each built screen in the running app at the canvas size and compare it frame by frame with the canvas; fix and reshoot until each matches.
|
|
20
|
+
Add real-data and worst-case passes (long names, empty, every state, outages, narrow widths).
|
|
21
|
+
Done when every screen has a matching canvas-vs-app screenshot pair and every worst-case pass has a result.
|
|
22
|
+
|
|
23
|
+
Run steps 1 to 3 as parallel threads when they are independent (reference study, backend mapping, canvas), and settle each thread when its output is saved.
|
|
24
|
+
|
|
25
|
+
## Restraint check (what made earlier rebuilds look AI-made)
|
|
26
|
+
|
|
27
|
+
Ship only when every frame passes:
|
|
28
|
+
- One real icon library at one size and stroke (Lucide or the host SDK's set); no hand-drawn icons, no Unicode glyphs as icons.
|
|
29
|
+
- Neutral palette with one accent; colour only where it means state; status as a small dot plus text, pills only for the single needs-attention element.
|
|
30
|
+
- Sentence-case headings; no uppercase tracking labels, no eyebrow labels above headings.
|
|
31
|
+
- One container per section, hairline dividers between rows, nothing boxed inside a box, no glows.
|
|
32
|
+
- Monochrome mark; no rainbow per-role colours.
|
|
33
|
+
- One sans, three weights, mono only for IDs, queries and code; tabular numbers.
|
|
34
|
+
|
|
35
|
+
## Gates
|
|
36
|
+
|
|
37
|
+
- No canvas, no build. Code builds only from the chosen canvas.
|
|
38
|
+
- A field on the canvas that the backend does not emit is either removed or added to the backend as separate, named work.
|
|
39
|
+
- Take layout, density, type and interaction patterns from the reference; never its code, logos, icons, images or brand name.
|
|
40
|
+
- Claims of parity cite a running-app screenshot next to its canvas frame.
|
|
41
|
+
|
|
42
|
+
## Evidence
|
|
43
|
+
|
|
44
|
+
- Reference screenshots and system sheet; the data-field map; canvas location and the direction you chose, with why.
|
|
45
|
+
- Per-screen canvas-vs-app screenshot pairs; worst-case pass results; what still differs and why.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Run a goal
|
|
2
|
+
|
|
3
|
+
Use when: one goal must be driven to a checkable end without the human. Session scale covers "loop until X", "keep going until green", "going to bed, finish it". Program scale covers "run this whole project", "own this migration until it lands", "be my chief of staff for X", "keep pushing this goal forward across sessions". You own the exit condition. Define done, then drive to it without stopping.
|
|
4
|
+
One ambitious run needing a bespoke workflow is the **figure-it-out** technique (`references/techniques/figure-it-out.md`). A queue of work items to turn into merged PRs is Work a queue (`references/playbooks/work-a-queue.md`).
|
|
5
|
+
|
|
6
|
+
## Pick the scale
|
|
7
|
+
|
|
8
|
+
| What the user has | Use |
|
|
9
|
+
|---|---|
|
|
10
|
+
| One task, driven to a completion predicate in this session | Session scale |
|
|
11
|
+
| A standing project or long-running goal (multi-day, many stacked PRs, dozens to hundreds of subagents, few human turns) | Program scale |
|
|
12
|
+
| Work one agent could finish inside the session's budget | Session scale. It is not a program. |
|
|
13
|
+
| A goal to run headless or overnight with no session open | `assets/loop/loop.py` (Session scale step 3) |
|
|
14
|
+
| PRs and issues handled with no session at all | The GitHub App bot |
|
|
15
|
+
|
|
16
|
+
Headless engines this playbook may use:
|
|
17
|
+
- `assets/loop/loop.py` runs a goal file under headless omp, Claude Code, or Codex until its check passes. Details are in the Self-authoring playbook (`references/playbooks/self-authoring.md`).
|
|
18
|
+
- The GitHub App bot (`references/techniques/github-app.md`) polls the user's repos and runs pr-conversation and issue-conversation with no session open.
|
|
19
|
+
|
|
20
|
+
## Session scale
|
|
21
|
+
|
|
22
|
+
One task, one session, one completion predicate.
|
|
23
|
+
|
|
24
|
+
1. State the exit condition as a checkable predicate before the first iteration (tests green, repro fixed, all N PRs merged, pixel-diff zero). Write down the command or check that evaluates it.
|
|
25
|
+
Audit the repo's inner loop first (`python -B "<deepmodebot skill>/assets/loop/loop.py" audit .` or `references/techniques/inner-loop.md`) so the predicate pairs fast static checks with behavioral proof and cannot pass via inline suppressions, swallowed errors, or weakened configs.
|
|
26
|
+
If the goal enters a complex domain or depends on an unverified customer spec, run **sme-review** (`references/techniques/sme-review.md`) before looping; send a **questionnaire** (`references/techniques/questionnaire.md`) for unresolved P0/P1 domain questions instead of optimizing against a flawed spec.
|
|
27
|
+
For multi-slice or "all / every" goals, keep total scope in one `manifest` JSON (`python -B "<deepmodebot skill>/assets/loop/loop.py" manifest <file> [--sprint N]`, `py -3 -B` on Windows), classify every candidate in `inventory` (`included`, `duplicate`, `non_target`, `blocked`; any `pending` item fails the gate), and set `sme_gate: "required"` until SME-cleared.
|
|
28
|
+
Done when the predicate, its inner-loop checks, and its command are written down, one run shows the current state, and any complex-domain spec is SME-cleared.
|
|
29
|
+
2. Start a decision trail per the **show-me-your-work** technique (`references/techniques/show-me-your-work.md`).
|
|
30
|
+
Done when the trail file exists and its absolute path is printed.
|
|
31
|
+
3. Pick the wake mechanism:
|
|
32
|
+
- An event to watch (CI, a merge, a ref advancing) → a background shell job that blocks on it (`gh pr checks <pr> --watch`, `gh run watch <id>`, with `timeout: 0` in omp or background command/task in other harnesses); its result auto-delivers. Add a time-based heartbeat fallback via the harness's scheduler (Antigravity `schedule`, Claude Code `/loop`) or a background sleep (`sleep 3300` on POSIX, `Start-Sleep -Seconds 3300` in PowerShell).
|
|
33
|
+
- No event → a fixed-interval heartbeat using the harness's scheduler (Antigravity `schedule`, Claude Code `/loop`) or a background sleep (`bash` `sleep` with `timeout: 0` / `timeout: 3600` in omp; PowerShell `Start-Sleep` on Windows), sized to when the result is worth re-checking.
|
|
34
|
+
- Unattended across sessions, from a script or CI, or in another harness → select the smallest benchmark-proven model tier (`skill://agent-harnesses/references/delegation-efficiency.md`) and pin it in `harness_args` before iteration 1.
|
|
35
|
+
Add optional `escalate_after` + `escalate_harness_args` to promote to a stronger model after repeated failures, `fallback_harness_args` to switch to configured fallback args on quota or persistent 429s (cross-family in `omp`; sibling model in `claude`/`codex`), and `checkpoint_every` as an iteration cadence checkpoint (exit 6 after N failed iterations; passing Sprint 1 with deferred slices exits `0` with `scope_complete: false`).
|
|
36
|
+
Run `python -B "<deepmodebot skill>/assets/loop/loop.py" run <goal.md> [--sprint N]` (`loop.py run` targets `omp|claude|codex`; `manifest`/`audit`/`check`/`status` are harness-agnostic) with `max_cost_usd`, `cooldown_seconds`, and `rate_limit_retries`. Use `loop.py status <goal.md> [--json]` to inspect sprint progress, deferred slices, SME gates, and the exact resume command from `latest-summary.json`.
|
|
37
|
+
- Interactive in one session → the harness's native `/goal` with the predicate's command named in it. Details: `references/playbooks/self-authoring.md`.
|
|
38
|
+
- Done when the wake job, `loop.py` run, or `/goal` is armed and its id or command is in the trail.
|
|
39
|
+
4. Each iteration: make the smallest change the evidence justifies, run fast static checks first, and evaluate the predicate without adding inline suppressions or symptom guards.
|
|
40
|
+
Done when the inner-loop checks and the predicate's command have run on the changed code.
|
|
41
|
+
5. Advanced → keep it and commit it. Didn't help → discard it. "Might help" belt-and-suspenders gets reverted, not left to ride.
|
|
42
|
+
Done when the iteration's change is either committed or reverted, and `git status --porcelain` shows nothing left from it.
|
|
43
|
+
6. Sequence the work into verifiable units, verifying each before the next instead of batching checks at the end (`references/principles/sequence-verifiable-units.md`).
|
|
44
|
+
For multi-capability or customer-facing goals, keep 100% of total scope in one manifest with per-slice `sprint` numbers and run Sprint 1 via `active_sprint: 1` or `--sprint 1` (`python -B "<deepmodebot skill>/assets/loop/loop.py" check|run|manifest --sprint N`, `py -3 -B` on Windows) so Sprint 2+ stay explicitly `deferred` (never dropped or falsely marked done).
|
|
45
|
+
Use `sme_gate: "required"` on the manifest or later-sprint slices (`manifest` exits `1`; `check` prints status and exits `0`; `run` pauses with exit `6` before launching the harness) or `checkpoint_every` (iteration cadence pause, exit `6`) so `latest-summary.json` records scope telemetry until **sme-review** (`references/techniques/sme-review.md`) clears the gate (`sme_gate: "cleared"`).
|
|
46
|
+
Done when every unit kept so far had its check pass before the next unit started, and any Sprint 1 feedback gate is cleared before Sprint 2+ begins.
|
|
47
|
+
7. Own mid-run discoveries that support the goal: broken skills, related bugs, flaky verifiers, review noise, tooling failures, orphaned follow-ups, fixable drift. Fix them yourself, out-of-band fixes kept separate from the main change (on their own branch and PR). Return to the predicate after each side fix.
|
|
48
|
+
Done when each discovery has its own branch and PR, and the next iteration is back on the predicate.
|
|
49
|
+
8. Checkpoint every iteration in the trail: one row for what changed and whether the predicate moved.
|
|
50
|
+
Done when the trail has one row per iteration run.
|
|
51
|
+
9. Plateau → pivot the approach and keep going; a plateau is not a stop.
|
|
52
|
+
Done when the trail records the pivot and the next iteration tries a different approach.
|
|
53
|
+
|
|
54
|
+
## Program scale
|
|
55
|
+
|
|
56
|
+
You run the program, never the code. Decide which agent does each piece, then check what each produces.
|
|
57
|
+
|
|
58
|
+
Work two tracks at once: the tactical one (land the next unit) and the strategic one (change the environment so the unit after it goes better).
|
|
59
|
+
|
|
60
|
+
1. Keep program state in one tracker file a cold-start coordinator can find: units, owners, agent ids, PRs, heads, verdicts, follow-ups.
|
|
61
|
+
- The file is `$(git rev-parse --git-common-dir)/omp-resume/<program>-notes.md`, or `<root>/.scratch/<program>-notes.md` when the harness cannot write `.git` (such as Codex's sandbox, per `references/contain.md`). Never a session-only store (`local://`). Print its absolute path.
|
|
62
|
+
- Spawn workers only with `task`. No hand-rolled polling loops. Workers talk to each other directly as coworkers (the **coworkers** technique, `references/techniques/coworkers.md`); you don't relay between them.
|
|
63
|
+
- Keep durable knowledge in a **wiki** beside the tracker (`.../omp-resume/<program>-wiki/`), or in the shared wiki the repo or user already keeps, following its conventions. `index.md` lists every page with a one-line summary by category.
|
|
64
|
+
- Each other page covers one thing (a decision, a recurring problem, a subsystem, a user preference) and links its neighbors. Pages cite sources (issues, PRs, commits, worker reports) and never copy them.
|
|
65
|
+
- Write wiki history, not the present. Date every claim ("2026-11-11: chose X because Y"), pin code claims to a commit (`owner/repo@sha`), and supersede an old claim with a new dated one instead of rewriting it.
|
|
66
|
+
- When you learn something durable, update every page it touches and the index. Before a decision, read the index and the pages it names.
|
|
67
|
+
- Done when the tracker file and the wiki's `index.md` exist and both absolute paths are printed.
|
|
68
|
+
2. Assign one owner per PR. The owner is the only writer of its branch and carries it from build to merge; only it pushes, rebases, or retargets. Closing or retargeting a base PR orphans every PR above it, so the owner does that only on your call.
|
|
69
|
+
You never author or edit code. Conflicted merges, chain rebases, and fixes go to owners. Each owner self-reviews with the **pr-review** technique (`references/techniques/pr-review.md`) in local mode before each push, triaging its findings with its other review comments and reporting the review line.
|
|
70
|
+
Done when every open PR has exactly one owner in the tracker.
|
|
71
|
+
3. Isolate owners. Subagents share one workspace, so give each owner its own `git worktree` at `<root>/.worktrees/<branch>` (inside the repo, git-excluded; never a sibling or temp folder, per SKILL.md "Contain the work") and exclusive file ownership. Name the paths it may and may not write. Worktrees still share one `.git`, ports and databases:
|
|
72
|
+
- Create worktrees one at a time; parallel `git worktree add` from a remote-tracking ref collides on `.git/config`.
|
|
73
|
+
- Push with an explicit refspec (`git push <remote> HEAD:refs/heads/<branch>`), never `-u`, which also writes `.git/config`.
|
|
74
|
+
- A relative remote URL resolves against the directory the push runs in; push from the main checkout.
|
|
75
|
+
- Give each owner its own dev-server port and database.
|
|
76
|
+
- Done when the tracker lists each owner's worktree path, port, and database, and no two owners share one.
|
|
77
|
+
4. Give each independent task a fresh worker whose kickoff carries everything it needs: file/report paths and brief summaries for upstream reports it depends on (pass paths instead of pasting large dumps, per `references/principles/guard-the-context-window.md`), plus the team roster (every coworker's agent id, role, and files owned).
|
|
78
|
+
Done when every kickoff names its upstream report paths and the roster.
|
|
79
|
+
5. Write every kickoff with: goal, selected model tier and effort (`skill://agent-harnesses/references/delegation-efficiency.md`, never defaulting routine slices to flagship `L`), the evidence that proves done (a command and its expected output, a `verify-<app>` check, or an artifact), allowed and forbidden paths, and the hard stops (SKILL.md Autonomy). Can't name the evidence → the unit isn't scoped yet.
|
|
80
|
+
Done when every kickoff names its model tier, its proof, its allowed and forbidden paths, and the hard stops.
|
|
81
|
+
6. Start with one unit. Take it through kickoff, owner, verifier, and landing before fanning out, so a kickoff flaw costs one agent, not fifty. On near-identical cheap units, the first unit is that test.
|
|
82
|
+
For customer-facing or complex-domain programs, group units into **incremental sprints**: land Sprint 1 (smallest end-to-end slice), run **sme-review** (`references/techniques/sme-review.md`), and get human SME or customer feedback via **questionnaire** (`references/techniques/questionnaire.md`) before fanning out Sprint 2+.
|
|
83
|
+
Done when the first unit (or Sprint 1 feedback slice) has landed or been dropped with a reason, and each kickoff flaw or domain gap it exposed is fixed before fanning out.
|
|
84
|
+
7. Fan out within quota and rate limits: default **3-5** concurrent workers on a single subscription, scaling up toward ten only when split across accounts/model families or higher-tier quotas. Start the next as each finishes instead of bursting cold spawns. Pass file/report paths rather than pasting large context (`references/principles/guard-the-context-window.md`). Add a sub-coordinator only when one area has many parallel workers; max three levels: you, sub-coordinators, workers.
|
|
85
|
+
Done when concurrent workers fit the active rate/quota budget and every remaining unit is running or done.
|
|
86
|
+
8. When new work needs a worker's checkout, uncommitted changes, or running process, message that worker (`write agent://<id>` in omp, `SendMessage` in Claude Code, `send_message` in Antigravity) or spawn a fresh worker pointed at its worktree/branch. Never message a worker just to check on it.
|
|
87
|
+
Done when the tracker shows the new work under the worker holding that state, or under a fresh worker on its worktree.
|
|
88
|
+
9. Give every PR a **panel** (`references/techniques/panel.md`): exactly three verifiers who did not author it, default `task` agents that can prove real behavior, using different authorized model families when available. All three valid responses are required; at least two must pass.
|
|
89
|
+
The owner merges only on a panel pass at the current head. That pass includes a pr-review round in PR mode on the current head with no P0/P1 open and every P2 fixed or dismissed with a reason; the review is evidence, never a substitute for the panel's live proof.
|
|
90
|
+
Done when every merged PR has a panel pass and a pr-review line at its merge head in the tracker.
|
|
91
|
+
10. Supervise by artifacts. Read the diff or artifact, not only the summary. Green CI is an input, not a verdict; behavioral work needs more than a type check. A new push needs a new verdict and a new pr-review round.
|
|
92
|
+
Sample each sub-coordinator's kickoffs while its workers run and fix its instructions when one fails. The same pr-review finding class on two or more PRs → hand it to a worker running the **correct** technique (`references/techniques/correct.md`) for a lint rule, type, or test.
|
|
93
|
+
Done when every verdict in the tracker names the diff or artifact you read at that head.
|
|
94
|
+
11. Send back work that drifts from scope or grows past the ask; keep only fixes that block the program, park the rest as follow-ups.
|
|
95
|
+
Done when every out-of-scope change is out of its PR or parked as a follow-up in the tracker.
|
|
96
|
+
12. Check live PR state before reporting it: `gh pr view <pr>` and `gh pr checks <pr>`, not a worker's last report. Account for every spawned worker as done, replaced, or absorbed.
|
|
97
|
+
Done when every PR you report matches a `gh pr view` and `gh pr checks` run just before the report, and every spawned worker is marked done, replaced, or absorbed.
|
|
98
|
+
13. Stop or replace a worker that stalls or loops, judged by pushes and PR activity, not status text. Distinguish rate-limit/quota failures from bugs: on 429 or quota exhaustion, throttle concurrency, back off, or rotate model family (`skill://agent-harnesses/references/delegation-efficiency.md`) instead of respawning into the same limit. Otherwise retry by cause: smaller scope after a context limit, same kickoff after a dropped connection, a different model after a tool error. After two retries, drop the unit and replan around it.
|
|
99
|
+
A stopped worker that returns late: check its result against the PR's current state and hand unique findings to a fresh worker.
|
|
100
|
+
Done when no running worker has gone an hour, or the interval you set for it, without a push or PR activity, and no unit has had a third retry.
|
|
101
|
+
14. Strategic track. Before each new unit, ask what change to the environment would make it and later units go right by default, and hand that to a worker as its own unit.
|
|
102
|
+
Candidates: tighter inner-loop checks (`references/techniques/inner-loop.md`), narrower interfaces, a lint rule, type, or test (**correct**), a pre-commit hook (`references/techniques/pre-commit.md`), a git guard (`references/techniques/git-guardrails.md`), a `CODING_STANDARDS.md` rule the reviewer enforces, or data the agents lack (dev-server logs teed to a file, a test database, browser access).
|
|
103
|
+
No workarounds. A deviation from the repo's conventions gets fixed before more feature work lands on top of it.
|
|
104
|
+
Done when each new unit has an environment change dispatched as its own unit, or a tracker note that none applies.
|
|
105
|
+
15. Run the **retro** technique (`references/techniques/retro.md`) on about one in five finished workers, the ones that failed, stalled, or needed a retry first, reading the worker's transcript (`history://<id>` in omp, or the harness's saved transcript / `.scratch/` run logs elsewhere). Decide which candidates to pursue yourself and dispatch them as units; file the rest.
|
|
106
|
+
Done when the tracker lists each sampled retro and marks each candidate it produced dispatched or filed.
|
|
107
|
+
16. A chunk too big for one PR goes through the Spec playbook (`references/playbooks/spec.md`), then Tickets (`references/playbooks/tickets.md`), then Phased build in build mode (`references/playbooks/phased-build.md`), with this playbook still owning the workers.
|
|
108
|
+
Done when the chunk has a spec, tickets, and an integration branch with an owner in the tracker.
|
|
109
|
+
17. Schedule the recurring work: a wiki lint (contradictions, orphan pages, missing links, claims newer sources overtook), a sweep of open PRs and issues, and checks on anything the goal depends on.
|
|
110
|
+
Use the harness's scheduler if it has one; otherwise a background heartbeat job as in Session scale step 3. Recurring work that should outlive this session goes in the final report as a proposed schedule (cron or Task Scheduler running `omp -p @<prompt file>`, or the harness's equivalent) for the user to enable.
|
|
111
|
+
Done when each recurring job is scheduled with its id in the tracker, or listed in the final report as a proposed schedule.
|
|
112
|
+
|
|
113
|
+
## Gates
|
|
114
|
+
|
|
115
|
+
Both scales:
|
|
116
|
+
- Stop only when the completion predicate is met (session scale step 1; at program scale, the goal's acceptance criteria), or on a genuine dead end (surface it rather than spin).
|
|
117
|
+
- Never relax the predicate to declare victory.
|
|
118
|
+
- Pace concurrency and token burn: set cost/iteration caps, pick tiers from benchmarks (`skill://agent-harnesses/references/delegation-efficiency.md`), switch to cheaper execution models at clean boundaries, pass paths instead of inline dumps, reuse warm workers, and on 429/quota limits back off or rotate model family rather than tight-looping retries.
|
|
119
|
+
- Don't park reversible work for the human or use `ask`. Decide product and design calls yourself and log them (SKILL.md Autonomy). Surface only irreversible actions outside the grant, what only the user can supply, unverified complex-domain customer specs (**sme-review** + **questionnaire**), sprint feedback checkpoints, or a real dead end.
|
|
120
|
+
- Push and open PRs as the work needs. Merges need a panel pass and go through `references/playbooks/shipping.md`.
|
|
121
|
+
|
|
122
|
+
Program scale also:
|
|
123
|
+
- Merging needs a **panel** pass (`references/techniques/panel.md`) at the current head plus a pr-review round on that head; landing goes through `references/playbooks/shipping.md`. A clean review never waives live proof, and a P2 doesn't block once it has a recorded dismissal.
|
|
124
|
+
- Ask the user (`ask`) only for a hard stop or a dead end that survived a replan. Rebase mechanics, retries, CI flakes, review triage, product calls, merges, and "should I keep going" never reach the user.
|
|
125
|
+
- Two failed retries on a unit → drop and replan, don't retry a third time.
|
|
126
|
+
|
|
127
|
+
## Evidence
|
|
128
|
+
|
|
129
|
+
Session scale:
|
|
130
|
+
- The exit condition and the check that evaluates it.
|
|
131
|
+
- Iterations run (trail link and `latest-summary.json`, including `scope` sprint/inventory/SME telemetry when a manifest is configured), what landed, what was discarded and why.
|
|
132
|
+
- Side fixes made and where they live.
|
|
133
|
+
- Final predicate state, shown by running the check.
|
|
134
|
+
|
|
135
|
+
Program scale:
|
|
136
|
+
- What landed against the goal.
|
|
137
|
+
- Each PR's live state and verdict, with its link and the pr-review technique's review line.
|
|
138
|
+
- Repeated pr-review finding classes routed to **correct**, and the guardrail each produced.
|
|
139
|
+
- Environment changes made on the strategic track, and the retros sampled with what each produced.
|
|
140
|
+
- The wiki's path and the pages added or superseded.
|
|
141
|
+
- What was dropped and why; parked follow-ups.
|
|
142
|
+
- Every worker accounted for.
|
|
143
|
+
- Decisions made on the user's behalf, each with how to reverse it; anything still waiting on the user.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Runtime Forensics
|
|
2
|
+
|
|
3
|
+
Use when: a live process misbehaves (spinning CPU, leak, visual glitch) and you need a cited diagnosis, not a fix. You own the diagnosis: instrument the live process, don't theorize from source. (Existing capture only → `references/playbooks/trace-forensics.md`.)
|
|
4
|
+
|
|
5
|
+
## Steps
|
|
6
|
+
1. Capture the live signal on the matching surface via the repo's `verify-<app>` skill (in `.omp/skills/`, `.claude/skills/`, or `.agents/skills/`); if none, use omp `eval` `browser`, Playwright/CDP, or bash: CPU profile for spinning, heap snapshot for a leak, CDP trace for a visual glitch.
|
|
7
|
+
Done when the artifact file exists at a recorded path.
|
|
8
|
+
2. Reduce the artifact to the smoking gun: hot-path function, retainer chain from leaked object to GC root, or loop firing without input.
|
|
9
|
+
Parse large artifacts in a `task` subagent (`references/principles/guard-the-context-window.md`); keep only the reduced finding in the main thread.
|
|
10
|
+
Done when the finding names one function, retainer chain, or loop, cited from the artifact.
|
|
11
|
+
3. Prove the mechanism cheaply: inject instrumentation via CDP eval into the running process, or hotfix live code without reloading. Done when the instrumented run shows the predicted effect.
|
|
12
|
+
4. Map the finding to source: file, symbol, the line that allocates or schedules. Done when you have a `file:line` and symbol.
|
|
13
|
+
5. Throughput checkpoint stays one line: `throughput checkpoint: n/a, read-only forensics`.
|
|
14
|
+
6. Hand back; once the cause is known route to `references/playbooks/bug-fix.md` or `references/playbooks/perf-issue.md`. Done when the report names the playbook that takes the fix.
|
|
15
|
+
|
|
16
|
+
## Gates
|
|
17
|
+
- A real captured artifact, not a guess.
|
|
18
|
+
- Mechanism proven at runtime before it's believed.
|
|
19
|
+
- No fix unless asked.
|
|
20
|
+
|
|
21
|
+
## Evidence
|
|
22
|
+
- Signal captured; reduced finding; how the mechanism was proven; source location; artifact paths.
|