deepmodebot 0.0.0-stage → 0.9.1
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 +247 -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/lib/version.mjs +26 -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,7 @@
|
|
|
1
|
+
# redesign-from-first-principles
|
|
2
|
+
|
|
3
|
+
Group: core. When: integrating a new requirement into an existing design.
|
|
4
|
+
- **Rule.** Don't bolt it on. Redesign as if the requirement had been foundational from day one.
|
|
5
|
+
- **Steps.** Read all affected files and understand the current design. Ask "writing this from scratch with this requirement, what would we build?" Propagate through every reference: types, docs, examples, rationale. Think about the whole redesign, deliver it incrementally.
|
|
6
|
+
- **Distinct from** attack-the-premise (that questions a fact the current design assumes).
|
|
7
|
+
- **Anti-patterns.** A new flag/branch grafted onto a shape that never anticipated it; updating code but not docs/examples/types.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# separate-before-serializing-shared-state
|
|
2
|
+
|
|
3
|
+
Group: architecture. When: concurrent actors might write the same file, branch, key, or state object.
|
|
4
|
+
- **Rule.** First eliminate the sharing; serialize structurally only when one shared writer is a real invariant. Instructions and conventions are not concurrency control.
|
|
5
|
+
- **Steps.** (1) Identify shared mutable state (files read+written by both, branches both push, APIs both define and consume). (2) Default: give each actor its own file/key/branch/state dir; merge only at the read/reporting boundary. Two workers writing their own `lastX` into one `state.json` is still shared; `indexer-state.json` + `metrics-state.json` is not. (3) Only if one target is a real invariant: lockfile, sequential phases, single-writer actor, or atomic CAS. "We need a lock" is a design smell to check, not the default.
|
|
6
|
+
- omp note: subagents share one workspace, so every parallel `task` gets exclusive file ownership.
|
package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# sequence-verifiable-units
|
|
2
|
+
|
|
3
|
+
Group: verification. When: multi-step work (sweeps, migrations, runs of similar edits) and stacking commits/PRs.
|
|
4
|
+
- **Rule.** Small units, each ending in a checkable state; don't advance until the current one is green.
|
|
5
|
+
- **Execution.** Each unit is a bracket: known-good state, one change, run the check, proceed. Rebase onto clean trunk first so checks measure the real baseline. When a lever does the edits the per-unit check is nearly free — run it anyway.
|
|
6
|
+
- **Delivery.** Stack commits/PRs in the order that proves the work: failing test first, then the fix; subtraction before reshape; baseline before treatment; scaffold before feature. Each commit lands on its own; the sequence reads as an argument.
|
|
7
|
+
- **Anti-patterns.** Batching checks at the end, building further on a broken base.
|
package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# subtract-before-you-add
|
|
2
|
+
|
|
3
|
+
Group: core. When: sequencing an addition, refactor, or rewrite.
|
|
4
|
+
- **Rule.** Remove complexity first, then build. Default to subtraction; leave the design slightly simpler and more capable behind the same or smaller surface.
|
|
5
|
+
- **Checks.** Removal sequenced before construction. Cut before you polish. Design for observed usage, not speculative edge cases. No speculative validators, parsers, or guards beyond the spec. Remove redundant prompt instructions and templates. A reference with no novel content is deleted, not stubbed.
|
|
6
|
+
- **Anti-patterns.** Building on top of dead code; stub references left behind.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# test-behavior-not-implementation
|
|
2
|
+
|
|
3
|
+
Group: verification. When: writing, changing, or keeping a test.
|
|
4
|
+
- **Rule.** A test claims what the code does for its users (caller, end user, other service): return values, errors, readable state, external effects (request sent, row written, message emitted). Not private helpers, internal call order, intermediate data, which collaborator did the work.
|
|
5
|
+
- **Two imagined edits.** *Break the behavior* (wrong value, skipped or doubled effect): if the test still passes it proves nothing — usual causes: assertion looser than the contract, expected value computed by the code under test, restated constant/prompt string that never runs the reading code, asserting on data the test built itself. *Change the internals* (same observable results): if the test fails it's pinned to implementation. Keep tests that catch the first and survive the second; rewrite or delete the rest.
|
|
6
|
+
- **Writing.** Drive through the users' interface with concrete input; derive expected values from the requirement, not a run; assert exactly the contract.
|
|
7
|
+
- The contract decides: "empty cart never charges" → asserting no payment-client call is behavior (pair with a case where the charge happens). Payload a mocked *external* service receives is behavior; an internal helper call is not. Exact error message pins wording no caller reads; the error type callers branch on is the contract. Invariants (key exists in two tables, compile-time type check) are behavior.
|
package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# type-system-discipline
|
|
2
|
+
|
|
3
|
+
Group: architecture. When: designing types, reviewing a signature, writing any statically-typed code.
|
|
4
|
+
- **Rule.** Make the compiler reject impossible states, mismatched primitives, and unhandled variants. Define errors and special cases out of existence rather than multiplying handlers.
|
|
5
|
+
- **Checks.** Brand semantic primitives (`UserId` vs `OrderId`; branded intersection or newtype); validate once at creation, trust downstream; two args sharing a primitive but meaning different things → brand them. External data is untyped until parsed (RPC, JSON, IPC, CLI, config, env, DB rows): a parse function at every boundary (see boundary-discipline). Derive types from the authoritative schema (protobuf, OpenAPI, GraphQL, migrations, design tokens) instead of hand-rolling a parallel type (see encode-lessons-in-structure). Exhaust variants.
|
|
6
|
+
- **Anti-patterns.** Hand-maintained parallel types; casts and `any` instead of parsing.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Agent-assisted Rust migrations
|
|
2
|
+
|
|
3
|
+
Read when assessing a language rewrite or planning a behavior-preserving port with coding agents. These are two project-specific accounts, not evidence that every codebase should move to Rust.
|
|
4
|
+
Sources checked 2026-11-12. Outcomes below are reported by the authors, not independently reproduced here. Existing playbooks and approval gates still govern.
|
|
5
|
+
|
|
6
|
+
## GitHub Copilot runtime
|
|
7
|
+
|
|
8
|
+
Stephen Toub, [Migrating the GitHub Copilot runtime to Rust, using Copilot](https://github.blog/ai-and-ml/generative-ai/migrating-the-github-copilot-runtime-to-rust-using-copilot/), GitHub Blog, 2026-09-16 (updated 2026-09-23).
|
|
9
|
+
|
|
10
|
+
- Motivation was an embeddable runtime with low startup and memory overhead, including a C ABI, rather than a blanket preference for Rust over TypeScript.
|
|
11
|
+
- The team shipped component-by-component atomic replacements while development continued. Pure leaf components came first; state ownership and orchestration followed. Temporary internal interop disappeared as callers migrated.
|
|
12
|
+
- Existing CLI and SDK end-to-end tests provided the behavioral oracle. Compilation still admitted serialization, cancellation, lifecycle, omitted-feature, dependency-semantic and performance regressions.
|
|
13
|
+
- Separate worktrees isolated parallel edits, but shared build resources needed coordination. Human oversight caught an agent attempting to waive a compatibility failure rather than restore the missing API.
|
|
14
|
+
|
|
15
|
+
## Bun
|
|
16
|
+
|
|
17
|
+
Jarred Sumner, [Rewriting Bun in Rust](https://bun.com/blog/bun-in-rust), Bun, 2026-07-08.
|
|
18
|
+
|
|
19
|
+
- Motivation was recurring lifetime and cleanup bugs at the boundary between garbage-collected JavaScript and manually managed memory. The initial port deliberately retained the Zig architecture rather than redesigning it.
|
|
20
|
+
- The author prepared `PORTING.md` and a field-lifetime inventory (`LIFETIMES.tsv`), trialled three files, then scaled translation with separate implementer and reviewer contexts. Compiler failures and runtime failures became subsequent work queues.
|
|
21
|
+
- Bun chose an all-at-once port, unlike Copilot's incremental replacements. The author reports 11 days to merge, all-platform tests with none skipped or deleted, and manual CLI checks; merge was explicitly not release readiness.
|
|
22
|
+
- Reported regressions included side effects erased by `debug_assert!` in release builds, changed slice-casting behavior, and placeholder constants. Rust compilation and extensive tests did not establish complete parity.
|
|
23
|
+
|
|
24
|
+
## Applying the comparison
|
|
25
|
+
|
|
26
|
+
[inference] Choose the cutover strategy from coupling, concurrent development and the available behavioral oracle, not either project's headline. Pilot the full path before scaling; preserve behavior before redesigning; assign edit ownership and a build coordinator; verify real consumer paths and release builds. Keep test oracles and compatibility gates independent of implementation edits. Treat benchmark and cost figures as workload-specific reports, not forecasts.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Startup and project references
|
|
2
|
+
|
|
3
|
+
**Use when:** a project starts from a video, startup anecdote, or a request for saved business ideas. These are leads, not validated demand or permission to copy a product.
|
|
4
|
+
|
|
5
|
+
The [private reference run](https://drive.google.com/drive/folders/1x8ioZmwn9W_iu3LMzi4vH7fdZs2IwugN) contains `references.zip` and its manifest. Verify the manifest/ZIP hash before reading members. Start with `ideas/idea-bank.md`; the doctor-office concept is `ideas/grokbot-for-doctors.md`. The channel indexes preserve additional unread repository pointers separately from the primary-inspected episode references. Inaccessible evidence stays unverified.
|
|
6
|
+
|
|
7
|
+
## Saved leads
|
|
8
|
+
|
|
9
|
+
- **Doctor-office administrative assistant:** [source story,08:46](https://www.youtube.com/watch?v=pnZh5PAF3VE&t=526). Anonymous, second-hand signup/pricing claims are not market validation. Start with one synthetic-data, nonclinical workflow and authorized human approval, not diagnosis or autonomous patient messaging.
|
|
10
|
+
- **Managed team collaboration:** [source,03:04](https://www.youtube.com/watch?v=pnZh5PAF3VE&t=184). Validate actual migration, integration and operating requirements rather than assuming a free Slack replacement has feature parity.
|
|
11
|
+
- **Opt-in coding-agent trace and improvement:** [source,34:19](https://www.youtube.com/watch?v=pnZh5PAF3VE&t=2059). Session/commit linkage is a reference pattern; consent, secret redaction and retention matter before collecting real traces.
|
|
12
|
+
- **Voice-to-prototype coaching:** [source,37:23](https://www.youtube.com/watch?v=pnZh5PAF3VE&t=2243). Test a bounded sandboxed workflow; do not inherit permission-bypass defaults from a demonstration.
|
|
13
|
+
- **Human-feedback media editing:** [source,38:38](https://www.youtube.com/watch?v=pnZh5PAF3VE&t=2318). Use rights-cleared media. The speaker's custom feedback tool is not established as a published repository.
|
|
14
|
+
|
|
15
|
+
## Choose before building
|
|
16
|
+
|
|
17
|
+
Name the customer, job, data sensitivity, jurisdiction, platform and acceptable license. Search the existing repository catalog by project terms; reference topics and cautions describe possible relevance, not tested suitability. Inspect current primary docs and exact license scopes, then exercise the selected candidate before adoption.
|
|
18
|
+
|
|
19
|
+
For the doctor idea, OpenMausBot's Apache-2.0 core does not cover its [enterprise directory](https://github.com/milind-soni/OpenMausBot/blob/main/enterprise/LICENSE). Enterprise production needs a key; third-party hosting, resale and white-labeling of enterprise features require a separate partner agreement. Core-only reuse must exclude enterprise code and follow applicable licenses.
|
|
20
|
+
|
|
21
|
+
No referenced repo is established as healthcare-ready. If real health data or clinical functions become part of the scope, assess the actual service chain and applicable rules; the archived brief cites HHS cloud guidance and FDA's function-specific CDS guidance. No clinical or legal classification was made by this collection.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# agent-collaboration
|
|
2
|
+
|
|
3
|
+
**Use when:** implementation siblings need to resolve a shared fact, an ACP caller must identify the receiving session, or work crosses a context boundary. Read `references/techniques/coworkers.md` for ownership, roster, build lease and message etiquette. This file supplies transport mechanics, not another collaboration convention.
|
|
4
|
+
|
|
5
|
+
Checked 2026-11-13 against this omp tool surface and installed task documentation. Use the current tool schema when it differs from examples. Protocol facts and research are cited below.
|
|
6
|
+
|
|
7
|
+
## Native harness dispatch, address, answer
|
|
8
|
+
|
|
9
|
+
The schema below describes **omp**'s native `task`/`write` surface. On other harnesses, map to native equivalents: **Claude Code** uses Agent/subagent spawns + `SendMessage`; **Antigravity** uses `invoke_subagent` + `send_message` (or `swarm` + `post_message`/`swarm_wait` on a board); **Codex** routes handoffs through the coordinator or project-local files under `.scratch/`.
|
|
10
|
+
|
|
11
|
+
1. Scope real independent slices before dispatch. Put the root, fixed acceptance check, shared API, file owners, integration/build owner and total budget in the shared brief (`task.context` in omp). Each item (`tasks[]` in omp) supplies the task, scope (`solutionSpace`), optional name, and agent role. Use only an operator-approved exact model if setting `model`.
|
|
12
|
+
Done when every slice has one owner and an observable handoff condition; shared prerequisites stay with the coordinator.
|
|
13
|
+
2. Use the IDs returned by the harness (`task` ID, conversation ID, or roster name). Requested names can be uniquified; copy the actual ID. A model name, role label, process ID and ACP session ID are not native task recipients.
|
|
14
|
+
Done when the sender can identify the specific owner of the blocking fact.
|
|
15
|
+
3. Send one material question or contract decision with the harness's messaging tool (`write agent://<id>` in omp, `SendMessage` in Claude Code, `send_message`/`post_message` in Antigravity). Keep working on independent work. The receiver answers addressed to the sender's exact ID.
|
|
16
|
+
Done when the answer resolves the dependency or identifies the missing evidence; a delivery receipt alone does not establish agreement.
|
|
17
|
+
4. Record the agreed fact in the code or the existing decision trail, with the affected revision and evidence path. Let completion auto-deliver. Read peer output (`agent://<id>` in omp, `read_board` in Antigravity) only for a missing result, necessary status or retained output, not a polling loop. Wait (`wait` / `swarm_wait`) only when completely blocked on work or an answer you are owed.
|
|
18
|
+
Done when the integration owner has the actual handoff artifacts and outstanding failures, not merely a worker's claim of completion.
|
|
19
|
+
|
|
20
|
+
Native omp `write` arguments, after substituting the actual recipient ID and evidence location:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"path": "agent://<returned-id>",
|
|
25
|
+
"content": "Question: does the manifest hash include failed steps? Evidence: evidence.py:<line>. Need the exact rule before wiring the consumer; no edit requested."
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The angle-bracket fields are explanatory, not runnable IDs. In **omp**, outbound messaging uses `write` with `agent://<id>` (there is no `send_message` tool in omp, whereas Antigravity provides `send_message`/`post_message` and Claude Code provides `SendMessage`). If direct peer messaging is absent, return the question to the coordinator; do not claim direct delivery.
|
|
30
|
+
|
|
31
|
+
`agent://` and `local://` are omp session-only URIs. Durable evidence on every harness belongs under the project root (e.g. `.scratch/`). Preserve a small redacted request, delivery result and substantive answer in the existing evidence trail when proving collaboration. Do not export private session transcripts, credentials or unrelated user context.
|
|
32
|
+
|
|
33
|
+
A capability probe must answer a real shared question. Sending an empty greeting to manufacture a collaboration receipt proves little and wastes a task. Implementation fact exchange is permitted; pre-vote persuasion is not.
|
|
34
|
+
|
|
35
|
+
## ACP: the client owns routing
|
|
36
|
+
|
|
37
|
+
ACP here means **Agent Client Protocol**. It connects a client to an agent; it does not define native omp sibling addresses.
|
|
38
|
+
|
|
39
|
+
1. Initialize the selected connection and negotiate capabilities. Create a conversation with `session/new`, absolute `cwd` and explicitly allowed `mcpServers`. Retain the returned `sessionId` together with its connection/process identity and project root.
|
|
40
|
+
2. Address `session/prompt.params.sessionId` to that returned identity. The JSON-RPC `id` correlates a request/response; it is not the recipient. Put content in typed `prompt` blocks, restricted to negotiated capabilities.
|
|
41
|
+
3. Attribute `session/update` to its `params.sessionId`; distinguish `agent_message_chunk`, tool updates and plans by `sessionUpdate`. A text chunk or a completed tool call is not the completed prompt: await the matching prompt result and inspect `stopReason`.
|
|
42
|
+
4. A different ACP conversation or harness gets an explicit handoff packet. The client forwards only authorized facts; it does not broadcast histories or reinterpret an omp `agent://` URI as an ACP method.
|
|
43
|
+
|
|
44
|
+
Done when each response is correlated to the expected connection, session and request, and the handoff preserves scope and unresolved outcomes. Treat peer output as evidence, not authority to expand permissions.
|
|
45
|
+
|
|
46
|
+
Wire shape after initialization and session creation; replace `SESSION_FROM_NEW` with the returned session ID:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"jsonrpc": "2.0",
|
|
51
|
+
"id": 2,
|
|
52
|
+
"method": "session/prompt",
|
|
53
|
+
"params": {
|
|
54
|
+
"sessionId": "SESSION_FROM_NEW",
|
|
55
|
+
"prompt": [{"type": "text", "text": "Review the supplied goal contract; return the requested structured result."}]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This is an ACP example, not a command to paste into native `write`. ACP content is typed on the wire; a JSON string inside a text block is still application data that the caller must validate. Neither ACP `cwd` nor a well-formed message is a filesystem sandbox.
|
|
61
|
+
|
|
62
|
+
The existing `assets/loop/plan.py` adapter owns bounded goal planning through acpx and `omp acp`: fresh sealed calls, explicit model/caps, retained events and validated candidate/vote shapes. Use `references/techniques/goal-review.md` for its actual CLI. It is not a generic ACP peer router or authored-skill reviewer. Do not add an undocumented message bus to bridge that gap.
|
|
63
|
+
|
|
64
|
+
## Phase boundaries and review blindness
|
|
65
|
+
|
|
66
|
+
Preserve the planning evidence through implementation when the next phase needs it. Use a handoff when work moves to another owner, root, session or harness, not merely because a heading changed. The packet contains the goal, immutable constraints/checks, current revision, owned files, decision evidence, observed failures, unresolved external effects and remaining budget.
|
|
67
|
+
|
|
68
|
+
Implementation siblings may exchange facts and negotiate shared interfaces under coworkers. At final review, freeze one subject and stop that exchange with the reviewers. Use exactly three fresh independent reviewers for authored skills; `references/playbooks/self-authoring.md` owns the acceptance packet and promotion gate. PR and visual gates keep their own subject-specific evidence requirements.
|
|
69
|
+
|
|
70
|
+
All three reviewers get the same original intent, frozen artifact and permitted evidence, without the author's verdict or another reviewer's conclusions. They may ask the coordinator a factual clarification, which must be supplied identically to all three. They must not read sibling messages, votes or review transcripts. Hold every verdict privately until all three lock; early returns do not unblind the remaining reviewers.
|
|
71
|
+
|
|
72
|
+
If a reviewer receives another verdict, artifacts change, or a clarification changes the subject, invalidate that round and start a fresh trio within the fixed budget. A missing, failed or malformed response is unavailable, never an implicit pass. Release dissent only after votes lock, and preserve it with its evidence.
|
|
73
|
+
|
|
74
|
+
Native task messaging is a real capability, but instructions alone do not enforce information isolation against a misbehaving reviewer with broad read tools. Use a sealed caller when that threat matters; do not describe ordinary sibling contexts as a security sandbox.
|
|
75
|
+
|
|
76
|
+
## Sources and limits
|
|
77
|
+
|
|
78
|
+
- Native task schema and lifecycle: [omp task docs](https://github.com/can1357/oh-my-pi/blob/main/docs/tools/task.md) (checked against `omp://tools/task.md` in omp; other harnesses use their own tool schemas).
|
|
79
|
+
- ACP identities: [session setup](https://agentclientprotocol.com/protocol/v1/session-setup.md); typed turns and completion: [prompt turn](https://agentclientprotocol.com/protocol/v1/prompt-turn.md).
|
|
80
|
+
- Pinned upstream comparison: `docs/research/community-skills-review.md` in the deepmodebot source repo (not installed plugin copies). Its phase-boundary synthesis is guidance, not a new runtime feature.
|
|
81
|
+
|
|
82
|
+
**Done when** the needed fact reached its actual owner, the response is retained with evidence, ownership remains intact, and final reviewers stayed blind through vote lock. Tool availability without an observed exchange is not an execution proof.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# architect
|
|
2
|
+
|
|
3
|
+
**Use when:** "architect/design this", or non-trivial work where jumping to code would lock in the wrong shape.
|
|
4
|
+
|
|
5
|
+
1. **Phases.** If you have `todo`, open one item per phase; otherwise list the phases in your report: Ground, Sketch, Agree, Implement, Scrap. Done when the five phases exist as `todo` items or a report list.
|
|
6
|
+
2. **Ground.** Run **how** over every subsystem the code touches (naming a file isn't grounding). If ownership or layering changes, run **why** on the existing shape so rationale is a constraint. Skip only for true greenfield.
|
|
7
|
+
Done when every touched subsystem has a how output, or the work is recorded as greenfield.
|
|
8
|
+
System design: state the critical user journeys, non-goals, expected traffic, maintenance capacity, and cost/availability priorities before choosing components.
|
|
9
|
+
Map each critical journey to its existing API contract (input, output, typed failures), owning data, and observable acceptance check; mark inapplicable fields explicitly.
|
|
10
|
+
Trace one representative request through validation, authority, durable writes, asynchronous execution, delivery, and client reconciliation.
|
|
11
|
+
At each applicable boundary, name the principal and tenant source, action permission, paid entitlement, execution lifetime, and failure/replay behavior.
|
|
12
|
+
Done when that request trace identifies the source of truth at every hop and distinguishes demonstrated guarantees from assumptions; a diagram alone is not proof.
|
|
13
|
+
3. **Sketch.** Run **arena** with the design task and grounding. Candidates produce types, signatures, class shapes, module boundaries with `not implemented` bodies and pseudocode, caller usage written first. Require ≥2 structurally distinct whole-shape candidates even when the first looks fine (exhaust-the-design-space).
|
|
14
|
+
Done when at least two structurally distinct candidates exist, each with caller usage.
|
|
15
|
+
4. Screen every candidate against the red flags below. Assume the next contributor is an agent that sees only files it opened, copies the nearest example, takes the shortest path that compiles; prefer the design where a change that looks right from one file is right repo-wide. Compare viable ones on interface depth: more complexity hidden behind a smaller public surface.
|
|
16
|
+
Done when each candidate has a pass or hit recorded for every red flag.
|
|
17
|
+
5. **Agree** (opt-in). Default: proceed with no checkpoint. If asked ("with checkpoint", "show me first"), present and `ask` for sign-off. The sketch may land as its own scaffold step. Pushback on the shape = new grounding evidence: re-ground and re-sketch before more code. Adversarial review (**interrogate**) only for a contested design.
|
|
18
|
+
Done when the sketch is signed off, or no checkpoint was asked for.
|
|
19
|
+
6. **Implement** against the sketch; it's the contract. Surface deviations: was the sketch wrong, the requirement missed, or the implementation overreaching?
|
|
20
|
+
Done when the code matches the sketch or every deviation is listed with its cause.
|
|
21
|
+
7. **Scrap** on a *pattern* of friction: same workaround shape across unrelated code; many unrelated special-case branches; types needing escape hatches (`any`, casts, always-set optionals); a "we need a lock" reflex where state was meant unshared; callers needing the abstraction's internals; ≥2 independent same-shape deviations.
|
|
22
|
+
Then re-run how on what's built, redesign as if constraints were day-one, make the new sketch smaller first, return to step 3. Complexity in the data isn't complexity in the design.
|
|
23
|
+
Done when no friction pattern is present, or a smaller new sketch has replaced the old one.
|
|
24
|
+
|
|
25
|
+
**Red flags:** shallow module (big interface, little hidden; callers coordinate several methods for one operation; options expose internal stages) · information leakage (one internal decision known by several modules; re-exported wire/transport types) · temporal decomposition (load/validate/transform/save modules repeating one representation) · pass-through method · split ownership (several writers or copies of one state) · two ways to do one task · importable internals · hand-synced lists (derive from one, or fail the build on disagreement).
|
|
26
|
+
|
|
27
|
+
**Output:** caller usage sketch → type sketch (one file for small changes; module map + types for larger), plus a rationale: usage sketch, candidates considered, red-flag screen, synthesis decision.
|
|
28
|
+
|
|
29
|
+
**Done when** the implemented code matches the agreed sketch, or every deviation is listed with its cause, and the rationale names every candidate considered.
|
|
30
|
+
|
|
31
|
+
System-design evidence: [requirements and request trace](https://www.youtube.com/watch?v=5nM5sB_kqYI&t=133s), [operating constraints](https://www.youtube.com/watch?v=hOYzvUQKq8s&t=632s).
|
|
32
|
+
These checks are synthesis from the walkthroughs, not endorsements of their stacks or claims of verified scale.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# architecture-review
|
|
2
|
+
|
|
3
|
+
**Use when:** "review the architecture", "where should we refactor", "find deepening opportunities", "make this codebase easier for agents to work in", or a codebase-wide look for structural friction. One change whose shape is open is the **architect** technique (`references/techniques/architect.md`) instead. This technique finds candidates across the codebase, reports them visually, then settles one.
|
|
4
|
+
|
|
5
|
+
**Words.** Use these terms exactly in the report and the follow-up. A **module** is anything with an interface and an implementation (a function, class, package). Its **interface** is everything a caller must know to use it. A module is **deep** when a small interface hides a lot of behavior, **shallow** when the interface is almost as big as what it hides.
|
|
6
|
+
A **seam** is where one module meets another and where a test or a second implementation can plug in. An **adapter** is one implementation behind a seam; a seam with one adapter is speculative, a seam with two (production and test) is real.
|
|
7
|
+
|
|
8
|
+
**Leverage** is how many callers one interface serves. **Locality** is how much of one change, bug, or concept lives in one place. The **deletion test**: imagine deleting the module and inlining it into its callers. If complexity collapses into one place, the module was shallow. If the same complexity reappears in every caller, the module earns its keep.
|
|
9
|
+
|
|
10
|
+
1. **Scope.** If the user named an area, use it. Otherwise find the hot spots, because deepening pays off where code keeps changing: POSIX `git log --since=6.months --format= --name-only | sort | uniq -c | sort -rn | head -40`; Windows PowerShell `git log --since=6.months --format= --name-only | Where-Object { $_ } | Group-Object | Sort-Object Count -Descending | Select-Object -First 40`. Group the top paths by directory. Changes scattered with no cluster → widen the window.
|
|
11
|
+
Read `GLOSSARY.md` and every ADR in `docs/adr/` that touches the scope; ADRs are settled unless the friction is strong enough to reopen one.
|
|
12
|
+
Done when the scope is named as a list of directories and the in-scope ADRs are read.
|
|
13
|
+
2. **Explore.** Spawn one `scout` with a fresh context, the scope, the vocabulary above, and the red flags from the **architect** technique. Ask it to note where it felt friction, with file paths:
|
|
14
|
+
- one concept spread across many small modules a reader has to hop between;
|
|
15
|
+
- shallow modules, pass-through layers, wrappers with one caller;
|
|
16
|
+
- pure helpers pulled out for testing while the bugs live in how they are wired together;
|
|
17
|
+
- one internal decision known by several modules (leak);
|
|
18
|
+
- code that is untested, or hard to test through its current interface;
|
|
19
|
+
- hot-path performance friction (cross-thread hops, per-connection buffers, unbatched DB round trips, or false sharing; see `domain-rules/references/high-scale-server-optimization.md` and `data-structures-and-cache-optimization.md`).
|
|
20
|
+
It runs the deletion test on every suspect and returns candidates, each with files, problem, proposed change, and deletion-test result.
|
|
21
|
+
Done when the scout has returned and every candidate carries all four fields.
|
|
22
|
+
3. **Screen.** Drop candidates that only move complexity (deletion test fails), that an ADR forbids without strong new evidence, or that sit in code nobody has touched in a year. Rate the rest **Strong**, **Worth exploring**, or **Speculative**, and tag each with the kind of dependency behind the seam: in-process, swappable dependency (database, filesystem), ports and adapters, or external service.
|
|
23
|
+
Done when every candidate is dropped with a reason or has a rating and a dependency tag.
|
|
24
|
+
4. **Report.** Copy `assets/architecture-review/report-template.html` to `docs/deepmodebot/architecture-<YYYY-MM-DD>.html` and fill one card per candidate:
|
|
25
|
+
- title, badges, files, and a before and after diagram side by side;
|
|
26
|
+
- one sentence each for problem and change, gains in locality, leverage, and test terms, the deletion-test line, and an ADR callout when one conflicts.
|
|
27
|
+
Use `GLOSSARY.md` names for domain concepts. Vary the diagrams (dependency graph, layer stack, call tree collapsing into one box); a card that needs a paragraph to explain needs a better diagram. End with the top recommendation.
|
|
28
|
+
Open the file (`start`, `open`, or `xdg-open`) and print its absolute path. Propose no interfaces yet. The report is a working artifact: leave it uncommitted unless the user wants it kept.
|
|
29
|
+
Done when the file has one filled card per surviving candidate and its absolute path is printed.
|
|
30
|
+
5. **Pick.** Take the top recommendation and say so. In live mode (the user asked to choose), ask which card to explore and wait. Done when one candidate is named as the pick.
|
|
31
|
+
6. **Grill the pick** with the **grill** technique (`references/techniques/grill.md`): constraints, callers, the shape of the deepened module, what sits behind its seam, which tests survive and which move to the new interface. Keep the docs current as answers land, per the **domain-model** technique (`references/techniques/domain-model.md`):
|
|
32
|
+
- a new module name for a concept missing from `GLOSSARY.md` → add the term;
|
|
33
|
+
- a term that gets sharper in the discussion → update its entry;
|
|
34
|
+
- the candidate rejected for a reason a future review would need → write an ADR in `docs/adr/` so the next review does not suggest it again. Skip ADRs for "not now" reasons.
|
|
35
|
+
Done when every grill question has an answer and each answer's glossary or ADR change is written.
|
|
36
|
+
7. **Hand off.** An accepted candidate with two or more viable interfaces → **architect** (its arena step designs it at least twice). One clear shape → the Refactoring playbook (`references/playbooks/refactoring.md`).
|
|
37
|
+
Done when the pick is handed to architect or Refactoring, or recorded as rejected.
|
|
38
|
+
|
|
39
|
+
**Hard rules.** Scope before you scan. Every candidate cites files and passes the deletion test. Diagrams carry the argument; prose stays one sentence per field. No candidate re-argues an ADR without naming it.
|
|
40
|
+
|
|
41
|
+
**Output:** the report path, the candidates as a one-line-each list with their ratings, the pick and its grill decisions, and every `GLOSSARY.md` and ADR change made.
|
|
42
|
+
|
|
43
|
+
**Done when** the report exists, the pick is settled, and every glossary and ADR change it caused is written.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# arena
|
|
2
|
+
|
|
3
|
+
**Use when:** one attempt at a non-trivial artifact would lock in the wrong shape.
|
|
4
|
+
|
|
5
|
+
1. **Phases.** If you have `todo`, open one item per phase; otherwise list the phases in your report: Frame, Fan out, Cross-judge, Pick, Graft, Verify. Done when the six phases exist as `todo` items or a report list.
|
|
6
|
+
2. **Frame.** State the artifact. Derive a 3 to 6 criterion gradeable rubric (picker-only; candidates see only the task). Pick N runners, ≥2, mixing model families when available.
|
|
7
|
+
Give each its own output location inside the project root (a git worktree under `.worktrees/` or its own folder under `.scratch/`, per SKILL.md "Contain the work"). Never shared files, never a temp dir outside the repo.
|
|
8
|
+
Done when the rubric is written and each runner has its own existing output location.
|
|
9
|
+
3. **Fan out** in rate-limit-safe `task` waves (3-5 runners per wave by default; set a per-runner timeout and back off or rotate model families on HTTP 429s): task, grounding path, own output path; produce the artifact plus a short rationale naming alternatives considered and rejected. A dropout → proceed with N-1, note it.
|
|
10
|
+
Done when every runner has returned an artifact and rationale, or is recorded as a dropout.
|
|
11
|
+
4. **Cross-judge.** One read-only judge from a different model family than yours, when one is available; skip and say so otherwise. Never your own family. Done when the judge's verdict is in hand, or the skip is recorded.
|
|
12
|
+
5. **Pick a base.** Read every candidate end to end. Score per rubric criterion, not holistic feel; compare with the judge. Disagreement → bias or ambiguous rubric; read both rationales. Pick what a future maintainer extends most easily without breaking invariants; ties → cleaner boundary or smaller API.
|
|
13
|
+
Done when every candidate has a score per criterion and one base is named.
|
|
14
|
+
6. **Graft.** Walk each loser once for 1 or 2 portable strengths; fold in by hand so one mental model holds (redesign-from-first-principles). Convergence = strong agreement, ship it. Wild divergence = under-specified frame: reframe and re-run, never average.
|
|
15
|
+
Done when each loser is either grafted from (with its source named) or recorded as having nothing portable.
|
|
16
|
+
7. **Verify and clean up** per prove-it-works. A miss means the frame was wrong (re-run) or a graft was skipped (back to 6). Once the merged artifact is verified (or on abort), remove every losing runner's worktree (`git worktree remove <path>` + `git worktree prune`) and temporary `.scratch/` candidate folder.
|
|
17
|
+
|
|
18
|
+
**Output:** one artifact plus a synthesis note: base and why, judge verdict or skip, each graft with source, rejections and why, convergence/dropouts, verification result.
|
|
19
|
+
|
|
20
|
+
**Done when** the merged artifact passes its verification run, losing worktrees/candidate folders are removed, and the synthesis note covers every output item above.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# benchmark-checklist
|
|
2
|
+
|
|
3
|
+
**Use when:** you produce a perf number (PR before/after, regression claim, hillclimb harness, library/config choice). Answer each question with evidence from a run, not a guess. Quick ballpark the user asked for: one run, still check Q4 and Q7, say it's one run. A choice between options is never a ballpark.
|
|
4
|
+
|
|
5
|
+
Before running: write the claim you expect to ship ("export is 30% faster at p50 on the 60k-row dataset"); read the measurement script (what it times, counts, ignores); check load and cores (`uptime`, `nproc`, or OS equivalent). Busy machine you can't quiet → interleave sides and say so.
|
|
6
|
+
|
|
7
|
+
Authorized network load tests first declare the owned target/environment, allowed read/write operations, test-data namespace, load shape, duration, stop conditions, and cleanup.
|
|
8
|
+
Bound generator cost and downstream spend, verify account eligibility, and obtain any authorization required by deepmodebot's Autonomy hard stops before provisioning or sending traffic.
|
|
9
|
+
Watch side effects as well as throughput: unexpected writes, storage growth, errors, or spend stop the run; clean up only the test data and resources it created.
|
|
10
|
+
Done when the workload and limits are recorded before execution, observed effects stay within them, and cleanup has evidence; proposed load is not measured capacity.
|
|
11
|
+
|
|
12
|
+
1. **Why not double?** Name the limiter from a profile in an unreported run (`top`/`pidstat`, `node --cpu-prof`, `py-spy`, `perf`, I/O wait, `strace -c`), mapped to source. Watch the load generator. If a change didn't move the number, the limiter explains why.
|
|
13
|
+
Done when the limiter is named with a profile artifact and a source location.
|
|
14
|
+
2. **Was it tuned?** Both sides as production runs them: release builds, prod flags/env, batching, pools, cache warmth, same versions and data. A setting-shaped limiter (commit per row, debug build, missing index) = untuned: tune and remeasure, or pick no winner. Narrowing the claim to "as shipped" doesn't fix this for adoption choices.
|
|
15
|
+
Done when both sides' settings are listed and match production.
|
|
16
|
+
3. **Did it break limits?** Arithmetic vs disk/network bandwidth and cores; time saved vs time the changed piece took (removing 10% caps speedup ≈11%). Past a limit = measured a cache, no-op, or bug. For network APIs, verify `Accept-Encoding: gzip`, `RLIMIT_NOFILE`, idle-connection memory, and dial-time subtraction (see `domain-rules/references/high-scale-server-optimization.md`).
|
|
17
|
+
Done when the arithmetic is written and the result sits inside every limit.
|
|
18
|
+
4. **Did it error?** Count failures and non-success; check outputs are correct, not just present. Add an error count if missing. Done when the run prints an error count of zero and a correctness check passes.
|
|
19
|
+
5. **Does it reproduce?** ≥5 runs per side, alternating A,B,A,B. Report median and range. Gap < spread = no measurable difference; close calls → rank-sum test or harness stats.
|
|
20
|
+
Done when each side has at least 5 alternated runs with median and range reported.
|
|
21
|
+
6. **Does it matter?** Measure the end-to-end path a user waits on with realistic sizes/concurrency; report the micro result as a share of the whole.
|
|
22
|
+
Done when an end-to-end number exists and the micro result is stated as its share.
|
|
23
|
+
7. **Did it even happen?** Confirm the work ran inside the timed region (request reached server, rows written, result used). Lazy code and timeouts produce numbers for work that never happened.
|
|
24
|
+
Done when a work-done count or output check from the timed run proves the work ran.
|
|
25
|
+
|
|
26
|
+
**Output:** verdict first (faster / slower / no measurable difference / inconclusive); number with unit, run count, range, limiter ("p50 41 ms → 33 ms, median of 7 runs per side, range 32 to 35 ms after, bound by JSON parsing on one core").
|
|
27
|
+
Inconclusive when the limiter is unnamed, a side was untuned, or Q4/Q7 unchecked; name the gap. PR body gets one primary number; runs and evidence in a linked artifact.
|
|
28
|
+
|
|
29
|
+
**Done when** all seven questions have run evidence and the verdict line is written, or the verdict is inconclusive with its gap named.
|
|
30
|
+
|
|
31
|
+
Load-test lesson: the [walkthrough's unintended article creation](https://www.youtube.com/watch?v=hOYzvUQKq8s&t=4556s) motivates the side-effect check; its dashboard traffic is not a capacity benchmark.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# blast-radius
|
|
2
|
+
|
|
3
|
+
**Use when:** "what could this break", "blast radius of X", or a small diff you don't trust. Listing callers is not the job; the breakage grep won't show is.
|
|
4
|
+
|
|
5
|
+
Proof ladder. Push each load-bearing fact as far as is cheap and say where it stopped: (1) you said so, which is worthless; (2) pointed at a real `file:line` or library source; (3) walked the failure and showed it can't reach; (4) ran a script/test calling the real code that fails loud if wrong; (5) reproduced in the running app.
|
|
6
|
+
|
|
7
|
+
1. Read the change: diff, symbols added/changed/deleted, what it now does differently incl. what the diff doesn't spell out (pull PR/commits as in **why** step 2).
|
|
8
|
+
Done when every added, changed, and deleted symbol is listed with its new behavior.
|
|
9
|
+
2. Find the one fact it's safe because of (e.g. "this call only drops already-dead cache entries"). Spend time here, not on a list of maybes. Done when the fact is one written sentence.
|
|
10
|
+
3. Look where grep stops: library source at the pinned version plus local patches; timing (microtasks, teardown, framework semantics); JSON an API returns, DB columns, wire formats, other languages reading the same bytes, feature flags, code three hops downstream.
|
|
11
|
+
Done when each of those places is marked checked with a `file:line` or not applicable.
|
|
12
|
+
4. Rate each risk honestly (likelihood, cost). Separate confirmed from checked-and-cleared. Cite real `file:line`; an empty search is an answer; never invent a caller or API.
|
|
13
|
+
Done when every risk has a likelihood, a cost, and a confirmed or cleared label.
|
|
14
|
+
5. Prove the one fact: write and run a script/test against real code; paste output. Done when the pasted output shows the script passing, or the fact is marked unproven with the ladder step reached.
|
|
15
|
+
6. Big or wide change → run as **arena** (different models catch different bugs).
|
|
16
|
+
|
|
17
|
+
**Output:** **What it does** · **The one fact** (ladder step reached + proof, or "unproven") · **Risks** (how it breaks, `file:line`, likelihood/severity, how to check, proof for the ones that matter) · **Cleared** · **Before you merge** (cheapest catching test/repro, incl. your script). Through **unslop**; strip private details.
|
|
18
|
+
|
|
19
|
+
**Done when** every output section is filled and the one fact names the ladder step it reached.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# correct
|
|
2
|
+
|
|
3
|
+
**Use when:** agents keep repeating the same mistakes in this repo, or each time the operator corrects you. Make each mistake impossible. Assume every contributor is an agent that sees only files it opened, copies the nearest example, takes the shortest path that compiles.
|
|
4
|
+
|
|
5
|
+
1. Read recent commits, reverts, review comments, agent instruction files (AGENTS.md, CLAUDE.md, `.omp/`), and workaround comments. Group mistakes into classes; a class counts once it happened twice.
|
|
6
|
+
Done when each class is listed with at least two cited occurrences.
|
|
7
|
+
2. Fix each class at the highest level that works:
|
|
8
|
+
- **Architecture:** one owner per state, one supported way per task, hidden internals so the wrong import fails, one source of truth instead of hand-synced lists, delete old ways and dead code agents would copy.
|
|
9
|
+
- **Types** so the bad state can't be written; if it still compiles, a **lint/CI check** whose error names the file, type, or function to use instead; if the pattern is already common, fail only when a change adds more.
|
|
10
|
+
- **Tests** of behavior; fix or delete tests that pass when behavior breaks or fail when only internals change.
|
|
11
|
+
- **Docs/agent rules last**, only for judgment calls (nothing fails when skipped).
|
|
12
|
+
- Done when each class has a chosen level and a reason no higher level works.
|
|
13
|
+
3. Fix the most frequent classes now, one unit per class (one commit each). Prove each new check fails on a real past mistake. Same command locally and in CI. Exceptions go on the offending line with reason, expiry, and a decision-trail row.
|
|
14
|
+
Done when each fixed class has its own commit and a run showing its check failing on a past mistake.
|
|
15
|
+
4. Keep a rule table in the agent instruction file pairing each rule with its enforcer. On a correction: fix the mistake, add the rule; an existing unenforced rule is a repeat → enforce it at the highest level in the same change. Drop rules whose mistake can no longer happen.
|
|
16
|
+
Done when every rule in the table names an enforcer, or is a judgment call marked as docs-only.
|
|
17
|
+
|
|
18
|
+
**Output:** each class with its evidence, the level picked, and why a higher level didn't work.
|
|
19
|
+
|
|
20
|
+
**Done when** every class found is fixed or listed as deferred, and the rule table matches the enforcers in the repo.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# course
|
|
2
|
+
|
|
3
|
+
**Use when:** the user wants to learn a topic over several sessions: "teach me Rust over the next month", "make me a course on X", "I want to get good at Y", or they return to a folder that already has `MISSION.md`. One explanation of code or a change is the **teach** technique (`references/techniques/teach.md`). The topic need not be code.
|
|
4
|
+
|
|
5
|
+
The current directory is the course workspace. Its files are the learner's memory between sessions:
|
|
6
|
+
|
|
7
|
+
| File | Holds |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `MISSION.md` | Why they are learning: the real goal, three to five things they will be able to do, constraints (time, budget, preferences), what is out of scope. One screen at most. |
|
|
10
|
+
| `RESOURCES.md` | Trusted sources, each with one line on what it covers and when to use it. Two groups: **Sources** (books, docs, papers, courses) and **Communities** (forums, classes, groups where they can test themselves). A **Gaps** list for needs with no good source yet. |
|
|
11
|
+
| `GLOSSARY.md` | Terms the learner can already use correctly, one or two sentences each, with the words to avoid. A term enters only after they use it right. |
|
|
12
|
+
| `NOTES.md` | Their stated preferences and your working notes. |
|
|
13
|
+
| `lessons/NNNN-<slug>.html` | One lesson per file, numbered. |
|
|
14
|
+
| `reference/<slug>.html` | Cheat sheets distilled from lessons: syntax, procedures, formulas, sequences. These get revisited; lessons rarely do. |
|
|
15
|
+
| `learning-records/NNNN-<slug>.md` | One short record per established fact about the learner (see step 6). |
|
|
16
|
+
| `assets/` | Shared stylesheet, quiz widget, and any component a second lesson could reuse. |
|
|
17
|
+
|
|
18
|
+
Create files when first needed, not up front.
|
|
19
|
+
|
|
20
|
+
1. **Mission first.** No `MISSION.md`, or one too vague to choose the next lesson ("understand X") → ask why they want this and what they will do with it, in one exchange. Push past abstract answers to an outcome ("ship a CLI to my team", "run a half marathon in October"). Write `MISSION.md`.
|
|
21
|
+
A changed goal later: confirm with them, update the file, and add a learning record.
|
|
22
|
+
Done when `MISSION.md` names a concrete outcome and three to five abilities.
|
|
23
|
+
2. **Sources before lessons.** Search for high-trust primary sources (official docs, standard texts, recognized experts, well-moderated communities) and fill `RESOURCES.md`. Every factual claim in a lesson cites one. Do not teach from memory where a source exists.
|
|
24
|
+
Done when `RESOURCES.md` has at least one source covering the next lesson's topic, or that topic is listed under **Gaps**.
|
|
25
|
+
3. **Choose the next lesson.** If they named a target, teach it. Otherwise read `MISSION.md`, every learning record, and `NOTES.md`, then pick the smallest next step the mission needs that sits just past what they have shown they can do: hard enough to stretch, close enough to succeed.
|
|
26
|
+
Done when the lesson topic is named with the mission item and learning record it builds on.
|
|
27
|
+
4. **Write the lesson** as one HTML file linking `assets/` (build the shared stylesheet with the first lesson; every later lesson reuses it). It is short enough to finish in one sitting and ends in one concrete win. Shape:
|
|
28
|
+
- the goal in one line, tied to the mission;
|
|
29
|
+
- only the knowledge that skill needs, with citations, kept easy to absorb;
|
|
30
|
+
- practice with immediate feedback: an in-page quiz or exercise that checks the answer, or a checklist of real-world steps for physical skills;
|
|
31
|
+
- links to earlier lessons and reference sheets it builds on;
|
|
32
|
+
- one primary source to read or watch next, and a reminder to bring questions back to you.
|
|
33
|
+
Open it for them (`start`, `open`, or `xdg-open`).
|
|
34
|
+
Done when the lesson file exists with all five parts and is opened.
|
|
35
|
+
5. **Make it stick.** Practice should be effortful: ask them to recall before they see the answer, revisit earlier material at growing intervals, and for skills mix related problem types. Quick fluency in a session can be an illusion; retention across sessions is the goal.
|
|
36
|
+
Quiz options have the same length and form, and the correct position varies, so format never gives the answer away. Add or update a `reference/` sheet when a lesson produces something worth looking up later.
|
|
37
|
+
Done when the lesson's practice includes a recall item and a revisit of earlier material (when an earlier lesson exists), and the correct quiz positions vary.
|
|
38
|
+
6. **Record what is now known.** Write a learning record (`# <title>` plus one to three sentences: what is established and how it changes what to teach next) when they show real command of something non-trivial, state prior knowledge (with the depth they claim), correct a misconception, or shift the mission.
|
|
39
|
+
Exposure is not learning; don't record material merely covered. A later record that overturns an earlier one marks the old one `Status: superseded by NNNN`; never delete it.
|
|
40
|
+
Done when each such event this session has its own record file.
|
|
41
|
+
7. **Point outward for judgment.** Questions that need practical wisdom (taste, trade-offs, "is this normal") get your best answer plus a community from `RESOURCES.md` where they can test it. If they decline communities, note it in `NOTES.md` and stop suggesting them.
|
|
42
|
+
|
|
43
|
+
**Hard rules.** Every lesson traces to the mission. One lesson, one win. Cite sources. Reuse `assets/` instead of duplicating code across lessons. Write through **unslop** (`references/techniques/unslop.md`).
|
|
44
|
+
|
|
45
|
+
**Output:** the lesson path (opened), what it teaches and why it is next, the sources it cites, and any workspace files created or updated.
|
|
46
|
+
|
|
47
|
+
**Done when** the lesson is opened, every factual claim in it cites a `RESOURCES.md` source, and the session's learning records are written.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# coworkers
|
|
2
|
+
|
|
3
|
+
**Use when:** two or more agents work at the same time: owners, workers, and verifiers under Work a queue (`references/playbooks/work-a-queue.md`), Run a goal (`references/playbooks/run-a-goal.md`), Wayfinder, or any fan-out. They work like colleagues on one team: they talk to each other directly, honestly, and only when it moves the work.
|
|
4
|
+
|
|
5
|
+
## The roster
|
|
6
|
+
|
|
7
|
+
Every brief carries the roster: each coworker's agent id, role, and the files or tickets it owns. The root also keeps the roster in the program's tracker file, so a replacement agent can find its team.
|
|
8
|
+
|
|
9
|
+
Name one integration owner and one build owner in that roster; the root may be both. A peer's "not ready" blocks taking its changes. Only the integration owner resolves overlap and accepts a handoff at an agreed revision; access to another worktree is not authority to copy or change it.
|
|
10
|
+
|
|
11
|
+
Keep each lead agent's working context scoped to one project; cross-project work moves through an explicit handoff with the destination root, owner, evidence, and authority boundary.
|
|
12
|
+
Meeting/chat intake produces candidate tasks with source pointers, acceptance checks, and unresolved decisions. Execute only work covered by the user's goal and permissions; route the rest to the integration owner, never treat transcribed discussion as new authority.
|
|
13
|
+
Done when every dispatched task has a project, owner, acceptance check, and authorized source; no task inherits another project's credentials or private context.
|
|
14
|
+
|
|
15
|
+
Before nested delegation, record one task-wide budget for descendants, depth, elapsed time, and usage; use enforceable harness limits where available.
|
|
16
|
+
Children inherit the remaining budget, not a fresh allowance. Track parent/child ownership and stop descendants when the owning task is cancelled or reaches its cap.
|
|
17
|
+
If the harness cannot enforce a needed bound, the coordinator keeps that work inline rather than relying on a prompt to contain recursive spawning.
|
|
18
|
+
Done when each child has a bounded parent task and a termination path; agent count alone is not accepted output.
|
|
19
|
+
|
|
20
|
+
## Shared build resources
|
|
21
|
+
|
|
22
|
+
Writing workers return their changes and diagnostics without running builds, tests or formatters mid-flight. The build owner runs the combined checks after the edit wave. Across independent active sessions on one machine, record one build lease (`owner`, `pid`, `command`, `start`, `expires`, `release`) in the tracker and grant the next only after the current process exits. Waiting workers continue non-conflicting source work; they do not start duplicate builds or kill a live peer's process.
|
|
23
|
+
Stale-lease recovery: if a build owner crashes or stalls past `expires` (default 30 min without progress), verify its PID is dead (or confirm with the coordinator), log a stale-lease takeover row in the tracker, and reclaim the lease cleanly. Done when each check has one owner and the lease is released on success, failure, or verified stale recovery.
|
|
24
|
+
|
|
25
|
+
## How to reach a coworker
|
|
26
|
+
|
|
27
|
+
- omp: `write agent://<id>` sends a message and wakes an idle agent. `agent://all` broadcasts; use it only for something every coworker must act on (trunk is red, a shared contract changed).
|
|
28
|
+
- Claude Code: `SendMessage` to the agent's name.
|
|
29
|
+
- Antigravity (`agy`): `send_message` to a subagent's conversation ID, or `post_message` (`@<name>` / `@all`) paired with `swarm_wait` on a swarm message board.
|
|
30
|
+
- Codex / other harnesses without direct peer messaging: route handoffs through the coordinator or the shared tracker file under `.scratch/`.
|
|
31
|
+
|
|
32
|
+
## When to message
|
|
33
|
+
|
|
34
|
+
- You need a fact a coworker owns → ask that owner, not the root.
|
|
35
|
+
- You are about to change something a coworker's work depends on (a shared type, API, schema, or a file outside your ownership) → tell the owner first and agree on the change.
|
|
36
|
+
- You found a bug in a coworker's area → send it with a command that reproduces it.
|
|
37
|
+
- A coworker blocks you → say exactly what would unblock you.
|
|
38
|
+
- You finished something a coworker waits on → hand it off with the SHA, path, or PR.
|
|
39
|
+
|
|
40
|
+
## How to talk
|
|
41
|
+
|
|
42
|
+
- One message: what you need, the evidence pointer (SHA, `file:line`, command, artifact), and the answer you expect.
|
|
43
|
+
- Answer when asked. "I don't know" plus who might is a full answer.
|
|
44
|
+
- Be honest and skeptical. Disagree with evidence; never agree to be agreeable. A claim without a pointer gets "show me".
|
|
45
|
+
- Status belongs in the tracker, not in messages. No check-in pings, no thanks-only replies.
|
|
46
|
+
- Change only your own files. To change a coworker's, ask the owner.
|
|
47
|
+
|
|
48
|
+
## Escalate to the root only when
|
|
49
|
+
|
|
50
|
+
- two coworkers still disagree after each has shown its evidence once;
|
|
51
|
+
- ownership of a file or task is unclear;
|
|
52
|
+
- the work reaches a hard stop (SKILL.md Autonomy).
|
|
53
|
+
|
|
54
|
+
## Exceptions
|
|
55
|
+
|
|
56
|
+
Panel verifiers (`references/techniques/panel.md`) don't message each other or the author before they vote. After the vote, a dissenting verifier sends its reproduction to the owner.
|
|
57
|
+
|
|
58
|
+
## SAFE handoffs (distributed sub-agents)
|
|
59
|
+
|
|
60
|
+
Sub-agents sharing state or mutating external systems fail like distributed systems: half-finished workers return fluent text, and multiple workers reading one shared guess create a dirty-read false quorum. When sub-agents touch real state or feed automated decisions, enforce SAFE in code (`https://www.youtube.com/watch?v=DxP5aW4VknQ`, 10:22–19:54):
|
|
61
|
+
- **Sourced reads:** every handed-off fact carries its source, version, and read time; separate observations from inferences and reject stale records at decision time.
|
|
62
|
+
- **At-most-once side effects:** bind each external write to one identity and single-use approval/fencing token; never replay an uncertain write—read back by identity (`submitted` is not `confirmed`).
|
|
63
|
+
- **Fan-out budgets:** cap concurrent calls per downstream service (including shared package/install caches) with bounded waits; treat capacity refusals as health failures.
|
|
64
|
+
- **Explicit outcomes:** return structured states (`ok`, `partial`, `stale`, `unknown`), never prose alone. Record timeouts as `unknown` without overwriting a process's real exit cause, and recompute numeric/rate claims in code before acting.
|
|
65
|
+
|
|
66
|
+
**Done when** every agreement two coworkers reached is either in the code or in one trail row written by the agent that acts on it.
|
|
67
|
+
|
|
68
|
+
Workflow inspiration: [project-isolated lead agents](https://www.youtube.com/watch?v=q6NY3KbYCAs&t=643s) and [meeting-to-task review](https://www.youtube.com/watch?v=q6NY3KbYCAs&t=695s).
|
|
69
|
+
The demo is not a security audit; identity separation or spending caps do not prove autonomous actions safe.
|
|
70
|
+
Nested-delegation synthesis: the [recursive-loop warning](https://www.youtube.com/watch?v=zOiFHo2KVgc&t=1266s) motivates task-wide limits, not a claim that this document enforces runtime caps.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# domain-model
|
|
2
|
+
|
|
3
|
+
**Use when:** the project's words are changing, not just being read: naming a new concept, two words for one thing, one word for two things, writing or editing `GLOSSARY.md`, or recording a decision as an ADR ("what do we call this", "add this to the glossary", "write an ADR"). Also runs inside the **grill** technique's With docs mode and inside Triage. Reading `GLOSSARY.md` for vocabulary is a habit every flow has; this technique is for changing it.
|
|
4
|
+
|
|
5
|
+
Two artifacts, both in the repo, both created only when there is something to put in them:
|
|
6
|
+
- **`GLOSSARY.md`** at the repo root: the project's own nouns and verbs, one canonical word each.
|
|
7
|
+
- **`docs/adr/NNNN-<slug>.md`**: one file per decision a future reader would question.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **Load.** Read `GLOSSARY.md` and the ADR titles in `docs/adr/`. A root glossary that lists contexts (a monorepo) points to one `GLOSSARY.md` per context; work in the context the topic belongs to.
|
|
12
|
+
Done when the context is named and its glossary terms and ADR titles are loaded, or noted absent.
|
|
13
|
+
2. **Catch drift.** For each domain word in the request, the plan, or the code under discussion:
|
|
14
|
+
- It conflicts with a glossary entry → name the conflict and pick one meaning.
|
|
15
|
+
- It is vague or overloaded ("account", "job", "item") → split it into precise terms and pick the canonical one for each meaning.
|
|
16
|
+
- The code disagrees with how the word is used (the code cancels whole orders, the plan says partial cancel) → read the code, then settle which one is right. A real mismatch is a finding for the plan, not a glossary edit.
|
|
17
|
+
- Done when every domain word in scope is marked consistent, settled, or logged as a finding.
|
|
18
|
+
3. **Probe with cases.** Invent two or three concrete edge cases that force the boundary between neighboring terms ("an order with one shipped and one unshipped line: is it fulfilled?").
|
|
19
|
+
Each case gets an answer, from the code when the code decides it, otherwise by your call (SKILL.md Autonomy). Done when each case has a recorded answer and its source.
|
|
20
|
+
4. **Write terms as they settle.** Update `GLOSSARY.md` the moment a term is decided, in the format below. Don't batch to the end. Done when every settled term has an entry in that format.
|
|
21
|
+
5. **Test each decision for an ADR.** Write one only when all three hold:
|
|
22
|
+
- Undoing it later costs real work (a data shape, a boundary, a vendor, a protocol).
|
|
23
|
+
- A reader of the code would ask "why this way?" without the record.
|
|
24
|
+
- A real alternative existed and lost for a stated reason.
|
|
25
|
+
|
|
26
|
+
Fails any test → no ADR; the show-me-your-work trail row is enough. Done when each decision has either an ADR file or a trail row naming the test it failed.
|
|
27
|
+
6. **Report.** List the terms added or changed and the ADRs written, with paths.
|
|
28
|
+
|
|
29
|
+
## GLOSSARY.md format
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
# <Project or context> glossary
|
|
33
|
+
|
|
34
|
+
<One sentence: what this part of the system is for.>
|
|
35
|
+
|
|
36
|
+
## Terms
|
|
37
|
+
|
|
38
|
+
**<Term>**: <What it is, in one or two sentences. Not what code does with it.>
|
|
39
|
+
Not: <rejected synonyms, comma separated>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Rules:
|
|
43
|
+
- Only words specific to this project. General programming words (cache, retry, timeout) stay out.
|
|
44
|
+
- One canonical word per concept; every rejected synonym goes on its `Not:` line so code review can flag it.
|
|
45
|
+
- No implementation detail: no file paths, class names, or decisions. Decisions go in ADRs, plans in specs.
|
|
46
|
+
- Group terms under `###` headings once clusters appear.
|
|
47
|
+
|
|
48
|
+
Multi-context repo: the root `GLOSSARY.md` lists each context with a link to its own `GLOSSARY.md` and one line on how the contexts talk (events, shared ids, calls).
|
|
49
|
+
|
|
50
|
+
## ADR format
|
|
51
|
+
|
|
52
|
+
Number: the highest `NNNN` in `docs/adr/` plus one, four digits. Slug: the decision in kebab case.
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
# <NNNN>. <The decision as a short statement>
|
|
56
|
+
|
|
57
|
+
Status: accepted | superseded by <NNNN>
|
|
58
|
+
Date: <YYYY-MM-DD>
|
|
59
|
+
|
|
60
|
+
<Two to four sentences: the situation, what was decided, and the reason it won.>
|
|
61
|
+
|
|
62
|
+
Rejected: <alternative> because <reason>. (Only when the rejection is not obvious.)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
A changed decision gets a new ADR; the old one's Status becomes `superseded by <NNNN>`. Never rewrite history in an accepted ADR.
|
|
66
|
+
|
|
67
|
+
## Done when
|
|
68
|
+
|
|
69
|
+
Every term this work introduced or disputed has one glossary entry, and every decision that passed the three tests has an ADR. Both ship in the commit of the work that needed them, or in their own commit when there is no code change.
|