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,364 @@
|
|
|
1
|
+
# Debugging Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist when investigating bugs to ensure thorough analysis.
|
|
4
|
+
|
|
5
|
+
## Initial Information Gathering
|
|
6
|
+
|
|
7
|
+
- [ ] **Bug description** - What is the expected vs actual behavior?
|
|
8
|
+
- [ ] **Error messages** - Exact error text, stack trace, error codes
|
|
9
|
+
- [ ] **Reproduction steps** - Clear, numbered steps to trigger the bug
|
|
10
|
+
- [ ] **Frequency** - Every time, intermittent, specific conditions?
|
|
11
|
+
- [ ] **Environment** - Browser/OS/version, mobile device, server environment
|
|
12
|
+
- [ ] **User impact** - How many users affected? Severity?
|
|
13
|
+
- [ ] **Recent changes** - New deploy? Code changes? Configuration updates?
|
|
14
|
+
- [ ] **Screenshots/videos** - Visual evidence of the bug
|
|
15
|
+
|
|
16
|
+
## Frontend Debugging
|
|
17
|
+
|
|
18
|
+
### JavaScript/TypeScript Errors
|
|
19
|
+
|
|
20
|
+
- [ ] Check browser console (F12) for errors
|
|
21
|
+
- [ ] Review stack trace - which file and line?
|
|
22
|
+
- [ ] Identify error type (TypeError, ReferenceError, etc.)
|
|
23
|
+
- [ ] Check for null/undefined values
|
|
24
|
+
- [ ] Verify variable types (especially after API calls)
|
|
25
|
+
- [ ] Look for typos in property names
|
|
26
|
+
|
|
27
|
+
### React Component Issues
|
|
28
|
+
|
|
29
|
+
- [ ] **State problems**
|
|
30
|
+
- [ ] State not updating? (need setState/useState)
|
|
31
|
+
- [ ] Stale state in closures? (use refs or functional updates)
|
|
32
|
+
- [ ] State out of sync with props?
|
|
33
|
+
|
|
34
|
+
- [ ] **Effect problems**
|
|
35
|
+
- [ ] Missing dependencies in useEffect?
|
|
36
|
+
- [ ] Effect running too many times?
|
|
37
|
+
- [ ] Cleanup function needed?
|
|
38
|
+
- [ ] Memory leak from uncancelled requests?
|
|
39
|
+
|
|
40
|
+
- [ ] **Rendering issues**
|
|
41
|
+
- [ ] Conditional rendering logic correct?
|
|
42
|
+
- [ ] Keys on list items unique and stable?
|
|
43
|
+
- [ ] Unnecessary re-renders? (use React DevTools Profiler)
|
|
44
|
+
|
|
45
|
+
### UI/UX Issues
|
|
46
|
+
|
|
47
|
+
- [ ] CSS not applying? (check specificity, typos)
|
|
48
|
+
- [ ] Layout broken? (check responsive breakpoints)
|
|
49
|
+
- [ ] Accessibility issues? (keyboard nav, screen reader)
|
|
50
|
+
- [ ] Dark mode broken?
|
|
51
|
+
- [ ] Mobile-specific issues?
|
|
52
|
+
|
|
53
|
+
### API Integration
|
|
54
|
+
|
|
55
|
+
- [ ] **Network tab investigation**
|
|
56
|
+
- [ ] Request sent? (check Headers tab)
|
|
57
|
+
- [ ] Correct endpoint URL?
|
|
58
|
+
- [ ] Proper HTTP method (GET, POST, etc.)?
|
|
59
|
+
- [ ] Headers included (Authorization, Content-Type)?
|
|
60
|
+
- [ ] Request body formatted correctly?
|
|
61
|
+
- [ ] Response status code (200, 401, 404, 500)?
|
|
62
|
+
- [ ] Response data structure matches expected?
|
|
63
|
+
|
|
64
|
+
- [ ] **Error handling**
|
|
65
|
+
- [ ] Try/catch around API calls?
|
|
66
|
+
- [ ] Error state displayed to user?
|
|
67
|
+
- [ ] Timeout handling?
|
|
68
|
+
- [ ] Network failure handling?
|
|
69
|
+
|
|
70
|
+
- [ ] **Loading states**
|
|
71
|
+
- [ ] Loading spinner shown?
|
|
72
|
+
- [ ] Disabled buttons during load?
|
|
73
|
+
- [ ] Optimistic updates causing issues?
|
|
74
|
+
|
|
75
|
+
## Backend Debugging
|
|
76
|
+
|
|
77
|
+
### Python/FastAPI Errors
|
|
78
|
+
|
|
79
|
+
- [ ] **Stack trace analysis**
|
|
80
|
+
- [ ] Read error message carefully
|
|
81
|
+
- [ ] Identify the failing file and line
|
|
82
|
+
- [ ] Understand the error type (ValueError, KeyError, etc.)
|
|
83
|
+
- [ ] Check for None values
|
|
84
|
+
- [ ] Verify data types
|
|
85
|
+
|
|
86
|
+
- [ ] **Database issues**
|
|
87
|
+
- [ ] Query syntax correct?
|
|
88
|
+
- [ ] N+1 query problem?
|
|
89
|
+
- [ ] Missing JOIN?
|
|
90
|
+
- [ ] Indexes present on filtered columns?
|
|
91
|
+
- [ ] Connection pool exhausted?
|
|
92
|
+
- [ ] Transaction isolation issues?
|
|
93
|
+
|
|
94
|
+
- [ ] **Authentication/Authorization**
|
|
95
|
+
- [ ] Token validation working?
|
|
96
|
+
- [ ] Token expired?
|
|
97
|
+
- [ ] Permissions checked correctly?
|
|
98
|
+
- [ ] User session valid?
|
|
99
|
+
- [ ] CORS configured properly?
|
|
100
|
+
|
|
101
|
+
### API Endpoint Issues
|
|
102
|
+
|
|
103
|
+
- [ ] **Request validation**
|
|
104
|
+
- [ ] Pydantic schema matches request?
|
|
105
|
+
- [ ] Required fields present?
|
|
106
|
+
- [ ] Field types correct?
|
|
107
|
+
- [ ] Value ranges validated?
|
|
108
|
+
|
|
109
|
+
- [ ] **Response formatting**
|
|
110
|
+
- [ ] Correct status code?
|
|
111
|
+
- [ ] Response schema matches contract?
|
|
112
|
+
- [ ] Error responses formatted properly?
|
|
113
|
+
- [ ] Pagination working?
|
|
114
|
+
|
|
115
|
+
- [ ] **Performance**
|
|
116
|
+
- [ ] Response time acceptable (<200ms)?
|
|
117
|
+
- [ ] Query optimization needed?
|
|
118
|
+
- [ ] Caching implemented?
|
|
119
|
+
- [ ] Rate limiting working?
|
|
120
|
+
|
|
121
|
+
### Server Issues
|
|
122
|
+
|
|
123
|
+
- [ ] **Logs examination**
|
|
124
|
+
- [ ] Check application logs
|
|
125
|
+
- [ ] Check error logs
|
|
126
|
+
- [ ] Check access logs
|
|
127
|
+
- [ ] Timestamps correlate with bug reports?
|
|
128
|
+
|
|
129
|
+
- [ ] **Environment**
|
|
130
|
+
- [ ] Environment variables set?
|
|
131
|
+
- [ ] Configuration correct for environment (dev/prod)?
|
|
132
|
+
- [ ] External services reachable?
|
|
133
|
+
- [ ] Database migrations applied?
|
|
134
|
+
|
|
135
|
+
## Mobile Debugging
|
|
136
|
+
|
|
137
|
+
### Platform-Specific Issues
|
|
138
|
+
|
|
139
|
+
- [ ] **iOS vs Android differences**
|
|
140
|
+
- [ ] Test on both platforms
|
|
141
|
+
- [ ] Check platform-specific code (Platform.OS)
|
|
142
|
+
- [ ] Review native module integration
|
|
143
|
+
- [ ] Verify permissions (camera, location, etc.)
|
|
144
|
+
|
|
145
|
+
- [ ] **Device-specific**
|
|
146
|
+
- [ ] Test on actual device (not just emulator)
|
|
147
|
+
- [ ] Check different screen sizes
|
|
148
|
+
- [ ] Test different OS versions
|
|
149
|
+
- [ ] Memory constraints on older devices?
|
|
150
|
+
|
|
151
|
+
### Flutter-Specific
|
|
152
|
+
|
|
153
|
+
- [ ] **Widget tree issues**
|
|
154
|
+
- [ ] State management correct? (Riverpod/Bloc)
|
|
155
|
+
- [ ] Build method pure?
|
|
156
|
+
- [ ] Keys used properly?
|
|
157
|
+
- [ ] Dispose called for controllers?
|
|
158
|
+
|
|
159
|
+
- [ ] **Platform channels**
|
|
160
|
+
- [ ] Native code errors?
|
|
161
|
+
- [ ] Method channel names correct?
|
|
162
|
+
- [ ] Data serialization working?
|
|
163
|
+
|
|
164
|
+
### Mobile Performance
|
|
165
|
+
|
|
166
|
+
- [ ] Memory leaks? (listeners not disposed)
|
|
167
|
+
- [ ] Excessive rebuilds?
|
|
168
|
+
- [ ] Large images not optimized?
|
|
169
|
+
- [ ] Too many simultaneous network requests?
|
|
170
|
+
|
|
171
|
+
## Security Bugs
|
|
172
|
+
|
|
173
|
+
- [ ] **Authentication bypassed?**
|
|
174
|
+
- [ ] Token validation on all protected routes?
|
|
175
|
+
- [ ] Token expiry checked?
|
|
176
|
+
- [ ] Refresh token flow secure?
|
|
177
|
+
|
|
178
|
+
- [ ] **Authorization broken?**
|
|
179
|
+
- [ ] User can access others' data?
|
|
180
|
+
- [ ] Admin functions accessible to regular users?
|
|
181
|
+
- [ ] Horizontal privilege escalation possible?
|
|
182
|
+
|
|
183
|
+
- [ ] **Injection vulnerabilities**
|
|
184
|
+
- [ ] SQL injection? (use parameterized queries)
|
|
185
|
+
- [ ] XSS? (sanitize user input)
|
|
186
|
+
- [ ] Command injection?
|
|
187
|
+
- [ ] Path traversal?
|
|
188
|
+
|
|
189
|
+
- [ ] **Data exposure**
|
|
190
|
+
- [ ] Sensitive data in logs?
|
|
191
|
+
- [ ] Passwords in plain text?
|
|
192
|
+
- [ ] API keys exposed?
|
|
193
|
+
- [ ] Error messages leaking info?
|
|
194
|
+
|
|
195
|
+
## Performance Bugs
|
|
196
|
+
|
|
197
|
+
### Frontend Performance
|
|
198
|
+
|
|
199
|
+
- [ ] **Lighthouse audit**
|
|
200
|
+
- [ ] Performance score >90?
|
|
201
|
+
- [ ] First Contentful Paint <1.5s?
|
|
202
|
+
- [ ] Largest Contentful Paint <2.5s?
|
|
203
|
+
- [ ] Cumulative Layout Shift <0.1?
|
|
204
|
+
|
|
205
|
+
- [ ] **Bundle analysis**
|
|
206
|
+
- [ ] Main bundle <500KB?
|
|
207
|
+
- [ ] Code splitting implemented?
|
|
208
|
+
- [ ] Large dependencies tree-shaken?
|
|
209
|
+
- [ ] Lazy loading used?
|
|
210
|
+
|
|
211
|
+
- [ ] **React performance**
|
|
212
|
+
- [ ] Unnecessary re-renders? (React DevTools Profiler)
|
|
213
|
+
- [ ] Memo/useMemo/useCallback used appropriately?
|
|
214
|
+
- [ ] Virtual scrolling for long lists?
|
|
215
|
+
|
|
216
|
+
### Backend Performance
|
|
217
|
+
|
|
218
|
+
- [ ] **API latency**
|
|
219
|
+
- [ ] p95 response time <200ms?
|
|
220
|
+
- [ ] Slow queries identified?
|
|
221
|
+
- [ ] Indexes added?
|
|
222
|
+
- [ ] Caching implemented?
|
|
223
|
+
|
|
224
|
+
- [ ] **Database**
|
|
225
|
+
- [ ] Connection pooling configured?
|
|
226
|
+
- [ ] Query plan optimized? (EXPLAIN)
|
|
227
|
+
- [ ] N+1 queries eliminated?
|
|
228
|
+
|
|
229
|
+
## Root Cause Analysis
|
|
230
|
+
|
|
231
|
+
- [ ] **Reproduce the bug**
|
|
232
|
+
- [ ] Follow exact reproduction steps
|
|
233
|
+
- [ ] Confirm bug exists
|
|
234
|
+
- [ ] Note any variations
|
|
235
|
+
|
|
236
|
+
- [ ] **Isolate the problem**
|
|
237
|
+
- [ ] Which component/function fails?
|
|
238
|
+
- [ ] What input triggers it?
|
|
239
|
+
- [ ] What conditions must be met?
|
|
240
|
+
|
|
241
|
+
- [ ] **Trace the data flow**
|
|
242
|
+
- [ ] Where does the bad data come from?
|
|
243
|
+
- [ ] How is it transformed?
|
|
244
|
+
- [ ] Where does it cause the failure?
|
|
245
|
+
|
|
246
|
+
- [ ] **Identify the root cause**
|
|
247
|
+
- [ ] Not just the symptom
|
|
248
|
+
- [ ] Why does this happen?
|
|
249
|
+
- [ ] What assumption was wrong?
|
|
250
|
+
|
|
251
|
+
## Fix Verification
|
|
252
|
+
|
|
253
|
+
- [ ] **Fix applied**
|
|
254
|
+
- [ ] Code changed in correct file(s)
|
|
255
|
+
- [ ] Logic correct
|
|
256
|
+
- [ ] Edge cases handled
|
|
257
|
+
- [ ] No new bugs introduced
|
|
258
|
+
|
|
259
|
+
- [ ] **Testing**
|
|
260
|
+
- [ ] Regression test written
|
|
261
|
+
- [ ] Test passes
|
|
262
|
+
- [ ] Manual verification done
|
|
263
|
+
- [ ] Edge cases tested
|
|
264
|
+
|
|
265
|
+
- [ ] **Related areas checked**
|
|
266
|
+
- [ ] Similar patterns elsewhere?
|
|
267
|
+
- [ ] Other code depending on this?
|
|
268
|
+
- [ ] Breaking changes avoided?
|
|
269
|
+
|
|
270
|
+
- [ ] **Documentation**
|
|
271
|
+
- [ ] Bug documented in Knowledge Base
|
|
272
|
+
- [ ] Fix explained
|
|
273
|
+
- [ ] Prevention notes added
|
|
274
|
+
|
|
275
|
+
## When to Escalate
|
|
276
|
+
|
|
277
|
+
Escalate to other agents if:
|
|
278
|
+
|
|
279
|
+
- [ ] Bug spans multiple domains → **oma-coordination**
|
|
280
|
+
- [ ] Requires architectural change → **PM Agent**
|
|
281
|
+
- [ ] Need comprehensive security audit → **QA Agent**
|
|
282
|
+
- [ ] Complex frontend refactoring needed → **Frontend Agent**
|
|
283
|
+
- [ ] Database schema changes needed → **Backend Agent**
|
|
284
|
+
- [ ] Platform-specific mobile issue → **Mobile Agent**
|
|
285
|
+
|
|
286
|
+
## Priority Assessment
|
|
287
|
+
|
|
288
|
+
**CRITICAL** - Fix immediately:
|
|
289
|
+
- [ ] App crashes on launch
|
|
290
|
+
- [ ] Data loss or corruption
|
|
291
|
+
- [ ] Security vulnerability
|
|
292
|
+
- [ ] Payment/auth completely broken
|
|
293
|
+
- [ ] Affects all users
|
|
294
|
+
|
|
295
|
+
**HIGH** - Fix within 24 hours:
|
|
296
|
+
- [ ] Major feature broken
|
|
297
|
+
- [ ] Affects >50% of users
|
|
298
|
+
- [ ] No workaround available
|
|
299
|
+
- [ ] Significant revenue impact
|
|
300
|
+
|
|
301
|
+
**MEDIUM** - Fix within sprint:
|
|
302
|
+
- [ ] Minor feature broken
|
|
303
|
+
- [ ] Affects <50% of users
|
|
304
|
+
- [ ] Workaround exists
|
|
305
|
+
- [ ] Moderate inconvenience
|
|
306
|
+
|
|
307
|
+
**LOW** - Schedule for future:
|
|
308
|
+
- [ ] Edge case
|
|
309
|
+
- [ ] Cosmetic issue
|
|
310
|
+
- [ ] Rarely encountered
|
|
311
|
+
- [ ] No user impact
|
|
312
|
+
|
|
313
|
+
## Documentation Template
|
|
314
|
+
|
|
315
|
+
After fixing, document in `.agents/results/bugs/`. For Complex or CRITICAL/HIGH
|
|
316
|
+
severity bugs, use the full `bug-report-template.md`; for Simple/Medium bugs,
|
|
317
|
+
this condensed form is sufficient:
|
|
318
|
+
|
|
319
|
+
```markdown
|
|
320
|
+
# Bug: [Title]
|
|
321
|
+
**Date**: YYYY-MM-DD
|
|
322
|
+
**Severity**: CRITICAL/HIGH/MEDIUM/LOW
|
|
323
|
+
**Status**: FIXED
|
|
324
|
+
|
|
325
|
+
## Problem
|
|
326
|
+
[What was broken]
|
|
327
|
+
|
|
328
|
+
## Root Cause
|
|
329
|
+
[Why it was broken]
|
|
330
|
+
|
|
331
|
+
## Fix
|
|
332
|
+
[What was changed]
|
|
333
|
+
|
|
334
|
+
## Files Modified
|
|
335
|
+
- path/to/file
|
|
336
|
+
|
|
337
|
+
## Testing
|
|
338
|
+
- [x] Regression test added
|
|
339
|
+
- [x] Manual verification
|
|
340
|
+
- [x] Related areas checked
|
|
341
|
+
|
|
342
|
+
## Prevention
|
|
343
|
+
[How to avoid in future]
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## Pro Tips
|
|
349
|
+
|
|
350
|
+
1. **Read the error message** - It usually tells you exactly what's wrong
|
|
351
|
+
2. **Reproduce first** - Don't waste time fixing unconfirmed bugs
|
|
352
|
+
3. **One change at a time** - Don't fix multiple things simultaneously
|
|
353
|
+
4. **Test thoroughly** - Verify the fix and check for regressions
|
|
354
|
+
5. **Document everything** - Future you will be grateful
|
|
355
|
+
6. **Look for patterns** - One bug often reveals more
|
|
356
|
+
|
|
357
|
+
## Tools Reference
|
|
358
|
+
|
|
359
|
+
- **Browser DevTools**: F12 (Console, Network, React DevTools)
|
|
360
|
+
- **Code intelligence**: configured symbol, pattern, and reference tools; native search of paths outside this project or ignored paths as fallback
|
|
361
|
+
- **Browser automation**: Browser verification uses the installed MCPs selected in `mcp.devtools_browsers`: Aside (`aside`, default), Chrome DevTools MCP (`chrome`), and Firefox DevTools MCP (`firefox`). Multiple selections are supported; use `oma update mcp` to change them. Discover the selected server’s actual tools before use; tool names and capabilities differ between servers. An empty selection disables browser MCP verification; report any unverified UI checks.
|
|
362
|
+
- **React Profiler**: Performance analysis
|
|
363
|
+
- **Lighthouse**: Performance audit
|
|
364
|
+
- **Git bisect**: Find when bug was introduced
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Debug Agent - Error Recovery Playbook
|
|
2
|
+
|
|
3
|
+
When you encounter a failure during debugging, follow these recovery steps.
|
|
4
|
+
Use the relevant recovery steps. If required information or authority is missing, pause the dependent action and continue independent work.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Cannot Reproduce the Bug
|
|
9
|
+
|
|
10
|
+
**Symptoms**: Bug described by user but you can't trigger it
|
|
11
|
+
|
|
12
|
+
1. Re-read user's reproduction steps; are you following them exactly?
|
|
13
|
+
2. Check environment differences: browser, OS, node/python version
|
|
14
|
+
3. Check data-dependent: does it need specific DB state or test data?
|
|
15
|
+
4. Check timing: is it a race condition? Try adding delays or rapid repetition
|
|
16
|
+
5. **After 3 attempts**: Record `Status: cannot_reproduce` in result with condition list
|
|
17
|
+
- NEVER give up immediately saying "cannot reproduce"
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Fix Introduces New Failure
|
|
22
|
+
|
|
23
|
+
**Symptoms**: Original bug fixed but other tests break
|
|
24
|
+
|
|
25
|
+
1. Read the failing tests; are they testing the old (buggy) behavior?
|
|
26
|
+
2. If yes: update tests to reflect correct behavior
|
|
27
|
+
3. If no: your fix has side effects. Revert and try a more targeted approach
|
|
28
|
+
4. `find_referencing_symbols("fixedFunction")` to check all callers
|
|
29
|
+
5. Consider: is the function contract changing? If so, update all callers
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Root Cause Unclear
|
|
34
|
+
|
|
35
|
+
**Symptoms**: You see the failure but can't trace why
|
|
36
|
+
|
|
37
|
+
1. Add logging at each step of the execution path
|
|
38
|
+
2. Binary search: is the bug before or after the midpoint?
|
|
39
|
+
3. `search_for_pattern("suspicious_pattern")` to find related code
|
|
40
|
+
4. Check git history: `git log --oneline -20 -- path/to/file`. When was it last changed?
|
|
41
|
+
5. Check: is it a dependency issue? Library version mismatch?
|
|
42
|
+
6. **No progress after 5 turns**: Record current analysis in progress, switch to different hypothesis
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Bug Is in Another Agent's Domain
|
|
47
|
+
|
|
48
|
+
**Symptoms**: Frontend bug caused by backend API, or vice versa
|
|
49
|
+
|
|
50
|
+
1. Confirm: is the root cause really in the other domain?
|
|
51
|
+
2. Document the cross-domain issue clearly:
|
|
52
|
+
- Which endpoint/component is wrong
|
|
53
|
+
- What the correct behavior should be
|
|
54
|
+
- Evidence (request/response logs, stack trace)
|
|
55
|
+
3. Record in result: `cross_domain_issue: {agent: "backend", description: "..."}`
|
|
56
|
+
4. **Do NOT modify directly**; touching another agent's code causes conflicts
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Performance Bug Hard to Measure
|
|
61
|
+
|
|
62
|
+
**Symptoms**: "It's slow" but no clear metric
|
|
63
|
+
|
|
64
|
+
1. Establish baseline: measure current response time / render time
|
|
65
|
+
2. Backend: enable SQL query logging, count queries, check `EXPLAIN ANALYZE`
|
|
66
|
+
3. Frontend: run Lighthouse, check React DevTools Profiler
|
|
67
|
+
4. Mobile: use Flutter DevTools performance tab
|
|
68
|
+
5. Profile before fixing; never optimize without data
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Test Cannot Be Written
|
|
73
|
+
|
|
74
|
+
**Symptoms**: Bug is real but hard to test (race condition, environment-specific)
|
|
75
|
+
|
|
76
|
+
1. Try: mock the timing / environment condition
|
|
77
|
+
2. Try: integration test instead of unit test
|
|
78
|
+
3. If truly untestable: document the manual reproduction steps
|
|
79
|
+
4. Add a comment in code explaining why the fix is correct
|
|
80
|
+
5. Note in result: `test_limitation: "reason why automated test is not feasible"`
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Rate Limit / Quota / Memory Fallback
|
|
85
|
+
|
|
86
|
+
Same as the backend playbook: see `../../oma-backend/resources/error-playbook.md` §"Rate Limit / Quota Error (LLM runtime)" and §"Workflow State Unavailable".
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## General Principles
|
|
91
|
+
|
|
92
|
+
- **After 3 failures**: If same approach fails 3 times, must try a different method
|
|
93
|
+
- **Blocked**: If no progress after 5 turns, save current state, `Status: blocked`
|
|
94
|
+
- **Out of scope**: Other agent's domain. Only record, do not modify directly
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Debug Agent - Execution Protocol
|
|
2
|
+
|
|
3
|
+
## Preparation
|
|
4
|
+
Use the task's scope, existing project conventions, and acceptance criteria. Follow `../../_shared/core/execution-policy.md` when it has not already been supplied. Read only references needed by the selected operation; consult lessons or recovery guides for an observed issue. Expand planning depth only when the change requires it.
|
|
5
|
+
|
|
6
|
+
## Step 1: Understand
|
|
7
|
+
- Gather: What happened? What was expected? Error messages? Steps to reproduce?
|
|
8
|
+
- Read relevant code following `../../_shared/core/code-intelligence.md`: locate the failing function, find callers, and search similar issues with configured tools or native fallback
|
|
9
|
+
- Classify: logic bug, runtime error, performance issue, security flaw, or integration failure
|
|
10
|
+
|
|
11
|
+
## Step 2: Reproduce & Diagnose
|
|
12
|
+
- Trace execution flow from entry point to failure
|
|
13
|
+
- Identify the exact line and condition that causes the bug
|
|
14
|
+
- Determine root cause (not just symptom):
|
|
15
|
+
- Null/undefined access?
|
|
16
|
+
- Race condition?
|
|
17
|
+
- Missing validation?
|
|
18
|
+
- Wrong assumption about data shape?
|
|
19
|
+
- Check `resources/common-patterns.md` for known patterns
|
|
20
|
+
|
|
21
|
+
Before fixing a confirmed cause in an active OMA debug workflow, record `debug.root-cause` with the actual causal mechanism, selected remedy, bug/reproduction revision as `instanceId`, and reproduction/trace evidence. Verify the same instance using the command pair in `.agents/workflows/debug.md`; a matching subject from an older diagnosis is insufficient.
|
|
22
|
+
|
|
23
|
+
## Step 3: Fix & Test
|
|
24
|
+
- Write a regression test that:
|
|
25
|
+
- Fails without the fix
|
|
26
|
+
- Passes with the fix
|
|
27
|
+
- Covers the specific edge case
|
|
28
|
+
- **Run the regression test before applying the fix where feasible**: record the failing output (RED), apply the minimal fix, record the pass (GREEN) — include both in the bug report / result file (see `../../_shared/core/test-approach.md` §Debug parity)
|
|
29
|
+
- Apply minimal fix that addresses the root cause
|
|
30
|
+
- Check for similar patterns elsewhere: `search_for_pattern("same_bug_pattern")`
|
|
31
|
+
- If found, fix proactively or report them
|
|
32
|
+
|
|
33
|
+
## Step 4: Document & Verify
|
|
34
|
+
- Check applicable items in `resources/checklist.md`
|
|
35
|
+
- Save bug report to `.agents/results/bugs/` using `resources/bug-report-template.md` (full template for Complex/CRITICAL/HIGH; condensed form in `resources/debugging-checklist.md` §Documentation Template for Simple/Medium)
|
|
36
|
+
- Include: root cause, fix, prevention advice
|
|
37
|
+
- Verify no regressions in related functionality
|
|
38
|
+
|
|
39
|
+
## On Error
|
|
40
|
+
See `resources/error-playbook.md` for recovery steps.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oma-design
|
|
3
|
+
description: Define or review a visual system, DESIGN.md, or redesign direction.
|
|
4
|
+
Use for typography, layout, color, motion, and interaction design decisions.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# oma-design
|
|
8
|
+
|
|
9
|
+
## Scheduling
|
|
10
|
+
|
|
11
|
+
### Goal
|
|
12
|
+
Resolve project design intent, select the applicable external design skill, and
|
|
13
|
+
retain the project's visual contract and verification evidence. `DESIGN.md`
|
|
14
|
+
records the design system when the task creates or materially changes it.
|
|
15
|
+
|
|
16
|
+
### Intent signature
|
|
17
|
+
- Design system, `DESIGN.md`, visual direction, redesign, or UI design review.
|
|
18
|
+
- Typography, color, layout, motion, accessibility, or component decisions before implementation.
|
|
19
|
+
|
|
20
|
+
### When to use
|
|
21
|
+
- Define or revise a visual system or substantial design direction.
|
|
22
|
+
- Review an existing UI or refine a chosen visual direction.
|
|
23
|
+
- Extract design decisions from existing UI, screenshots, or supplied references.
|
|
24
|
+
|
|
25
|
+
### When NOT to use
|
|
26
|
+
- Implement application UI or export framework-specific tokens -> `oma-frontend` or `oma-mobile`.
|
|
27
|
+
- Plan product scope -> `oma-pm`; generate an image -> `oma-image`.
|
|
28
|
+
- Review general correctness or security -> `oma-qa` or `oma-security`.
|
|
29
|
+
|
|
30
|
+
### Expected inputs
|
|
31
|
+
- Requested surface and outcome, existing brand and project facts, and change scope.
|
|
32
|
+
- Available `DESIGN.md`, `.design-context.md`, UI, screenshots, and references.
|
|
33
|
+
- Platform, incumbent stack, content languages, accessibility, and responsive constraints.
|
|
34
|
+
|
|
35
|
+
### Expected outputs
|
|
36
|
+
- Requested design decision, findings, or implementation handoff with observed evidence.
|
|
37
|
+
- Selected supplier, operation, resolved source, and capability or verification limits.
|
|
38
|
+
|
|
39
|
+
```yaml
|
|
40
|
+
outputs:
|
|
41
|
+
- name: design-doc
|
|
42
|
+
description: Updated visual contract when the design system materially changes
|
|
43
|
+
artifact: "DESIGN.md"
|
|
44
|
+
required: false
|
|
45
|
+
- name: design-context
|
|
46
|
+
description: Existing context refreshed after substantive discovery
|
|
47
|
+
artifact: ".design-context.md"
|
|
48
|
+
required: false
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Dependencies
|
|
52
|
+
- Interface Design, Taste, or Impeccable, selected through `resources/external-design-skills.md`.
|
|
53
|
+
- Project design artifacts and relevant local resources; Stitch and getdesign are optional inputs.
|
|
54
|
+
- The implementation specialist's existing stack and validation tools.
|
|
55
|
+
|
|
56
|
+
## Structural Flow
|
|
57
|
+
|
|
58
|
+
### Transitions
|
|
59
|
+
- A scoped correction reuses the affected UI and tokens; a discovery document is unnecessary.
|
|
60
|
+
- For existing products, establish Preserve or Overhaul from the brief and current system.
|
|
61
|
+
- For a post-implementation hierarchy, density, consistency, or craft review of an admin console, dashboard, SaaS product UI, or internal tool, select Interface Design `design-review` through `resources/product-interface-review.md`. The frontend recommendation is advisory unless the task explicitly requires design approval.
|
|
62
|
+
- For other existing-UI critique, accessibility or technical audit, polish, or system extraction, select the matching Impeccable operation.
|
|
63
|
+
- For dashboards, admin panels, SaaS product UI, or internal tools needing visual direction, select Interface Design.
|
|
64
|
+
- When the surface is built around a data table or grid, pass `resources/data-grid.md` to the selected supplier with the brief.
|
|
65
|
+
- For other new web art direction or an authorized visual overhaul, select Taste.
|
|
66
|
+
- A documentation-only or token-contract task can remain local when no new visual judgment is needed.
|
|
67
|
+
- Load one supplier for the current operation. A later operation may select another using the same project context.
|
|
68
|
+
- A chosen GPU effect, cinematic video-scroll scene, or GSAP behavior adds the matching frontend implementation extension; it does not select another visual-direction supplier.
|
|
69
|
+
|
|
70
|
+
### Failure and recovery
|
|
71
|
+
| Failure | Recovery |
|
|
72
|
+
|---|---|
|
|
73
|
+
| Missing or incomplete external bundle | Resolve the catalog entry or use the bounded upstream loading path; retain its complete support directory. |
|
|
74
|
+
| Supplier changes the stack, brand, or task scope | Restore the project constraints and choose the applicable operation; implementation remains with the owning specialist. |
|
|
75
|
+
| A supplier gate needs an unavailable runtime or unauthorized build | Report the gate as unrun; do not replace it with a claimed pass. |
|
|
76
|
+
| Explicitly requested supplier is unavailable | Report the failed route and missing capability; do not silently substitute a different supplier. |
|
|
77
|
+
| Missing context changes the design decision | Reuse existing artifacts and the brief; ask only about the material unresolved choice. |
|
|
78
|
+
|
|
79
|
+
### Exit
|
|
80
|
+
The requested decision or artifact is ready for the next action, with the selected
|
|
81
|
+
route, project constraints, observed checks, and unresolved limits recorded.
|
|
82
|
+
|
|
83
|
+
## Logical Operations
|
|
84
|
+
|
|
85
|
+
### Canonical workflow path
|
|
86
|
+
1. Inspect the relevant UI, design artifacts, and brief. Establish scope, platform,
|
|
87
|
+
incumbent stack, languages, brand preservation, and applicable verification.
|
|
88
|
+
2. Use `resources/external-design-skills.md` to select and load the supplier for
|
|
89
|
+
this operation. Follow its relevant instructions and support files.
|
|
90
|
+
3. Apply the result to the requested decision or artifact. Update `DESIGN.md`
|
|
91
|
+
only when the visual system changes; use its local specification and semantic
|
|
92
|
+
token contract. Optional Stitch/getdesign inputs remain project references.
|
|
93
|
+
4. Check the affected result using `resources/checklist.md`. Hand implementation
|
|
94
|
+
to the owning frontend/mobile specialist with the route and project constraints.
|
|
95
|
+
Include a specialized frontend route when the brief calls for that capability.
|
|
96
|
+
|
|
97
|
+
### Resource scope and effects
|
|
98
|
+
Reads project UI and design references; may write requested design artifacts and
|
|
99
|
+
load external skill bundles. Supplier installers, hooks, engine downloads,
|
|
100
|
+
background processes, and paid services are separate effects, not skill loading.
|
|
101
|
+
|
|
102
|
+
### Guardrails
|
|
103
|
+
1. Keep existing brand, content, URLs, navigation, form contracts, analytics, and
|
|
104
|
+
legal text within the authorized scope; use the redesign preservation contract.
|
|
105
|
+
2. Keep incumbent fonts when suitable. For ko/ja/zh, verify glyph coverage,
|
|
106
|
+
fallback, line breaking, and readable metrics; Latin-only references do not establish CJK support.
|
|
107
|
+
3. Carry accessibility, responsive, reduced-motion, and platform requirements into
|
|
108
|
+
the selected supplier. Keep WCAG AA as the default accessibility target, or
|
|
109
|
+
the project's stricter target. Its house style does not override that contract.
|
|
110
|
+
4. Use actual project assets and claims. Preserve attribution and label concepts
|
|
111
|
+
and placeholders through the asset strategy.
|
|
112
|
+
5. Keep the existing implementation stack. The implementation specialist owns
|
|
113
|
+
CSS/Tailwind/component-library syntax and dependencies.
|
|
114
|
+
6. Keep review-only operations read-only. Existing task authorization and the
|
|
115
|
+
shared execution policy govern builds, clarification, scope, and side effects.
|
|
116
|
+
7. Keep supplier visual cookbooks upstream. OMA's shared interaction-quality
|
|
117
|
+
guidance owns its adopted motion and interaction acceptance rules; do not
|
|
118
|
+
copy an entire external method catalog into these definitions.
|
|
119
|
+
|
|
120
|
+
## References
|
|
121
|
+
- `resources/product-interface-review.md`: recommended post-implementation product-interface review and frontend handoff.
|
|
122
|
+
- `resources/external-design-skills.md`: supplier selection and complete-bundle loading.
|
|
123
|
+
- `../oma-frontend/resources/specialized-visual-implementation.md`: chosen GPU, video-scroll, or GSAP implementation capability.
|
|
124
|
+
- `../_shared/ui-interaction-quality.md`: motion intent, feedback, and interaction-quality decisions.
|
|
125
|
+
- `resources/execution-protocol.md`: operation scope, artifacts, and handoff.
|
|
126
|
+
- `resources/redesign-protocol.md`: preserving an existing product.
|
|
127
|
+
- `resources/design-md-spec.md`: creating or materially revising DESIGN.md.
|
|
128
|
+
- `resources/design-tokens.md`: semantic token handoff to implementation.
|
|
129
|
+
- `resources/checklist.md`: affected-result verification and evidence.
|
|
130
|
+
- `resources/data-grid.md`: alignment, filter toolbar, and row rules for data tables and grids.
|
|
131
|
+
- `resources/asset-strategy.md`: actual assets, claims, provenance, and placeholders.
|
|
132
|
+
- `resources/getdesign-fetcher.md`: explicitly relevant vendor inspiration.
|
|
133
|
+
- `resources/stitch-integration.md`: requested Stitch operation.
|
|
134
|
+
- `resources/error-playbook.md`: an observed supplier or design-tool failure.
|
|
135
|
+
- `../_shared/core/execution-policy.md`: authorization, budgets, builds, and completion.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Design Asset Provenance
|
|
2
|
+
|
|
3
|
+
Load this resource when the affected design uses imagery, brand marks, product
|
|
4
|
+
previews, or placeholders. The selected design supplier owns placement and
|
|
5
|
+
visual treatment; OMA retains the source and what the asset can truthfully show.
|
|
6
|
+
|
|
7
|
+
## Choose relevant material
|
|
8
|
+
|
|
9
|
+
1. Reuse suitable user or project assets: approved brand marks, real product
|
|
10
|
+
screenshots, photography, and existing component previews.
|
|
11
|
+
2. Use `oma-image` for an original raster asset when generation fits the brief
|
|
12
|
+
and authorized scope. State when it is a concept rather than a real product.
|
|
13
|
+
3. Use stock or placeholders only when permitted. Verify the actual source,
|
|
14
|
+
availability, applicable attribution, and intended placement.
|
|
15
|
+
4. If required material is missing, label the slot and report what is needed.
|
|
16
|
+
Text-only content does not need decorative images to satisfy a quota.
|
|
17
|
+
|
|
18
|
+
## Keep claims tied to evidence
|
|
19
|
+
|
|
20
|
+
- Never invent a customer relationship or endorsement from a familiar logo.
|
|
21
|
+
- Do not present a generated concept, stock image, or styled mockup as a
|
|
22
|
+
screenshot of the user's real product. Use an actual screenshot or component
|
|
23
|
+
preview when the page makes a claim about existing functionality.
|
|
24
|
+
- Preserve approved logo geometry and brand identity within the requested scope.
|
|
25
|
+
- Retain source, license/credit requirements, and generated-asset provenance with
|
|
26
|
+
the deliverable. A supplier's code license does not license every stock asset.
|
|
27
|
+
- Do not emit guessed asset URLs. Record unavailable or unverified material.
|
|
28
|
+
|
|
29
|
+
## Verify the affected use
|
|
30
|
+
|
|
31
|
+
Inspect the rendered placement when an implementation exists. Check that
|
|
32
|
+
essential content remains available if the asset fails, alternative text matches
|
|
33
|
+
its role, and the target viewport/theme does not conceal required information.
|
|
34
|
+
State when only the asset plan or file was inspected.
|