oh-my-agent-commandcode 0.0.0-stage → 20.38.4
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/README.md +35 -2
- package/filter-test-output.sh +52 -0
- package/mods/oma.ts +347 -0
- package/package.json +30 -4
- package/skills/_shared/conditional/experiment-ledger.md +28 -0
- package/skills/_shared/conditional/exploration-loop.md +22 -0
- package/skills/_shared/conditional/quality-score.md +33 -0
- package/skills/_shared/core/anti-ai-prose.md +191 -0
- package/skills/_shared/core/api-contracts/README.md +28 -0
- package/skills/_shared/core/api-contracts/template.md +90 -0
- package/skills/_shared/core/clarification-protocol.md +23 -0
- package/skills/_shared/core/code-intelligence.md +46 -0
- package/skills/_shared/core/collaboration-policy.md +28 -0
- package/skills/_shared/core/common-checklist.md +28 -0
- package/skills/_shared/core/context-budget.md +22 -0
- package/skills/_shared/core/context-loading.md +34 -0
- package/skills/_shared/core/difficulty-guide.md +26 -0
- package/skills/_shared/core/execution-policy.md +31 -0
- package/skills/_shared/core/lessons-learned.md +33 -0
- package/skills/_shared/core/prompt-structure.md +18 -0
- package/skills/_shared/core/quality-principles.md +11 -0
- package/skills/_shared/core/session-metrics.md +35 -0
- package/skills/_shared/core/skill-routing.md +39 -0
- package/skills/_shared/core/test-approach.md +54 -0
- package/skills/_shared/core/vendor-detection.md +52 -0
- package/skills/_shared/runtime/memory-protocol.md +118 -0
- package/skills/_shared/runtime/result-contract.md +64 -0
- package/skills/_shared/ui-interaction-quality.md +133 -0
- package/skills/oma-academic-writing/SKILL.md +181 -0
- package/skills/oma-academic-writing/resources/abstract-guide.md +51 -0
- package/skills/oma-academic-writing/resources/academic-verb-tiers.md +42 -0
- package/skills/oma-academic-writing/resources/anti-ai-checklist.md +52 -0
- package/skills/oma-academic-writing/resources/hedging-guide.md +132 -0
- package/skills/oma-academic-writing/resources/sentence-structure-reference.md +151 -0
- package/skills/oma-architecture/SKILL.md +203 -0
- package/skills/oma-architecture/resources/api-evolution.md +41 -0
- package/skills/oma-architecture/resources/checklist.md +42 -0
- package/skills/oma-architecture/resources/execution-protocol.md +115 -0
- package/skills/oma-architecture/resources/methodology-selection.md +92 -0
- package/skills/oma-architecture/resources/migration-patterns.md +28 -0
- package/skills/oma-architecture/resources/output-templates.md +111 -0
- package/skills/oma-architecture/resources/stakeholder-synthesis.md +80 -0
- package/skills/oma-backend/SKILL.md +202 -0
- package/skills/oma-backend/resources/checklist.md +45 -0
- package/skills/oma-backend/resources/error-playbook.md +97 -0
- package/skills/oma-backend/resources/execution-protocol.md +39 -0
- package/skills/oma-backend/resources/orm-reference.md +61 -0
- package/skills/oma-backend/variants/node/api-template.ts +315 -0
- package/skills/oma-backend/variants/node/snippets.md +475 -0
- package/skills/oma-backend/variants/node/stack.yaml +21 -0
- package/skills/oma-backend/variants/node/tech-stack.md +33 -0
- package/skills/oma-backend/variants/python/api-template.py +378 -0
- package/skills/oma-backend/variants/python/snippets.md +199 -0
- package/skills/oma-backend/variants/python/stack.yaml +18 -0
- package/skills/oma-backend/variants/python/tech-stack.md +45 -0
- package/skills/oma-backend/variants/rust/api-template.rs +635 -0
- package/skills/oma-backend/variants/rust/snippets.md +471 -0
- package/skills/oma-backend/variants/rust/stack.yaml +20 -0
- package/skills/oma-backend/variants/rust/tech-stack.md +36 -0
- package/skills/oma-backend/variants/stack.schema.json +73 -0
- package/skills/oma-brainstorm/SKILL.md +166 -0
- package/skills/oma-brainstorm/resources/triz-lite.md +117 -0
- package/skills/oma-coordination/SKILL.md +171 -0
- package/skills/oma-db/SKILL.md +201 -0
- package/skills/oma-db/resources/anti-patterns.md +177 -0
- package/skills/oma-db/resources/checklist.md +67 -0
- package/skills/oma-db/resources/document-templates.md +107 -0
- package/skills/oma-db/resources/error-playbook.md +50 -0
- package/skills/oma-db/resources/examples.md +170 -0
- package/skills/oma-db/resources/execution-protocol.md +127 -0
- package/skills/oma-db/resources/iso-controls.md +98 -0
- package/skills/oma-db/resources/migration-playbook.md +93 -0
- package/skills/oma-db/resources/query-tuning.md +57 -0
- package/skills/oma-db/resources/vector-db.md +159 -0
- package/skills/oma-debug/SKILL.md +146 -0
- package/skills/oma-debug/resources/bug-report-template.md +327 -0
- package/skills/oma-debug/resources/checklist.md +31 -0
- package/skills/oma-debug/resources/common-patterns.md +734 -0
- package/skills/oma-debug/resources/debugging-checklist.md +364 -0
- package/skills/oma-debug/resources/error-playbook.md +94 -0
- package/skills/oma-debug/resources/execution-protocol.md +40 -0
- package/skills/oma-design/SKILL.md +135 -0
- package/skills/oma-design/resources/asset-strategy.md +34 -0
- package/skills/oma-design/resources/checklist.md +63 -0
- package/skills/oma-design/resources/data-grid.md +48 -0
- package/skills/oma-design/resources/design-md-spec.md +107 -0
- package/skills/oma-design/resources/design-tokens.md +53 -0
- package/skills/oma-design/resources/error-playbook.md +18 -0
- package/skills/oma-design/resources/execution-protocol.md +95 -0
- package/skills/oma-design/resources/external-design-skills.md +130 -0
- package/skills/oma-design/resources/getdesign-fetcher.md +104 -0
- package/skills/oma-design/resources/product-interface-review.md +59 -0
- package/skills/oma-design/resources/redesign-protocol.md +52 -0
- package/skills/oma-design/resources/stitch-integration.md +244 -0
- package/skills/oma-dev-workflow/SKILL.md +375 -0
- package/skills/oma-dev-workflow/resources/affected-checks.py +58 -0
- package/skills/oma-dev-workflow/resources/api-workflows.md +58 -0
- package/skills/oma-dev-workflow/resources/database-patterns.md +107 -0
- package/skills/oma-dev-workflow/resources/i18n-patterns.md +63 -0
- package/skills/oma-dev-workflow/resources/release-coordination.md +240 -0
- package/skills/oma-dev-workflow/resources/tooling-profiles.md +217 -0
- package/skills/oma-dev-workflow/resources/troubleshooting.md +78 -0
- package/skills/oma-dev-workflow/resources/validation-pipeline.md +246 -0
- package/skills/oma-docs/SKILL.md +77 -0
- package/skills/oma-docs/resources/commands.md +76 -0
- package/skills/oma-explanation/SKILL.md +212 -0
- package/skills/oma-explanation/resources/document-structure.md +115 -0
- package/skills/oma-explanation/resources/draft-format.md +199 -0
- package/skills/oma-explanation/resources/html-contract.md +102 -0
- package/skills/oma-frontend/SKILL.md +227 -0
- package/skills/oma-frontend/resources/angular-rules.md +110 -0
- package/skills/oma-frontend/resources/checklist.md +76 -0
- package/skills/oma-frontend/resources/error-playbook.md +125 -0
- package/skills/oma-frontend/resources/execution-protocol.md +46 -0
- package/skills/oma-frontend/resources/snippets.md +354 -0
- package/skills/oma-frontend/resources/specialized-visual-implementation.md +193 -0
- package/skills/oma-frontend/resources/tailwind-rules.md +83 -0
- package/skills/oma-frontend/resources/tech-stack.md +156 -0
- package/skills/oma-hwp/SKILL.md +166 -0
- package/skills/oma-hwp/config/hwp-config.yaml +35 -0
- package/skills/oma-hwp/resources/balanced-tables.ts +39 -0
- package/skills/oma-hwp/resources/execution-protocol.md +145 -0
- package/skills/oma-hwp/resources/flatten-tables.ts +101 -0
- package/skills/oma-hwp/resources/package.json +13 -0
- package/skills/oma-hwp/resources/troubleshooting.md +70 -0
- package/skills/oma-hwp/resources/tsconfig.json +10 -0
- package/skills/oma-hwp/resources/turndown-plugin-gfm.d.ts +9 -0
- package/skills/oma-image/SKILL.md +142 -0
- package/skills/oma-image/config/image-config.yaml +70 -0
- package/skills/oma-image/resources/checklist.md +18 -0
- package/skills/oma-image/resources/execution-protocol.md +117 -0
- package/skills/oma-image/resources/invocation.md +105 -0
- package/skills/oma-image/resources/prompt-tips.md +71 -0
- package/skills/oma-image/resources/vendor-matrix.md +90 -0
- package/skills/oma-market/SKILL.md +142 -0
- package/skills/oma-market/resources/checklist.md +12 -0
- package/skills/oma-market/resources/error-playbook.md +12 -0
- package/skills/oma-market/resources/execution-protocol.md +60 -0
- package/skills/oma-market/resources/frameworks/pestel.md +101 -0
- package/skills/oma-market/resources/frameworks/porters-5f.md +90 -0
- package/skills/oma-market/resources/frameworks/swot.md +61 -0
- package/skills/oma-market/resources/intent-rules.md +35 -0
- package/skills/oma-market/resources/output-laws.md +53 -0
- package/skills/oma-mobile/SKILL.md +168 -0
- package/skills/oma-mobile/resources/checklist.md +77 -0
- package/skills/oma-mobile/resources/error-playbook.md +198 -0
- package/skills/oma-mobile/resources/execution-protocol.md +47 -0
- package/skills/oma-mobile/resources/screen-template.dart +331 -0
- package/skills/oma-mobile/resources/screen-template.swift +239 -0
- package/skills/oma-mobile/resources/screen-template.tsx +179 -0
- package/skills/oma-mobile/resources/tech-stack.md +69 -0
- package/skills/oma-mobile/variants/README.md +45 -0
- package/skills/oma-mobile/variants/flutter/api-template.dart +461 -0
- package/skills/oma-mobile/variants/flutter/snippets.md +1353 -0
- package/skills/oma-mobile/variants/flutter/stack.yaml +21 -0
- package/skills/oma-mobile/variants/flutter/tech-stack.md +201 -0
- package/skills/oma-mobile/variants/kotlin-android/api-template.kt +182 -0
- package/skills/oma-mobile/variants/kotlin-android/snippets.md +871 -0
- package/skills/oma-mobile/variants/kotlin-android/stack.yaml +32 -0
- package/skills/oma-mobile/variants/kotlin-android/tech-stack.md +159 -0
- package/skills/oma-mobile/variants/react-native/api-template.ts +531 -0
- package/skills/oma-mobile/variants/react-native/snippets.md +1014 -0
- package/skills/oma-mobile/variants/react-native/stack.yaml +22 -0
- package/skills/oma-mobile/variants/react-native/tech-stack.md +192 -0
- package/skills/oma-mobile/variants/stack.schema.json +68 -0
- package/skills/oma-mobile/variants/swift-ios/api-template.swift +165 -0
- package/skills/oma-mobile/variants/swift-ios/snippets.md +1028 -0
- package/skills/oma-mobile/variants/swift-ios/stack.yaml +25 -0
- package/skills/oma-mobile/variants/swift-ios/tech-stack.md +174 -0
- package/skills/oma-observability/SKILL.md +225 -0
- package/skills/oma-observability/resources/anti-patterns.md +555 -0
- package/skills/oma-observability/resources/boundaries/cross-application.md +348 -0
- package/skills/oma-observability/resources/boundaries/multi-tenant.md +290 -0
- package/skills/oma-observability/resources/boundaries/release.md +372 -0
- package/skills/oma-observability/resources/boundaries/slo.md +225 -0
- package/skills/oma-observability/resources/checklist.md +123 -0
- package/skills/oma-observability/resources/examples.md +448 -0
- package/skills/oma-observability/resources/execution-protocol.md +166 -0
- package/skills/oma-observability/resources/incident-forensics.md +348 -0
- package/skills/oma-observability/resources/intent-rules.md +307 -0
- package/skills/oma-observability/resources/layers/L3-network.md +281 -0
- package/skills/oma-observability/resources/layers/L4-transport.md +299 -0
- package/skills/oma-observability/resources/layers/L7-application/crash-analytics.md +359 -0
- package/skills/oma-observability/resources/layers/L7-application/mobile-rum.md +278 -0
- package/skills/oma-observability/resources/layers/L7-application/waf.md +246 -0
- package/skills/oma-observability/resources/layers/L7-application/web-rum.md +350 -0
- package/skills/oma-observability/resources/layers/mesh.md +368 -0
- package/skills/oma-observability/resources/matrix.md +177 -0
- package/skills/oma-observability/resources/meta-observability.md +605 -0
- package/skills/oma-observability/resources/observability-as-code.md +666 -0
- package/skills/oma-observability/resources/signals/audit.md +310 -0
- package/skills/oma-observability/resources/signals/cost.md +303 -0
- package/skills/oma-observability/resources/signals/logs.md +263 -0
- package/skills/oma-observability/resources/signals/metrics.md +478 -0
- package/skills/oma-observability/resources/signals/privacy.md +351 -0
- package/skills/oma-observability/resources/signals/profiles.md +245 -0
- package/skills/oma-observability/resources/signals/traces.md +360 -0
- package/skills/oma-observability/resources/standards.md +214 -0
- package/skills/oma-observability/resources/transport/collector-topology.md +308 -0
- package/skills/oma-observability/resources/transport/otlp-grpc-vs-http.md +256 -0
- package/skills/oma-observability/resources/transport/sampling-recipes.md +297 -0
- package/skills/oma-observability/resources/transport/udp-statsd-mtu.md +167 -0
- package/skills/oma-observability/resources/vendor-categories.md +352 -0
- package/skills/oma-orchestration/SKILL.md +302 -0
- package/skills/oma-orchestration/config/cli-config.yaml +92 -0
- package/skills/oma-orchestration/resources/memory-schema.md +232 -0
- package/skills/oma-orchestration/resources/subagent-prompt-template.md +30 -0
- package/skills/oma-orchestration/scripts/parallel-run.sh +6 -0
- package/skills/oma-orchestration/scripts/spawn-agent.sh +5 -0
- package/skills/oma-orchestration/scripts/verify.sh +20 -0
- package/skills/oma-orchestration/templates/backend-task.md +19 -0
- package/skills/oma-orchestration/templates/debug-task.md +16 -0
- package/skills/oma-orchestration/templates/frontend-task.md +18 -0
- package/skills/oma-orchestration/templates/mobile-task.md +18 -0
- package/skills/oma-orchestration/templates/qa-task.md +16 -0
- package/skills/oma-orchestration/templates/tasks-example.yaml +15 -0
- package/skills/oma-pdf/SKILL.md +162 -0
- package/skills/oma-pdf/config/pdf-config.yaml +27 -0
- package/skills/oma-pdf/resources/execution-protocol.md +127 -0
- package/skills/oma-pm/SKILL.md +157 -0
- package/skills/oma-pm/resources/error-playbook.md +75 -0
- package/skills/oma-pm/resources/examples.md +439 -0
- package/skills/oma-pm/resources/execution-protocol.md +62 -0
- package/skills/oma-pm/resources/iso-planning.md +110 -0
- package/skills/oma-pm/resources/plan-phase-protocol.md +66 -0
- package/skills/oma-pm/resources/task-template.json +86 -0
- package/skills/oma-qa/SKILL.md +141 -0
- package/skills/oma-qa/resources/checklist.md +339 -0
- package/skills/oma-qa/resources/error-playbook.md +98 -0
- package/skills/oma-qa/resources/execution-protocol.md +169 -0
- package/skills/oma-qa/resources/iso-quality.md +82 -0
- package/skills/oma-qa/resources/verify-ship-protocol.md +116 -0
- package/skills/oma-recap/SKILL.md +245 -0
- package/skills/oma-recap/resources/output-formats.md +83 -0
- package/skills/oma-refactor/SKILL.md +184 -0
- package/skills/oma-refactor/resources/definition.md +108 -0
- package/skills/oma-refactor/resources/governance.md +33 -0
- package/skills/oma-refactor/resources/hotspots.py +44 -0
- package/skills/oma-refactor/resources/measurement.md +93 -0
- package/skills/oma-scholar/SKILL.md +276 -0
- package/skills/oma-scholar/config/scholar-config.yaml +79 -0
- package/skills/oma-scholar/resources/api-endpoints.md +174 -0
- package/skills/oma-scholar/resources/checklist.md +92 -0
- package/skills/oma-scholar/resources/execution-protocol.md +224 -0
- package/skills/oma-scholar/resources/fallback-providers.md +143 -0
- package/skills/oma-scholar/resources/setup-openalex.md +85 -0
- package/skills/oma-scholar/resources/sidecar-spec.md +341 -0
- package/skills/oma-scholar/resources/upstream-spec-cache.md +972 -0
- package/skills/oma-scm/SKILL.md +103 -0
- package/skills/oma-scm/resources/cm-operations.md +56 -0
- package/skills/oma-scm/resources/codeowners-playbook.md +45 -0
- package/skills/oma-scm/resources/conventional-commits.md +108 -0
- package/skills/oma-scm/resources/merge-risk.md +76 -0
- package/skills/oma-scm/resources/onboarding-risk-signals.md +71 -0
- package/skills/oma-search/SKILL.md +125 -0
- package/skills/oma-search/resources/checklist.md +36 -0
- package/skills/oma-search/resources/error-playbook.md +66 -0
- package/skills/oma-search/resources/examples.md +80 -0
- package/skills/oma-search/resources/execution-protocol.md +86 -0
- package/skills/oma-search/resources/intent-rules.md +47 -0
- package/skills/oma-search/resources/trust-registry.md +53 -0
- package/skills/oma-security/SKILL.md +172 -0
- package/skills/oma-security/resources/artex.md +108 -0
- package/skills/oma-security/resources/ci.md +134 -0
- package/skills/oma-security/resources/cisco-source.md +108 -0
- package/skills/oma-security/resources/deepsec-config.md +45 -0
- package/skills/oma-security/resources/deepsec-matchers.md +35 -0
- package/skills/oma-security/resources/deepsec-scanning.md +45 -0
- package/skills/oma-security/resources/deepsec-setup.md +41 -0
- package/skills/oma-security/resources/findings-contract.md +408 -0
- package/skills/oma-security/resources/mcp-scanning.md +122 -0
- package/skills/oma-security/resources/skill-scanning.md +106 -0
- package/skills/oma-security/resources/validation.md +71 -0
- package/skills/oma-skill-creation/SKILL.md +84 -0
- package/skills/oma-skill-creation/resources/prompt-evaluation.md +36 -0
- package/skills/oma-skill-creation/resources/ssl-lite-template.md +108 -0
- package/skills/oma-skill-creation/resources/validation-checklist.md +101 -0
- package/skills/oma-slide/SKILL.md +277 -0
- package/skills/oma-slide/resources/animation-patterns.md +245 -0
- package/skills/oma-slide/resources/assets/deck-stage.js +514 -0
- package/skills/oma-slide/resources/assets/viewport-base.css +257 -0
- package/skills/oma-slide/resources/canva-integration.md +203 -0
- package/skills/oma-slide/resources/checklist.md +46 -0
- package/skills/oma-slide/resources/design-doctrine.md +260 -0
- package/skills/oma-slide/resources/fixed-stage.md +232 -0
- package/skills/oma-slide/resources/generation-protocol.md +393 -0
- package/skills/oma-slide/resources/native-pptx.md +84 -0
- package/skills/oma-slide/resources/selection-index.json +461 -0
- package/skills/oma-slide/resources/style-presets.LICENSE +10 -0
- package/skills/oma-slide/resources/style-presets.md +520 -0
- package/skills/oma-tf-infra/SKILL.md +201 -0
- package/skills/oma-tf-infra/resources/checklist.md +53 -0
- package/skills/oma-tf-infra/resources/cost-optimization.md +574 -0
- package/skills/oma-tf-infra/resources/error-playbook.md +68 -0
- package/skills/oma-tf-infra/resources/examples.md +38 -0
- package/skills/oma-tf-infra/resources/execution-protocol.md +129 -0
- package/skills/oma-tf-infra/resources/iso-42001-infra.md +229 -0
- package/skills/oma-tf-infra/resources/multi-cloud-examples.md +241 -0
- package/skills/oma-tf-infra/resources/policy-testing-examples.md +332 -0
- package/skills/oma-translation/SKILL.md +229 -0
- package/skills/oma-translation/resources/anti-ai-patterns.md +104 -0
- package/skills/oma-translation/resources/lang/_template.md +73 -0
- package/skills/oma-translation/resources/lang/en.md +123 -0
- package/skills/oma-translation/resources/lang/ja.md +274 -0
- package/skills/oma-translation/resources/lang/ko.md +228 -0
- package/skills/oma-translation/resources/lang/zh.md +285 -0
- package/skills/oma-translation/resources/style-skills.md +104 -0
- package/skills/oma-translation/resources/translation-rubric.md +126 -0
- package/skills/oma-video/SKILL.md +229 -0
- package/skills/oma-video/config/video-config.yaml +60 -0
- package/skills/oma-video/resources/checklist.md +26 -0
- package/skills/oma-video/resources/execution-protocol.md +122 -0
- package/skills/oma-video/resources/existing-media.md +185 -0
- package/skills/oma-video/resources/hyperframes-authoring/README.md +44 -0
- package/skills/oma-video/resources/hyperframes-authoring/demo.md +31 -0
- package/skills/oma-video/resources/hyperframes-authoring/explainer.md +10 -0
- package/skills/oma-video/resources/hyperframes-authoring/shorts.md +10 -0
- package/skills/oma-video/resources/motion-principles.md +81 -0
- package/skills/oma-video/resources/mpt/driver.py +301 -0
- package/skills/oma-video/resources/prompt-tips.md +75 -0
- package/skills/oma-video/resources/script-schema.md +81 -0
- package/skills/oma-video/resources/sound-design.md +127 -0
- package/skills/oma-video/resources/strudel/package.json +11 -0
- package/skills/oma-video/resources/strudel/page.html +87 -0
- package/skills/oma-video/resources/strudel/render.mjs +295 -0
- package/skills/oma-video/resources/vendor-matrix.md +124 -0
- package/skills/oma-voice/SKILL.md +249 -0
- package/skills/oma-voice/config/voice-config.yaml +30 -0
- package/skills/oma-voice/resources/audio-processing.md +119 -0
- package/skills/oma-voice/resources/checklist.md +47 -0
- package/skills/oma-voice/resources/execution-protocol.md +215 -0
- package/skills/oma-voice/resources/prompt-tips.md +43 -0
- package/skills/oma-voice/resources/voice-matrix.md +51 -0
- package/skills/oma-voice/resources/voicestudio.md +87 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oma-brainstorm
|
|
3
|
+
description: Explore goals, constraints, and alternative approaches before
|
|
4
|
+
choosing a design. Use when the user requests ideation or design exploration.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Brainstorm - Design-First Ideation
|
|
8
|
+
|
|
9
|
+
## Scheduling
|
|
10
|
+
|
|
11
|
+
### Goal
|
|
12
|
+
Explore user intent, constraints, and alternative approaches before planning or implementation, then preserve an approved design for downstream planning.
|
|
13
|
+
|
|
14
|
+
### Intent signature
|
|
15
|
+
- User says they have an idea, want to brainstorm, compare approaches, explore concepts, or design before planning.
|
|
16
|
+
- Request is ambiguous enough that implementation or task planning would be premature.
|
|
17
|
+
|
|
18
|
+
### When to use
|
|
19
|
+
- Exploring a new feature idea before planning
|
|
20
|
+
- Understanding user intent and constraints before committing to an approach
|
|
21
|
+
- Comparing multiple design approaches with trade-offs
|
|
22
|
+
- When the user says "I have an idea" or "let's design something"
|
|
23
|
+
- Before invoking `/plan` for complex or ambiguous requests
|
|
24
|
+
|
|
25
|
+
### When NOT to use
|
|
26
|
+
- Requirements are already clear and well-defined -> use `oma-pm` directly
|
|
27
|
+
- Implementing actual code -> delegate to specialized agents
|
|
28
|
+
- Performing code reviews -> use `oma-qa`
|
|
29
|
+
- Debugging existing issues -> use `oma-debug`
|
|
30
|
+
|
|
31
|
+
### Expected inputs
|
|
32
|
+
- Early idea, ambiguous goal, product concept, design question, or set of constraints
|
|
33
|
+
- Existing project context when the idea must fit a codebase or product direction
|
|
34
|
+
- User preferences and approval gates
|
|
35
|
+
|
|
36
|
+
### Expected outputs
|
|
37
|
+
- Clarified intent and constraints
|
|
38
|
+
- Viable approaches as prose briefs (scenario, mechanism, residual risk), with comparison and recommendation when alternatives aid the decision
|
|
39
|
+
- Section-by-section approved design document
|
|
40
|
+
- Blind-review issue list (Tier 1 resolved, Tier 2/3 resolved or explicitly deferred)
|
|
41
|
+
- Saved design artifact before handoff to planning
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
- Shared context loading, reasoning templates, clarification protocol, quality principles, and skill routing
|
|
45
|
+
- Optional `resources/triz-lite.md` for contradiction-shaped approach seeding
|
|
46
|
+
- Per-agent reviewer dispatch (e.g. `qa-reviewer`, `architecture-reviewer`) for the high-stakes blind-review escalation path
|
|
47
|
+
- Downstream PM workflow for task decomposition after design approval
|
|
48
|
+
|
|
49
|
+
### Control-flow features
|
|
50
|
+
- Branches by ambiguity, user answers, approach comparison, and approval gates
|
|
51
|
+
- Optional TRIZ-lite branch when a technical/UX contradiction blocks distinct approaches
|
|
52
|
+
- Asks one question at a time
|
|
53
|
+
- Blind review round before save; may dispatch fresh-context reviewer subagents for high-stakes designs (the only subagent-spawning path in this skill)
|
|
54
|
+
- Stops before implementation or task planning
|
|
55
|
+
|
|
56
|
+
## Structural Flow
|
|
57
|
+
|
|
58
|
+
### Entry
|
|
59
|
+
1. Confirm that the request is exploratory rather than ready for implementation.
|
|
60
|
+
2. Load enough project context to understand constraints.
|
|
61
|
+
3. Start with intent and constraints, not solutions.
|
|
62
|
+
|
|
63
|
+
### Scenes
|
|
64
|
+
1. **PREPARE**: Explore context and frame the design question.
|
|
65
|
+
2. **ACQUIRE**: Ask clarifying questions one at a time.
|
|
66
|
+
3. **REASON**: Compare viable approaches with tradeoffs when alternatives aid the decision; explain binding constraints when only one remains.
|
|
67
|
+
4. **VERIFY**: Reuse existing design authority and resolve only material open choices, then run a blind review round (independent lenses critique without seeing each other's feedback) before saving.
|
|
68
|
+
5. **FINALIZE**: Save design and transition to planning when appropriate.
|
|
69
|
+
|
|
70
|
+
### Transitions
|
|
71
|
+
- If requirements become clear and implementation-ready, transition to PM planning.
|
|
72
|
+
- If user rejects an approach, revise before moving to detailed design.
|
|
73
|
+
- If implementation pressure appears early, defer it until design approval.
|
|
74
|
+
- If approaches collapse into knob-turning on one axis, load `resources/triz-lite.md` and reseed, then re-present prose briefs.
|
|
75
|
+
|
|
76
|
+
### Failure and recovery
|
|
77
|
+
- If the user cannot answer a question, propose assumptions and ask for confirmation.
|
|
78
|
+
- If scope expands, split the design into smaller sections.
|
|
79
|
+
- If alternatives collapse into one option, identify the real constraint causing that; use TRIZ-lite only when that constraint is a technical/UX contradiction.
|
|
80
|
+
|
|
81
|
+
### Exit
|
|
82
|
+
- Success: approved design exists and is ready for planning.
|
|
83
|
+
- Partial success: open questions and assumptions are explicit.
|
|
84
|
+
|
|
85
|
+
## Logical Operations
|
|
86
|
+
|
|
87
|
+
### Actions
|
|
88
|
+
| Action | SSL primitive | Evidence |
|
|
89
|
+
|--------|---------------|----------|
|
|
90
|
+
| Read context and idea | `READ` | User prompt and project context |
|
|
91
|
+
| Ask targeted questions | `REQUEST` | Clarification phase |
|
|
92
|
+
| Compare approaches | `COMPARE` | Tradeoff matrix |
|
|
93
|
+
| Infer recommendation | `INFER` | Recommended option |
|
|
94
|
+
| Record option selection | `CALL_TOOL` | Actual approach, comparison evidence, and design/option revision; matching `instanceId` and verifier `--instance` in an active OMA workflow |
|
|
95
|
+
| Resolve design authority | `VALIDATE` | Existing instruction, delegated choice, or explicit answer for an unresolved material design choice |
|
|
96
|
+
| Run blind review | `VALIDATE` | Independent lens critiques, tiered issue list, Tier 1 resolution |
|
|
97
|
+
| Write design artifact | `WRITE` | `docs/decisions/` and a linked coordination summary |
|
|
98
|
+
| Transition to plan | `NOTIFY` | Handoff summary |
|
|
99
|
+
|
|
100
|
+
### Tools and instruments
|
|
101
|
+
- Context loading, reasoning templates, clarification protocol
|
|
102
|
+
- Optional TRIZ-lite resource for contradiction seeding
|
|
103
|
+
- Project memory for coordination summaries and `docs/decisions/` for retained approach proposals
|
|
104
|
+
|
|
105
|
+
### Canonical workflow path
|
|
106
|
+
```text
|
|
107
|
+
1. Ask one clarifying question at a time.
|
|
108
|
+
2. (Optional) If technical/UX contradiction or same-axis approaches only → resources/triz-lite.md.
|
|
109
|
+
3. Present viable alternatives as prose briefs and compare them when useful; do not invent extra options to meet a count; reuse an existing selection or delegated choice and resolve only an open material choice. In an active OMA workflow, record the actual approach, rationale, evidence, and design/option revision with `brainstorm.option-selection`; verify the matching --instance (workflow Step 3 owns the commands).
|
|
110
|
+
4. Design section by section within existing authorization, then blind review: independent lenses suited to the uncertainty and stakes critique the design; resolve Tier 1 issues (fresh-context reviewer subagents for high-stakes designs).
|
|
111
|
+
5. Save the approved approach to `docs/decisions/{NNN}-{name}.md` and update `docs/decisions/index.md` before handing off to planning. Keep this directory versioned. Read `docs/plans/designs/` and `docs/design-docs/` only as legacy fallback until migration; `design` names UI work.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Resource scope
|
|
115
|
+
| Scope | Resource target |
|
|
116
|
+
|-------|-----------------|
|
|
117
|
+
| `MEMORY` | User intent, assumptions, decisions |
|
|
118
|
+
| `CODEBASE` | Existing project context when relevant |
|
|
119
|
+
| `LOCAL_FS` | Approved design artifacts; optional TRIZ-lite appendix in design doc |
|
|
120
|
+
|
|
121
|
+
### Preconditions
|
|
122
|
+
- The user is still exploring or the request is ambiguous.
|
|
123
|
+
- The agent can ask clarifying questions before implementation.
|
|
124
|
+
|
|
125
|
+
### Effects and side effects
|
|
126
|
+
- Produces design decisions and persisted design docs.
|
|
127
|
+
- Influences downstream planning but does not implement code.
|
|
128
|
+
|
|
129
|
+
### Guardrails
|
|
130
|
+
1. **No implementation or planning before design approval** - brainstorm produces a design document, not code or task plans
|
|
131
|
+
2. **One question at a time** - ask clarification and approval questions through the available asynchronous question tool first, following `../_shared/core/clarification-protocol.md`; fall back to a permitted question tool or plain text. Continue independent work while waiting, and never infer approval from silence or a preselected option.
|
|
132
|
+
3. **Compare viable approaches** - offer two or three when they aid the decision, and explain constraints when fewer remain. Recommend according to the actual goal, effort, reversibility, and risk. Do not favor a larger structural change solely because of its label.
|
|
133
|
+
4. **Explain viable approaches in prose** - state scenario, mechanism, residual risk, and effort. Use a comparison matrix when it helps the decision, then give the recommendation; a single constrained option needs its rationale, not invented alternatives
|
|
134
|
+
5. **Section-by-section design** - present the design incrementally; reuse existing decisions and delegated authority, asking only for unresolved material choices under the shared execution policy
|
|
135
|
+
6. **Blind review before save** - mandatory unless the design is trivially small (1-2 files, low stakes); lenses critique independently; use fresh-context reviewer subagents for architecturally significant, hard-to-reverse, or security-/compliance-sensitive designs
|
|
136
|
+
7. **YAGNI** - do not over-engineer; design only what is needed for the stated goal
|
|
137
|
+
8. **TRIZ-lite is optional** - only for technical/UX contradictions or same-axis collapse; max 3–5 principles from the curated set; no fake scores, full TRIZ/ARIZ, or classical matrices; seeds feed Step 3 briefs and do not replace user approval
|
|
138
|
+
9. **Save the selected approach, then transition** - persist it in `docs/decisions/` before handing off to `/plan`. Run-specific critique and `result-*.md` reports belong in `.agents/results/`; leave the destination in the source report when promoting a document into `docs/`
|
|
139
|
+
|
|
140
|
+
### Execution Phases
|
|
141
|
+
Follow the brainstorm workflow step by step:
|
|
142
|
+
1. **Phase 1 - Context**: Explore the existing codebase and understand the project landscape
|
|
143
|
+
2. **Phase 2 - Questions**: Ask clarifying questions one at a time to understand intent and constraints
|
|
144
|
+
3. **Phase 3 - Approaches**: Optionally seed with TRIZ-lite for a real contradiction; compare viable approaches in prose and recommend according to the stated constraints, effort, reversibility, and risk
|
|
145
|
+
4. **Phase 4 - Design**: Present the detailed design section by section, preserving existing authorization and resolving only open material choices
|
|
146
|
+
5. **Phase 5 - Blind Review**: Use independent reviewer lenses proportionate to the design uncertainty and stakes, consolidate into Tier 1/2/3 issues, resolve Tier 1 before save; escalate to fresh-context reviewer subagents for high-stakes designs. Skip only for trivially small designs (1-2 files, low stakes)
|
|
147
|
+
6. **Phase 6 - Documentation**: Save the approved approach to `docs/decisions/{NNN}-{name}.md`, update its index, and record a linked coordination summary in project memory
|
|
148
|
+
7. **Phase 7 - Transition**: Hand off to `/plan` for task decomposition
|
|
149
|
+
|
|
150
|
+
### Common Pitfalls
|
|
151
|
+
- **Jumping to solutions**: Asking "how" before fully understanding "what" and "why"
|
|
152
|
+
- **Too many questions at once**: Overwhelming the user with a wall of questions
|
|
153
|
+
- **Single approach bias**: Skipping viable alternatives without explaining binding constraints
|
|
154
|
+
- **Matrix-only options**: Dumping a trade-off table without scenario/mechanism prose so the user cannot choose
|
|
155
|
+
- **Same-axis "alternatives"**: Three intensities of the same knob (interval/TTL/debounce) presented as distinct approaches
|
|
156
|
+
- **TRIZ on everything**: Loading triz-lite without a real contradiction, adding ceremony without better options
|
|
157
|
+
- **Over-engineering**: Designing for hypothetical future requirements instead of stated needs
|
|
158
|
+
- **Inventing design authority**: Treating an agent recommendation as approval of a user-owned unresolved choice, or asking again for a choice already authorized
|
|
159
|
+
- **Skipping blind review**: Saving a non-trivial design without the independent critique round, or letting the design's author-context leak into escalated reviewer prompts
|
|
160
|
+
|
|
161
|
+
## References
|
|
162
|
+
- TRIZ-lite (optional Step 3 seeding): `resources/triz-lite.md`
|
|
163
|
+
- Context loading: `../_shared/core/context-loading.md`
|
|
164
|
+
- Clarification protocol: `../_shared/core/clarification-protocol.md`
|
|
165
|
+
- Quality principles: `../_shared/core/quality-principles.md`
|
|
166
|
+
- Skill-to-agent mapping: `../_shared/core/skill-routing.md`
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# TRIZ-lite (Optional Approach Seeding)
|
|
2
|
+
|
|
3
|
+
Lightweight inventive seeding for **technical / UX contradictions** only.
|
|
4
|
+
Not full TRIZ, ARIZ, the classical contradiction matrix, or scored pseudo-formulas.
|
|
5
|
+
|
|
6
|
+
Default: **off**. Load only when Step 3 triggers apply.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## When to load
|
|
11
|
+
|
|
12
|
+
Load this file and run T1–T4 when **any** of the following is true:
|
|
13
|
+
|
|
14
|
+
- Improving A clearly worsens B (performance vs cost, freshness vs load, security vs UX, etc.)
|
|
15
|
+
- Draft approaches collapse into the same axis (only “turn the knob”: interval, TTL, debounce, log level)
|
|
16
|
+
- User explicitly asks for TRIZ, inventive framing, or contradiction-focused options
|
|
17
|
+
|
|
18
|
+
## When NOT to load
|
|
19
|
+
|
|
20
|
+
- Ambiguous product intent without a technical/UX contradiction → stay on normal clarification
|
|
21
|
+
- Trivial / 1–2 file changes
|
|
22
|
+
- Pure organizational or political conflict (do not force a technical contradiction)
|
|
23
|
+
- Two or three **mechanistically different** approaches already exist
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Protocol
|
|
28
|
+
|
|
29
|
+
### T0 — Trigger check
|
|
30
|
+
|
|
31
|
+
If none of the “when to load” conditions hold → **skip** this file; use normal Step 3 generation.
|
|
32
|
+
|
|
33
|
+
### T1 — Technical contradiction
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
### Technical contradiction
|
|
37
|
+
- Improve: {desired gain}
|
|
38
|
+
- Degrades: {what gets worse}
|
|
39
|
+
- Current compromise: {today’s middle-ground}
|
|
40
|
+
- Why compromise is insufficient: {one sentence}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Optional physical contradiction (“must be X and not X at once”) only if it is real — do not invent one.
|
|
44
|
+
|
|
45
|
+
### T2 — Ideal Final Result (IFR)
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
### Ideal Final Result
|
|
49
|
+
{One sentence: the system delivers the improve-side outcome with little extra machinery and without the usual compromise}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
IFR is a **direction**, not a Step 4 implementation spec.
|
|
53
|
+
|
|
54
|
+
### T3 — Principle seeds (pick 3–5)
|
|
55
|
+
|
|
56
|
+
Use only this curated software/UX-oriented set. Do **not** dump all 40 classical principles.
|
|
57
|
+
|
|
58
|
+
| # | Principle | Seed questions (software / UX) |
|
|
59
|
+
|---|-----------|--------------------------------|
|
|
60
|
+
| 1 | Segmentation | Split modules, stages, shards, progressive rollout? |
|
|
61
|
+
| 2 | Taking out | Remove work from the hot path? CQRS / side channel? |
|
|
62
|
+
| 3 | Local quality | Different policy per region, widget, tier, or failure mode? |
|
|
63
|
+
| 5 | Merging | Batch, colocate, single pipeline? |
|
|
64
|
+
| 10 | Preliminary action | Precompute, warm cache, migrate ahead, budget limits up front? |
|
|
65
|
+
| 11 | Beforehand cushioning | Retry, fallback, feature flag, keep last-good UI? |
|
|
66
|
+
| 13 | The other way around | Push↔pull, sync↔async, server↔edge, invert control? |
|
|
67
|
+
| 15 | Dynamics | Adaptive TTL, dynamic fidelity, policy engine? |
|
|
68
|
+
| 19 | Periodic action | Batch window, lease renew, coalesce, snapshot ticks? |
|
|
69
|
+
| 24 | Intermediary | Queue, BFF, adapter, outbox, event bus, draft/commit layer? |
|
|
70
|
+
| 25 | Self-service | Self-heal, client revalidation, automation? |
|
|
71
|
+
| 28 | Replace mechanical coupling | Indirect signals: events, observations, data-driven policy? |
|
|
72
|
+
|
|
73
|
+
Rules:
|
|
74
|
+
|
|
75
|
+
1. Choose principles that **connect to the T1 contradiction** — no random lists.
|
|
76
|
+
2. For each chosen principle, write **one concrete seed sentence** (not only the principle name).
|
|
77
|
+
3. Produce at least four seeds (a principle may contribute more than one seed), then compress to **2–3 approaches**.
|
|
78
|
+
|
|
79
|
+
### T4 — Compress into normal Step 3 approaches
|
|
80
|
+
|
|
81
|
+
Map seeds into the standard approach briefs (see workflow Step 3 presentation rules).
|
|
82
|
+
|
|
83
|
+
- Keep **tactical** vs **structural** labels.
|
|
84
|
+
- Default recommendation remains **structural** (engineering-first).
|
|
85
|
+
- Pure knob-turning (only interval/TTL/debounce/log-level) is not a full approach unless the problem is throwaway scope; prefer absorbing it into a structural option or marking non-recommended.
|
|
86
|
+
- Optional one-line appendix for the design doc:
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
## Appendix: TRIZ-lite
|
|
90
|
+
- Contradiction: improve X / degrades Y
|
|
91
|
+
- IFR: ...
|
|
92
|
+
- Principles used: {ids}
|
|
93
|
+
- Discarded seeds: {one line each}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Keep the appendix ≤15 lines.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Anti-patterns
|
|
101
|
+
|
|
102
|
+
- Running TRIZ-lite on every brainstorm
|
|
103
|
+
- Listing all 12 principles without seeds
|
|
104
|
+
- Inventing continuous “TRIZ scores”
|
|
105
|
+
- Replacing ATAM / ADR / full architecture review with this file
|
|
106
|
+
- Expanding seeds into a full Step 4 design before the user picks an approach
|
|
107
|
+
- Using principle names as the only user-visible explanation (always prose-brief the approach)
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Minimal example
|
|
112
|
+
|
|
113
|
+
**Contradiction:** fresher metrics vs DB load/cost
|
|
114
|
+
**IFR:** readers see near-real-time metrics without per-user DB polling
|
|
115
|
+
**Seeds:** taking out (read path leaves DB), preliminary (pre-aggregate), periodic (shared worker snapshot), intermediary (read model)
|
|
116
|
+
**Approaches:** (A) event → aggregator → read model; (B) shared poller + short cache + invalidation; (C) tighter poll only — non-recommended tactical
|
|
117
|
+
**Recommend:** A
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oma-coordination
|
|
3
|
+
description: Coordinate assigned specialist tasks and handoffs manually. Use
|
|
4
|
+
when supervising a multi-agent project step by step.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Multi-Agent Workflow Guide
|
|
8
|
+
|
|
9
|
+
## Scheduling
|
|
10
|
+
|
|
11
|
+
### Goal
|
|
12
|
+
Guide manual multi-agent coordination for complex work that spans PM, frontend, backend, mobile, and QA responsibilities.
|
|
13
|
+
|
|
14
|
+
### Intent signature
|
|
15
|
+
- User wants step-by-step coordination, manual agent spawning, or multi-domain work planning without full automation.
|
|
16
|
+
- Task spans multiple specialist agents and requires contract alignment.
|
|
17
|
+
|
|
18
|
+
### When to use
|
|
19
|
+
|
|
20
|
+
- Complex feature spanning multiple domains (full-stack, mobile)
|
|
21
|
+
- Coordination needed between frontend, backend, mobile, and QA
|
|
22
|
+
- User wants step-by-step guidance for multi-agent coordination
|
|
23
|
+
|
|
24
|
+
### When NOT to use
|
|
25
|
+
|
|
26
|
+
- Simple single-domain task -> use the specific agent directly
|
|
27
|
+
- User wants automated execution -> use orchestrator
|
|
28
|
+
- Quick bug fixes or minor changes
|
|
29
|
+
|
|
30
|
+
### Expected inputs
|
|
31
|
+
- Complex feature or project goal
|
|
32
|
+
- Required domains and priority tiers
|
|
33
|
+
- Workspace/session constraints and API/data contract needs
|
|
34
|
+
|
|
35
|
+
### Expected outputs
|
|
36
|
+
- Manual coordination sequence
|
|
37
|
+
- PM task decomposition, agent spawn order, monitoring guidance, and QA review step
|
|
38
|
+
- API/data contract alignment checkpoints
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
- PM, frontend, backend, mobile, QA, and orchestrator skills
|
|
42
|
+
- CLI `oma agent spawn` and progress/result memory conventions
|
|
43
|
+
|
|
44
|
+
### Control-flow features
|
|
45
|
+
- Branches by task complexity, priority tiers, dependency ordering, and whether automation is desired
|
|
46
|
+
- Spawns independent same-priority tasks in parallel when appropriate
|
|
47
|
+
- Monitors progress files and contract alignment
|
|
48
|
+
|
|
49
|
+
## Structural Flow
|
|
50
|
+
|
|
51
|
+
### Entry
|
|
52
|
+
1. Confirm the task is complex enough for multi-agent coordination.
|
|
53
|
+
2. Reuse a current plan and handoff state; use PM when task decomposition or contract changes are needed.
|
|
54
|
+
3. Identify priority tiers and shared contracts.
|
|
55
|
+
4. Apply the shared collaboration policy before assigning parallel work or coordinating ownership handoffs and result collection.
|
|
56
|
+
|
|
57
|
+
### Scenes
|
|
58
|
+
1. **PREPARE**: Define session, domains, and task decomposition needs.
|
|
59
|
+
2. **ACT**: Spawn agents by priority with separate workspaces.
|
|
60
|
+
3. **VERIFY**: Monitor progress and API/data contract alignment.
|
|
61
|
+
4. **FINALIZE**: Run QA review and coordinate remediation.
|
|
62
|
+
|
|
63
|
+
### Transitions
|
|
64
|
+
- If task is simple, route to one specialist.
|
|
65
|
+
- If user wants automated execution, use orchestrator.
|
|
66
|
+
- If QA reports a blocking defect or required verification gap, route the affected work to the responsible agent within the existing recovery budget.
|
|
67
|
+
|
|
68
|
+
### Failure and recovery
|
|
69
|
+
- If contracts diverge, pause downstream frontend/mobile work until backend/API contract is reconciled.
|
|
70
|
+
- If agent workspaces conflict, split ownership boundaries.
|
|
71
|
+
- If progress stalls, inspect progress files and reissue focused instructions.
|
|
72
|
+
|
|
73
|
+
### Exit
|
|
74
|
+
- Success: specialist outputs are coordinated and QA-reviewed.
|
|
75
|
+
- Partial success: blocked agents, contract conflicts, or QA failures are explicit.
|
|
76
|
+
|
|
77
|
+
## Logical Operations
|
|
78
|
+
|
|
79
|
+
### Actions
|
|
80
|
+
| Action | SSL primitive | Evidence |
|
|
81
|
+
|--------|---------------|----------|
|
|
82
|
+
| Read request and domains | `READ` | User prompt and project context |
|
|
83
|
+
| Select agent plan | `SELECT` | PM decomposition and priority tiers |
|
|
84
|
+
| Spawn agents | `CALL_TOOL` | `oma agent spawn` |
|
|
85
|
+
| Monitor progress | `READ` | injected task/run-scoped progress, claims, and receipts |
|
|
86
|
+
| Validate contracts | `VALIDATE` | API/data model alignment |
|
|
87
|
+
| Notify coordination status | `NOTIFY` | Final coordination summary |
|
|
88
|
+
|
|
89
|
+
### Tools and instruments
|
|
90
|
+
- `oma agent spawn`, PM/frontend/backend/mobile/QA agents
|
|
91
|
+
- Memory/progress/result files
|
|
92
|
+
- Configured code intelligence, with native fallback per `../_shared/core/code-intelligence.md`
|
|
93
|
+
|
|
94
|
+
### Canonical command path
|
|
95
|
+
```bash
|
|
96
|
+
# If planning is required, dispatch the declared PM task first; otherwise reuse the current plan.
|
|
97
|
+
oma agent spawn pm <pm-prompt-file> <session-id> --task-id <plan.pm_task.id> -w ./pm
|
|
98
|
+
oma agent spawn backend <backend-prompt-file> <session-id> --task-id <plan.backend_task.id> -w ./backend &
|
|
99
|
+
oma agent spawn frontend <frontend-prompt-file> <session-id> --task-id <plan.frontend_task.id> -w ./frontend &
|
|
100
|
+
wait
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
When native runtime dispatch is available (per-agent target vendor equals the current runtime vendor), prefer the runtime's native subagent path and use `oma agent spawn` as the cross-vendor fallback — same resolution rule as oma-orchestration.
|
|
104
|
+
|
|
105
|
+
Useful `agent spawn` options: `--vendor <vendor>` (CLI vendor override), `--isolation worktree` (git worktree per spawn, prevents file conflicts), `--read-only` (non-destructive tools only, e.g. for review/QA passes).
|
|
106
|
+
|
|
107
|
+
### Resource scope
|
|
108
|
+
| Scope | Resource target |
|
|
109
|
+
|-------|-----------------|
|
|
110
|
+
| `LOCAL_FS` | Progress/result files and workspaces |
|
|
111
|
+
| `PROCESS` | Agent spawn commands |
|
|
112
|
+
| `MEMORY` | Session state and task board |
|
|
113
|
+
| `CODEBASE` | Shared contracts and implementation areas |
|
|
114
|
+
|
|
115
|
+
### Preconditions
|
|
116
|
+
- Task requires multiple domains.
|
|
117
|
+
- A current plan identifies task ownership, acceptance checks, dependencies, and priority tiers.
|
|
118
|
+
|
|
119
|
+
### Effects and side effects
|
|
120
|
+
- Spawns or guides multiple agents.
|
|
121
|
+
- Coordinates workspace ownership and QA feedback.
|
|
122
|
+
|
|
123
|
+
### Guardrails
|
|
124
|
+
|
|
125
|
+
1. Reuse a valid plan; call PM only when decomposition or contract changes are required
|
|
126
|
+
2. Spawn independent tasks in parallel (same priority tier)
|
|
127
|
+
3. Reuse or update contracts for changed API boundaries before dependent frontend/mobile work
|
|
128
|
+
4. QA review is always the final step
|
|
129
|
+
5. Assign separate workspaces to avoid file conflicts (or use `--isolation worktree` for a git worktree per spawn)
|
|
130
|
+
6. Follow `../_shared/core/code-intelligence.md`: discover configured tools, do not auto-install or track, and use native search only for paths outside this project or ignored paths when unavailable or timed out
|
|
131
|
+
7. Resume from the current handoff state and execute applicable steps in dependency order; record why a branch is not applicable
|
|
132
|
+
|
|
133
|
+
### Workflow
|
|
134
|
+
|
|
135
|
+
#### Step 1: Plan with PM Agent
|
|
136
|
+
|
|
137
|
+
Reuse an existing valid plan. Otherwise, PM analyzes requirements and creates the task breakdown, acceptance checks, contracts, and priorities. Preserve injected session/task/run IDs; do not regenerate a plan already frozen by dispatch.
|
|
138
|
+
|
|
139
|
+
#### Step 2: Spawn Agents by Priority
|
|
140
|
+
|
|
141
|
+
Resolve the dispatch path per agent, then spawn:
|
|
142
|
+
|
|
143
|
+
1. Resolve the per-agent target vendor from oma-config.yaml (`agents:` override, else `model_preset`)
|
|
144
|
+
2. If the target vendor equals the current runtime vendor and a native subagent path exists, use native dispatch
|
|
145
|
+
3. Otherwise use `oma agent spawn` for that agent
|
|
146
|
+
4. Spawn all same-priority tasks in parallel using background processes
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Example: spawn backend and frontend in parallel
|
|
150
|
+
oma agent spawn backend backend-prompt.md session-id --task-id plan.backend_task.id -w ./backend &
|
|
151
|
+
oma agent spawn frontend frontend-prompt.md session-id --task-id plan.frontend_task.id -w ./frontend &
|
|
152
|
+
wait
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### Step 3: Monitor & Coordinate
|
|
156
|
+
|
|
157
|
+
- Apply `../_shared/core/execution-policy.md` for the execution deadline, resource ownership, and cancellation. Prefer host completion notifications; otherwise use one coordinator with bounded polling backoff. Cancellation or deadline exhaustion stops new dispatch, review, and recovery; use bounded termination checks and report survivors or unsupported cancellation in the handoff.
|
|
158
|
+
- Read injected run artifacts and receipts. Human-readable progress/results use `{memoryConfig.basePath}/progress-{agentId}-{taskId}-{runId}-{sessionId}.md` and the corresponding `result-` name; see `../_shared/runtime/memory-protocol.md`. Keep the structured claim path unchanged.
|
|
159
|
+
- Verify API contracts align between agents
|
|
160
|
+
- Ensure shared data models are consistent
|
|
161
|
+
|
|
162
|
+
#### Step 4: QA Review
|
|
163
|
+
|
|
164
|
+
Review the coordinated deliverables with QA. Resolve blocking defects and required verification gaps through the responsible agents; rerun affected checks before finalizing.
|
|
165
|
+
|
|
166
|
+
### Automated Alternative
|
|
167
|
+
|
|
168
|
+
For fully automated execution without manual spawning, use the **orchestrator** skill instead.
|
|
169
|
+
|
|
170
|
+
## References
|
|
171
|
+
- Parallel worker collaboration: `../_shared/core/collaboration-policy.md` (before assigning parallel work or coordinating peer issues, ownership handoffs, and result collection)
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oma-db
|
|
3
|
+
description: Design schemas and migrations, tune queries, or plan vector
|
|
4
|
+
retrieval and database operations. Application API implementation uses
|
|
5
|
+
oma-backend.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# DB Agent - Data Modeling & Database Architecture Specialist
|
|
9
|
+
|
|
10
|
+
## Scheduling
|
|
11
|
+
|
|
12
|
+
### Goal
|
|
13
|
+
Design, review, optimize, and document SQL, NoSQL, vector, and retrieval-oriented data systems with explicit schema layers, integrity rules, transaction behavior, capacity assumptions, and audit-aware tradeoffs.
|
|
14
|
+
|
|
15
|
+
### Intent signature
|
|
16
|
+
- User asks about database, schema, ERD, table design, document model, vector index, RAG retrieval, migration, query tuning, glossary, backup, capacity, or database anti-patterns.
|
|
17
|
+
- User needs database recommendations aligned with security, continuity, integrity, or compliance concerns.
|
|
18
|
+
|
|
19
|
+
### When to use
|
|
20
|
+
- Relational database modeling, ERD, and schema design
|
|
21
|
+
- NoSQL document, key-value, wide-column, or graph data modeling
|
|
22
|
+
- Vector database and retrieval architecture design for semantic search and RAG
|
|
23
|
+
- SQL/NoSQL technology selection and tradeoff analysis
|
|
24
|
+
- Normalization, denormalization, indexing, and partitioning
|
|
25
|
+
- Transaction design, locking, isolation level, and concurrency control
|
|
26
|
+
- Data standards, glossary, naming rules, and metadata governance
|
|
27
|
+
- Capacity estimation, storage planning, hot/cold data separation, and backup strategy
|
|
28
|
+
- Database anti-pattern review and remediation guidance
|
|
29
|
+
- ISO 27001, ISO 27002, and ISO 22301-aware database design recommendations
|
|
30
|
+
|
|
31
|
+
### When NOT to use
|
|
32
|
+
- API-only implementation without schema impact -> use Backend Agent
|
|
33
|
+
- Infra provisioning only -> use TF Infra Agent
|
|
34
|
+
- Final quality/security audit -> use QA Agent
|
|
35
|
+
|
|
36
|
+
### Expected inputs
|
|
37
|
+
- Business entities, events, access patterns, volume, latency, retention, and recovery targets
|
|
38
|
+
- Existing schema, queries, migrations, indexes, data standards, or retrieval pipeline context
|
|
39
|
+
- Consistency, transaction, backup, audit, and compliance constraints
|
|
40
|
+
- Optional target deliverable such as ERD, migration plan, glossary, or capacity estimate
|
|
41
|
+
|
|
42
|
+
### Expected outputs
|
|
43
|
+
- External, conceptual, and internal schema documentation
|
|
44
|
+
- Data standards, glossary, capacity estimate, indexing/partitioning plan, and backup/recovery strategy
|
|
45
|
+
- Integrity, transaction, isolation, and concurrency recommendations
|
|
46
|
+
- Application ownership recommendations, alternatives, transition priorities, and technical retention evidence when DB business logic is affected
|
|
47
|
+
- Vector/RAG-specific embedding, chunking, filtering, reranking, and re-index plans when relevant
|
|
48
|
+
|
|
49
|
+
### Dependencies
|
|
50
|
+
- Existing database schemas, migration files, query logs, workload descriptions, and application access paths
|
|
51
|
+
- `resources/document-templates.md`, `resources/anti-patterns.md`, `resources/vector-db.md`, `resources/iso-controls.md`, `resources/migration-playbook.md`, and `resources/query-tuning.md`
|
|
52
|
+
- SQL/NoSQL/vector database tools or project-specific migration toolchains when implementation is requested
|
|
53
|
+
|
|
54
|
+
### Control-flow features
|
|
55
|
+
- Branches by workload type, database model, transaction criticality, scale, retrieval needs, and compliance posture
|
|
56
|
+
- May read schemas and write documentation, migrations, indexes, or query changes
|
|
57
|
+
- Treats vector DBs as retrieval infrastructure, not canonical source-of-truth storage
|
|
58
|
+
|
|
59
|
+
## Structural Flow
|
|
60
|
+
|
|
61
|
+
### Entry
|
|
62
|
+
1. Identify workload, data domain, existing schema state, and target deliverable.
|
|
63
|
+
2. Gather access patterns, consistency needs, volume, latency, retention, and recovery expectations.
|
|
64
|
+
3. Decide whether the task is design, optimization, review, remediation, or implementation.
|
|
65
|
+
|
|
66
|
+
### Scenes
|
|
67
|
+
1. **PREPARE**: Classify workload and constraints.
|
|
68
|
+
2. **ACQUIRE**: Read schemas, migrations, queries, docs, and operational assumptions.
|
|
69
|
+
3. **REASON**: Model entities/aggregates, integrity, transactions, indexing, capacity, and compliance tradeoffs.
|
|
70
|
+
4. **ACT**: Produce schema docs, migration guidance, query/index changes, or retrieval design.
|
|
71
|
+
5. **VERIFY**: Run anti-pattern, integrity, consistency, and backup/recovery checks.
|
|
72
|
+
6. **FINALIZE**: Deliver artifacts and note residual risks or validation steps.
|
|
73
|
+
|
|
74
|
+
### Transitions
|
|
75
|
+
- If relational workload dominates, enforce 3NF unless denormalization is justified.
|
|
76
|
+
- If distributed/non-relational workload dominates, model around aggregates and access paths.
|
|
77
|
+
- If vector/RAG is involved, include hybrid retrieval, embedding versioning, and re-embedding migration.
|
|
78
|
+
- If auditability or continuity is weakened, propose ISO-friendlier alternatives.
|
|
79
|
+
|
|
80
|
+
### Failure and recovery
|
|
81
|
+
- If workload or access patterns are missing, state assumptions and ask for representative queries or flows.
|
|
82
|
+
- If integrity or transaction requirements conflict with chosen engine, surface the tradeoff.
|
|
83
|
+
- If implementation risk is high, separate design artifact from migration execution.
|
|
84
|
+
|
|
85
|
+
### Exit
|
|
86
|
+
- Success: deliverables state model, constraints, integrity, transactions, capacity, and validation.
|
|
87
|
+
- Partial success: missing workload evidence or unresolved tradeoffs are explicit.
|
|
88
|
+
|
|
89
|
+
## Logical Operations
|
|
90
|
+
|
|
91
|
+
### Actions
|
|
92
|
+
| Action | SSL primitive | Evidence |
|
|
93
|
+
|--------|---------------|----------|
|
|
94
|
+
| Classify workload and model | `SELECT` | SQL, NoSQL, vector, cache, search, mixed |
|
|
95
|
+
| Read schema/query evidence | `READ` | Migrations, ERDs, query patterns |
|
|
96
|
+
| Compare design alternatives | `COMPARE` | Engine/model/index tradeoffs |
|
|
97
|
+
| Infer integrity and capacity risks | `INFER` | Constraints, transactions, growth assumptions |
|
|
98
|
+
| Validate anti-patterns | `VALIDATE` | Checklist and anti-pattern guide |
|
|
99
|
+
| Write schema docs or changes | `WRITE` | Deliverables, migrations, query/index changes |
|
|
100
|
+
| Report recommendation | `NOTIFY` | Final database guidance |
|
|
101
|
+
|
|
102
|
+
### Tools and instruments
|
|
103
|
+
- Project DB schemas, migrations, query tools, and migration commands
|
|
104
|
+
- Document templates, anti-pattern guide, vector DB guide, and ISO control guide
|
|
105
|
+
- Optional spreadsheet or diagram artifacts when capacity or ERD output is requested
|
|
106
|
+
|
|
107
|
+
### Canonical workflow path
|
|
108
|
+
Use the configured code-intelligence provider to locate files and inspect symbols
|
|
109
|
+
or content. For Serena, use `find_file`, `search_for_pattern`,
|
|
110
|
+
`get_symbols_overview`, and `find_symbol`. Native search is limited to the
|
|
111
|
+
provider exclusions and non-code paths permitted by the project's search policy.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
Then run the project's migration, query-plan, or retrieval-quality commands only after identifying the database engine and migration tool.
|
|
115
|
+
For affected triggers, stored procedures, functions, views, DB jobs, or ORM hooks,
|
|
116
|
+
apply `resources/anti-patterns.md` §5 application ownership review. Existing usage
|
|
117
|
+
receives the same strong improvement recommendation as new designs; a scoped
|
|
118
|
+
query change does not require an unrelated database-wide migration.
|
|
119
|
+
|
|
120
|
+
### Resource scope
|
|
121
|
+
| Scope | Resource target |
|
|
122
|
+
|-------|-----------------|
|
|
123
|
+
| `CODEBASE` | Schema, migration, query, ORM, and retrieval files |
|
|
124
|
+
| `LOCAL_FS` | Database design artifacts and result documents |
|
|
125
|
+
| `PROCESS` | Migration, query, lint, or validation commands |
|
|
126
|
+
| `USER_DATA` | Domain data definitions, retention rules, and sample access patterns |
|
|
127
|
+
|
|
128
|
+
### Preconditions
|
|
129
|
+
- Target database concern and scope are identifiable.
|
|
130
|
+
- Existing schema/workload evidence is available or assumptions are stated.
|
|
131
|
+
|
|
132
|
+
### Effects and side effects
|
|
133
|
+
- May create or change schema docs, migrations, indexes, queries, or retrieval configuration.
|
|
134
|
+
- May affect data integrity, performance, recovery posture, or compliance evidence.
|
|
135
|
+
- Should not execute risky migrations without explicit user intent and verification.
|
|
136
|
+
|
|
137
|
+
### Guardrails
|
|
138
|
+
Apply framework, library, architecture, and data-model defaults only when the target project has no established choice. Scoped edits do not authorize a stack migration or unrelated infrastructure.
|
|
139
|
+
1. Choose model first, engine second: workload, access pattern, consistency, and scale drive DB selection.
|
|
140
|
+
2. For relational workloads, enforce at least **3NF** by default. Break 3NF only with explicit performance justification.
|
|
141
|
+
3. For distributed/non-relational workloads, model around aggregates and access paths; document **BASE** and consistency tradeoffs.
|
|
142
|
+
4. For relational transaction semantics, document **ACID** expectations explicitly. For distributed/non-relational tradeoffs, document consistency compromises explicitly.
|
|
143
|
+
5. For full schema design, document external, conceptual and internal schema views. For a scoped index/query/model change, update only the affected existing views.
|
|
144
|
+
6. Treat integrity as first-class: entity, domain, referential, and business-rule integrity must be explicit.
|
|
145
|
+
7. Concurrency is never implicit: define transaction boundaries, locking strategy, and isolation level per critical flow.
|
|
146
|
+
8. Apply existing data standards; add relevant naming, definition, format and validation rules for newly modeled data.
|
|
147
|
+
9. Update affected existing glossary, decision and capacity artifacts when the change alters their assumptions. A query-only task does not require new modeling documents.
|
|
148
|
+
10. Proactively flag anti-patterns and insecure shortcuts instead of silently implementing them.
|
|
149
|
+
11. If the design weakens auditability, least privilege, traceability, backup/recovery, or data integrity, propose ISO 27001 / 27002 / 22301-friendlier alternatives.
|
|
150
|
+
12. Vector DBs are retrieval infrastructure, not source-of-truth databases. Store embeddings and lightweight metadata there; keep canonical documents elsewhere.
|
|
151
|
+
13. Never treat vector search as a drop-in replacement for lexical search. Default to hybrid retrieval when exact match, compliance filtering, or explainability matters.
|
|
152
|
+
14. Embeddings are schema-like assets: version model, dimension, chunking, and preprocessing, and plan re-embedding migrations explicitly.
|
|
153
|
+
15. Retrieval quality is won at chunking, filtering, reranking, and observability, not only at the vector index layer.
|
|
154
|
+
16. Schema or data changes on live tables follow expand-contract (parallel change): additive expand, dual-write + batched backfill, verified read switch, delayed contract. DDL on hot tables is lock-aware with timeouts; destructive steps ship in a separate deploy after a soak window.
|
|
155
|
+
17. Query tuning starts from measurement and execution plans, never guesswork: measure, explain, nominate the dominant cost node, then optimize and re-measure.
|
|
156
|
+
18. Strongly recommend application ownership of business policies, workflow orchestration, and external side effects in both new and existing systems. Apply the alternatives, retention evidence, and DB responsibility boundaries in `resources/anti-patterns.md` §5. Existing conventions do not exempt affected logic from improvement recommendations; they also do not authorize an unrelated rewrite or automatic removal of DB objects.
|
|
157
|
+
|
|
158
|
+
### Default Workflow
|
|
159
|
+
1. **Explore**
|
|
160
|
+
- Identify business entities, events, access patterns, volume, latency, retention, and recovery targets
|
|
161
|
+
- Classify workload: OLTP, analytics, eventing, cache, search, mixed
|
|
162
|
+
- Decide relational vs non-relational with explicit justification
|
|
163
|
+
2. **Design**
|
|
164
|
+
- Produce external/conceptual/internal schema documentation
|
|
165
|
+
- Model SQL or NoSQL structures, keys, indexes, constraints, and lifecycle fields
|
|
166
|
+
- Define integrity, transaction scope, isolation level, and transparency requirements
|
|
167
|
+
3. **Optimize**
|
|
168
|
+
- Validate 3NF or deliberate denormalization
|
|
169
|
+
- Tune indexes, partitioning, archival strategy, hot/cold split, and backup plan
|
|
170
|
+
- For vector systems, tune ANN, chunking, filtering, reranking, and observability as one pipeline
|
|
171
|
+
- Run the relevant anti-pattern review and update artifacts whose definitions or capacity assumptions changed
|
|
172
|
+
|
|
173
|
+
### Deliverables by Scope
|
|
174
|
+
For full modeling/design requests, use the following as applicable. Scoped tuning
|
|
175
|
+
or migration work needs the relevant artifact delta, SQL/plan evidence and
|
|
176
|
+
verification outcome; omit unaffected documents.
|
|
177
|
+
- External schema summary by user/view/consumer
|
|
178
|
+
- Conceptual schema with core entities or aggregates and relationships
|
|
179
|
+
- Internal schema with physical storage, indexes, partitioning, and access paths
|
|
180
|
+
- Data standards table: name, definition, type/format, rule
|
|
181
|
+
- Glossary / terminology dictionary
|
|
182
|
+
- Capacity estimation sheet
|
|
183
|
+
- Backup and recovery strategy including full + incremental backup cadence
|
|
184
|
+
- For vector/RAG systems: embedding version policy, chunking policy, hybrid retrieval strategy, and re-index / re-embedding plan
|
|
185
|
+
|
|
186
|
+
## References
|
|
187
|
+
- Execution steps (follow for the selected task): `resources/execution-protocol.md`
|
|
188
|
+
- Self-check (run before handoff): `resources/checklist.md`
|
|
189
|
+
- Examples: `resources/examples.md`
|
|
190
|
+
- Deliverable templates: `resources/document-templates.md`
|
|
191
|
+
- Anti-pattern review guide: `resources/anti-patterns.md` (schema/query review or affected business logic in DB objects and ORM hooks)
|
|
192
|
+
- Live migration playbook: `resources/migration-playbook.md` (live schema/data changes or moving existing DB business logic into the application)
|
|
193
|
+
- Query tuning and index design: `resources/query-tuning.md`
|
|
194
|
+
- Vector DB and RAG guide: `resources/vector-db.md`
|
|
195
|
+
- ISO control guide: `resources/iso-controls.md`
|
|
196
|
+
- Error recovery: `resources/error-playbook.md`
|
|
197
|
+
- Context loading: `../_shared/core/context-loading.md`
|
|
198
|
+
- Clarification: `../_shared/core/clarification-protocol.md`
|
|
199
|
+
- Context budget: `../_shared/core/context-budget.md`
|
|
200
|
+
- Lessons learned: `../_shared/core/lessons-learned.md` (matching prior failure or requested retrospective)
|
|
201
|
+
- Observability handoff: `../oma-observability/SKILL.md` §Integrations — DB span conventions (N+1, lock-wait, pool), cardinality budgets
|