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,287 @@
|
|
|
1
|
+
# Ontology for software projects and agent systems (2026)
|
|
2
|
+
|
|
3
|
+
Most projects need a shared vocabulary, not a formal ontology. Keep a glossary, bounded contexts and ADRs, and use one typed domain model (Pydantic or Zod). Map each term to exactly one code, DB and API name. That covers about 90% of cases [inference].
|
|
4
|
+
Use LinkML when one model has to produce three or more artifacts (Pydantic, SQL DDL, JSON Schema, SHACL, OWL, TypeScript). Use RDF + SHACL only when you exchange linked data with outside parties or need standard vocabularies such as schema.org or SKOS.
|
|
5
|
+
Use a property graph only when multi-hop traversal is the main query shape. On Postgres, start with Apache AGE. Check licenses before you pick: Neo4j CE is GPLv3, Memgraph is BSL, FalkorDB is SSPL, and Kuzu is archived.
|
|
6
|
+
For agents, the ontology is the typed tool surface. Define object types, link types and *actions* (validated, permissioned mutations), as Palantir Foundry does. Do not give agents raw write SQL or Cypher.
|
|
7
|
+
Do not treat LLM-built knowledge graphs (GraphRAG, LightRAG, Graphiti) as a source of truth. Give them a prescribed schema, keep provenance, and budget for indexing cost.
|
|
8
|
+
|
|
9
|
+
## How the three layers connect
|
|
10
|
+
|
|
11
|
+
| Layer | Artifact | Consumers | Failure if missing |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| 1. Vocabulary | `docs/GLOSSARY.md`, context map, ADRs | humans, agents reading the repo | the same concept gets 3 names across code, DB and API; agents invent a 4th |
|
|
14
|
+
| 2. Formal model | typed models (Pydantic/Zod), or LinkML YAML that generates them; optional RDF/SHACL or graph schema | compilers, validators, DB, other systems | schemas drift between languages and layers |
|
|
15
|
+
| 3. Agent ontology | tool/action schemas (JSON Schema), MCP servers, semantic-layer metrics | LLM agents | agents guess joins, write unsafe queries, hallucinate fields |
|
|
16
|
+
|
|
17
|
+
Rule: each layer is generated from or checked against the layer above it. A term absent from the glossary is not allowed in a schema; a field absent from the schema is not allowed in a tool [inference].
|
|
18
|
+
|
|
19
|
+
## 1. Domain vocabulary in the codebase
|
|
20
|
+
|
|
21
|
+
- **Ubiquitous Language** means a "common, rigorous language between developers and users" that is based on the domain model. It must be rigorous because "software doesn't cope well with ambiguity" ([Fowler, UbiquitousLanguage](https://martinfowler.com/bliki/UbiquitousLanguage.html)).
|
|
22
|
+
- **Bounded Context** is how DDD handles large models: divide them into contexts and be explicit about how the contexts relate. Polysemes such as "Customer" and "Product" mean different things in different contexts ([Fowler, BoundedContext](https://martinfowler.com/bliki/BoundedContext.html)). Do not force a single enterprise-wide model.
|
|
23
|
+
- **DDD Reference** (Evans) is free under CC BY 4.0. It is the canonical pattern summary to link instead of paraphrasing ([domainlanguage.com](https://www.domainlanguage.com/ddd/reference/)).
|
|
24
|
+
- **Context-map patterns** (Partnership, Shared Kernel, Customer/Supplier, Conformist, Anticorruption Layer, Open Host Service, Published Language) are summarized with Evans quotes in [ddd-crew/context-mapping](https://github.com/ddd-crew/context-mapping) (CC-BY-SA-4.0).
|
|
25
|
+
- **ADRs**: number them sequentially and never reuse a number. Mark reversed decisions "superseded" and keep them. Sections are Title, Context, Decision, Status, Consequences (list all consequences, not just the positive ones). Keep each ADR to 1-2 pages ([Nygard 2011](https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions)).
|
|
26
|
+
- **EventStorming** (Brandolini) is a workshop format. Big Picture, Process Modelling and Software Design variants discover domain events and expose language conflicts as "hot spots" ([eventstorming.com patterns](https://www.eventstorming.com/patterns/rush-to-the-goal); [ddd-crew glossary cheat sheet](https://github.com/ddd-crew/eventstorming-glossary-cheat-sheet)). Solo dev: run it alone on a whiteboard or in Markdown as an ordered list of past-tense events [inference].
|
|
27
|
+
|
|
28
|
+
### Glossary format that keeps names aligned
|
|
29
|
+
|
|
30
|
+
| Term | Context | Definition | Code | DB | API / event | Not to be confused with |
|
|
31
|
+
|---|---|---|---|---|---|---|
|
|
32
|
+
| Invoice | Billing | A request for payment issued to one Customer | `Invoice` | `invoice` | `/invoices`, `InvoiceIssued` | Quote (Sales), Receipt |
|
|
33
|
+
| Customer | Billing | Legal entity that pays invoices | `Customer` | `customer` | `/customers` | User (Identity), Account (Auth) |
|
|
34
|
+
|
|
35
|
+
Rules:
|
|
36
|
+
- One row per term per bounded context. If two contexts use the same word differently, it gets two rows [inference from Fowler above].
|
|
37
|
+
- Casing is mechanical (PascalCase type, snake_case table, kebab or plural path, past-tense event) and the root word never changes. A rename changes every column in one PR, and an ADR records the reason [inference].
|
|
38
|
+
- Enforce it cheaply: a CI `rg` check for banned synonyms listed in the glossary (for example `rg -n -w -i "client" src/billing`) [inference].
|
|
39
|
+
- deepmodebot's `domain-model` technique (`skill://deepmodebot/references/techniques/domain-model.md`) covers writing `GLOSSARY.md` and ADRs. This file covers how they feed schemas and agents.
|
|
40
|
+
|
|
41
|
+
### Tools
|
|
42
|
+
|
|
43
|
+
| Tool | What | License | Latest release | Agent notes | Source |
|
|
44
|
+
|---|---|---|---|---|---|
|
|
45
|
+
| MADR | Markdown ADR template | MIT OR CC0-1.0 | 4.0.0 (2024-09-17); repo active 2026-11 | No release in 12+ months, but the template is stable. Copy it; do not install anything | [adr/madr](https://github.com/adr/madr) |
|
|
46
|
+
| adr-tools | Bash CLI for ADRs | see repo | 3.0.0 (2018-07-25) | **Unmaintained.** A plain numbered folder is enough | [npryce/adr-tools](https://github.com/npryce/adr-tools) |
|
|
47
|
+
| Context Mapper DSL | DSL for bounded contexts and context maps | Apache-2.0 | v6.12.0 (2024-08-30); commits 2026-10 | No release in 12+ months. Optional for teams of 1-3 | [ContextMapper](https://github.com/ContextMapper/context-mapper-dsl) |
|
|
48
|
+
|
|
49
|
+
## 2. Formal ontology and knowledge graphs
|
|
50
|
+
|
|
51
|
+
### Standards status (checked 2026-11-11)
|
|
52
|
+
|
|
53
|
+
| Standard | Status | Use for | Source |
|
|
54
|
+
|---|---|---|---|
|
|
55
|
+
| RDF 1.1 / RDF 1.2 | 1.1 is a Recommendation. RDF 1.2 Concepts was a Candidate Recommendation Snapshot on 2026-04-07 (adds triple terms) | data model of triples with IRIs | [RDF 1.2 Concepts](https://www.w3.org/TR/rdf12-concepts) |
|
|
56
|
+
| OWL 2 | Recommendation (2012) | class axioms and inference under the open-world assumption | [OWL 2 Primer](https://www.w3.org/TR/owl2-primer/) |
|
|
57
|
+
| SKOS | Recommendation (2009) | taxonomies and thesauri (broader/narrower, labels) | [SKOS Reference](https://www.w3.org/TR/skos-reference/) |
|
|
58
|
+
| SHACL | 1.0 is a Recommendation (2017). SHACL 1.2 Core was a Working Draft on 2026-11-02 | **validating** RDF data under closed-world checks | [SHACL](https://www.w3.org/TR/shacl/); [SHACL 1.2 history](https://www.w3.org/standards/history/shacl12-core) |
|
|
59
|
+
| JSON-LD 1.1 | Recommendation (2020) | RDF as plain JSON, for web APIs and SEO | [JSON-LD 1.1](https://www.w3.org/TR/json-ld11/) |
|
|
60
|
+
| schema.org | v30.1 (2026-09-15), Apache-2.0 repo | shared web vocabulary; Google recommends JSON-LD for structured data | [schemaorg/schemaorg](https://github.com/schemaorg/schemaorg); [Google structured data](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data) |
|
|
61
|
+
| GQL | ISO/IEC 39075:2024 (2024-04). Technical Corrigendum 1 published 2026 | standard property-graph query language | [ISO 39075](https://www.iso.org/standard/76120.html); [Cor 1:2026](https://www.iso.org/standard/93701.html) |
|
|
62
|
+
| openCypher | spec release 2024.3 (tagged 2026-03-20) | Cypher dialects used by Memgraph, FalkorDB, AGE and others | [opencypher/openCypher](https://github.com/opencypher/openCypher) |
|
|
63
|
+
|
|
64
|
+
Neo4j says Cypher "supports the majority of mandatory GQL features" and that users should expect "minimal differences" between Cypher and GQL ([Neo4j GQL conformance](https://neo4j.com/docs/cypher-manual/current/appendix/gql-conformance/)). Write Cypher today. GQL portability is a bonus, not a selection criterion [inference].
|
|
65
|
+
|
|
66
|
+
### When formal semantics pay off
|
|
67
|
+
|
|
68
|
+
| Worth it | Overkill |
|
|
69
|
+
|---|---|
|
|
70
|
+
| Exchanging data with other organizations that already publish RDF or SKOS (life sciences, government, libraries, Wikidata) | Single-app CRUD where Postgres plus typed models already enforce the shape |
|
|
71
|
+
| You need SEO rich results: emit schema.org JSON-LD from your existing models | Building an internal OWL ontology "for the AI" with no consumer that reasons over it |
|
|
72
|
+
| Many heterogeneous sources need merging under shared IRIs, with data-level validation (SHACL) | Validating API payloads: JSON Schema, Pydantic or Zod do it with less tooling |
|
|
73
|
+
| Controlled vocabularies with synonyms and hierarchy that domain experts curate (SKOS) | Hierarchies of under 50 terms: an enum plus a glossary is enough |
|
|
74
|
+
|
|
75
|
+
OWL makes the open-world assumption: a missing fact is unknown, not false ([OWL 2 Primer](https://www.w3.org/TR/owl2-primer/)). That is why OWL alone does not validate data, and SHACL exists ([SHACL](https://www.w3.org/TR/shacl/)).
|
|
76
|
+
|
|
77
|
+
### RDF and ontology tools
|
|
78
|
+
|
|
79
|
+
| Tool | What | License / free terms | Latest release | Agent notes | Source |
|
|
80
|
+
|---|---|---|---|---|---|
|
|
81
|
+
| Protege | Desktop OWL editor | BSD-style (Stanford) | 5.6.9 (2026-03-07) | Java GUI, so agents cannot drive it. Hand-edit Turtle instead | [protege](https://github.com/protegeproject/protege) |
|
|
82
|
+
| rdflib | Python RDF library, SPARQL, parsers | BSD-3-Clause | 7.6.0 (2026-02-13) | Default choice in Python. Good for generating JSON-LD/Turtle in tests | [RDFLib/rdflib](https://github.com/RDFLib/rdflib) |
|
|
83
|
+
| pySHACL | SHACL validator on rdflib | Apache-2.0 | v0.40.2 (2026-10-28) | CLI `pyshacl -s shapes.ttl data.ttl`, fits CI | [RDFLib/pySHACL](https://github.com/RDFLib/pySHACL) |
|
|
84
|
+
| Apache Jena + Fuseki | Java RDF framework, TDB2 store, SPARQL server | Apache-2.0 | 6.2.0 (tag 2026-07-27) | Fuseki is the default self-hosted SPARQL endpoint | [apache/jena](https://github.com/apache/jena) |
|
|
85
|
+
| Eclipse RDF4J | Java RDF framework (GraphDB is built on it) | BSD-3-Clause | 6.0.0 (2026-08-10) | Alternative to Jena | [rdf4j](https://github.com/eclipse-rdf4j/rdf4j) |
|
|
86
|
+
| Oxigraph | Rust SPARQL store, embeddable, with Python/JS bindings | Apache-2.0 (per GitHub) | v0.5.13 (2026-10-22) | Small and embeddable. Pre-1.0, so pin the version | [oxigraph](https://github.com/oxigraph/oxigraph) |
|
|
87
|
+
| QLever | Very fast SPARQL engine for huge datasets | Apache-2.0 | v0.6.0 (2026-08-13) | Only for read-heavy, Wikidata-scale data | [ad-freiburg/qlever](https://github.com/ad-freiburg/qlever) |
|
|
88
|
+
| GraphDB Free | RDF store with reasoning | **Proprietary, free license on request** (since 11.0). 2 concurrent queries, at most 5 repos, on-prem only | 11.x | Not OSS. Enterprise edition is paid per core | [GraphDB licensing](https://graphdb.ontotext.com/documentation/master/licensing.html) |
|
|
89
|
+
| TopBraid | SHACL API (OSS) plus EDG (paid). EDG Studio replaced TopBraid Composer | SHACL API Apache-2.0; EDG paid | SHACL API v1.5.0 (2026-03-23) | Composer is gone. The Java SHACL API remains a reference implementation | [TopQuadrant/shacl](https://github.com/TopQuadrant/shacl); [EDG Studio](https://www.topquadrant.com/doc/7.2/topbraid_edg_studio/index.html) |
|
|
90
|
+
| LinkML | YAML schema language that generates Pydantic, SQL DDL, SQLAlchemy, JSON Schema, SHACL, ShEx, OWL, JSON-LD context, TypeScript, Go, Rust, Java, GraphQL, protobuf, TypeQL and docs | Apache-2.0 | v1.12.1 (2026-10-13) | Best single-source-of-truth bridge between app types and semantic web. The `linkml-runtime` repo was folded into `linkml` on 2025-12-01 | [linkml](https://github.com/linkml/linkml); [generators](https://linkml.io/linkml/generators/index.html); [runtime note](https://github.com/linkml/linkml-runtime) |
|
|
91
|
+
|
|
92
|
+
### Property graph and typed-graph databases
|
|
93
|
+
|
|
94
|
+
| DB | Model / query | License | Latest | Status and agent notes | Source |
|
|
95
|
+
|---|---|---|---|---|---|
|
|
96
|
+
| Neo4j Community | property graph, Cypher | **GPLv3** (Enterprise is commercial) | 2026.10.2 (2026-10-29) | Mature. Calendar versioning; 5.26 is LTS. Running it as a separate server is common; embedding or distributing it brings GPL obligations [inference] | [neo4j/neo4j](https://github.com/neo4j/neo4j); [licensing](http://neo4j.com/licensing) |
|
|
97
|
+
| Memgraph | in-memory, Cypher | **BSL 1.1** with additional use grant. Bans DBaaS, distributing to third parties, and competing products. Changes to Apache-2.0 at the change date | v3.14.0 (2026-10-16) | Not OSI open source. Fine for internal use; read the grant before shipping it inside a product | [memgraph BSL](https://github.com/memgraph/memgraph/blob/master/licenses/BSL.txt) |
|
|
98
|
+
| FalkorDB | Redis-module graph, GraphBLAS, openCypher | **SSPLv1** | v6.0.4 (2026-11-05) | Not OSI open source. Offering it as a service triggers the SSPL | [FalkorDB license](https://docs.falkordb.com/license.html) |
|
|
99
|
+
| Kuzu | embedded columnar graph, Cypher | MIT | v0.11.3 (2025-10-10), final | **Archived 2025-10.** Press reports an Apple acquisition [unverified]. Graphiti marks it deprecated. Community fork: LadybugDB (MIT, v0.22.3, 2026-11-07) | [kuzudb/kuzu](https://github.com/kuzudb/kuzu); [The Register](https://www.theregister.com/2025/10/14/kuzudb_abandoned); [LadybugDB](https://github.com/LadybugDB/ladybug) |
|
|
100
|
+
| Apache AGE | Postgres extension, openCypher inside SQL | Apache-2.0 | PG18/v1.8.0-rc0 (2026-07-09). One release line per PG major; "-rc0" tags are marked non-prerelease | Best first graph for Postgres shops: one database, one backup. Check that your managed Postgres allows the extension | [apache/age](https://github.com/apache/age) |
|
|
101
|
+
| TypeDB | strongly typed entity-relation-attribute DB, TypeQL | MPL-2.0 (drivers Apache-2.0) | 3.15.0-rc0 (2026-11-10) | Schema-first with inheritance and n-ary relations, close to an ontology. Small ecosystem. LinkML has a TypeQL generator | [typedb/typedb](https://github.com/typedb/typedb) |
|
|
102
|
+
| TerminusDB | document + RDF graph with git-like versioning | Apache-2.0 | v12 (2025-12-08); v12.1.0-rc2 (2026-11-03) | Now stewarded by DFRNT. Niche; pick it for branch/merge of data | [terminusdb](https://github.com/terminusdb/terminusdb); [v12 post](https://terminusdb.org/blog/2025-12-08-terminusdb-12-release) |
|
|
103
|
+
| CozoDB | Datalog, relational-graph-vector | MPL-2.0 | v0.7.6 (2023-12-11) | **Unmaintained** (no commits since 2024-12) | [cozodb/cozo](https://github.com/cozodb/cozo) |
|
|
104
|
+
|
|
105
|
+
## 3. Ontologies for LLM agents
|
|
106
|
+
|
|
107
|
+
### Palantir Foundry Ontology as a design pattern (not a product recommendation)
|
|
108
|
+
|
|
109
|
+
- Foundry maps datasets and models to **object types** (an entity or event; an object is like a row), **properties** (columns), **link types** (relationships, like joins) and **action types**. An action type is a set of edits applied at once, plus side effects. Foundry also defines **functions** (code that takes objects as input), **interfaces** (polymorphism) and **roles** (permissions) ([Palantir core concepts](https://www.palantir.com/docs/foundry/ontology/core-concepts)).
|
|
110
|
+
- AIP agents get tools such as **Action**, which runs an ontology edit, automatically or after user confirmation, and **Object query**, which filters, aggregates and traverses only configured object types and properties ([AIP Agent Studio tools](https://www.palantir.com/docs/foundry/agent-studio/tools)). The OSDK generates typed TypeScript, Python and Java clients from the ontology ([OSDK](https://palantir.com/docs/foundry/ontology-sdk/overview)). Foundry itself is paid enterprise software.
|
|
111
|
+
|
|
112
|
+
Map the pattern onto your own stack [inference]:
|
|
113
|
+
|
|
114
|
+
| Palantir concept | Your stack | Exposed to agent as |
|
|
115
|
+
|---|---|---|
|
|
116
|
+
| Object type + properties | Pydantic/Zod model + table (or LinkML class) | read tool returning that model; JSON Schema in the tool description |
|
|
117
|
+
| Link type | foreign key / join table / graph edge | `get_<a>_<links>` read tool, never a free-form join |
|
|
118
|
+
| Action type | command function: validate input, check permission, mutate in one transaction, emit event, audit | one tool per action with a strict input schema; confirmation for destructive ones |
|
|
119
|
+
| Function | pure query or computation over typed objects | read-only tool |
|
|
120
|
+
| Interface | `Protocol` / TS interface shared by types | union-typed tool result |
|
|
121
|
+
| Roles | authz check inside each action | agent identity is scoped like a user's |
|
|
122
|
+
|
|
123
|
+
### Typed domain model = the agent's ontology
|
|
124
|
+
|
|
125
|
+
- The tool contract is JSON Schema. Claude tools take an `input_schema`, and `strict: true` guarantees calls match it ([Claude tool use](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview)). Strict mode takes a subset: objects need `additionalProperties: false`, and `minimum`, `maximum`, `minLength`, `maxLength` are rejected with HTTP 400 ([Claude JSON Schema limitations](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#json-schema-limitations)). OpenAI Structured Outputs follows a supplied JSON Schema but supports only **a subset** of the language ([OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)).
|
|
126
|
+
- Generate that schema from the domain type; never hand-write it. Use Pydantic `BaseModel.model_json_schema()` ([Pydantic JSON Schema](https://docs.pydantic.dev/latest/concepts/json_schema/); v2.14.3, 2026-11-05, MIT) or Zod 4 `z.toJSONSchema()` ([Zod JSON Schema](https://zod.dev/json-schema); v4.6.7, 2026-10-12, MIT).
|
|
127
|
+
- For a strict Claude tool, pass the model through the Python SDK's `transform_schema()` (anthropic 2.8.0, 2026-11-10, Apache-2.0), which moves unsupported constraints into field descriptions and adds `additionalProperties: false` ([SDK transformation](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#how-sdk-transformation-works)). Apply the same rewrite to a Zod schema before setting `strict: true` [inference].
|
|
128
|
+
- Put glossary definitions into field `description`s. They are the only ontology text the model sees at call time [inference].
|
|
129
|
+
- Parse model output back through the same type at the boundary (parse, don't validate), as in deepmodebot's type-system-discipline principle. That parse is also where constraints the provider stripped from the wire schema get enforced.
|
|
130
|
+
|
|
131
|
+
```python
|
|
132
|
+
from anthropic import transform_schema
|
|
133
|
+
from pydantic import BaseModel, Field
|
|
134
|
+
|
|
135
|
+
# Pydantic: one type drives DB mapping, API, and the agent tool schema
|
|
136
|
+
class IssueInvoice(BaseModel):
|
|
137
|
+
"""Action type: issue a draft invoice. Glossary: Invoice (Billing)."""
|
|
138
|
+
invoice_id: str = Field(description="Invoice.id of a DRAFT invoice")
|
|
139
|
+
due_in_days: int = Field(ge=1, le=90)
|
|
140
|
+
|
|
141
|
+
# model_json_schema() emits minimum/maximum and no additionalProperties: false, which
|
|
142
|
+
# strict mode rejects. transform_schema() moves the bounds into the description and closes objects.
|
|
143
|
+
tool = {"name": "issue_invoice", "description": IssueInvoice.__doc__,
|
|
144
|
+
"input_schema": transform_schema(IssueInvoice), "strict": True}
|
|
145
|
+
args = IssueInvoice.model_validate(tool_use.input) # enforces ge=1, le=90 again
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Semantic layers (governed metrics for agents)
|
|
149
|
+
|
|
150
|
+
dbt Labs' case: without a semantic layer, "AI emits raw SQL, guesses at joins, filters, time grains". Metrics "should be deterministic" ([dbt MetricFlow announcement](https://www.getdbt.com/blog/open-source-metricflow-governed-metrics)).
|
|
151
|
+
|
|
152
|
+
| Tool | What | License | Latest | Notes | Source |
|
|
153
|
+
|---|---|---|---|---|---|
|
|
154
|
+
| MetricFlow | metric definitions compiled to dialect SQL; engine behind the dbt Semantic Layer | **Apache-2.0 since 2025-10-14** (was BSL) | v0.213.0 (2026-09-10) | The hosted dbt Semantic Layer APIs are a dbt platform feature (paid tiers) [unverified] | [metricflow](https://github.com/dbt-labs/metricflow) |
|
|
155
|
+
| Cube Core | semantic layer server with SQL/REST/GraphQL APIs | Apache-2.0 (some parts MIT) | v1.8.22 (2026-11-11) | Self-host free. Cube Cloud is paid | [cube-js/cube](https://github.com/cube-js/cube) |
|
|
156
|
+
| Malloy | semantic modeling and query language over SQL databases | MIT | v0.0.437 (2026-10-30) | Pre-1.0 versioning; pin it | [malloydata/malloy](https://github.com/malloydata/malloy) |
|
|
157
|
+
| Apache Ossie (incubating) | vendor-neutral spec for exchanging semantic models; formerly OSI (Open Semantic Interchange) | Apache-2.0 | spec, no release yet | LinkML has `gen-ossie` | [apache/ossie](https://github.com/apache/ossie); [LinkML Ossie gen](https://linkml.io/linkml/generators/ossie.html) |
|
|
158
|
+
|
|
159
|
+
Use a semantic layer only once you have a warehouse and recurring metric questions. For an app DB, write named read functions (Palantir "functions") instead [inference].
|
|
160
|
+
|
|
161
|
+
### LLM-built knowledge graphs and agent memory
|
|
162
|
+
|
|
163
|
+
| Tool | What | License | Latest | Agent notes | Source |
|
|
164
|
+
|---|---|---|---|---|---|
|
|
165
|
+
| Microsoft GraphRAG | extracts entities/relations/claims, runs Leiden communities and community summaries; Global/Local/DRIFT/Basic search | MIT | v3.3.0 (2026-10-08) | README: "indexing can be an expensive operation... start small". Prompt tuning strongly recommended. Run `graphrag init --force` between minor versions | [graphrag](https://github.com/microsoft/graphrag); [docs](https://microsoft.github.io/graphrag/); [paper](https://arxiv.org/pdf/2404.16130) |
|
|
166
|
+
| LightRAG | lighter graph + vector RAG; storage on Neo4j, PostgreSQL, OpenSearch and others | MIT | v1.5.7 (tag 2026-09-02) | Cheaper incremental updates than GraphRAG [unverified] | [HKUDS/LightRAG](https://github.com/HKUDS/LightRAG) |
|
|
167
|
+
| Graphiti (Zep) | temporal context graph: bi-temporal edges, automatic fact invalidation, provenance; custom entity and edge types via Pydantic ("prescribed ontology") | Apache-2.0 | v0.31.2 (2026-10-20) | Backends: Neo4j, FalkorDB, Neptune (Kuzu deprecated). Needs structured-output LLMs. Reference MCP/REST servers have **no authentication** | [graphiti](https://github.com/getzep/graphiti); [Zep paper](https://arxiv.org/abs/2501.13956) |
|
|
168
|
+
| neo4j-graphrag-python | `SimpleKGPipeline` extracts into a declared schema (`node_types`, `relationship_types`, `patterns`) | Apache-2.0 (parts PSF) | 1.24.0 (2026-11-10) | Use the schema argument to stop entity-type sprawl | [neo4j-graphrag-python](https://github.com/neo4j/neo4j-graphrag-python) |
|
|
169
|
+
|
|
170
|
+
### MCP servers exposing graphs and ontologies
|
|
171
|
+
|
|
172
|
+
| Server | Tools | License | Latest | Notes | Source |
|
|
173
|
+
|---|---|---|---|---|---|
|
|
174
|
+
| Neo4j official MCP | `get-schema`, `read-cypher` (rejects writes and admin), `write-cypher`, `list-gds-procedures` | GPLv3 | v2.1.1 (2026-11-11) | Neo4j docs on write-cypher: "LLM-generated queries can cause harm. Use only in development environments." Run with readonly mode | [neo4j/mcp](https://github.com/neo4j/mcp); [tools](https://neo4j.com/docs/mcp/current/tools) |
|
|
175
|
+
| Neo4j Labs mcp-neo4j | cypher, memory, data-modeling servers | MIT | mcp-neo4j-cypher v0.6.0 (2026-04-10) | Labs (community support) | [mcp-neo4j](https://github.com/neo4j-contrib/mcp-neo4j) |
|
|
176
|
+
| MCP reference memory server | local KG of entities (name, type, observations) and active-voice relations | MIT moving to Apache-2.0 | servers v2.4.0 (2026-11-11) | A toy-scale memory pattern. Not a domain ontology | [memory README](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) |
|
|
177
|
+
| Graphiti MCP | episodic and fact memory over Graphiti | Apache-2.0 | with Graphiti | Add auth before exposing it | [graphiti](https://github.com/getzep/graphiti) |
|
|
178
|
+
|
|
179
|
+
Prefer a domain MCP server whose tools are your action types over a generic query server [inference from Palantir tools + Neo4j caution].
|
|
180
|
+
|
|
181
|
+
## Decision table
|
|
182
|
+
|
|
183
|
+
| Situation | Approach | Why | Source |
|
|
184
|
+
|---|---|---|---|
|
|
185
|
+
| New app, 1 language, 1 DB | Plain typed model (Pydantic or Zod) + GLOSSARY.md + ADRs | Cheapest; types already enforce shape and export JSON Schema for tools | [Pydantic](https://docs.pydantic.dev/latest/concepts/json_schema/), [Zod](https://zod.dev/json-schema) |
|
|
186
|
+
| TS frontend + Python backend + SQL + agent tools must agree | LinkML as source; generate Pydantic, TypeScript, SQL DDL, JSON Schema | One model, many targets; removes drift | [LinkML generators](https://linkml.io/linkml/generators/index.html) |
|
|
187
|
+
| Publishing or consuming linked data, regulated or scientific data, shared vocabularies | RDF + SKOS + SHACL (generate shapes from LinkML or write them by hand); store in Jena/Fuseki or Oxigraph | Standards-based IRIs and closed-world validation | [SHACL](https://www.w3.org/TR/shacl/), [SKOS](https://www.w3.org/TR/skos-reference/) |
|
|
188
|
+
| SEO / rich results | schema.org JSON-LD emitted from existing models | No graph store needed | [Google structured data](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data) |
|
|
189
|
+
| Queries are mostly multi-hop paths (fraud rings, dependency graphs, permissions graphs) | Property graph: Apache AGE if you are on Postgres; else Neo4j CE (GPLv3) | Cypher expresses traversals that are painful in SQL | [AGE](https://github.com/apache/age), [Neo4j](https://github.com/neo4j/neo4j) |
|
|
190
|
+
| Rich typing: n-ary relations, inheritance, rule inference in the DB | TypeDB | Schema is an ontology | [TypeDB](https://github.com/typedb/typedb) |
|
|
191
|
+
| Agents answer metric questions over a warehouse | Semantic layer (MetricFlow, Cube or Malloy) | Deterministic metric SQL instead of guessed SQL | [dbt blog](https://www.getdbt.com/blog/open-source-metricflow-governed-metrics) |
|
|
192
|
+
| Agents mutate business state | Palantir-style ontology: object/link types + one tool per action with validation, permission and audit | Bounded, reviewable side effects | [Palantir](https://www.palantir.com/docs/foundry/ontology/core-concepts) |
|
|
193
|
+
| Q&A over a large unstructured corpus with global questions | GraphRAG (budget for it) or LightRAG | Community summaries answer corpus-wide questions | [GraphRAG](https://microsoft.github.io/graphrag/) |
|
|
194
|
+
| Long-lived agent memory with changing facts | Graphiti with prescribed Pydantic entity types | Bi-temporal invalidation keeps history | [Graphiti](https://github.com/getzep/graphiti) |
|
|
195
|
+
|
|
196
|
+
## Minimal example: one domain in LinkML
|
|
197
|
+
|
|
198
|
+
`schema/billing.yaml`:
|
|
199
|
+
|
|
200
|
+
```yaml
|
|
201
|
+
id: https://example.org/billing
|
|
202
|
+
name: billing
|
|
203
|
+
prefixes:
|
|
204
|
+
linkml: https://w3id.org/linkml/
|
|
205
|
+
schema: http://schema.org/
|
|
206
|
+
billing: https://example.org/billing/
|
|
207
|
+
default_prefix: billing
|
|
208
|
+
default_range: string
|
|
209
|
+
imports: [linkml:types]
|
|
210
|
+
classes:
|
|
211
|
+
Customer:
|
|
212
|
+
class_uri: schema:Organization
|
|
213
|
+
description: Legal entity that pays invoices (GLOSSARY Billing/Customer)
|
|
214
|
+
attributes:
|
|
215
|
+
id: {identifier: true}
|
|
216
|
+
legal_name: {required: true, slot_uri: schema:legalName}
|
|
217
|
+
Invoice:
|
|
218
|
+
class_uri: schema:Invoice
|
|
219
|
+
description: A request for payment issued to one Customer
|
|
220
|
+
attributes:
|
|
221
|
+
id: {identifier: true}
|
|
222
|
+
customer: {range: Customer, required: true}
|
|
223
|
+
status: {range: InvoiceStatus, required: true}
|
|
224
|
+
total_cents: {range: integer, required: true, minimum_value: 0}
|
|
225
|
+
issued_on: {range: date}
|
|
226
|
+
enums:
|
|
227
|
+
InvoiceStatus:
|
|
228
|
+
permissible_values: {draft: {}, issued: {}, paid: {}, void: {}}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Generate (CLI names from the [LinkML generator docs](https://linkml.io/linkml/generators/index.html)). Run them in CI and fail on diff, so generated files never drift:
|
|
232
|
+
```bash
|
|
233
|
+
linkml-lint schema/billing.yaml
|
|
234
|
+
gen-pydantic schema/billing.yaml > src/billing/models.py
|
|
235
|
+
gen-typescript schema/billing.yaml > web/src/billing.ts
|
|
236
|
+
gen-sqltables --dialect postgresql schema/billing.yaml > db/billing.sql
|
|
237
|
+
gen-json-schema schema/billing.yaml > schema/billing.schema.json # feeds agent tool input_schema
|
|
238
|
+
gen-shacl schema/billing.yaml > schema/billing.shacl.ttl
|
|
239
|
+
gen-owl schema/billing.yaml > schema/billing.owl.ttl
|
|
240
|
+
gen-doc schema/billing.yaml -d docs/schema/ # glossary-like docs site
|
|
241
|
+
```
|
|
242
|
+
Expected shape of the outputs (abbreviated and illustrative, not run here [inference]):
|
|
243
|
+
```python
|
|
244
|
+
class InvoiceStatus(str, Enum): draft = "draft"; issued = "issued"; paid = "paid"; void = "void"
|
|
245
|
+
class Invoice(ConfiguredBaseModel):
|
|
246
|
+
id: str
|
|
247
|
+
customer: str # reference by Customer.id (identifier class, not inlined)
|
|
248
|
+
status: InvoiceStatus
|
|
249
|
+
total_cents: int = Field(..., ge=0)
|
|
250
|
+
issued_on: Optional[date] = None
|
|
251
|
+
```
|
|
252
|
+
```sql
|
|
253
|
+
CREATE TABLE "Customer" (id TEXT NOT NULL, legal_name TEXT NOT NULL, PRIMARY KEY (id));
|
|
254
|
+
CREATE TABLE "Invoice" (id TEXT NOT NULL, customer TEXT NOT NULL, status VARCHAR(6) NOT NULL, total_cents INTEGER NOT NULL,
|
|
255
|
+
issued_on DATE, PRIMARY KEY (id), FOREIGN KEY(customer) REFERENCES "Customer" (id));
|
|
256
|
+
```
|
|
257
|
+
```turtle
|
|
258
|
+
billing:Invoice a sh:NodeShape ; sh:closed true ; sh:targetClass schema:Invoice ;
|
|
259
|
+
sh:property [ sh:path billing:status ; sh:in ("draft" "issued" "paid" "void") ; sh:maxCount 1 ; sh:minCount 1 ] .
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Note: LinkML names SQL tables after classes. If your DB convention is snake_case, map names in a migration layer or adjust generator options. Record the choice in an ADR [inference].
|
|
263
|
+
|
|
264
|
+
## Traps for agents
|
|
265
|
+
|
|
266
|
+
- **Synonym drift.** The agent names a concept `Client` in the API, `customer` in SQL and `Account` in the UI. Fowler names this polyseme confusion as the reason bounded contexts exist ([BoundedContext](https://martinfowler.com/bliki/BoundedContext.html)). Check new names against GLOSSARY.md before you create one.
|
|
267
|
+
- **Ontology theater.** The agent proposes OWL, Protege or a graph DB for a CRUD app. Default to a typed model plus Postgres. Escalate only on a row in the decision table [inference].
|
|
268
|
+
- **OWL used as validation.** OWL's open-world assumption means missing values do not violate anything ([OWL 2 Primer](https://www.w3.org/TR/owl2-primer/)). Use SHACL, JSON Schema or Pydantic for validation.
|
|
269
|
+
- **Parallel hand-written schemas** (Pydantic + Zod + SQL + JSON Schema) drift silently. Pick one source (typed model or LinkML) and generate the rest [inference].
|
|
270
|
+
- **Raw write access for the agent.** Neo4j's own docs warn that LLM-generated write queries "can cause harm" ([Neo4j MCP tools](https://neo4j.com/docs/mcp/current/tools)). Expose action tools with confirmation, as AIP does ([Palantir tools](https://www.palantir.com/docs/foundry/agent-studio/tools)).
|
|
271
|
+
- **LLM-extracted graphs as truth.** Unconstrained extraction invents entity types and duplicates. Pass a schema (neo4j-graphrag `schema`, Graphiti custom types) and keep source provenance ([neo4j-graphrag](https://github.com/neo4j/neo4j-graphrag-python), [Graphiti](https://github.com/getzep/graphiti)).
|
|
272
|
+
- **Underestimating GraphRAG cost.** Microsoft warns that indexing is expensive. Start small and tune prompts ([GraphRAG README](https://github.com/microsoft/graphrag)).
|
|
273
|
+
- **Overwriting temporal facts.** Updating "current employer" in place loses history. Use valid-from/valid-to columns or a bi-temporal store ([Zep paper](https://arxiv.org/abs/2501.13956)).
|
|
274
|
+
- **License blindness.** Before you recommend a DB, check whether it is GPLv3 (Neo4j CE, Neo4j MCP), BSL (Memgraph), SSPL (FalkorDB) or archived (Kuzu). Run `gh api repos/<o>/<r>` for archived status and license ([Memgraph BSL](https://github.com/memgraph/memgraph/blob/master/licenses/BSL.txt), [FalkorDB](https://docs.falkordb.com/license.html), [Kuzu](https://github.com/kuzudb/kuzu)).
|
|
275
|
+
- **Schemas the provider rejects.** OpenAI Structured Outputs supports only a subset of JSON Schema. Test that the generated schema is accepted, not just valid ([OpenAI](https://platform.openai.com/docs/guides/structured-outputs)).
|
|
276
|
+
- **Unauthenticated memory servers.** Graphiti's reference MCP/REST servers ship without auth ([Graphiti README](https://github.com/getzep/graphiti)).
|
|
277
|
+
- **Agent-written metrics.** Ad-hoc SQL for "revenue" gives a different number every run. Route metric questions through named functions or a semantic layer ([dbt](https://www.getdbt.com/blog/open-source-metricflow-governed-metrics)).
|
|
278
|
+
|
|
279
|
+
## Default for a solo dev / small team
|
|
280
|
+
|
|
281
|
+
1. `docs/GLOSSARY.md` with the table format above, plus `docs/adr/NNNN-title.md` in MADR or Nygard format. Add a CI `rg` check for banned synonyms.
|
|
282
|
+
2. Postgres plus one typed domain model: Pydantic for Python backends, Zod for TS. It is the source of truth for API, DB mapping and agent tool `input_schema` (with `strict: true` where supported).
|
|
283
|
+
3. Agent surface = action tools (validate, authorize, one transaction, audit) plus read functions. No raw write SQL or Cypher, and read-only DB credentials for query tools.
|
|
284
|
+
4. Mixed TS/Python stack, or a need for SHACL/OWL/JSON-LD: switch the source of truth to LinkML (v1.12.x) and generate everything in CI.
|
|
285
|
+
5. Need graph traversal: Apache AGE on the same Postgres first; Neo4j CE (GPLv3, separate server) next. Avoid Kuzu (archived), and read Memgraph's BSL and FalkorDB's SSPL before you ship.
|
|
286
|
+
6. Need agent memory: Graphiti with declared Pydantic entity types on Neo4j or FalkorDB, behind your own auth. Need corpus Q&A: plain vector RAG first; GraphRAG or LightRAG only when global questions fail.
|
|
287
|
+
7. RDF only for schema.org JSON-LD (SEO) or external linked-data exchange: rdflib + pySHACL in Python, Oxigraph or Fuseki as the store.
|