deepmodebot 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +26 -0
- package/.omp-plugin/marketplace.json +26 -0
- package/LICENSE +24 -0
- package/README.md +377 -2
- package/bin/deepmodebot.mjs +229 -0
- package/lib/autoupdate.mjs +47 -0
- package/lib/clients.mjs +139 -0
- package/lib/run.mjs +32 -0
- package/lib/state.mjs +52 -0
- package/lib/tree.mjs +48 -0
- package/package.json +44 -4
- package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
- package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
- package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
- package/plugins/deepmodebot/agents/scout/agent.md +34 -0
- package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
- package/plugins/deepmodebot/assets/logo.svg +8 -0
- package/plugins/deepmodebot/commands/contribute.md +8 -0
- package/plugins/deepmodebot/commands/deep.md +11 -0
- package/plugins/deepmodebot/commands/land-pr.md +12 -0
- package/plugins/deepmodebot/commands/pr-thread.md +14 -0
- package/plugins/deepmodebot/commands/project-brief.md +8 -0
- package/plugins/deepmodebot/commands/review-pr.md +10 -0
- package/plugins/deepmodebot/commands/tournament.md +12 -0
- package/plugins/deepmodebot/hooks/hooks.json +26 -0
- package/plugins/deepmodebot/hooks.json +24 -0
- package/plugins/deepmodebot/mcp_config.json +11 -0
- package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
- package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
- package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
- package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
- package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
- package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
- package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
- package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
- package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
- package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
- package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
- package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
- package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
- package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
- package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
- package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
- package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
- package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
- package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
- package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
- package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
- package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
- package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
- package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
- package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
- package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
- package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
- package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
- package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
- package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
- package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
- package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
- package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
- package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Backend craft and system design
|
|
2
|
+
|
|
3
|
+
Read when writing or reviewing backend code, designing an API, choosing or tuning a database, adding a cache or queue, scaling a service, hardening security, or choosing a language. Where a rule matches an existing deepmodebot principle, the principle is named; follow the principle file for detail. Per-language runtime, tooling, and traps are in `language-ecosystems.md`. Source keys are in this skill's `SKILL.md`.
|
|
4
|
+
|
|
5
|
+
## Coding laws
|
|
6
|
+
|
|
7
|
+
1. **Main path visible.** Guard conditions first with early returns. No deep if/else nesting. (CODE-LAWS)
|
|
8
|
+
2. **Domain names.** `pending_order`, `process_order`, not `data`, `item`, `result`. (CODE-LAWS)
|
|
9
|
+
3. **External systems behind a boundary.** Wrap third-party APIs and legacy services in an adapter so their changes stop at the edge. Principle `boundary-discipline`. (CODE-LAWS)
|
|
10
|
+
4. **Invalid states unrepresentable.** Types where required fields must exist together; no half-built objects. Principle `type-system-discipline`. (CODE-LAWS)
|
|
11
|
+
5. **Decisions apart from side effects.** Pure business rules separate from DB writes, notifications, network calls, so rules test without mocks. Principle `boundary-discipline` (pure core). (CODE-LAWS)
|
|
12
|
+
6. **Useful errors.** Machine-readable error code plus a human message. Log diagnostic context, never secrets or customer data. (CODE-LAWS)
|
|
13
|
+
7. **Focused changes.** One purpose per PR. Fixes apart from refactors, so each is easy to review and roll back. (CODE-LAWS)
|
|
14
|
+
|
|
15
|
+
Python additions (PY-LAWS):
|
|
16
|
+
|
|
17
|
+
- No bare `except:`. It swallows `KeyboardInterrupt` and `SystemExit`. Catch only the exceptions you expect, with narrow `try` blocks.
|
|
18
|
+
- Orchestrator functions read as a top-level story and delegate detail to helpers.
|
|
19
|
+
- Comments explain *why* only (non-obvious constraint or decision). Same as deepmodebot's Comments rule.
|
|
20
|
+
|
|
21
|
+
## API design
|
|
22
|
+
|
|
23
|
+
- URIs are plural nouns (`/orders`); the HTTP verb is the action. Do not mix singular and plural. (API-LAWS)
|
|
24
|
+
- GET, PUT, DELETE are idempotent and safe to retry. POST creates. (API-LAWS)
|
|
25
|
+
- Identity in the path, filtering, sorting, and paging in the query (`/products?category=shoes&limit=20`). (API-LAWS)
|
|
26
|
+
- Evolve by adding optional fields. Create `/v2/` only to change or remove an existing contract. (API-LAWS)
|
|
27
|
+
- Never return 200 with an error body. (API-LAWS)
|
|
28
|
+
|
|
29
|
+
Status codes (HTTP-CODES, API-LAWS):
|
|
30
|
+
|
|
31
|
+
| Code | Use for |
|
|
32
|
+
|---|---|
|
|
33
|
+
| 200 | Successful read or update |
|
|
34
|
+
| 201 | Resource created |
|
|
35
|
+
| 202 | Accepted, processing async |
|
|
36
|
+
| 204 | Done, no body (delete) |
|
|
37
|
+
| 400 | Malformed request |
|
|
38
|
+
| 401 | Missing or invalid authentication |
|
|
39
|
+
| 403 | Authenticated but not allowed |
|
|
40
|
+
| 404 | Resource does not exist |
|
|
41
|
+
| 409 | Conflicts with current state |
|
|
42
|
+
| 422 | Well-formed but fails domain validation |
|
|
43
|
+
| 429 | Rate limited |
|
|
44
|
+
| 500 | Unhandled server crash |
|
|
45
|
+
| 502 | Upstream dependency failed |
|
|
46
|
+
| 503 | Overloaded or in maintenance |
|
|
47
|
+
|
|
48
|
+
Choosing an API style (REST-GQL-GRPC, API-TYPES):
|
|
49
|
+
|
|
50
|
+
| Style | Use for |
|
|
51
|
+
|---|---|
|
|
52
|
+
| REST over HTTP/JSON | Public web and mobile APIs; best caching and tooling |
|
|
53
|
+
| GraphQL | Complex screens that need data from many entities in one round trip, without over- or under-fetching |
|
|
54
|
+
| gRPC (Protocol Buffers) | Internal service-to-service calls needing high throughput, low latency, streaming |
|
|
55
|
+
| Webhooks | Pushing events to partners instead of making them poll |
|
|
56
|
+
| WebSockets | Persistent two-way real time: chat, live tracking, tickers |
|
|
57
|
+
|
|
58
|
+
Common split: REST or GraphQL at the edge, gRPC inside.
|
|
59
|
+
|
|
60
|
+
## Databases
|
|
61
|
+
|
|
62
|
+
- Pick by read and write access patterns, not by the shape of the data. (DB-LAWS)
|
|
63
|
+
- Name the **system of record**. Caches and search indexes are disposable copies of it. (DB-LAWS)
|
|
64
|
+
|
|
65
|
+
| Store | Use for |
|
|
66
|
+
|---|---|
|
|
67
|
+
| Relational (Postgres, MySQL) | Relationships, joins, transactions |
|
|
68
|
+
| Key-value (Redis) | Sessions, carts, fast key lookups |
|
|
69
|
+
| Document (MongoDB) | Self-contained records, fast-changing schema |
|
|
70
|
+
| Graph (Neo4j) | Multi-hop relationships: social, fraud rings, recommendations |
|
|
71
|
+
| Wide-column (Cassandra) | Massive write volume, event logs, ingest |
|
|
72
|
+
| Time-series | Metrics, IoT, tickers, with downsampling |
|
|
73
|
+
| Search (Elasticsearch) | Full-text, fuzzy autocomplete, log search |
|
|
74
|
+
| Blob (S3) | Images, video, backups; keep only metadata and URL in the DB |
|
|
75
|
+
|
|
76
|
+
(PICK-DB)
|
|
77
|
+
|
|
78
|
+
### Indexes
|
|
79
|
+
|
|
80
|
+
- B-tree indexes are shallow and wide, one node per disk block. About 3 reads find a row among 10 million. (CS-4H)
|
|
81
|
+
- Each index costs storage and slows INSERT, UPDATE, DELETE. Index only columns in WHERE, JOIN, ORDER BY that filter out most rows. (CS-4H)
|
|
82
|
+
- A function on the column (`WHERE LOWER(email) = ...`) defeats a plain B-tree index. (CS-4H)
|
|
83
|
+
- Composite indexes work left to right. `(last_name, first_name)` serves `last_name` alone or both, never `first_name` alone. (CS-4H)
|
|
84
|
+
- Partial indexes (`WHERE status = 'pending'`) speed queries on a small hot subset of a big table. (SQL-10)
|
|
85
|
+
- Run `EXPLAIN` or `EXPLAIN ANALYZE` before shipping a query to confirm the index is used. (CS-4H)
|
|
86
|
+
|
|
87
|
+
### Transactions and IDs
|
|
88
|
+
|
|
89
|
+
- Group dependent writes in one transaction for atomicity, consistency, isolation, durability. (DB-10MIN)
|
|
90
|
+
- Prevent lost updates with transactions, row locks, or atomic operations, never read-modify-write in app code. (CS-4H)
|
|
91
|
+
- Keep transactions short. Never hold one open across a slow external API call; it pins pool connections and row locks. (JAVA-INT)
|
|
92
|
+
- One database: sequential integer IDs (4–8 bytes, small indexes). Distributed key generation: UUIDs (16 bytes), preferably time-ordered UUIDv7. (UUID)
|
|
93
|
+
|
|
94
|
+
## Caching
|
|
95
|
+
|
|
96
|
+
- Cache-aside: read the cache; on a miss, read the DB, return, and fill the cache. (BACKEND-ECO)
|
|
97
|
+
- A cache is never durable. A missing key must repopulate cleanly from the system of record. (DB-LAWS)
|
|
98
|
+
- Every cache has a hard memory cap and an eviction policy. An unbounded cache is a slow memory leak. (CS-4H)
|
|
99
|
+
- LRU is a hashmap (O(1) lookup) plus a doubly linked list (O(1) move-to-front and tail evict). (CS-4H)
|
|
100
|
+
|
|
101
|
+
## Partitioning and sharding
|
|
102
|
+
|
|
103
|
+
- Partitioning splits a table inside one DB server. Sharding splits data across separate servers. (PART-SHARD)
|
|
104
|
+
- Shard last. First exhaust query tuning, indexes, caching, read replicas, and bigger hardware. (PART-SHARD)
|
|
105
|
+
- Choose a shard key that spreads both data and live traffic evenly, or one node becomes the hotspot. (PART-SHARD)
|
|
106
|
+
- Cross-shard queries and transactions are slow and operationally expensive. Design so common queries hit one shard. (PART-SHARD)
|
|
107
|
+
|
|
108
|
+
## Queues and events
|
|
109
|
+
|
|
110
|
+
- Move slow work (notifications, fulfillment, reports) off the request thread into a queue. (BACKEND-INT)
|
|
111
|
+
- Task queue (RabbitMQ, SQS): competing consumers; a message is gone once acknowledged. Event log (Kafka): durable, partitioned, replayable. (DEVOPS)
|
|
112
|
+
- Publish domain events (`OrderPlaced`) to a bus so other services react without coupling. (PATTERNS)
|
|
113
|
+
- Bound every queue or apply backpressure, so a surge cannot exhaust memory. (CS-4H)
|
|
114
|
+
|
|
115
|
+
## Scaling
|
|
116
|
+
|
|
117
|
+
- Keep app servers stateless (sessions and files in a DB or cache) so any instance can serve any request behind a load balancer. (SCALING)
|
|
118
|
+
- Scale vertically first to buy time before distributing. (SYS-4MIN)
|
|
119
|
+
- Reverse proxy (NGINX): TLS termination and caching. Load balancer (ALB): spread requests across instances. API gateway (Kong): central routing, rate limits, client auth. (CONFUSING-3)
|
|
120
|
+
- Do the minimum synchronously in the request. Push heavy work to background workers. (X-DESIGN)
|
|
121
|
+
- For high-concurrency server, reactor (`epoll`/`io_uring`), TCP/NIC, Postgres/SQLite, and per-runtime optimization rules, read `high-scale-server-optimization.md`.
|
|
122
|
+
- For hot-path data structures, pointer-free slot tables, cache-line alignment, hugepages, and tight-RAM arenas, read `data-structures-and-cache-optimization.md`.
|
|
123
|
+
|
|
124
|
+
## Resilience
|
|
125
|
+
|
|
126
|
+
- Circuit breaker (Resilience4j) around every third-party call. States: closed (normal), open (fail fast with a fallback), half-open (let trial calls through to test recovery). (PATTERNS)
|
|
127
|
+
- Idempotency keys on payments and other mutations. A duplicate retry returns the original response. Principle `make-operations-idempotent`. (BACKEND-INT)
|
|
128
|
+
- Degrade gracefully: serve cached or partial data rather than failing the whole app. (SYS-FINALLY)
|
|
129
|
+
|
|
130
|
+
## Observability
|
|
131
|
+
|
|
132
|
+
- Three signals: metrics (health, throughput), structured logs (event context), distributed traces (a request across services). (DEVOPS)
|
|
133
|
+
- Propagate trace and span IDs in HTTP headers with OpenTelemetry. (DEVOPS)
|
|
134
|
+
- Separate liveness (process is up) from readiness (dependencies connected, safe to receive traffic). (JAVA-INT)
|
|
135
|
+
- Alert on what users feel (error rate, p99 latency), not noisy host stats that teach people to ignore alerts. (DEV-LIFE)
|
|
136
|
+
|
|
137
|
+
## Security
|
|
138
|
+
|
|
139
|
+
- Never trust the client. Every permission, rule, and validation runs on the server. (SECURE-API)
|
|
140
|
+
- Object-level authorization (prevents BOLA): check the caller may access *this* resource ID, not just that they are logged in. (SECURE-API)
|
|
141
|
+
- SSRF: validate and allow-list user-supplied URLs so the server cannot be pointed at internal admin endpoints or the cloud metadata service. (SECURE-API)
|
|
142
|
+
- Parameterized queries or an ORM. Never concatenate input into SQL. (DEV-LIFE)
|
|
143
|
+
- Short-lived access tokens (minutes) plus securely stored refresh tokens. (API-AUTH)
|
|
144
|
+
- Logs never contain passwords, tokens, or customer PII. (CODE-LAWS)
|
|
145
|
+
|
|
146
|
+
## Choosing a language
|
|
147
|
+
|
|
148
|
+
| Domain | Pick | Why |
|
|
149
|
+
|---|---|---|
|
|
150
|
+
| Kernels, firmware, microcontrollers | C | No runtime, direct memory (C-ECO) |
|
|
151
|
+
| Game engines, browsers, ML runtimes | C++ | Zero-cost abstractions, peak performance (CPP-ECO) |
|
|
152
|
+
| Network infrastructure, security-critical tools, concurrent CLIs | Rust | Memory safety checked at compile time, no GC (RUST-ECO) |
|
|
153
|
+
| Microservices, cloud tooling (Docker, Kubernetes), networking | Go | Fast builds, goroutines, single static binary (LANGS-2026) |
|
|
154
|
+
| Enterprise and banking backends | Java (Spring Boot) | Stability, deep ecosystem, JVM with JIT (JAVA-ECO) |
|
|
155
|
+
| Enterprise APIs, Windows, Unity games | C# (.NET 10) | Managed runtime, cross-platform (CSHARP) |
|
|
156
|
+
| ML, AI agents, data, quick APIs | Python (PyTorch, Pandas, FastAPI) | Ecosystem and speed of iteration (LANGS-2026) |
|
|
157
|
+
| Large web front ends and Node backends | TypeScript | Types catch bugs at build time (LANGS-2026) |
|
|
158
|
+
| CMS, storefronts, fast web delivery | PHP (Laravel) | Rapid feature delivery (LANGS-2026) |
|
|
159
|
+
| Native Android, modern JVM backends | Kotlin | Java interop, null safety, coroutines (LANGS-2026) |
|
|
160
|
+
| Apple platform apps | Swift | Native speed, ARC memory safety (LANGS-2026) |
|
|
161
|
+
|
|
162
|
+
Pick by domain constraint, not popularity rankings.
|
package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Data structures & CPU cache optimization
|
|
2
|
+
|
|
3
|
+
Distilled from `arjaythedev`'s `$12 Server` (1 vCPU / 2 GB RAM, 244 entries), `Multicore` (8 vCPU / 16 GB RAM, 117+ entries), and `Million Users` (2-16 vCPU, 96 entries) challenges. Use when designing or optimizing hot-path data structures, memory layouts, lock-free queues, or tight-RAM runtimes.
|
|
4
|
+
|
|
5
|
+
## 1. Memory Packing & Pointer-Free Layouts
|
|
6
|
+
|
|
7
|
+
1. **Pack per-entity/connection slots to 8-64 bytes in flat arrays.** Avoid per-connection heap objects. An 8-12 B or 24-64 B flat `struct` indexed by fd/slot uses ~16-40 MB at 1M entries instead of 10-38 GB.
|
|
8
|
+
2. **Keep hot tables pointer-free in GC'd languages (Go, C#, Java, JS/TS, Python).** Store integer indices, generation tags, and `Uint32Array`/`Uint8Array`/primitive arrays instead of object references so the GC never scans millions of idle slots.
|
|
9
|
+
3. **Encode operation metadata in 64-bit `user_data` tags.** Pack `(op, ring, gen, aux, slot)` bits into `io_uring` `user_data` or queue tokens to validate completions in O(1) without dereferencing heap structs.
|
|
10
|
+
4. **Detach buffers from idle state.** Idle slots hold null/no rx/tx buffers; borrow from shared LIFO buffer pools or provided-buffer rings only while a request is active so LIFO reuse keeps only hot pages resident.
|
|
11
|
+
5. **Use inline small-string buffers (`SmallStr`).** A 64-byte stack-inline string avoids heap allocations for keys, usernames, and short tokens on 99% of requests.
|
|
12
|
+
6. **Avoid Actor/Graph reference retention leaks.** Never let per-connection actors or handlers hold a reference to a central coordinator that references the entire DB/worker pool; pass only the single assigned slot/handle (e.g., Pony ORCA dropped from 296 KB/conn to 11 KB/conn).
|
|
13
|
+
|
|
14
|
+
## 2. CPU Cache-Line, L1D & TLB Optimization
|
|
15
|
+
|
|
16
|
+
7. **Pad cross-thread ring indices and wake flags to 64-byte cache lines.** Put producer `head`, consumer `tail`, and `idle` wake flags on separate `alignas(64)` lines to eliminate false sharing.
|
|
17
|
+
8. **Cache peer ring indices locally; publish batches with one atomic store.** On SPSC rings, read the peer's index only when your cached bound looks full/empty, and advance `head`/`tail` once per batch.
|
|
18
|
+
9. **Space per-worker wake flags 64 bytes apart (`64 * (w + 1)`).** Prevents cache-line ping-pong when a central planner wakes individual workers.
|
|
19
|
+
10. **Avoid L1D 4K-aliasing on multi-lane state arrays.** Pad per-lane structs off exact 4,096 B multiples (e.g., `4,224 B` with `align(64)`) so interleaved SIMD/crypto lanes do not collide on the same L1D sets.
|
|
20
|
+
11. **Right-size open-addressed hash tables to fit L1/L2 cache.** Start dynamic lookup tables small (e.g., 4,096 slots) and grow only if needed; fixed 65,536-slot (256 KiB) tables caused 18% CPU cache-miss overhead.
|
|
21
|
+
12. **Use L1D-resident bitsets (`[u64; 8]` / `[u64; 32]`) for small membership checks.** Replacing hash sets or branchy loops with bitmasks for per-batch flags keeps lookups in L1D.
|
|
22
|
+
13. **Use hardware CRC-32 (`_mm_crc32_*`) for fast integer/short-key hashing.** Cuts hash-map CPU overhead on hot lookup tables.
|
|
23
|
+
14. **Pre-fault 2 MB hugepages ONLY for static pools, then disable process-wide THP.** `mmap` + `MADV_HUGEPAGE` + pre-fault static caches (page cache, slot arrays) at startup to cut EPT/TLB walks, then call `prctl(PR_SET_THP_DISABLE, 1)` so dynamic heap allocators do not stall on kernel compaction.
|
|
24
|
+
15. **Do not force 64-byte function alignment blindly.** Over-aligning functions can reduce instruction-fetch stalls slightly while tripling branch misses and hurting overall IPC; benchmark with `perf stat`.
|
|
25
|
+
|
|
26
|
+
## 3. Queues, Timers, Arenas & Page Reclaim
|
|
27
|
+
|
|
28
|
+
16. **Bypass TCP loopback for intra-process/local IPC.** Use `mmap(MAP_SHARED | MAP_ANONYMOUS)` SPSC rings + `eventfd` (1-3 us) or `AF_UNIX` `socketpair` instead of loopback sockets.
|
|
29
|
+
17. **Replace millions of per-item timers with a hashed timing wheel.** A 512-slot 1-second wheel cut Go timer CPU from 3.4% to 0.2% across 1M sockets.
|
|
30
|
+
18. **Use 2-12 MiB `mmap` response arenas recycled at `inflight == 0`.** Write JSON bodies with 128-256 B header headroom directly into the arena, prepend headers in-place, and reset the cursor once all `SEND`s complete.
|
|
31
|
+
19. **Protect hot `.text` pages on swapless tight-RAM boxes.** Linux MGLRU evicts file-backed code pages first when swap is off; use `mlock`/`MLOCK_ONFAULT` within `RLIMIT_MEMLOCK` (or remap hot code to anon pages) to prevent major-fault stalls.
|
|
32
|
+
20. **Control glibc arena fragmentation.** Set `mallopt(M_ARENA_MAX, 1..4)` (or `M_TRIM_THRESHOLD`) on fixed-thread services and call `malloc_trim(0)` after backlog spikes drain so freed buffers return to the kernel.
|
|
33
|
+
21. **Avoid `memset` in hot loops via epoch/base-cursor tricks.** Increment a monotonic `base` cursor on pre-sized LZ77/dedup tables instead of zeroing 8-16 KB per call.
|
|
34
|
+
|
|
35
|
+
## 4. Algorithmic & Storage Access-Pattern Wins
|
|
36
|
+
|
|
37
|
+
22. **Sort batch lookup keys monotonically before probing B-trees.** Sorting post/author IDs ascending before `TableMoveto` or Postgres `= ANY($1)` walks contiguous leaf pages in L1/cache order instead of random root-to-leaf probes.
|
|
38
|
+
23. **Traverse B-tree cursors directly when SQLVM/ORM overhead dominates read-heavy hot paths.** Keeping positioned cursors across read passes and decoding local varint/big-endian payloads off pinned page-cache pointers avoids bytecode VM and `Mem` allocations.
|
|
39
|
+
24. **Replace `pcache1` `xTruncate` O(N) scans via `SQLITE_CONFIG_PCACHE2`.** Track `max_key` / park split-swap pages at key `0` so B-tree splits do not trigger full hash-table scans on every commit.
|
|
40
|
+
25. **Use LIFO-with-aging on overloaded request queues.** Serve newest requests first to stay inside TCP's 40 ms delayed-ACK window, while reserving a slice (e.g., 50% at 8 s, 100% at 16 s) for aged items to prevent starvation.
|
|
41
|
+
|
|
42
|
+
## 5. Game Engine, Sim & Real-Time Frame-Budget Layouts
|
|
43
|
+
|
|
44
|
+
26. **Use Structure-of-Arrays (SoA) over Array-of-Structures (AoS) for hot tick loops.** Storing positions, velocities, and flags in contiguous per-field arrays lets ECS/sim loops stream sequential cache lines and SIMD-vectorize without loading cold fields.
|
|
45
|
+
27. **Pre-reserve contiguous arrays and replace `std::unordered_map` on hot paths.** Node-based maps allocate per entry and chase pointers; use flat open-addressed hash maps, dense ID-indexed arrays, or `Reserve()`d vectors.
|
|
46
|
+
28. **Use frame-scratch bump allocators reset every tick.** Transient per-frame/per-step scratch data should advance a pointer in a pre-allocated arena and reset in O(1) at frame end instead of calling `malloc`/`new`.
|
|
47
|
+
29. **Never flush or heap-allocate inside simulation/render tick loops.** Avoid `std::endl`, string formatting, or dynamic container growth inside 60-120 Hz tick paths; emit diagnostics to lock-free SPSC ring buffers.
|
|
48
|
+
30. **Separate sim-thread and render-thread state via double-buffered snapshots or SPSC queues.** Eliminates mutex contention on frame boundaries and keeps frame times deterministic.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# DevOps, tooling, and CS fundamentals
|
|
2
|
+
|
|
3
|
+
Read when working with Linux, the shell, git, Docker, Kubernetes, Terraform, CI/CD, deployments, or configuration and secrets, or when a bug turns on data structures, complexity, memory, floating point, concurrency, or networking protocols. Source keys are in this skill's `SKILL.md`.
|
|
4
|
+
|
|
5
|
+
## Linux
|
|
6
|
+
|
|
7
|
+
- The kernel runs privileged and arbitrates CPU, RAM, disk, and network. User code runs in restricted user mode; an illegal memory access is a segmentation fault. (LINUX-CORE)
|
|
8
|
+
- One tree under `/`: devices in `/dev`, live process data in `/proc`, logs in `/var/log`, binaries in `/bin` and `/usr/bin`, config in `/etc`. (LINUX-DIRS)
|
|
9
|
+
- `systemd` is PID 1. It orders boot dependencies, restarts failed services, and collects logs (`journalctl`). `systemctl start` runs now; `systemctl enable` runs at boot. (SYSTEMD)
|
|
10
|
+
- Unix philosophy: small single-purpose tools joined by pipes. (UNIX-LINUX)
|
|
11
|
+
- Distros share the kernel and differ in package manager and policy: Debian/Ubuntu (`apt`, stability), Fedora (`dnf`, SELinux), Arch (`pacman`, minimal rolling), Kali (pentest tools). (DISTROS)
|
|
12
|
+
- Immutable distros (Fedora Silverblue, openSUSE Aeon) update the root image atomically with rollback; apps run as Flatpaks or containers. (DISTROS)
|
|
13
|
+
- A port names the service on a host: 80/443 web, 22 SSH. (LINUX-CORE)
|
|
14
|
+
|
|
15
|
+
## CLI tools
|
|
16
|
+
|
|
17
|
+
| Tool | Does |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `fzf` | Fuzzy-find files, dirs, branches, containers, shell history (Ctrl+R) |
|
|
20
|
+
| `tmux` | Sessions that survive disconnects; panes and windows |
|
|
21
|
+
| `mosh` | SSH that survives IP changes, Wi-Fi drops, and sleep; local echo hides latency |
|
|
22
|
+
| `zoxide` | Jump to frequent dirs by partial name (`z portal`) |
|
|
23
|
+
| `bat` | `cat` with syntax highlighting, git gutter, line numbers |
|
|
24
|
+
| `btop` | Live CPU, memory, disk, network monitor |
|
|
25
|
+
| `ripgrep` (`rg`) | Fast recursive search that honors `.gitignore` and skips binaries |
|
|
26
|
+
| `fd` | Fast `find` that skips hidden and ignored paths |
|
|
27
|
+
| `delta` | Side-by-side, syntax-highlighted `git diff` pager |
|
|
28
|
+
| `lazydocker` | Terminal dashboard for containers, images, volumes |
|
|
29
|
+
| `yq` | Query and edit YAML, JSON, XML, CSV, TOML in scripts |
|
|
30
|
+
| `visidata` | Spreadsheet-style CSV and table browser in the terminal |
|
|
31
|
+
| `croc` | End-to-end encrypted, resumable file transfer between machines |
|
|
32
|
+
| `worktrunk` | Manage git worktrees (several branches checked out at once) |
|
|
33
|
+
| `dns-globe` | Watch DNS propagation across global resolvers |
|
|
34
|
+
| `gitlog` | Animated replay of a repo's commit history |
|
|
35
|
+
| `oxer` | One CLI for container status, resources, logs, restarts |
|
|
36
|
+
| `llm-fit` | Score which local models your RAM, VRAM, and GPU can run |
|
|
37
|
+
| `gre` | Generate a regex from example strings |
|
|
38
|
+
| `condo` | Find and purge stale build artifacts and `node_modules` |
|
|
39
|
+
|
|
40
|
+
(LINUX-10, CLI-TOOLS)
|
|
41
|
+
|
|
42
|
+
## Git
|
|
43
|
+
|
|
44
|
+
- A commit is an immutable snapshot of the whole tree. A branch is a cheap pointer to a commit. (GITHUB)
|
|
45
|
+
- A PR is the review gate: diff review, suggestions, CI checks before merge. (GITHUB)
|
|
46
|
+
- A merge conflict means two branches changed the same lines; reconcile them by hand. (DEV-LIFE)
|
|
47
|
+
- Worktrees check out several branches into separate directories at once, with no stash juggling. (CLI-TOOLS)
|
|
48
|
+
|
|
49
|
+
## Containers
|
|
50
|
+
|
|
51
|
+
- A container bundles code, runtime, system libraries, and dependencies, and runs the same in dev, staging, and prod. (DOCKER)
|
|
52
|
+
- An image is an immutable template built from a Dockerfile and stored in a registry. A container is a running instance of it. (DEV-LIFE)
|
|
53
|
+
- Containers are host processes isolated by namespaces (process, mount, network) and limited by cgroups (CPU, memory). They are not VMs. (LINUX-CORE)
|
|
54
|
+
- Docker runs through a daemon. Podman is daemonless and rootless. Both run OCI images. Compose runs multi-container stacks locally. (PODMAN)
|
|
55
|
+
|
|
56
|
+
## Kubernetes
|
|
57
|
+
|
|
58
|
+
- Orchestrates many containerized services across a cluster: scheduling, health, scaling. (K8S)
|
|
59
|
+
- Declarative: you state the desired state in YAML (for example 3 replicas) and control loops keep reconciling reality to it. (K8S)
|
|
60
|
+
- Self-healing: crashed containers and failed nodes get their pods rescheduled onto healthy nodes. (K8S)
|
|
61
|
+
- Services get stable internal DNS names and virtual IPs and load-balance across their pods. (K8S)
|
|
62
|
+
|
|
63
|
+
## Terraform
|
|
64
|
+
|
|
65
|
+
- Infrastructure as code in HCL: versioned, reviewed, and tested like app code. (TERRAFORM)
|
|
66
|
+
- Providers talk to platform APIs (AWS, Azure, GCP, GitHub). Resources declare the components. (TERRAFORM)
|
|
67
|
+
- State maps config to real resources. Keep it in a remote backend with state locking so concurrent runs cannot corrupt it. (TERRAFORM)
|
|
68
|
+
- Always `terraform plan` (preview create, change, destroy) before `terraform apply`. (TERRAFORM)
|
|
69
|
+
- Drift: a manual console change gets reverted by the next plan unless the code is updated to match. (TERRAFORM)
|
|
70
|
+
|
|
71
|
+
## CI/CD and deployment
|
|
72
|
+
|
|
73
|
+
- CI (Jenkins, GitHub Actions, GitLab CI) runs build, lint, and tests on every commit or PR. (JENKINS)
|
|
74
|
+
- Continuous delivery: always deployable, release behind an approval gate. Continuous deployment: every green change ships automatically. (DEV-LIFE)
|
|
75
|
+
- Pipelines live in versioned files (`Jenkinsfile`, Actions YAML), not GUI config. (JENKINS)
|
|
76
|
+
- Build once into an immutable artifact or image and promote that same artifact through environments. Never rebuild per environment. (DEVOPS-2)
|
|
77
|
+
- Airflow runs scheduled data pipelines as DAGs with retries, dependency checks, and backfill of historical partitions. (AIRFLOW)
|
|
78
|
+
- Ansible configures fleets agentlessly over SSH or WinRM with YAML playbooks. (ANSIBLE)
|
|
79
|
+
|
|
80
|
+
Deployment strategies (DEVOPS-INT):
|
|
81
|
+
|
|
82
|
+
| Strategy | How | Trade-off |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| Big bang | Everyone switches at once | Simple, all-or-nothing risk |
|
|
85
|
+
| Recreate | Stop old, then start new | Downtime |
|
|
86
|
+
| Rolling | Replace instances a few at a time | Mixed versions during rollout |
|
|
87
|
+
| Blue/green | Two full environments, flip traffic | Instant rollback, double capacity |
|
|
88
|
+
| Canary | Small traffic slice first, watch metrics | Safest, needs good metrics |
|
|
89
|
+
|
|
90
|
+
- Feature flags separate deploy from release; a bad feature turns off in seconds. (DEV-LIFE)
|
|
91
|
+
- Secrets and environment-specific endpoints never live in code. Inject them at runtime from env vars or a secrets vault. (DEV-LIFE)
|
|
92
|
+
- API changes stay backward compatible: add optional fields; rename or remove only behind a new version with a deprecation window. (DEV-LIFE)
|
|
93
|
+
- DevOps is shared ownership of stability between dev and ops, through automation and fast feedback. (DEVOPS)
|
|
94
|
+
- Metrics with Prometheus and Grafana, centralized logs, and distributed traces across service hops. (DEVOPS)
|
|
95
|
+
|
|
96
|
+
## CS fundamentals
|
|
97
|
+
|
|
98
|
+
- Stack: fast, fixed-size, LIFO frames for locals. Heap: dynamic data that lives until freed or collected. (CS-4H)
|
|
99
|
+
- Stack overflow is recursion deeper than the stack. A memory leak is heap objects still referenced by something long-lived. (CS-4H)
|
|
100
|
+
- In Java and Python, assignment and argument passing copy the reference; mutating through one name changes the shared object. (CS-4H)
|
|
101
|
+
- A shallow copy shares nested objects. A deep copy clones everything recursively. (CS-4H)
|
|
102
|
+
- Big O ranks growth: O(log N) < O(N) < O(N log N) < O(N²) < O(N!). (CS-4H)
|
|
103
|
+
- Arrays: contiguous memory, O(1) index, cache-friendly. Linked lists: O(1) insert at a known node, slow indexing. (CS-4H)
|
|
104
|
+
- Stack (LIFO) for undo and bracket matching. Queue (FIFO) for fair scheduling and jobs. (CS-4H)
|
|
105
|
+
- Hash maps give O(1) average lookup; collisions resolve by chaining or open addressing. (CS-4H)
|
|
106
|
+
- Binary search halves a sorted range per step, O(log N). Balanced trees keep order for range queries. (CS-4H)
|
|
107
|
+
- Heaps give O(1) peek at the min or max and O(log N) insert, which is how priority queues work. (CS-4H)
|
|
108
|
+
- BFS (queue) explores level by level. DFS (stack or recursion) goes deep down one branch. (CS-4H)
|
|
109
|
+
- Dynamic programming: split into overlapping subproblems and memoize to kill exponential rework. (CS-4H)
|
|
110
|
+
- Two pointers walk a sorted array from both ends for O(N) pair finding. A sliding window keeps a running result over a contiguous range. (DSA-5)
|
|
111
|
+
- Floats are base-2, so 0.1 + 0.2 is not exactly 0.3. Store money as integer cents. (CS-4H)
|
|
112
|
+
- AOT compiles to native ahead of time, an interpreter runs code as it reads it, and a JIT compiles hot bytecode at runtime. (PROGRAMMING)
|
|
113
|
+
- Race condition: unsynchronized read-modify-write on shared memory loses updates. Fix with a mutex, semaphore, or atomic. (CS-4H)
|
|
114
|
+
- An async event loop (Node, asyncio) handles thousands of concurrent I/O waits on one thread but cannot speed up CPU-bound work. (CS-4H)
|
|
115
|
+
|
|
116
|
+
## Networking fundamentals
|
|
117
|
+
|
|
118
|
+
OSI layers, bottom up, used as a troubleshooting ladder (OSI):
|
|
119
|
+
|
|
120
|
+
| # | Layer | Unit and gear |
|
|
121
|
+
|---|---|---|
|
|
122
|
+
| 1 | Physical | Bits, cables |
|
|
123
|
+
| 2 | Data link | MAC frames, switches |
|
|
124
|
+
| 3 | Network | IP packets, routers |
|
|
125
|
+
| 4 | Transport | TCP and UDP segments |
|
|
126
|
+
| 5 | Session | Session management |
|
|
127
|
+
| 6 | Presentation | Encryption, formatting |
|
|
128
|
+
| 7 | Application | HTTP, DNS |
|
|
129
|
+
|
|
130
|
+
- IP gives logical addresses; routers forward by routing table. (PROTOCOLS)
|
|
131
|
+
- TCP: 3-way handshake; ordered, checked delivery with retransmits. UDP: connectionless, minimal overhead, used for live media and DNS. (PROTOCOLS)
|
|
132
|
+
- DNS is a distributed hierarchy from names to IPs; TTL controls caching at resolvers. (PROTOCOLS)
|
|
133
|
+
- DHCP hands a new device its IP, subnet mask, gateway, and DNS servers. (PROTOCOLS)
|
|
134
|
+
- HTTPS is HTTP inside TLS: a certificate-based handshake authenticates the server, then the session is encrypted. (PROTOCOLS)
|
|
135
|
+
- SSH authenticates with key pairs over port 22 and carries encrypted shells and file transfers (SCP, SFTP). (SSH)
|
|
136
|
+
- NAT rewrites addresses at a boundary so a private fleet shares public IPv4. (AWS-NET)
|
|
137
|
+
- A VPN tunnels encrypted private traffic over a public network. (PROTOCOLS)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Day-to-day engineering practice
|
|
2
|
+
|
|
3
|
+
Read when entering an unfamiliar codebase, stuck on an error, debugging slowness, memory, or races, working in legacy code, writing a PR, commit, or status message, handling a production incident, estimating, or pushing back on scope. Most rules are from DEV-LIFE; other keys are marked. Tool and CS background is in `devops-and-fundamentals.md`. Keys are in this skill's `SKILL.md`.
|
|
4
|
+
|
|
5
|
+
## Entering an unfamiliar codebase
|
|
6
|
+
|
|
7
|
+
Week-one goals, in order:
|
|
8
|
+
|
|
9
|
+
1. **Run it locally** from the README. Every stale or broken step you hit becomes your first PR.
|
|
10
|
+
2. **Map the five hubs**: where tickets live, where code lives, where CI runs, where it deploys, where logs are read.
|
|
11
|
+
3. **Trace one teammate's PR end to end**: review, merge, build, deploy.
|
|
12
|
+
4. **Ship one low-stakes change** (typo, doc, log line) to walk the full deploy path once.
|
|
13
|
+
5. **Keep a private glossary** of every internal service name, acronym, and domain term.
|
|
14
|
+
|
|
15
|
+
- Search with `ripgrep` (`rg`); it respects `.gitignore` and skips `node_modules`. (LINUX-10)
|
|
16
|
+
- Periodically read modules outside your tickets and trace data across service boundaries.
|
|
17
|
+
|
|
18
|
+
## Getting unstuck
|
|
19
|
+
|
|
20
|
+
1. Read the whole error and stack trace, not the first line.
|
|
21
|
+
2. Check the README and setup docs for a missed migration, env var, or config step.
|
|
22
|
+
3. Search the exact error text in quotes.
|
|
23
|
+
4. Ask an AI to explain the mechanism. Treat the answer as a lead, not a verdict.
|
|
24
|
+
5. Still stuck after 15–20 minutes: ask a person with what you were doing, what you expected, what happened, and what you already ruled out.
|
|
25
|
+
|
|
26
|
+
Afterward, write down cause, fix, and how to recognize it next time.
|
|
27
|
+
|
|
28
|
+
## Debugging
|
|
29
|
+
|
|
30
|
+
- Find the root cause by investigation. Never tweak until the symptom vanishes. Principle `fix-root-causes`.
|
|
31
|
+
- Split by HTTP status first: 4xx means the request or client, 5xx means the server, 200 with a broken screen means front-end rendering.
|
|
32
|
+
- Slow: ask how it grows. Time it at increasing input sizes (500, 1,000, 2,000 rows) to expose quadratic growth before optimizing. (CS-4H)
|
|
33
|
+
- Wrong or mutated state: ask where it lives (stack, heap, shared reference). (CS-4H)
|
|
34
|
+
- Slow server: tell CPU-bound work from threads waiting on network or DB I/O. (CS-4H)
|
|
35
|
+
- Climbing memory: diff two heap snapshots taken apart in time to find collections still holding dead data. (CS-4H)
|
|
36
|
+
- Lost updates under load: atomic increments, mutexes, or row locks instead of read-modify-write. (CS-4H)
|
|
37
|
+
- Fuzz with random and malformed input to find what hand-written tests miss. (CPP-ECO)
|
|
38
|
+
|
|
39
|
+
## Legacy code and tech debt
|
|
40
|
+
|
|
41
|
+
- Debt is a deliberate past shortcut that charges interest as slower, riskier changes. It is not proof of bad engineers.
|
|
42
|
+
- Before changing untested legacy code, pin current behavior with regression tests, then refactor in small safe steps. No big-bang rewrites. (BOOKS)
|
|
43
|
+
- Put legacy and external systems behind an adapter so their naming and data changes stay out of your code. (CODE-LAWS)
|
|
44
|
+
|
|
45
|
+
## PRs and commits
|
|
46
|
+
|
|
47
|
+
- PR description: what changed, why this approach, and exact steps for the reviewer to verify.
|
|
48
|
+
- Commit message names the precise problem ("Fix null pointer when discount applied to empty cart"), never "fixed stuff".
|
|
49
|
+
- One purpose per PR. Features apart from refactors and formatting. (CODE-LAWS)
|
|
50
|
+
- Review feedback is about the code. Mine it for team standards.
|
|
51
|
+
- When a senior pushes back, first ask what incident or constraint is behind it.
|
|
52
|
+
- Use `delta` for large diffs in the terminal. (LINUX-10)
|
|
53
|
+
- Record significant decisions as ADRs: problem, options considered, why this one.
|
|
54
|
+
|
|
55
|
+
## Production incidents
|
|
56
|
+
|
|
57
|
+
1. Assess user impact first.
|
|
58
|
+
2. Post what you know, what you don't know, and what you are checking, before trying fixes.
|
|
59
|
+
3. Classify severity: SEV1 is full outage or data loss, SEV3 or SEV4 is minor with a workaround. Severity sets who is paged and how fast.
|
|
60
|
+
4. On call means acknowledge, assess, escalate. Escalate anything you cannot handle safely.
|
|
61
|
+
5. Blameless post-mortem: trace the system gaps, then assign owned actions (missing test, pipeline check, alert threshold).
|
|
62
|
+
|
|
63
|
+
- Ship risky code behind feature flags so it can be turned off in seconds without a rollback.
|
|
64
|
+
- Judge health by error rate, latency, and traffic, not "the process is running".
|
|
65
|
+
|
|
66
|
+
## Estimates and saying no
|
|
67
|
+
|
|
68
|
+
- An estimate is a best guess that updates. Raise scope growth the moment you see it.
|
|
69
|
+
- If a 2-day ticket is heading to 4, say so on day one, with the technical reason.
|
|
70
|
+
- New work at full capacity: state your current work and ask which priority slips. Never silently say yes.
|
|
71
|
+
- Pressure to skip review or staging: name the production risk and offer a visible escalation instead of cutting corners quietly.
|
|
72
|
+
- Ship working solutions that meet the deadline rather than stalling on perfect code. (EXP-10Y)
|
|
73
|
+
|
|
74
|
+
## Communicating
|
|
75
|
+
|
|
76
|
+
- To PMs and non-engineers, speak in timelines, user impact, and business risk, not schema migrations or cache invalidation.
|
|
77
|
+
- Turn a vague ask ("make it faster") into a task by asking which screen or workflow triggered it.
|
|
78
|
+
- Treat QA bug reports as early saves. Ask for exact reproduction steps instead of debating.
|
|
79
|
+
- Async messages lead with the conclusion or recommendation, then the support.
|
|
80
|
+
- Across time zones, put the goal, what you tried, logs, and the exact question in the first message so one reply unblocks you.
|
|
81
|
+
- Keep technical disagreements on the ticket or PR, not in DMs.
|
|
82
|
+
|
|
83
|
+
## Career
|
|
84
|
+
|
|
85
|
+
- Weekly impact log, 2–3 lines: what shipped, what problem it solved, who you unblocked, what bugs you prevented. Use it in 1:1s and reviews.
|
|
86
|
+
- Standups for status. 1:1s for goals, blockers, and feedback.
|
|
87
|
+
- Find mentors in the role you want in 2–3 years. Ask them small, specific, 15-minute questions.
|
|
88
|
+
- Management ladder is people, priorities, and budget. The senior or staff IC ladder is technical depth and multi-team architecture.
|
|
89
|
+
- Learn in this order before specializing in cloud, DevOps, SRE, or MLOps: cloud basics, Linux CLI, Bash, Git, Python, Docker, Kubernetes, Terraform, AI fundamentals. (DEVOPS-MAP)
|
|
90
|
+
- Learn tools by the bottleneck each category solves, not by memorizing roadmaps. (BACKEND-ECO)
|
|
91
|
+
- Escape tutorial paralysis by building original projects that force you through broken builds and edge cases. (EXP-10Y)
|
|
92
|
+
- Pair technical depth with a domain (healthcare, finance, energy). Domain context is hard to automate. (CAREER-2030)
|
|
93
|
+
- Books worth reading over time: *Designing Data-Intensive Applications*, *Working Effectively with Legacy Code*, *Refactoring*. (BOOKS)
|
|
94
|
+
|
|
95
|
+
## Working alongside AI
|
|
96
|
+
|
|
97
|
+
- Spend more time on acceptance criteria, boundaries, and edge cases before handing work to an agent. Agents act fast on wrong assumptions.
|
|
98
|
+
- Fundamentals (databases, networking, git) are what let you judge multi-file agent diffs.
|
|
99
|
+
- Value moves to problem framing, taste, and owning production outcomes. (AI-ERA)
|
|
100
|
+
- Reviewing AI-written changes: see `agent-engineering.md`, "Reviewing AI-written code".
|