deepmodebot 0.0.0-stage → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/.claude-plugin/marketplace.json +26 -0
  2. package/.omp-plugin/marketplace.json +26 -0
  3. package/LICENSE +24 -0
  4. package/README.md +377 -2
  5. package/bin/deepmodebot.mjs +229 -0
  6. package/lib/autoupdate.mjs +47 -0
  7. package/lib/clients.mjs +139 -0
  8. package/lib/run.mjs +32 -0
  9. package/lib/state.mjs +52 -0
  10. package/lib/tree.mjs +48 -0
  11. package/package.json +44 -4
  12. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
  13. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
  14. package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
  15. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
  16. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
  17. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
  18. package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
  19. package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
  20. package/plugins/deepmodebot/agents/scout/agent.md +34 -0
  21. package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
  22. package/plugins/deepmodebot/assets/logo.svg +8 -0
  23. package/plugins/deepmodebot/commands/contribute.md +8 -0
  24. package/plugins/deepmodebot/commands/deep.md +11 -0
  25. package/plugins/deepmodebot/commands/land-pr.md +12 -0
  26. package/plugins/deepmodebot/commands/pr-thread.md +14 -0
  27. package/plugins/deepmodebot/commands/project-brief.md +8 -0
  28. package/plugins/deepmodebot/commands/review-pr.md +10 -0
  29. package/plugins/deepmodebot/commands/tournament.md +12 -0
  30. package/plugins/deepmodebot/hooks/hooks.json +26 -0
  31. package/plugins/deepmodebot/hooks.json +24 -0
  32. package/plugins/deepmodebot/mcp_config.json +11 -0
  33. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
  34. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
  35. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
  36. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
  37. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
  38. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
  39. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
  40. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
  41. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
  42. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
  43. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
  44. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
  45. package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
  46. package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
  47. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
  48. package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
  49. package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
  53. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
  54. package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
  55. package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
  56. package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
  57. package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
  58. package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
  59. package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
  61. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
  62. package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
  63. package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
  64. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
  65. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  66. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  67. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  68. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
  69. package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
  70. package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
  71. package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
  72. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
  73. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
  74. package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
  75. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
  76. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
  77. package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
  78. package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
  80. package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
  81. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
  82. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
  125. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
  126. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
  127. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
  128. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
  129. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
  131. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
  133. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
  134. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
  135. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
  136. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
  137. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
  138. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
  139. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
  140. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
  141. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
  142. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
  143. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
  144. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
  145. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
  146. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
  147. package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
  148. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
  149. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
  150. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
  151. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
  152. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
  153. package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
  154. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
  155. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
  156. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
  157. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
  158. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
  160. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
  161. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
  162. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
  163. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
  164. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
  165. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
  166. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
  167. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
  168. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
  169. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
  170. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
  171. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
  172. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
  173. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
  174. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
  176. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
  177. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
  178. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
  179. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
  180. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
  181. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
  182. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
  183. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
  184. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
  185. package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
  186. package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
  187. package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
  188. package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
  189. package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
  190. package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
  191. package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
  192. package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
  195. package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
  196. package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
  197. package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
  198. package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
  199. package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
  200. package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
  201. package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
  202. package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
  203. package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
  204. package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
  205. package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
  206. package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
  207. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
  208. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
  209. package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
  210. package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
  211. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
  212. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
  213. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
  214. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
  215. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
  216. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
  217. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
  218. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
  219. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
  220. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
  221. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
  222. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
  223. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
  224. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
  225. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
  226. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
  227. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
  228. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
  229. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
  230. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
  231. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
  232. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
  233. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
  234. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
  235. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
  236. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
  237. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
  238. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
  239. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
  240. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
  241. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
  242. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
  243. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
  244. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
  245. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
  246. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
  247. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
  248. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
  249. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
  250. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
  251. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
  252. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
  253. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
  254. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
  255. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
  256. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
  257. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
  258. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
  259. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
  260. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
  261. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
  262. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
  263. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
  264. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
  265. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
  266. package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
  267. package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
  268. package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
  269. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
  270. package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
  271. package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
  272. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
  273. package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
  274. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
  275. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
  276. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
  277. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
  278. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
  279. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
  280. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
  281. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
  282. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
  283. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
  284. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
  285. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
  286. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
  287. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
  288. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
  289. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
  290. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
  291. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
  292. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
  293. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
  294. package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
  295. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
  296. package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
  297. package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
  298. package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
  299. package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
  300. package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
  301. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
  302. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
  303. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
  304. package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
  305. package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
  306. package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
  307. package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
  308. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
  309. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
  310. package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
  311. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
  312. package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
@@ -0,0 +1,74 @@
1
+ # Kubernetes operations and ecosystem routing
2
+
3
+ Read when the task involves kubectl, kubeconfig contexts, namespaces, manifests, Pods/controllers, cluster rollouts, Services/DNS/Ingress/Gateway API, PVCs, Kubernetes authorization, GitOps, or cluster observability. Reviewed 2026-11-13. Vendor facts are cited inline; routing rules, goals and stop caps below are **deepmodebot recommendations**, not Kubernetes defaults. Full selection rationale and source manifest: [Kubernetes ecosystem research](https://github.com/TimothyVang/deepmodebot/blob/main/docs/research/kubernetes-ecosystem.md).
4
+
5
+ Security hardening, supply-chain verification and pipeline gates remain in [devsecops-pipeline.md](devsecops-pipeline.md); consult that reference for policy changes rather than duplicating its checklist. Managed-cloud identity/networking also routes to the relevant `aws.md`, `azure.md` or `gcp.md` reference.
6
+
7
+ ## First choose the boundary
8
+
9
+ | Task signal | Route and evidence to obtain | Completion boundary |
10
+ |---|---|---|
11
+ | Image build, local container process or Compose failure | Container workflow first; Kubernetes only if scheduling, cluster configuration or traffic changes the failure | Same image/application oracle, not a cluster migration |
12
+ | kubectl cannot find workload; wrong environment | Trusted kubeconfig, explicit context, namespace and object identity | Intended cluster/namespace established without switching global defaults |
13
+ | YAML/chart/overlay authoring | Existing Helm or Kustomize convention; render and inspect desired objects | Artifact validation only until separately authorized runtime checks |
14
+ | Pending, CrashLoopBackOff, OOMKilled, failed probe | Workload owner → Pod status/events → selected container logs → resources/configuration | Original failure explained and, if authorized, original oracle passes |
15
+ | Service unreachable, DNS/Ingress/Gateway failure | Client namespace → DNS → Service selector/ports → EndpointSlices → readiness → controller/network policy | Same client path, hostname/protocol and response contract pass |
16
+ | PVC pending, mount failure, stateful rollout | PVC/PV binding, StorageClass/CSI and topology; application durability contract | Binding/mount plus application data check; no destructive reset |
17
+ | Deployment or GitOps rollout | Owner/reconciler, intended revision/digest, rollout status and application oracle | Both control-plane convergence and user-visible health |
18
+ | RBAC denial, admission rejection, network isolation | Narrow denied action/policy/CNI evidence; security reference | Scoped fix with positive and negative checks, not wider permissions |
19
+ | Capacity, autoscaling, latency or telemetry | Existing Metrics Server, Prometheus or OpenTelemetry deployment | Correct signal at intended backend with original latency/error oracle |
20
+
21
+ ## Safety contract and bounded loop
22
+
23
+ 1. **Scope before access.** Record trusted kubeconfig source, context, cluster identity, namespace, object kind/name, environment, owner, and allowed operations. Contexts combine cluster/user/namespace; `--context` overrides current context. Untrusted kubeconfig can execute code or expose files. Prefer explicit command flags to changing current context. Namespaces do not scope Nodes, PVs, StorageClasses or other cluster-scoped resources. ([kubeconfig](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/), [namespaces](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/))
24
+ 2. **Preserve the oracle.** Record the original failing request/test, client location, expected result, revision/digest, latency/error threshold, observation window and allowed data effects. Keep these fixed across attempts. A weaker probe, deleted test or larger deadline is not evidence of a fix. A changed oracle needs explicit approval and separate rationale.
25
+ 3. **Read-only evidence first.** Once cluster reads are authorized, use scoped `get`, `describe`, events and selected container logs; redact credentials and sensitive payloads before sharing. Bound logs by time/tail and API requests by timeout. Start at the named resource and its owner; expand namespace/cluster scope only when evidence requires it. Avoid broad Secret dumps or raw kubeconfig output. `exec`, `debug`, port forwarding and synthetic requests are separate active operations, not passive inspection.
26
+ 4. **One hypothesis, one authorized change.** Explain expected observation and rollback conditions before a mutation. Follow the existing controller/GitOps source of truth: live patches can be reconciled away. Publishing desired-state changes, sync/prune, upgrades, restarts, scaling, policy edits and rollback can all affect production.
27
+ Require explicit production approval covering exact context, namespace, targets, diff, data risk and rollback; research permission grants none of these. No blanket roles, namespace deletion, forced conflicts, finalizer removal or PVC deletion to make a check green. ([reconciliation](https://kubernetes.io/docs/concepts/overview/working-with-objects/), [Flux drift example](https://fluxcd.io/flux/get-started/))
28
+ 5. **Use finite caps.** Set a task wall-clock limit, maximum diagnostic rounds, mutation budget and per-command timeout before starting. Suggested initial investigation cap: three evidence/hypothesis rounds, ten minutes, zero mutations without approval; an approved repair gets one change then the agreed verification window. Adapt caps to the workload before the run, never silently reset them. Stop on cap, scope/identity mismatch, concurrent revision change, permission denial, unexpected data risk or worsening health; return evidence and the exact blocked decision. Do not retry denied access by escalating privileges.
29
+ 6. **Finish with two results.** Report rollout/convergence status separately from application behavior, and report `passed`, `failed` or `not observed` for each. No cluster access means a manifest review cannot become a deployment-success claim. Preserve the original failure and commands/output references even if rollback was approved.
30
+
31
+ Illustrative read-only commands below require confirmed `CTX`, `NS`, `POD`, `CONTAINER`, `WORKLOAD` and `REVISION`; they were not executed during this research. Shell variable syntax is illustrative, not portable to every shell.
32
+
33
+ ```sh
34
+ kubectl --context="$CTX" --namespace="$NS" --request-timeout=15s get deployment "$WORKLOAD"
35
+ kubectl --context="$CTX" --namespace="$NS" --request-timeout=15s describe pod "$POD"
36
+ kubectl --context="$CTX" --namespace="$NS" --request-timeout=15s logs "$POD" -c "$CONTAINER" --since=10m --tail=200
37
+ kubectl --context="$CTX" --namespace="$NS" --request-timeout=15s rollout status "deployment/$WORKLOAD" --revision="$REVISION" --timeout=120s
38
+ ```
39
+
40
+ For a restarted container, the corresponding `logs --previous` is a separate bounded evidence request. Pin the Deployment revision: by default `rollout status` follows the latest rollout even if another starts; timeout zero means unlimited. A successful rollout is not a business-transaction assertion. ([rollout status](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_rollout/kubectl_rollout_status/))
41
+
42
+ ## Kubernetes facts that change decisions
43
+
44
+ | Concern | Fact and operational consequence |
45
+ |---|---|
46
+ | Desired state | Objects express intent in `spec`; controllers report observed state in `status` and reconcile. Change the owning workload/source, not a replaceable Pod. ([objects](https://kubernetes.io/docs/concepts/overview/working-with-objects/)) |
47
+ | Workload choice | Deployment: interchangeable stateless Pods. StatefulSet: stable identity/storage association, not an application replication/backup implementation. DaemonSet: node-local facilities. Job/CronJob: completion/schedule. ([workloads](https://kubernetes.io/docs/concepts/workloads/)) |
48
+ | Batch work | Job `backoffLimit` bounds retries and Job-level `activeDeadlineSeconds` bounds execution; the latter takes precedence. CronJobs can create duplicate or miss executions, so use idempotent processing and explicit concurrency/deadline decisions. Completion also needs the intended output/data oracle, not merely an exit code. ([Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/job/), [CronJobs](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/)) |
49
+ | Probes | Startup gates readiness/liveness until success; readiness governs normal Service traffic eligibility; liveness can restart containers. Poor liveness checks can cause cascading failures. Do not convert a dependency outage into repeated restarts or loosen probes solely to pass rollout. ([probes](https://kubernetes.io/docs/concepts/workloads/pods/probes/)) |
50
+ | Resources | Requests inform scheduling; CPU limits throttle and memory limits can lead to OOM kills. Check requests/limits, termination evidence and workload demand before increasing resources. A Pending Pod is not automatically an image problem. ([resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)) |
51
+ | Service and DNS | Service selectors normally determine backing endpoints represented by EndpointSlices. Short DNS queries depend on the caller's namespace; cross-namespace lookup must name it. Cluster domain is configurable, not always `cluster.local`. DNS resolution does not establish healthy endpoints or authorized connectivity. ([Service](https://kubernetes.io/docs/concepts/services-networking/service/), [DNS](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/)) |
52
+ | Ingress/Gateway | Ingress handles HTTP(S), needs a controller, and its API is frozen; Kubernetes recommends Gateway for new capabilities. GatewayClass identifies shared controller behavior, Gateway requests listeners, Routes map traffic to Services. Gateway API needs installed CRDs and a matching implementation; inspect its supported features and route attachment constraints rather than treating API presence as working traffic. Preserve existing Ingress unless migration is requested. ([Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/), [Gateway model](https://gateway-api.sigs.k8s.io/docs/concepts/api-overview/)) |
53
+ | Configuration | ConfigMap is nonconfidential. Environment-variable consumers do not automatically refresh; `subPath` mounts do not receive ConfigMap updates. Mounted-file refresh alone does not prove the application reloaded it. Secret is not encryption: Kubernetes defaults to unencrypted etcd storage; Pod-creation privileges can expose namespace Secrets. Check actual encryption/RBAC, never print values as routine evidence. ([ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/), [Secrets](https://kubernetes.io/docs/concepts/configuration/secret/)) |
54
+ | Storage | PVC requests bind PVs; dynamic provisioning depends on StorageClass/provisioner. `Delete` reclaim policy can remove backing storage. Bound/Ready is not backup, restore or application durability proof. Investigate binding, topology and mount events; changes involving persistent data need a separate approval and recovery plan. ([persistent volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)) |
55
+ | RBAC | Permissions are additive, with no deny rules. RoleBinding can scope a ClusterRole's namespaced permissions to one namespace; ClusterRoleBinding grants cluster-wide. Fix the minimum required verb/resource/scope, not `cluster-admin`. ([RBAC](https://kubernetes.io/docs/reference/access-authn-authz/rbac/)) |
56
+ | Pod Security | `warn` and `audit` allow violations; `enforce` rejects Pods. Enforcement does not reject the Deployment template itself, so Deployment dry-run acceptance can coexist with later rejected Pods. Exemptions bypass checks. Use the security reference for rollout policy. ([Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/)) |
57
+ | NetworkPolicy | Requires an enforcing network plugin; policies allow traffic additively and ingress/egress isolation are independent. Standard NetworkPolicy is L3/L4, not TLS/authentication or application-layer policy. DNS egress must be considered. Host traffic, `hostNetwork`, existing connections and implementation timing have caveats; API acceptance does not prove isolation. Verify allowed and denied flows from intended clients only with authorization. ([NetworkPolicy](https://kubernetes.io/docs/concepts/services-networking/network-policies/)) |
58
+
59
+ ## Tool selection without adding a platform
60
+
61
+ These are **recommendations**; retain an existing supported choice unless a documented requirement fails.
62
+
63
+ - **Local cluster:** [kind](https://kind.sigs.k8s.io/) for disposable Kubernetes testing/CI; [k3d](https://k3d.io/stable/) when K3s-in-Docker is intentionally representative; [minikube](https://raw.githubusercontent.com/kubernetes/minikube/master/README.md) for interactive local development and its addons. None proves managed-cloud load balancing, IAM, CNI or CSI parity. Cluster creation is a separate authorized action.
64
+ - **Packaging:** [Helm](https://helm.sh/docs/intro/using_helm/) for chart/release distribution; [Kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/) for composing manifests and environment patches. Render the selected values/overlay, then inspect resulting names, namespace, images and privileges. Do not add both without a real ownership need.
65
+ - **GitOps:** [Argo CD](https://argo-cd.readthedocs.io/en/stable/) when application-centric sync/diff/health UI is useful; [Flux](https://fluxcd.io/flux/get-started/) for controller-driven Git reconciliation using its resource model. Do not let competing reconcilers own the same resources. Sync/Ready is not the original application oracle.
66
+ - **Observability:** [Metrics Server](https://kubernetes-sigs.github.io/metrics-server/) supplies autoscaling/resource metrics and `kubectl top`, not a historical monitoring system. [Prometheus](https://prometheus.io/docs/introduction/overview/) supplies time-series collection/query/alerts. [OpenTelemetry Collector](https://opentelemetry.io/docs/collector/) receives/processes/exports traces, metrics and logs to a backend; its [Kubernetes Operator](https://opentelemetry.io/docs/platforms/kubernetes/) manages collectors/auto-instrumentation. They are complementary, not interchangeable installation prerequisites.
67
+ - **Additional policy:** [Kyverno](https://kyverno.io/docs/introduction/) offers declarative validation/mutation/generation/image-policy and CLI workflows; [Gatekeeper](https://open-policy-agent.github.io/gatekeeper/website/docs/) integrates OPA-backed admission and audit. Prefer existing organizational policy expertise; check installed API versions and exception scope. Refer to [pipeline policy guidance](devsecops-pipeline.md) for security gates. Audit success is not enforcement proof; never disable admission to achieve rollout success.
68
+
69
+ ## Evidence ladder
70
+
71
+ 1. **Local render:** `helm template` or `kubectl kustomize` produces proposed objects, not a running system. Helm documents that local lookups are faked and server-side API support validation is absent. ([Helm template](https://helm.sh/docs/helm/helm_template/), [Kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/))
72
+ 2. **Client dry-run/schema check:** `kubectl apply --dry-run=client` prints the would-be object without submitting it for persistence; do not assume every client validation path is offline or that the target has the APIs. ([apply](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_apply/))
73
+ 3. **Server dry-run:** requires authorized access to the explicit cluster and the same authorization as a real request; evaluates admission/defaulting/schema/merge without persistence. It is not a read-only RBAC fallback and does not schedule Pods, pull images or exercise downstream controllers. ([API dry-run](https://kubernetes.io/docs/reference/using-api/api-concepts/#dry-run))
74
+ 4. **Runtime evidence:** after separately approved deployment, observe the exact revision, Pod readiness, dependencies, traffic path and original application oracle for a finite window. Local-cluster success supports that environment only. Missing runtime access remains `not observed`, not inferred success.
@@ -0,0 +1,265 @@
1
+ # Local Cloud Emulators (Floci, LocalStack, moto, Azurite, Google, Cosmos)
2
+
3
+ Read when testing IaC (Terraform/OpenTofu, CDK, Bicep), SDK code, or CI pipelines against AWS, Azure, GCP or OCI without touching a real account; when choosing or migrating a local emulator; or when a local run "passed" and you must decide whether to trust it. Full report: https://github.com/TimothyVang/cloud-devsecops/blob/main/research/floci-local-cloud-emulators.md
4
+
5
+ ## When to test locally first
6
+
7
+ - Test locally first for every IaC plan/apply/destroy loop, SDK integration test, and CI job that creates resources. It is free, needs no account, and cannot bill or break production if wired correctly.
8
+ - Local green is necessary, not sufficient. Every emulator documents gaps (IAM coverage, consistency, RU/s, error text). Always finish with a smoke run in a real **sandbox** account using short-lived CI OIDC credentials, never long-lived keys [inference].
9
+ - Use moto for in-process Python unit tests; Floci for container-level integration and IaC loops; Google's emulators for Spanner/Bigtable; the Cosmos emulator only when Cosmos-specific semantics matter [inference].
10
+
11
+ ## Floci family
12
+
13
+ All MIT, no account, no auth token, no feature gates ([floci README](https://github.com/floci-io/floci); [floci-cli README](https://github.com/floci-io/floci-cli)).
14
+
15
+ | Emulator | Cloud | Port | Image | Env prefix | Health |
16
+ |---|---|:---:|---|---|---|
17
+ | `floci` | AWS | 4566 | `floci/floci` | `FLOCI_` | `/_floci/health` |
18
+ | `floci-az` | Azure | 4577 | `floci/floci-az` | `FLOCI_AZ_` | `/_floci/health` |
19
+ | `floci-gcp` | GCP | 4588 | `floci/floci-gcp` | `FLOCI_GCP_` | `/_floci-gcp/health` (also `/health`) |
20
+ | `floci-oci` | OCI | 4599 | `floci/floci-oci` | `FLOCI_OCI_` | `/_floci-oci/health` |
21
+ | `floci-cli` | lifecycle for all | n/a | binary / `floci.jar` | `FLOCI_*` | n/a |
22
+
23
+ ### AWS fidelity tiers
24
+
25
+ Check the tier before trusting a result (Floci CLI skill, AWS reference: [floci-cli skills](https://github.com/floci-io/floci-cli/tree/main/skills/floci)):
26
+
27
+ | Tier | Services | Trust for |
28
+ |---|---|---|
29
+ | Real containers (need Docker socket) | Lambda, RDS (Postgres/MySQL/MariaDB), ElastiCache (Valkey), MSK (Redpanda), EKS (k3s), OpenSearch, Neptune, DocumentDB, Amazon MQ, MWAA, CodeBuild, EC2 (containers + IMDS) | Real behaviour |
30
+ | In-process, full behaviour | S3, DynamoDB, SQS, SNS, IAM, STS, KMS, Secrets Manager, SSM, EventBridge, Step Functions, Kinesis, CloudFormation, API Gateway, Cognito | Integration tests |
31
+ | Canned/stub | Bedrock Runtime, Textract, Transcribe, Signer, FIS (no faults), QuickSight | Wiring/control plane only, never output |
32
+
33
+ **Other clouds:** floci-az covers Blob/Queue/Table (Azurite connection string works), Key Vault, App Config, Cosmos NoSQL, SQL, Event Hubs, Service Bus, Functions, AKS, ARM incl. Bicep, Azure Policy (on writes), Entra ID, Managed Identity ([floci-az](https://github.com/floci-io/floci-az)). floci-gcp serves gRPC+REST on one port: GCS, Firestore, Datastore, Pub/Sub, Secret Manager, KMS, IAM/STS, Cloud Run and Cloud SQL (real Docker), BigQuery (DuckDB), GKE ([floci-gcp](https://github.com/floci-io/floci-gcp)). floci-oci: Identity, Object Storage, Vault/KMS, Functions, OKE, Postgres; Oracle has no official emulator ([floci-oci](https://github.com/floci-io/floci-oci)).
34
+
35
+ ## Install
36
+
37
+ | Path | Command | Notes |
38
+ |---|---|---|
39
+ | CLI (recommended) | `brew install floci-io/floci/floci`, pinned release archive verified with `sha256sums.txt`/cosign, or `java -jar floci.jar` (Java 25+) | Avoid piping unverified remote scripts (`curl \| sh` / `iwr \| iex`); manages lifecycle only, does not wrap `aws`/`az`/`gcloud`/`oci` |
40
+ | Docker / Compose | `image: floci/floci:2.4.0`, `ports: ["127.0.0.1:4566:4566"]` | Docker 23.0+ and compose v2 ([installation doc](https://github.com/floci-io/floci/blob/main/docs/getting-started/installation.md)) |
41
+ | Native binary | `floci-aws-<os>-<arch>` from Releases | Verify via `sha256sums.txt`, cosign `*.sigstore.json` or `gh attestation verify`; Linux needs glibc >= 2.34 (no Alpine/RHEL 8/AL2) |
42
+ | Kubernetes | `helm install floci ./charts/floci -n floci --create-namespace --wait` | Lambdas run as pods |
43
+
44
+ - Native binary without Docker: RDS, ElastiCache, OpenSearch, EKS, MSK become control-plane only; Lambda, ECS, CodeBuild, Athena, ECR **fail** (startup warning lists them).
45
+ - Tags: `latest`, pinned `x.y.z` (CI), `-compat` (AWS CLI + boto3 for init scripts), `-baseline` (ARM64 no LSE), `nightly`. Images lack curl/wget: use built-in healthcheck via `docker compose up -d --wait`.
46
+ - Compose port mappings needed: ElastiCache `6379-6399`, MemoryDB `6400-6419`, RDS `7001-7099`, Neptune `8182-8282`, MWAA `8700-8799` ([ports doc](https://github.com/floci-io/floci/blob/main/docs/configuration/ports.md)).
47
+
48
+ ## Env setup per cloud
49
+
50
+ | Cloud | Wire-up | Gotcha |
51
+ |---|---|---|
52
+ | AWS | `eval "$(floci aws env -o text)"` sets `AWS_ENDPOINT_URL=http://localhost.floci.io:4566`, `test`/`test`, `us-east-1` | Never add `-q` (suppresses exports). `--profile <real>` can override the endpoint. Some SDKs skip `AWS_ENDPOINT_URL` for SQS |
53
+ | Azure | `floci az setup && eval "$(floci az env -o text)"` | Without `setup`, `az` control-plane commands hit **real Azure** |
54
+ | GCP | `eval "$(floci gcp env -o text)"` sets `*_EMULATOR_HOST=localhost:4588` | `gcloud` **ignores** `*_EMULATOR_HOST`; set `CLOUDSDK_API_ENDPOINT_OVERRIDES_<API>` |
55
+ | OCI | `floci oci setup` writes `~/.oci/floci_key.pem` and a `[FLOCI]` profile | Writes under `$HOME/.oci` (outside repo: hard stop under deepmodebot unless user-approved or redirected via `OCI_CLI_CONFIG_FILE` into `.scratch/`); never point `-compat`'s key at real OCI |
56
+
57
+ - SDKs (AWS): `endpointOverride`/`endpoint_url`/`BaseEndpoint`; S3 path-style unless the host is `localhost.floci.io`.
58
+ - Set `FLOCI_HOSTNAME` (AWS), `FLOCI_AZ_HOSTNAME`, or `FLOCI_GCP_HOSTNAME`+`FLOCI_GCP_BASE_URL` when another container consumes returned URLs (SQS `QueueUrl`, presigned URLs).
59
+ - Python Secret Manager ignores `SECRET_MANAGER_EMULATOR_HOST`: use `transport="rest"`, `AnonymousCredentials()`, `client_options={"api_endpoint": "http://localhost:4588"}` (Floci CLI skill, GCP reference: [floci-cli skills](https://github.com/floci-io/floci-cli/tree/main/skills/floci)).
60
+ - Azure TLS (`FLOCI_AZ_TLS_ENABLED=true`, cert at `/_floci/tls-cert`) is required for `az` control plane, Cosmos Java SDK, and Terraform `azurerm`. The CLI starts floci-az with TLS on.
61
+ - PowerShell: `floci <tree> env --shell powershell | Invoke-Expression`. Multi-account AWS: a 12-digit `AWS_ACCESS_KEY_ID` becomes the account ID.
62
+
63
+ ## Strictness and IAM enforcement
64
+
65
+ Default posture is permissive: no signature checks, no IAM, in-memory state. A green run proves nothing about least privilege unless enforcement was on, and even then coverage is partial ([env vars](https://github.com/floci-io/floci/blob/main/docs/configuration/environment-variables.md)).
66
+
67
+ | Switch | Effect |
68
+ |---|---|
69
+ | `FLOCI_SERVICES_IAM_ENFORCEMENT_ENABLED=true` | AWS IAM policy evaluator (SCP → explicit Deny → Allow → session → boundary → implicit deny) |
70
+ | `FLOCI_AUTH_VALIDATE_SIGNATURES=true` | Verify SigV4 only, no policy |
71
+ | `FLOCI_SERVICES_S3_ENFORCE_AUTH=true` | S3 public/private reads |
72
+ | `FLOCI_PARTITIONS_STRICT=true` | Reject services absent from the partition |
73
+ | `FLOCI_NETWORK_SECURITY_GROUP_ENFORCEMENT_ENABLED=true` | nftables SG filtering for EC2/ECS `awsvpc` |
74
+ | `FLOCI_SERVICES_EC2_ENFORCE_VCPU_QUOTAS=true` | vCPU quota admission |
75
+ | `FLOCI_GCP_SERVICES_IAM_AUTHORIZATION_MODE=enforce` | GCP allow policies for Resource Manager, Cloud Run v2 services, Secret Manager, Pub/Sub, Scheduler, Logging sinks, IAM, GCS REST only |
76
+ | `FLOCI_AZ_PARITY=compat\|azure\|strict` | `strict` refuses unknown subscriptions/resource groups |
77
+ | `FLOCI_OCI_AUTH_REQUIRE_SIGNATURE=true` | Reject unsigned (signatures never verified) |
78
+
79
+ - Confirm AWS enforcement from the banner: `IAM: policy enforcement enabled`. Misspelled vars (e.g. `FLOCI_IAM_STRICT_VALIDATION`) are silently ignored ([iam.md](https://github.com/floci-io/floci/blob/main/docs/services/iam.md)).
80
+ - Read iam.md "Bypass rules" and "Unsigned requests" before treating a denial as proof [inference]. Unenforced: GCP Cloud Run jobs, GCS ACLs/gRPC; Azure Policy only on writes; OCI policies not evaluated. Name uncovered services in reports. Binding beyond `127.0.0.1` needs `FLOCI_SECURITY_ALLOW_UNSAFE_NETWORK_EXPOSURE=true`; anyone reaching the port can use the fake creds.
81
+
82
+ ## Persistence
83
+
84
+ - `FLOCI_STORAGE_MODE`: `memory` (default, lost on restart) | `persistent` (to `FLOCI_STORAGE_PERSISTENT_PATH`, image `/app/data`; docs disagree on flush timing) | `hybrid` (async flush every 5 s) | `wal` (Azure per-service, e.g. `FLOCI_AZ_STORAGE_SERVICES_BLOB_MODE=wal`).
85
+ - CLI `--persist DIR`; drop it for ephemeral CI. `floci <tree> reset --yes` wipes live (not floci-az). `docker compose down -v` deletes the volume.
86
+ - Don't rely on `floci snapshot` (skill: every subcommand exits 1). A recreated floci-az container gets a new TLS cert: rerun `floci az setup`.
87
+
88
+ ## Pre-flight checklist before trusting a local result
89
+
90
+ 1. **P0** Real config isolated: `AWS_PROFILE`, `AWS_SESSION_TOKEN`, `GOOGLE_APPLICATION_CREDENTIALS` unset; separate `CLOUDSDK_CONFIG`; `floci az setup` done.
91
+ 2. **P0** Endpoint asserted local (`localhost`, `127.0.0.1`, `localhost.floci.io`, or a Compose service name) before any mutating command.
92
+ 3. **P0** Port published on loopback (`127.0.0.1:4566:4566`); unsafe exposure off.
93
+ 4. **P1** Every service used is tier 1/2, not a stub; Docker socket mounted if tier 1 is needed.
94
+ 5. **P1** Enforcement modes on and banner confirmed when the claim is about permissions; uncovered services listed.
95
+ 6. **P1** Apply/destroy round-trips and re-plan shows zero drift.
96
+ 7. **P2** Image tag pinned; per-job port/profile/namespace; sandbox-account rerun scheduled before promotion.
97
+
98
+ ## Recipe
99
+
100
+ ### AWS CLI smoke (with guardrails)
101
+
102
+ ```sh
103
+ export AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null # [inference]
104
+ unset AWS_PROFILE AWS_SESSION_TOKEN GOOGLE_APPLICATION_CREDENTIALS
105
+ export CLOUDSDK_CONFIG="$PWD/.scratch/floci-gcp/gcloud"
106
+ floci aws start --detach --persist ./.scratch/floci-aws
107
+ floci aws wait --timeout 90s
108
+ eval "$(floci aws env -o text)"
109
+ echo "$AWS_ENDPOINT_URL" | grep -Eq 'localhost|127\.0\.0\.1' || { echo "NOT LOCAL"; exit 1; }
110
+ aws sts get-caller-identity # expect 000000000000 [inference]
111
+ aws s3 mb s3://smoke && aws s3 ls
112
+ ```
113
+
114
+ ### Terraform / OpenTofu (AWS)
115
+ ```hcl
116
+ # floci_override.tf: keep out of prod code (terraform.md)
117
+ provider "aws" {
118
+ region = "us-east-1"
119
+ access_key = "test"
120
+ secret_key = "test"
121
+ skip_credentials_validation = true
122
+ skip_metadata_api_check = true
123
+ skip_requesting_account_id = true
124
+ s3_use_path_style = true
125
+ endpoints {
126
+ s3 = "http://localhost:4566"
127
+ sts = "http://localhost:4566" # one line per service used
128
+ }
129
+ }
130
+ ```
131
+ ```sh
132
+ terraform init -backend=false # never the prod backend
133
+ terraform validate && terraform plan -out tf.plan
134
+ terraform apply -auto-approve tf.plan
135
+ terraform plan -detailed-exitcode # 0 = no drift, 2 = drift
136
+ terraform destroy -auto-approve # swap terraform -> tofu for OpenTofu
137
+ ```
138
+
139
+ - S3 backend: prefer `endpoints = { s3 = ... }` with `use_lockfile = true`; `dynamodb_endpoint`/DynamoDB locking are deprecated ([HashiCorp S3 backend](https://developer.hashicorp.com/terraform/language/backend/s3)) [inference].
140
+ - Least privilege: restart with `FLOCI_SERVICES_IAM_ENFORCEMENT_ENABLED=true`, create a user holding only the deploy role's policy, export its keys, rerun plan/apply; expect `AccessDenied` where too narrow. A pass is evidence, not proof.
141
+
142
+ ```sh
143
+ # CDK
144
+ npm i -D aws-cdk aws-cdk-local
145
+ export LOCALSTACK_HOSTNAME=localhost EDGE_PORT=4566 AWS_ENDPOINT_URL_S3="$AWS_ENDPOINT_URL"
146
+ npx cdklocal bootstrap --force
147
+ npx cdklocal deploy --require-approval never
148
+ npx cdklocal destroy --force
149
+ floci aws reset --yes; floci aws stop --remove
150
+ ```
151
+
152
+ ### Azure
153
+
154
+ ```sh
155
+ floci az start --detach --persist ./.scratch/floci-az
156
+ floci az wait --timeout 90s
157
+ floci az setup && eval "$(floci az env -o text)"
158
+ az cloud show --query name -o tsv # MUST be the Floci cloud, not AzureCloud
159
+ az group create -n rg-smoke -l westeurope
160
+ az deployment group create -g rg-smoke --template-file main.bicep
161
+ curl -sf http://localhost:4577/_floci/tls-cert -o floci-az.crt && export SSL_CERT_FILE="$PWD/floci-az.crt"
162
+ ```
163
+ ```hcl
164
+ # Terraform azurerm (floci.io/floci-az/terraform)
165
+ provider "azurerm" {
166
+ features {}
167
+ use_cli = false
168
+ environment = "stack"
169
+ metadata_host = "localhost:4577"
170
+ subscription_id = "00000000-0000-0000-0000-000000000001"
171
+ tenant_id = "00000000-0000-0000-0000-000000000002"
172
+ client_id = "11111111-1111-1111-1111-111111111111"
173
+ client_secret = "floci-az-dev-secret"
174
+ }
175
+ ```
176
+
177
+ ### GCP
178
+
179
+ ```sh
180
+ floci gcp start --detach --persist ./.scratch/floci-gcp && floci gcp wait --timeout 90s
181
+ eval "$(floci gcp env -o text)"
182
+ export FIREBASE_AUTH_EMULATOR_HOST=localhost:4588 # not exported by env
183
+ E=http://localhost:4588
184
+ export CLOUDSDK_CORE_PROJECT=floci-local CLOUDSDK_AUTH_ACCESS_TOKEN=fake CLOUDSDK_CORE_DISABLE_PROMPTS=1
185
+ export CLOUDSDK_API_ENDPOINT_OVERRIDES_STORAGE="$E/storage/v1/" CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER="$E/container/"
186
+ export CLOUDSDK_API_ENDPOINT_OVERRIDES_SECRETMANAGER="$E/" CLOUDSDK_API_ENDPOINT_OVERRIDES_CLOUDKMS="$E/" CLOUDSDK_API_ENDPOINT_OVERRIDES_IAM="$E/"
187
+ gcloud storage buckets create gs://smoke --log-http 2>&1 | grep -q 'localhost:4588' || { echo "LEAK"; exit 1; }
188
+ ```
189
+
190
+ Terraform `google`: `GOOGLE_OAUTH_ACCESS_TOKEN=fake` plus `*_custom_endpoint` per service (e.g. `storage_custom_endpoint = "${endpoint}/storage/v1/"`) from [provider.tf](https://github.com/floci-io/floci-gcp/blob/main/compatibility-tests/compat-terraform/provider.tf). Firestore/Datastore are gRPC-only and unreachable via Terraform; test with SDKs. Reset: `floci gcp reset --yes`.
191
+
192
+ ### Testcontainers
193
+
194
+ - Java `FlociContainer` (2.x artifact `io.floci:testcontainers-floci-aws` + `-bom`; READMEs disagree, trust the [module README](https://github.com/floci-io/testcontainers-floci)); Azure `FlociAzContainer` with `withTlsConfig(c -> c.enabled(true))`; Node `@floci/testcontainers`, Python `testcontainers-floci`, .NET `Testcontainers.Floci`; GCP `GenericContainer("floci/floci-gcp:<pinned-version>")` + `Wait.forHttp("/health")` (pin version/digest, never `:latest`).
195
+
196
+ ### GitHub Actions
197
+
198
+ Download a pinned release binary and verify `sha256sums.txt` (avoid piping `curl | sh`; or use a digest-pinned service container below):
199
+ ```yaml
200
+ - name: Install floci (pinned + verified)
201
+ env: { FLOCI_VER: "2.4.0" }
202
+ run: |
203
+ mkdir -p "$HOME/.local/bin"
204
+ curl -fsSLO "https://github.com/floci-io/floci-cli/releases/download/v${FLOCI_VER}/floci-linux-amd64"
205
+ curl -fsSLO "https://github.com/floci-io/floci-cli/releases/download/v${FLOCI_VER}/sha256sums.txt"
206
+ grep 'floci-linux-amd64$' sha256sums.txt | sha256sum -c -
207
+ install -m 0755 floci-linux-amd64 "$HOME/.local/bin/floci"
208
+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
209
+ - name: Start emulator
210
+ run: |
211
+ floci aws start --detach
212
+ floci aws wait --timeout 90s
213
+ floci aws env -o json | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> "$GITHUB_ENV"
214
+ - run: pytest
215
+ ```
216
+
217
+ Service-container alternative (in-process services only; Docker-backed ones need the socket): `services.floci.image: floci/floci:2.4.0`, `ports: ["4566:4566"]`, env `AWS_ENDPOINT_URL=http://localhost:4566`, `test`/`test`, `us-east-1`. Parallel jobs: own port, profile and `--namespace "ci-${GITHUB_RUN_ID}-${GITHUB_JOB}"`.
218
+
219
+ ## Leak-to-real-cloud hazards
220
+
221
+ | Symptom | Cause | Fix / check |
222
+ |---|---|---|
223
+ | `gcloud` creates real resources | `gcloud` ignores `*_EMULATOR_HOST` | Set `CLOUDSDK_API_ENDPOINT_OVERRIDES_*`; verify `--log-http` shows `localhost:4588` (only `dl.google.com` update check leaves) |
224
+ | `az group create` hits Azure | `floci az setup` not run | Run setup; `az cloud show --query name` must not be `AzureCloud` |
225
+ | AWS call goes to real account | `--profile <real>` overrides endpoint, or SDK skips `AWS_ENDPOINT_URL` for SQS | Never pass real profiles; null config files; `aws sts get-caller-identity` |
226
+ | `azurerm_key_vault` hangs | Polls `https://<name>.vault.azure.net:443` | Hosts entry/Docker alias to floci-az and forward 443 |
227
+ | `floci az wait --service X` times out | floci-az lacks the services endpoint | Use plain `floci az wait` |
228
+ | Returned URLs unreachable from app container | Hostname is localhost | Set `FLOCI_HOSTNAME` |
229
+
230
+ `floci <tree> doctor -o json` returns `{name,status,message,fix}`; do not apply `fix` blindly. Exit codes: 0 ok, 1 failed/"no", 2 bad command line.
231
+
232
+ ## Emulator comparison
233
+
234
+ | | Floci | LocalStack | moto | Azurite | Google emulators | Cosmos emulator |
235
+ |---|---|---|---|---|---|---|
236
+ | Clouds | AWS, Azure, GCP, OCI | AWS | AWS | Azure Storage | GCP, one per service | Cosmos |
237
+ | Cost | MIT, free | Auth token since Mar 2026; free tier non-commercial; community repo archived ([blog](https://blog.localstack.cloud/the-road-ahead-for-localstack/)) | Apache-2.0 | MIT | Free (gcloud) | Proprietary |
238
+ | Shape | One container/port per cloud + real Docker sidecars | One container, 4566 | In-process decorators or `moto_server` :5000 | Blob 10000, Queue 10001, Table 10002 | Pub/Sub 8085, Firestore 8080, Bigtable 8086, Spanner 9010/9020 | Self-signed certs must be trusted |
239
+ | Auth/IAM | Off by default; opt-in partial | Paid enforcement [unverified] | None by default [unverified] | Dev account key | Spanner: no TLS/auth/IAM | n/a |
240
+ | Best for | Multi-cloud integration, IaC loops | Teams on Pro features | Fast Python unit tests | Storage-only Azure | Spanner/Bigtable fidelity; `gcloud pubsub` unsupported on Pub/Sub emulator | Stored procs, change feed, RU/s |
241
+
242
+ LocalStack to Floci: swap image to a pinned `floci/floci:<version>` (or `-compat`), move data mount `/var/lib/localstack` → `/app/data`. LocalStack env vars are auto-translated (`PERSISTENCE=1` → `FLOCI_STORAGE_MODE=persistent`, etc.); `SERVICES` is ignored ([migration guide](https://github.com/floci-io/floci/blob/main/docs/getting-started/migrate-from-localstack.md)).
243
+
244
+ ## Known gaps
245
+
246
+ - AWS stubs: Bedrock Runtime, Textract, Transcribe, Signer, FIS, QuickSight. Azure: no Cosmos RU/s, global distribution or exact consistency; APIM lacks full policy language and JWT validation; SharedKey unvalidated in `dev` (Blob SAS is); no `floci az reset`.
247
+ - GCP: no Spanner or Bigtable; Cloud Functions control plane only; Compute Engine has no guest execution or traffic; Cloud Tasks tracked, not dispatched.
248
+ - OCI: no identity domains, dynamic groups, tag namespaces, object versioning, lifecycle, S3 Compatibility API, secret rotation.
249
+ - Doc contradictions: `persistent` flush timing, snapshots, `floci start --services`, Testcontainers names. Project is under a year old with two main maintainers (bus factor [inference]); vendor speed claims unreproduced.
250
+
251
+ ## Do / Avoid
252
+
253
+ **Do**
254
+ - Start, wait, wire as three explicit steps; re-`eval` env in every fresh shell; assert the endpoint is local before every mutation.
255
+ - Pin image tags in CI; publish ports on `127.0.0.1`; separate namespace/port/profile per parallel instance.
256
+ - Mount the Docker socket only for tier-1 services (else `*_MOCK=true`); check a service's tier before coding against it.
257
+ - Turn on enforcement for IAM/policy claims and report uncovered services; rerun in a real sandbox with OIDC creds before promotion.
258
+
259
+ **Avoid**
260
+ - `gcloud` with only `*_EMULATOR_HOST`; `az` ARM commands without `floci az setup`; `--profile <real>`; `-q` on `floci env`.
261
+ - Curl `healthcheck:` on Floci images; `floci start/restart/stop --remove` against Compose-managed containers.
262
+ - Treating stubs as output validation or a permissive green run as least-privilege proof.
263
+ - `floci snapshot`; the `-compat` OCI key near real OCI; `FLOCI_SECURITY_ALLOW_UNSAFE_NETWORK_EXPOSURE=true` on shared networks.
264
+
265
+ Related: `devsecops-pipeline.md`, `aws.md`, `azure.md`, `gcp.md`.
@@ -0,0 +1,134 @@
1
+ ---
2
+ name: contribute
3
+ description: "Join someone else's project as a contributor: learn it from the maintainer's brief, pick an unclaimed `help wanted` issue that doesn't overlap open PRs or claims, claim it, build and prove it the deepmodebot way, and open a PR. Use for /deepmodebot:contribute, \"help out on this repo\", or \"find me something to work on\"."
4
+ ---
5
+
6
+ # Contribute
7
+
8
+ You are a guest in someone else's project. The maintainer set it up with `skill://project-brief` (a newcomer brief, a claimable task board, guardrails). Your job: learn the project, find work nobody else holds, say out loud that you hold it, and ship one small, proven PR.
9
+
10
+ All deepmodebot rules apply (`skill://deepmodebot`). Three matter most here:
11
+
12
+ - **Two yeses, not ten.** Ask once before starting work: the claim comment and self-assign (plus a fork if you need one), because a claim only helps if others see it early. Ask once at the end: commit, push, open the PR, and any comments, listed together in one question. If the human's request already asked for these ("claim it and open the PR"), that is the yes. Draft anything public first and show it in the question.
13
+ - **Restate the goal first** with the **in-your-own-words** technique (`skill://deepmodebot/references/techniques/in-your-own-words.md`).
14
+ - **Prove it on the real app** and put the evidence in the PR.
15
+
16
+ Shell notes: all work stays inside the project's clone (deepmodebot's "Contain the work" section). Scratch files go in its git-excluded `.scratch/` (`f=$(mktemp -p .scratch)` in bash; `New-Item -ItemType Directory -Force .scratch | Out-Null; $f = ".scratch/claim.md"` in PowerShell), never `/tmp`, system temp, or your home folder. Run Python with `-B` (`python3 -B` or `py -3 -B` on Windows). Below, `R` is `owner/name` and `N` is the issue number.
17
+
18
+ ## Overlap tool
19
+
20
+ Use `scripts/pr-overlap.py` when the repo ships it, else the plugin's copy (omp: `skill://project-brief/assets/pr-overlap.py`; Claude Code: `<this skill dir>/../project-brief/assets/pr-overlap.py`; Antigravity: `~/.gemini/config/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py`; Codex: sibling `project-brief/assets/pr-overlap.py` from the skill list):
21
+
22
+ ```bash
23
+ # Set OVERLAP to scripts/pr-overlap.py if present, else the plugin path for your harness above
24
+ python -B "$OVERLAP" claims --repo R --json
25
+ python -B "$OVERLAP" check --repo R --files a,b,dir/ --exclude-issue N
26
+ ```
27
+ (On Windows PowerShell, use `py -3 -B $OVERLAP ...`.)
28
+
29
+ `check` exit codes: `0` no overlap, `3` overlap (read the table), `2` usage or `gh` error (fix it; an error is not a pass). Paths are repo-relative with forward slashes; a trailing `/` means a whole directory. Say which copy you used. Every `check` you run after claiming must pass `--exclude-issue N` (and `--exclude-pr <your PR>` once your PR exists), otherwise your own claim is reported as overlap.
30
+
31
+ ## Claim format
32
+
33
+ The claim is one issue comment in exactly this shape (the marker line first, nothing else in the comment):
34
+
35
+ ```
36
+ <!-- deepmodebot:claim -->
37
+ Claimed by @<login> via /contribute
38
+ Plan: <one line>
39
+ Files: <comma-separated repo paths; a trailing "/" means a whole directory>
40
+ Expires: <YYYY-MM-DD, 7 days after posting>
41
+ ```
42
+
43
+ - `<login>`: `gh api user -q .login`.
44
+ - `Expires`: `python -B -c "import datetime as d;print(d.datetime.now(d.timezone.utc).date()+d.timedelta(days=7))"` (UTC; `py -3 -B` on Windows).
45
+ - Your newest claim comment is your claim: it replaces your earlier ones and never changes anyone else's. To renew or change `Files`, post a new claim comment; don't edit the old one.
46
+ - To release, post a comment from the same account that contains `<!-- deepmodebot:unclaim -->`:
47
+
48
+ ```
49
+ <!-- deepmodebot:unclaim -->
50
+ Released by @<login>: <one-line reason>
51
+ ```
52
+
53
+ ## Steps
54
+
55
+ 1. **Find the repo.**
56
+ - In a git clone → `gh repo view --json nameWithOwner,defaultBranchRef,viewerPermission`.
57
+ - Given a URL or `owner/name` → `gh repo clone R <name>` into a folder named after the repo under the current directory (beside the current repo, never inside it, when the current directory is another project; a folder the human names wins). That clone is the project root for all later work. Then the same `gh repo view`.
58
+ - `viewerPermission` is not `WRITE`, `MAINTAIN`, or `ADMIN` → you can't push branches here. Tell the human you need a fork, and on their yes run `gh repo fork R --remote` (the fork becomes `origin`, the project becomes `upstream`). From then on "main" means `upstream`'s default branch.
59
+ - Below, "main" means the default branch from `defaultBranchRef`, whatever its name.
60
+
61
+ 2. **Read the project.** From the repo root, read whichever exist: `docs/PROJECT_BRIEF.md`, `STACK.md`, `CONTRIBUTING.md`, `AGENTS.md` (or `CLAUDE.md`), `ROADMAP.md`, `.github/PULL_REQUEST_TEMPLATE.md`, and the verify skill (`.omp/skills/verify-*/SKILL.md`, `.claude/skills/verify-*/SKILL.md`, `.agents/skills/verify-*/SKILL.md` for Antigravity/Codex, or the path the brief names).
62
+ - No `docs/PROJECT_BRIEF.md` → tell the human the maintainer hasn't run `project-brief`, so there is no curated brief or claim board yet. Learn the project with the **how** technique (`skill://deepmodebot/references/techniques/how.md`) instead, and still use the overlap tool's plugin copy for PRs and claims.
63
+ - No verify skill → note it; you'll prove changes by hand in step 7 (deepmodebot's **Prove it on the real artifact** rule covers the options).
64
+
65
+ 3. **Brief the human in plain words.** Five to ten sentences, no jargon dump:
66
+ - What the project is and who uses it.
67
+ - How it runs locally (the exact commands from the brief or CONTRIBUTING; say if you haven't run them yet).
68
+ - Where help is wanted (themes from `ROADMAP.md` or the `help wanted` label).
69
+ - The house rules that will affect them (tests, style, review, sign-off).
70
+ - The human didn't say what they want to work on → ask: interest area, skills, and time budget. This is a preference call, so asking is right.
71
+
72
+ 4. **List candidate issues.**
73
+ ```bash
74
+ gh issue list --repo R --state open --label "help wanted" --limit 200 --json number,title,labels,assignees,url,body
75
+ python -B "$OVERLAP" claims --repo R --json
76
+ ```
77
+ - Drop every issue the `claims` output lists. It covers claim comments and assignees, with one entry per holder, and leaves out an assignee whose own claim comment expired or was released.
78
+ - Task issues from the maintainer's template use body headings `### Goal`, `### Why`, `### Area / files`, `### Done when`, `### Skills needed`, and `### Size` (`S`, `M`, or `L`). Read them when present; free-form issues get your own estimate.
79
+ - Keep the ones that match the human's interest and the issue's `### Skills needed`.
80
+ - Order smallest-first: `good first issue` first, then `### Size` `S` → `M` → `L`, then by how few files and how little design the issue implies.
81
+ - Show three to five candidates: number, title, one-line why it fits, and size (`### Size` or your guess, labeled as a guess). The human picks; recommend one.
82
+
83
+ 5. **Plan and check for overlap.** For the chosen issue:
84
+ - Read the issue and its comments in full: `gh issue view N --repo R --comments`.
85
+ - Restate the goal (in-your-own-words), then draft a short plan that names every file or directory you expect to touch. Seed the list from the issue's `### Area / files` when present, then correct it from the code; `### Done when` is your acceptance check.
86
+ - Run the overlap check with those paths: `python -B "$OVERLAP" check --repo R --files <paths>`. Don't pass `--exclude-issue N` here: you haven't claimed yet, so any claim on N is someone else's and must show up.
87
+ - Check work the tool can't see: `git fetch --all --prune`, then `git branch -r --list "*N*"` and branches named after the same area, and `git log origin/main --since=30.days --oneline -- <paths>` (use `upstream/main` on a fork) for recent changes to the same area.
88
+ - Overlap found (exit `3`, a matching branch, or a fresh commit that already does part of it) → never silently duplicate. Show the human what overlaps and offer three paths:
89
+ - **Pick another issue** (back to step 4).
90
+ - **Coordinate**: draft a short comment on the other issue or PR asking whether they're still on it or would split the work. Post only on a yes, then wait for their answer before building.
91
+ - **Build on top (stack)**: branch from their PR branch and target it as the base, per the stacking rule in the Opening a PR playbook. Say so in your claim's `Plan`.
92
+ - No overlap (exit `0`) → say so, with the command you ran.
93
+
94
+ 6. **Claim it.** Show the human the exact claim comment (format above, with the real login, plan, files, and date). On their yes:
95
+ - Right before posting, run `python -B "$OVERLAP" claims --repo R --json`. Issue N is in that output under another login → stop, tell the human, and go back to step 4 or coordinate as in step 5.
96
+ - Write the body to a file inside `.scratch/` (`mktemp -p .scratch` in bash; `.scratch/claim.md` in PowerShell) and post it: `gh issue comment N --repo R --body-file "$f"`.
97
+ - Self-assign if the repo permits: `gh issue edit N --repo R --add-assignee @me`. A permission error is fine; the claim comment is the record.
98
+ - Right after posting, run `gh issue view N --repo R --comments` and confirm no other author posted a claim comment after your step-4 read. One did → post the unclaim comment (format above) for yourself, tell the human, and pick other work (step 4) or coordinate with them (step 5).
99
+
100
+ 7. **Build it the deepmodebot way.**
101
+ - Branch `<issue#>-<slug>` from the latest main: `git fetch origin && git switch -c N-<slug> origin/main` (from `upstream/main` on a fork; from the parent PR branch when stacking).
102
+ - Route to the matching deepmodebot playbook and follow it step by step: new behavior → `skill://deepmodebot/references/playbooks/feature.md`; broken behavior → `skill://deepmodebot/references/playbooks/bug-fix.md`; same behavior, better structure → `skill://deepmodebot/references/playbooks/refactoring.md`. Say which one and why. Stop before that playbook's PR and landing steps: this is someone else's project, so opening the PR waits for the end-of-work yes below, and the maintainer lands it.
103
+ - Follow the repo's own rules from step 2 over generic habits (formatter, test command, commit style).
104
+ - Prove it on the real app with the verify skill or by hand, and keep the evidence (commands and output, screenshots, video).
105
+ - Need a file outside the plan → stop, tell the human, and post an updated claim comment with the new `Files` (on their yes) before you touch it.
106
+
107
+ 8. **Before the PR.**
108
+ - Rebase on the latest main: `git fetch origin && git rebase origin/main` (`upstream/main` on a fork). Re-run the tests and the real-app proof if the rebase pulled in changes near your files.
109
+ - List the real changed files: `git diff --name-only origin/main...HEAD | paste -sd, -` (PowerShell: `(git diff --name-only origin/main...HEAD) -join ','`).
110
+ - Re-run the check with those files: `python -B "$OVERLAP" check --repo R --files <changed files> --exclude-issue N`.
111
+ - New overlap since step 5 → report it to the human with the table and coordinate as in step 5 before opening anything.
112
+ - Changed files grew past the claim → post an updated claim (on a yes) so others see the real footprint.
113
+ - Self-review: run deepmodebot's pr-review technique in local mode (`skill://deepmodebot/references/techniques/pr-review.md`) on your branch diff; fix or dismiss (with a reason) each finding, ask the human on judgment calls, and keep its `review:` result line.
114
+
115
+ 9. **Open the PR** with deepmodebot's Opening a PR playbook (`skill://deepmodebot/references/playbooks/opening-a-pr.md`), after the end-of-work yes covering commit, push, and open.
116
+ - Push the branch (to your fork when you forked; `gh pr create` then targets the project).
117
+ - The body fills the repo's `.github/PULL_REQUEST_TEMPLATE.md` when one exists; otherwise use the playbook's headings.
118
+ - The body must include `Closes #N`, the verification evidence from step 7, the overlap result from step 8 (the command and "no overlap", or what overlaps and how you coordinated), and a note that a self-review ran with its `review:` result line.
119
+ - If the repo has `scripts/pr-overlap.py`, run `python -B scripts/pr-overlap.py comment --repo OWNER/REPO --pr <N>` once the PR exists, so the overlap comment is on it; act on what it reports. There is no CI bot doing this.
120
+ - Post the PR URL to the human.
121
+
122
+ 10. **Close the loop.**
123
+ - Merged → `Closes #N` closes the issue; nothing else to post.
124
+ - Abandoned, rejected, or you stop for any reason → on the human's yes, post the unclaim comment (format above) with a one-line reason, and unassign yourself: `gh issue edit N --repo R --remove-assignee @me`. Close your PR if one is open, saying why.
125
+ - Still working when `Expires` approaches → post a fresh claim comment with a new date (on a yes) and a one-line status.
126
+
127
+ ## Rules of the road
128
+
129
+ - One issue, one branch, one PR. Found a second problem? Tell the human and suggest a new issue; don't fold it in.
130
+ - Keep claims fresh: renew before `Expires`, release the moment you stop. A stale claim blocks other people.
131
+ - Never touch files outside the plan without first posting an updated claim.
132
+ - Never push to someone else's branch. To build on their work, stack a branch on top of theirs or ask them.
133
+ - Never claim, comment, assign, fork, commit, push, or open a PR without the human's yes: one yes before work (claim, assign, fork) and one at the end (commit, push, PR, comments).
134
+ - The maintainer's brief, CONTRIBUTING, and AGENTS rules beat this skill's defaults wherever they disagree; say when they do.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lauren Tan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.