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,191 @@
|
|
|
1
|
+
# Shared prose diagnostics
|
|
2
|
+
|
|
3
|
+
Load for academic prose audits and translation style reviews, together with the
|
|
4
|
+
owning skill's domain rules. Meaning, evidence, required structure, and target-language
|
|
5
|
+
conventions take precedence over these style diagnostics.
|
|
6
|
+
|
|
7
|
+
## Editing and review contract
|
|
8
|
+
|
|
9
|
+
Read the whole passage and identify its point, audience, and existing voice. Make only
|
|
10
|
+
changes that correct a supported defect. Keep useful details, uncertainty, and clear
|
|
11
|
+
sentences. Do not invent facts, examples, numbers, opinions, humor, or personality to
|
|
12
|
+
make writing seem more human. Reorganize only when the current order impairs understanding.
|
|
13
|
+
|
|
14
|
+
In review-only mode, name the pattern, quote the affected text, explain the defect,
|
|
15
|
+
and suggest a local fix. Do not rewrite the full draft or infer AI authorship from
|
|
16
|
+
style. Zero findings is valid. The owning skill controls its domain report format;
|
|
17
|
+
an evidence or translation-quality score is not an AI-authorship probability.
|
|
18
|
+
|
|
19
|
+
Apply domain-specific exceptions; do not enforce word bans or stylistic
|
|
20
|
+
preferences as universal rules.
|
|
21
|
+
|
|
22
|
+
## Common patterns
|
|
23
|
+
|
|
24
|
+
Target-language grammar and typography remain in the translation resource.
|
|
25
|
+
Refer to patterns by heading name, not by position in this file.
|
|
26
|
+
|
|
27
|
+
### Inflated significance
|
|
28
|
+
|
|
29
|
+
Replace claims of importance with the supported action, result, or consequence.
|
|
30
|
+
Do not describe an ordinary change as a milestone without evidence.
|
|
31
|
+
|
|
32
|
+
### Superficial analysis
|
|
33
|
+
|
|
34
|
+
A trailing clause such as `highlighting its importance` needs an actual explanation
|
|
35
|
+
or evidence. Remove it when empty; retain substantive causal or analytical content.
|
|
36
|
+
|
|
37
|
+
### Promotional tone
|
|
38
|
+
|
|
39
|
+
Remove unearned praise and claims of novelty. Match the evidence and intended register.
|
|
40
|
+
|
|
41
|
+
### Mannered prose
|
|
42
|
+
|
|
43
|
+
Prefer a literal statement when metaphor or flourish obscures the meaning. Do not
|
|
44
|
+
replace one decorative metaphor with another. The owning skill determines how to
|
|
45
|
+
handle an author's intentional figurative language.
|
|
46
|
+
|
|
47
|
+
### Vague attribution
|
|
48
|
+
|
|
49
|
+
Identify the available source of a claim. Do not replace a named source with an
|
|
50
|
+
anonymous consensus or invent a source to repair an unsupported statement.
|
|
51
|
+
|
|
52
|
+
### Authority padding
|
|
53
|
+
|
|
54
|
+
Keep relevant credentials and coverage only when they support a concrete claim.
|
|
55
|
+
Remove unsupported prestige claims and publication lists used as praise.
|
|
56
|
+
|
|
57
|
+
### Generic endings
|
|
58
|
+
|
|
59
|
+
Remove formulaic optimism and redundant recaps. End with a supported result,
|
|
60
|
+
limitation, implication, or next action. Preserve a required conclusion or abstract.
|
|
61
|
+
|
|
62
|
+
### Vocabulary clustering
|
|
63
|
+
|
|
64
|
+
Look for clusters of vague or inflated wording, including `delve`, `leverage`,
|
|
65
|
+
`foster`, `pivotal`, `seamless`, `tapestry`, and `groundbreaking`. Judge the meaning
|
|
66
|
+
in context; a technical term is not defective because it appears on a list.
|
|
67
|
+
Language-specific examples and domain thresholds belong to the owning resource.
|
|
68
|
+
|
|
69
|
+
### Unnecessary verb inflation
|
|
70
|
+
|
|
71
|
+
Keep ordinary verbs such as `is`, `has`, and `uses` when accurate. Replace them only
|
|
72
|
+
when a different verb states a useful distinction supported by the content.
|
|
73
|
+
|
|
74
|
+
### Mechanical triples
|
|
75
|
+
|
|
76
|
+
Remove stacked descriptors that repeat praise. Keep three items when each adds
|
|
77
|
+
information; list length alone is not a defect.
|
|
78
|
+
|
|
79
|
+
### Synonym cycling
|
|
80
|
+
|
|
81
|
+
Use one term for one concept. Do not rotate labels merely to avoid repetition.
|
|
82
|
+
|
|
83
|
+
### Rhetorical contrasts
|
|
84
|
+
|
|
85
|
+
State the claim directly when a negative contrast or repeated negation adds only
|
|
86
|
+
drama. Retain contrasts that distinguish real alternatives or necessary exclusions.
|
|
87
|
+
|
|
88
|
+
### Compound adjective stacking
|
|
89
|
+
|
|
90
|
+
Unpack stacked compound modifiers when they obscure what the subject does.
|
|
91
|
+
Keep established technical terms and meaningful distinctions.
|
|
92
|
+
|
|
93
|
+
### Abstract noun and adjective stacking
|
|
94
|
+
|
|
95
|
+
Replace vague descriptive clusters with a concrete action or property already
|
|
96
|
+
supported by the passage. Do not remove necessary technical precision.
|
|
97
|
+
|
|
98
|
+
### False ranges
|
|
99
|
+
|
|
100
|
+
Use a range only when its endpoints define a meaningful scale or scope.
|
|
101
|
+
|
|
102
|
+
### Decorative bold
|
|
103
|
+
|
|
104
|
+
Avoid mechanical emphasis. Use formatting that helps the reader locate information.
|
|
105
|
+
|
|
106
|
+
### Decorative dashes
|
|
107
|
+
|
|
108
|
+
Express the relationship between clauses with suitable grammar and punctuation.
|
|
109
|
+
Do not use dashes as a repeated rhythm device. Domain and locale rules set limits.
|
|
110
|
+
|
|
111
|
+
### Mechanical punctuation swaps
|
|
112
|
+
|
|
113
|
+
Replacing a dash with a colon or parentheses does not repair unclear syntax.
|
|
114
|
+
Rewrite the relationship when punctuation alone cannot express it.
|
|
115
|
+
|
|
116
|
+
### Heading case
|
|
117
|
+
|
|
118
|
+
Follow the document's required heading convention and target-language typography.
|
|
119
|
+
|
|
120
|
+
### Unnecessary tables
|
|
121
|
+
|
|
122
|
+
Use tables for information readers need to compare or look up, when the format allows.
|
|
123
|
+
|
|
124
|
+
### Mini-heading lists
|
|
125
|
+
|
|
126
|
+
Do not turn short prose into a series of bold labels and explanations without a
|
|
127
|
+
reading or reference need.
|
|
128
|
+
|
|
129
|
+
### Emoji decoration
|
|
130
|
+
|
|
131
|
+
Do not add emoji as ornament. Preserve content or UI conventions where required.
|
|
132
|
+
|
|
133
|
+
### Heading warmups
|
|
134
|
+
|
|
135
|
+
Remove a sentence that merely repeats the heading before the actual content begins.
|
|
136
|
+
|
|
137
|
+
### Chatbot artifacts
|
|
138
|
+
|
|
139
|
+
Exclude conversational acknowledgments and offers of further help from deliverable
|
|
140
|
+
prose unless they are themselves the requested content or quoted source material.
|
|
141
|
+
|
|
142
|
+
### Empty metadiscourse
|
|
143
|
+
|
|
144
|
+
Remove sentences telling readers a point matters when the passage already shows
|
|
145
|
+
why. If the explanation is missing, provide existing evidence instead of emphasis.
|
|
146
|
+
Keep uncertainty that reflects the evidence or the author's intended meaning.
|
|
147
|
+
|
|
148
|
+
### Announced exposition
|
|
149
|
+
|
|
150
|
+
Remove introductory announcements that delay the subject without adding context.
|
|
151
|
+
Keep introductions that define scope or help readers follow a necessary transition.
|
|
152
|
+
|
|
153
|
+
### Unsupported insight claims
|
|
154
|
+
|
|
155
|
+
Remove claims that the writer alone sees a hidden truth. Present the argument and
|
|
156
|
+
its support without asserting that everyone else missed it.
|
|
157
|
+
|
|
158
|
+
### Boilerplate limitations
|
|
159
|
+
|
|
160
|
+
Remove generic availability or knowledge disclaimers. Keep actual source limitations
|
|
161
|
+
and uncertainty relevant to the claim.
|
|
162
|
+
|
|
163
|
+
### Filler and indirect verbs
|
|
164
|
+
|
|
165
|
+
Shorten empty phrases and use direct verbs where meaning survives. Preserve a
|
|
166
|
+
qualifier when it carries uncertainty, emphasis, or a necessary distinction.
|
|
167
|
+
|
|
168
|
+
### Mechanical rhythm
|
|
169
|
+
|
|
170
|
+
Repair repeated sentence shapes when they impede reading. Preserve clear variation
|
|
171
|
+
and an author's characteristic cadence. Do not impose identical paragraph shapes
|
|
172
|
+
or insert fragments solely to create variation; domain structure rules still apply.
|
|
173
|
+
|
|
174
|
+
### Portability test
|
|
175
|
+
|
|
176
|
+
Check whether a sentence could describe an unrelated subject with only its name
|
|
177
|
+
changed. If so, determine whether it adds necessary context or merely generic praise.
|
|
178
|
+
Replace empty wording with an available mechanism, observation, consequence, or
|
|
179
|
+
example; otherwise remove it where editing scope permits. Never fabricate detail.
|
|
180
|
+
|
|
181
|
+
### Dramatic reveals and rhetorical questions
|
|
182
|
+
|
|
183
|
+
Remove a question answered immediately for effect, or a label followed by a colon
|
|
184
|
+
that delays a plain claim. Keep real research questions, definitions, labels, and
|
|
185
|
+
structural colons when the domain allows them.
|
|
186
|
+
|
|
187
|
+
### Performative endings and fragments
|
|
188
|
+
|
|
189
|
+
Remove an unsupported aphorism, decorative metaphor, or sequence of punchy fragments
|
|
190
|
+
at the end. Finish on a concrete sentence already supported by the passage. Preserve
|
|
191
|
+
intentional source cadence in translation and required academic conclusions.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# API Contracts
|
|
2
|
+
|
|
3
|
+
This directory owns the optional contract template, not generated API specifications. Reuse the project's existing OpenAPI, schema, or other authoritative contract before creating a parallel Markdown specification.
|
|
4
|
+
|
|
5
|
+
## When a contract artifact helps
|
|
6
|
+
|
|
7
|
+
Create or update a contract when a changed API boundary needs coordination between producers and consumers, or the task explicitly requests a specification. A scoped implementation against an existing contract does not require a PM task or a new document.
|
|
8
|
+
|
|
9
|
+
| Artifact | Location |
|
|
10
|
+
|---|---|
|
|
11
|
+
| Transient coordination contract | `.agents/results/api-contracts/{domain}.md` |
|
|
12
|
+
| Durable project specification, if no existing location applies | `docs/plans/contracts/{domain}.md` |
|
|
13
|
+
| Reusable format example | `template.md` in this directory |
|
|
14
|
+
|
|
15
|
+
Use task/session-specific domain names for independent runs that could otherwise overwrite the same transient file. Follow assigned artifact paths when supplied. Read and write with available file tools; no memory MCP is required.
|
|
16
|
+
|
|
17
|
+
## Authoring and use
|
|
18
|
+
|
|
19
|
+
1. Identify the authoritative schema and affected consumers. The assigned API owner can define the contract; PM involvement is useful for unresolved product requirements.
|
|
20
|
+
2. Document changed operations: method/path, input fields and validation, success/error schemas, authentication and authorization, and relevant compatibility requirements.
|
|
21
|
+
3. Share the contract path with affected assigned agents through the workflow's authorized coordination channel. Resolve incompatible expectations before dependent implementation. A separate approval ceremony is unnecessary when the existing contract and task already settle them.
|
|
22
|
+
4. Implement and verify producer/consumer compatibility with applicable schema checks, generated clients, or integration tests. If a contract changes, update its source and affected consumers within scope.
|
|
23
|
+
|
|
24
|
+
## Completion
|
|
25
|
+
|
|
26
|
+
The changed boundary is explicit, consumers can use it, and applicable compatibility checks support the result. Include pagination, rate limits, timestamp formats, and migration/deprecation behavior only when relevant. Do not invent JWT authentication, CRUD endpoints, a database, or error codes merely because the template includes an example.
|
|
27
|
+
|
|
28
|
+
Follow `../execution-policy.md` for authorization and verification. Transient artifacts do not belong in this source directory; durable specifications follow the repository's tracking policy.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# {Domain} API Contract
|
|
2
|
+
|
|
3
|
+
> Author: {assigned-owner} | Session: {session-id} | Date: {YYYY-MM-DD}
|
|
4
|
+
|
|
5
|
+
Use only the operations and fields needed by the actual contract. The CRUD, UUID, ownership, and pagination examples below are placeholders, not required architecture.
|
|
6
|
+
|
|
7
|
+
## Base URL
|
|
8
|
+
`/api/{domain}`
|
|
9
|
+
|
|
10
|
+
## Authentication
|
|
11
|
+
{Actual authentication scheme, public operations, and per-operation authorization rules. Preserve the project contract; do not assume JWT.}
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
### POST /api/{domain}
|
|
18
|
+
- **Description**: Create a new {resource}
|
|
19
|
+
- **Auth**: Required
|
|
20
|
+
- **Request Body**:
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"field1": "string (required)",
|
|
24
|
+
"field2": "number (optional, default: 0)"
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
- **Response 201**:
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"id": "uuid",
|
|
31
|
+
"field1": "string",
|
|
32
|
+
"field2": 0,
|
|
33
|
+
"created_at": "2024-01-01T00:00:00Z"
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
- **Errors**: 401, 422
|
|
37
|
+
|
|
38
|
+
### GET /api/{domain}
|
|
39
|
+
- **Description**: List {resources} (paginated)
|
|
40
|
+
- **Auth**: Required
|
|
41
|
+
- **Query Params**: `page` (default: 1), `size` (default: 20)
|
|
42
|
+
- **Response 200**:
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"items": [...],
|
|
46
|
+
"total": 100,
|
|
47
|
+
"page": 1,
|
|
48
|
+
"size": 20
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### GET /api/{domain}/{id}
|
|
53
|
+
- **Description**: Get single {resource}
|
|
54
|
+
- **Auth**: Required
|
|
55
|
+
- **Response 200**: Single resource object
|
|
56
|
+
- **Errors**: 401, 404
|
|
57
|
+
|
|
58
|
+
### PATCH /api/{domain}/{id}
|
|
59
|
+
- **Description**: Update {resource}
|
|
60
|
+
- **Auth**: Required (owner only)
|
|
61
|
+
- **Request Body**: Partial update fields
|
|
62
|
+
- **Response 200**: Updated resource object
|
|
63
|
+
- **Errors**: 401, 403, 404, 422
|
|
64
|
+
|
|
65
|
+
### DELETE /api/{domain}/{id}
|
|
66
|
+
- **Description**: Delete {resource}
|
|
67
|
+
- **Auth**: Required (owner only)
|
|
68
|
+
- **Response 204**: No content
|
|
69
|
+
- **Errors**: 401, 403, 404
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Data Models
|
|
74
|
+
|
|
75
|
+
### {Resource}
|
|
76
|
+
| Field | Type | Required | Description |
|
|
77
|
+
|-------|------|----------|-------------|
|
|
78
|
+
| id | UUID | auto | Primary key |
|
|
79
|
+
| field1 | string | yes | Description |
|
|
80
|
+
| field2 | number | no | Default: 0 |
|
|
81
|
+
| user_id | UUID | auto | Owner (FK to users) |
|
|
82
|
+
| created_at | datetime | auto | ISO 8601 |
|
|
83
|
+
| updated_at | datetime | auto | ISO 8601 |
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Notes
|
|
88
|
+
- Pagination: offset-based (page/size)
|
|
89
|
+
- Sorting: `?sort=created_at&order=desc` (optional)
|
|
90
|
+
- Filtering: `?field1=value` (optional)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Clarification Protocol
|
|
2
|
+
|
|
3
|
+
Apply [Execution Policy](execution-policy.md) before deciding whether to ask.
|
|
4
|
+
|
|
5
|
+
| Situation | Action |
|
|
6
|
+
|-----------|--------|
|
|
7
|
+
| Goal and authorization are clear; routine details remain | Use repository conventions, state consequential assumptions, proceed |
|
|
8
|
+
| A preference could improve the result | Ask one concise optional question and continue independent work |
|
|
9
|
+
| Missing information materially changes correctness or scope | Ask the specific question; pause only the dependent work |
|
|
10
|
+
| An action requires authorization not already given | Prepare the reviewable result, explain the action and reason, then ask |
|
|
11
|
+
|
|
12
|
+
Check prior messages, project configuration, and existing behavior before asking. The presence of tradeoffs, an existing-code conflict, or subjective wording alone is not a blocker. Do not add authentication, a database, or a framework solely because a generic checklist has a default.
|
|
13
|
+
|
|
14
|
+
## Question transport
|
|
15
|
+
|
|
16
|
+
- When clarification, a preference, or approval is needed, prefer the runtime's asynchronous user-question tool when available and permitted for that purpose. Otherwise use an available question tool or one concise plain-text question, respecting the runtime's mode and tool restrictions.
|
|
17
|
+
- Ask one focused question at a time. For approval, first present the concrete result and explain which action needs authorization and why; the question must be understandable on its own.
|
|
18
|
+
- Continue independent, authorized work while an answer is pending. Pause only the work that depends on required information or approval.
|
|
19
|
+
- Silence, elapsed time, and a preselected option are not approval. Keep required questions pending until the user explicitly answers; do not repeat an unanswered question through multiple channels.
|
|
20
|
+
- For an optional preference, allow a reasonable opportunity to answer, then state an assumption and proceed if necessary. An optional question must not become an approval gate.
|
|
21
|
+
- Vendor execution protocols map this policy to tools exposed in the current session; do not assume every vendor provides the same tool name.
|
|
22
|
+
|
|
23
|
+
Subagents report the exact missing fact and any independent work completed in a structured `blocked` or `partial` result. The coordinator answers from existing context where possible and asks the user only when necessary.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Code Intelligence Capability Contract
|
|
2
|
+
|
|
3
|
+
Use the repository's configured `code_intelligence` capability for code search,
|
|
4
|
+
navigation, impact analysis, and contract discovery. Do not name a provider as a
|
|
5
|
+
requirement in a workflow or skill.
|
|
6
|
+
|
|
7
|
+
## Resolve the capability
|
|
8
|
+
|
|
9
|
+
1. Read the project configuration and discover the provider's actual tools.
|
|
10
|
+
2. Use the configured provider when its tools are available for this repository.
|
|
11
|
+
3. Do not install, initialize, track, or register a repository from an agent
|
|
12
|
+
session. Project-root tracking and exclude maintenance belong to
|
|
13
|
+
`oma install` / `oma update`; if the provider reports the repository as
|
|
14
|
+
untracked, tell the user to run `oma update`.
|
|
15
|
+
4. If the provider is unavailable, has no applicable tool, or times out, use
|
|
16
|
+
native search only for paths outside this project or ignored paths, and
|
|
17
|
+
scoped reads of files already located. Do not search project source with
|
|
18
|
+
native tools as a substitute. Record the fallback and its limits in the
|
|
19
|
+
result.
|
|
20
|
+
5. The `code-intelligence-guard` PreToolUse hook enforces this contract while a
|
|
21
|
+
provider is configured (`providers.code_intelligence_guard: block`, the
|
|
22
|
+
default): native `Grep` / `Glob` and recursive shell search (`rg`, `grep -r`,
|
|
23
|
+
`find -name`, `git grep`) are denied and the reason names the provider tool
|
|
24
|
+
to use. Searches whose entire scope is a confirmed exclusion or outside the
|
|
25
|
+
project already pass. The hook does not name a bypass for project source.
|
|
26
|
+
|
|
27
|
+
The fallback is valid evidence when it covers the requested scope; it is not a
|
|
28
|
+
reason to stop independent work or to silently switch to another provider.
|
|
29
|
+
|
|
30
|
+
## State is independent of code intelligence
|
|
31
|
+
|
|
32
|
+
Workflow session, progress, result, and lesson artifacts use the configured
|
|
33
|
+
file-memory path from `../runtime/memory-protocol.md`. Code-intelligence MCP memory tools
|
|
34
|
+
do not own those artifacts and are never required to read or write them.
|
|
35
|
+
|
|
36
|
+
## Result record
|
|
37
|
+
|
|
38
|
+
Record one of:
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
code_intelligence:
|
|
42
|
+
provider: configured-provider | native
|
|
43
|
+
mode: available | unavailable | timeout | fallback
|
|
44
|
+
tools: [discovered_tool]
|
|
45
|
+
limitation: null | "reason native fallback was used"
|
|
46
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Collaboration Policy
|
|
2
|
+
|
|
3
|
+
Use when assigning or coordinating parallel worker tasks. Apply the existing execution policy, task contracts, verification, and recovery limits.
|
|
4
|
+
|
|
5
|
+
## Assignment and collection
|
|
6
|
+
|
|
7
|
+
- Give each worker a concrete deliverable, allowed edit paths, shared constraints, and the identities of relevant peers. Choose the worker count from the work and available parallelism.
|
|
8
|
+
- Designate one existing worker to collect outputs alongside its own assigned deliverable. Keep integration edits within that worker's approved scope and workspace. Preserve each contributor's run identity and verification evidence when combining results.
|
|
9
|
+
- Supply the relevant collaboration rules or this reference through the supported dispatch context so workers receive their contact and handoff instructions.
|
|
10
|
+
- Required checks and QA must cover the final combined revision. Re-run affected checks and review after integration edits; the coordinator then checks the combined result and unresolved work.
|
|
11
|
+
|
|
12
|
+
## Resolve issues with the responsible peer
|
|
13
|
+
|
|
14
|
+
- When the host exposes direct peer messaging, use the actual recipient identity and identify the affected task/run, paths or interface, observed problem, evidence, and requested action.
|
|
15
|
+
- Resolve routine interface and handoff issues with the responsible peer within the assigned contracts. If direct messaging is unavailable, ask the coordinator to relay the issue through the supported handoff path.
|
|
16
|
+
- Report unresolved blockers and proposed plan or deliverable changes to the coordinator. Pause only the dependent work and continue independent assignments within the existing recovery budget.
|
|
17
|
+
|
|
18
|
+
## Transfer edit ownership
|
|
19
|
+
|
|
20
|
+
1. Both workers confirm the exact paths, remaining work, and current revision or patch. The work must already fit both tasks' authorized scopes and the receiving task's acceptance contract; otherwise refer it to the coordinator.
|
|
21
|
+
2. The outgoing owner stops editing the agreed paths before the receiving owner starts. Record the agreement and unfinished work in each worker's own coordination notes, and notify the coordinator to update the shared task board.
|
|
22
|
+
3. The receiving owner works in its assigned workspace and records its actual changes and checks under its own run identity. With separate worktrees, exchange patches or commits through the existing integration path and preserve each other's changes.
|
|
23
|
+
|
|
24
|
+
If agreement or ownership is unclear, pause edits to the contested paths and involve the coordinator. Shared task boards remain coordinator-owned; each worker retains ownership of its own progress, result, and claim files.
|
|
25
|
+
|
|
26
|
+
## Keep task contracts intact
|
|
27
|
+
|
|
28
|
+
Peer agreement and notification do not modify a frozen plan. Changes to task identities, deliverables, scope, dependencies, or pinned checks go to the coordinator before dependent work proceeds. Follow the existing [result contract](../runtime/result-contract.md) for replanning, preserve prior outcomes and evidence, and retain the logical goal's recovery budget.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Common Code Quality Checklist
|
|
2
|
+
|
|
3
|
+
Use applicable sections for a cross-domain review. Check the changed behavior and affected boundaries; this list does not expand the task or override project checks. Authorization and verification scope follow `execution-policy.md`.
|
|
4
|
+
|
|
5
|
+
## Correctness and maintenance
|
|
6
|
+
- [ ] Behavior matches acceptance criteria and existing contracts.
|
|
7
|
+
- [ ] Names and structure follow the project; complexity does not obscure the changed behavior.
|
|
8
|
+
- [ ] No required behavior is left as a stub or unresolved task-created TODO. Existing tracked debt does not block unrelated work.
|
|
9
|
+
- [ ] Generated artifacts are updated through the project's generator when required.
|
|
10
|
+
|
|
11
|
+
## Error handling
|
|
12
|
+
- [ ] Failure paths propagate to an appropriate handler or error boundary; no swallowed rejection or silent data loss.
|
|
13
|
+
- [ ] User-facing errors are actionable without exposing internal or sensitive data.
|
|
14
|
+
- [ ] Recovery, cancellation, and cleanup work where the change depends on them.
|
|
15
|
+
|
|
16
|
+
## Security
|
|
17
|
+
- [ ] No secrets in code, logs, error messages, or staged files.
|
|
18
|
+
- [ ] Untrusted input is validated and handled safely at SQL, shell, and HTML boundaries.
|
|
19
|
+
- [ ] Protected operations enforce authentication and authorization at the relevant trust boundary.
|
|
20
|
+
|
|
21
|
+
## Verification
|
|
22
|
+
- [ ] Tests assert affected behavior and relevant failure or boundary cases.
|
|
23
|
+
- [ ] Required project checks pass, or missing evidence and its impact are reported.
|
|
24
|
+
- [ ] For changes where automated tests add little value, applicable inspection or static checks support the result.
|
|
25
|
+
|
|
26
|
+
## Change hygiene
|
|
27
|
+
- [ ] Changes stay within scope and preserve unrelated work.
|
|
28
|
+
- [ ] When committing is requested, staging follows repository rules, including whether generated artifacts are tracked.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Context Budget
|
|
2
|
+
|
|
3
|
+
Keep the context relevant to the current task. Prefer scoped search and reads for large files; read a whole file when its size or the review scope makes that useful. Re-read changed content when needed to verify current behavior.
|
|
4
|
+
|
|
5
|
+
## Measure actual loading
|
|
6
|
+
|
|
7
|
+
`bun scripts/measure-skill-context.ts` reports file-size estimates using UTF-8 bytes / 4. It is not an Astra tokenizer or a live usage measurement. The routed tier is the entry skill; resource tiers are comparison scenarios, not instructions to preload those files. Generated vendor aliases are not independent prompt copies.
|
|
8
|
+
|
|
9
|
+
Measure the assembled prompt separately when changing injection. Include the owning entry, runtime contracts, task instructions, and any references actually supplied. The runtime retains a required entry even if it exceeds its soft budget and reports the overrun. Reduce that entry or select a narrower skill; do not silently drop its contract.
|
|
10
|
+
|
|
11
|
+
Use `oma skill audit` to find routing overlap and unusually large entries. Counts and thresholds are diagnostics, not proof of task utility. Keep measured summaries current rather than copying fixed claims about which skills exceed a limit.
|
|
12
|
+
|
|
13
|
+
## During a task
|
|
14
|
+
|
|
15
|
+
- Process bulk logs, datasets, and manifests through tools; return relevant excerpts, counts, and artifact paths.
|
|
16
|
+
- Load one platform or operation at a time. Error playbooks, examples, and experimental protocols remain conditional.
|
|
17
|
+
- Record important decisions and remaining work in durable state for long tasks. Do not maintain a separate file-read ledger for a trivial edit.
|
|
18
|
+
- Before compaction or a restart, save completed work, remaining acceptance criteria, relevant paths, verification status, and material assumptions.
|
|
19
|
+
- Continue from that checkpoint. A turn estimate or elapsed time is not completion and does not require renewed approval.
|
|
20
|
+
- Restart an agent only for observed loss of useful context or stalled progress. Preserve its partial result and avoid duplicating a live attempt.
|
|
21
|
+
|
|
22
|
+
Authorization and completion follow `execution-policy.md`; run/claim identity follows `../runtime/result-contract.md`.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Context Loading
|
|
2
|
+
|
|
3
|
+
Read the routed skill once. Its references are an index, not a preload list.
|
|
4
|
+
|
|
5
|
+
## Selecting context
|
|
6
|
+
|
|
7
|
+
- Start with the task, acceptance criteria, and the owning skill's SKILL.md.
|
|
8
|
+
- Read a supporting document only when its stated trigger applies. Existing project conventions take precedence over starter examples.
|
|
9
|
+
- Load execution-protocol.md when its selected operation needs command, schema, or recovery detail; its existence alone is not a trigger.
|
|
10
|
+
- Load only the selected framework or platform reference. Generated stack/ files describe the project; variants/ are starter material for /stack-set, not mandatory reading for existing-code edits.
|
|
11
|
+
- Consult relevant checklist sections for unresolved verification requirements. Read an error playbook only for the observed failure.
|
|
12
|
+
- Read difficulty-guide.md for decomposition decisions, not before every task. Difficulty does not activate extra skills or full checklists.
|
|
13
|
+
- Runtime transport, authorization, and result contracts are injected once by CLI dispatch. Native agents read those contracts if not already supplied.
|
|
14
|
+
|
|
15
|
+
## Conditional shared resources
|
|
16
|
+
|
|
17
|
+
| Resource | Load when |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `../conditional/quality-score.md` | The task needs a defined baseline or experiment comparison |
|
|
20
|
+
| `../conditional/experiment-ledger.md` | Recording an actual experiment |
|
|
21
|
+
| `../conditional/exploration-loop.md` | Repeated recovery fails on the same issue and alternative mechanisms merit testing within budget, or the user requests exploration |
|
|
22
|
+
| `common-checklist.md` | A broad cross-domain review needs its applicable checks |
|
|
23
|
+
| `context-budget.md` | Managing a long task or diagnosing context overhead |
|
|
24
|
+
| `../runtime/memory-protocol.md` | Coordinating agents or resuming durable task state |
|
|
25
|
+
|
|
26
|
+
## Runtime selection
|
|
27
|
+
|
|
28
|
+
The graph records references, not permission to load them. The context loader injects the owning entry skill and defers its supporting references. Cross-routes to another specialist do not inject that specialist's body.
|
|
29
|
+
|
|
30
|
+
Difficulty selects a soft size budget. If the entry skill exceeds it, retain the entry and report the overrun. Do not replace it with smaller unrelated documents. Explicitly requested supporting references are checked against the graph and loaded within the remaining budget; deferred paths remain available for scoped reads.
|
|
31
|
+
|
|
32
|
+
## Subagent prompts
|
|
33
|
+
|
|
34
|
+
Pass the task ID, scope, acceptance criteria, material constraints, and relevant artifact paths. Identify the owning skill by path; do not paste its body if the runtime injects it. Pass a reference or guide section only when this task needs it. Preserve injected run/claim identity. Use `prompt-structure.md` when composing an unfamiliar handoff, not as another mandatory preload.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Task Decomposition
|
|
2
|
+
|
|
3
|
+
Use this guide when scope or dependencies make the execution approach unclear. Routine changes do not need a difficulty report or a separate planning phase.
|
|
4
|
+
|
|
5
|
+
## Choose the amount of planning
|
|
6
|
+
|
|
7
|
+
| Task characteristics | Approach |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Clear change following an existing pattern | Inspect the affected behavior, implement, and run relevant checks |
|
|
10
|
+
| Several coupled changes or a material design choice | Identify dependencies and acceptance criteria; resolve the choice before dependent edits |
|
|
11
|
+
| Multiple independently verifiable outcomes or uncertain boundaries | Break work into deliverables, each with its own implementation and verification |
|
|
12
|
+
|
|
13
|
+
File counts and estimated turns are hints, not gates. Many repetitive file edits can be straightforward; a one-line authorization change can need careful regression testing. The CLI's Simple/Medium/Complex classifier selects a context size budget; it does not prescribe review depth or activate other agents.
|
|
14
|
+
|
|
15
|
+
## Decompose around behavior
|
|
16
|
+
|
|
17
|
+
- Use as many deliverables as dependencies require, without a fixed sprint count or turn quota.
|
|
18
|
+
- Keep tests and error handling with the behavior they verify. For authentication plus CRUD, verify authentication with its endpoints before integrating and testing protected CRUD paths.
|
|
19
|
+
- Use the project's declared checks and `test-approach.md` where applicable. A broad audit may use relevant sections of `common-checklist.md`; complexity alone does not require every check.
|
|
20
|
+
- Delegate only when authorized and when independent work can proceed. Follow `skill-routing.md` for ownership, not a compulsory agent chain.
|
|
21
|
+
|
|
22
|
+
## Adjust during execution
|
|
23
|
+
|
|
24
|
+
If new dependencies emerge, update the remaining work and continue within the authorized scope. If the task is simpler than expected, finish without preserving unnecessary phases. For long tasks, checkpoint completed work and remaining evidence as described in `context-budget.md`.
|
|
25
|
+
|
|
26
|
+
Completion and authorization follow `execution-policy.md`. A turn estimate does not end the task or require renewed approval.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Execution Policy
|
|
2
|
+
|
|
3
|
+
This is the shared OMA policy for authorization, clarification, verification, and completion. Workflows define steps; skills define domain methods; vendor protocols define transport. They refer here instead of defining different stop/approval rules. System and developer instructions and the user's current request take precedence over OMA defaults.
|
|
4
|
+
|
|
5
|
+
## Authorization and clarification
|
|
6
|
+
|
|
7
|
+
- Carry the user's requested work through implementation. Existing authorization persists; a plan review or proposed fix does not require another approval when that work is already authorized.
|
|
8
|
+
- Resolve routine, reversible implementation choices from repository conventions. State material assumptions and continue independent work while a question is pending.
|
|
9
|
+
- Ask only for information that changes the outcome or for an action outside the authorized scope. Pause only the dependent action. Before requesting new approval, prepare the concrete result for review.
|
|
10
|
+
- Use the [Clarification Protocol](clarification-protocol.md) for question transport: prefer an available asynchronous question tool and keep independent work moving. Never treat silence, elapsed time, or a default selection as approval.
|
|
11
|
+
- Do not infer permission to send messages, publish, spend beyond an agreed budget, destroy data, or expand scope. Conversely, do not request that permission again when explicitly granted.
|
|
12
|
+
- Never build, compile, bundle, or package software until the user explicitly asks for a build. Type checking without emission and relevant tests do not authorize a build.
|
|
13
|
+
|
|
14
|
+
## Resource budgets, cancellation, and monitoring
|
|
15
|
+
|
|
16
|
+
- Before expensive batches, downloads, installations, or long-running subprocesses, record the execution deadline, parallelism, attempt/cost limits, and available host resource limits. Use existing configured limits and a small reversible probe when costs are unknown; preserve the requested scope and do not invent a new approval step.
|
|
17
|
+
- Apply one absolute deadline to preparation, installation, execution, retries, and verification, reserving time for shutdown. Propagate the remaining budget to children and retain it across resume; a new process, task ID, or retry does not reset it. CPU, RAM, and storage limits are enforced only where the host or provider supports them. Metadata alone is not enforcement.
|
|
18
|
+
- User cancellation takes precedence over completion gates and recovery. Check cancellation and the remaining deadline before every dispatch, review, verification, recovery action, and resumed admission. On cancellation or deadline exhaustion, stop admitting new work, agents, retries, failover, reviews, and verification. Allow only bounded shutdown, termination checks, and an accurate partial handoff. Do not repair a gate or replay work to keep a cancelled run alive.
|
|
19
|
+
- Record resources as they are created: run identity, process identity/group, provider or container IDs, and generated file/cache paths. Stop only resources whose ownership is established. Request cancellation through the host API for native agents; use verified process-tree termination for CLI-owned workers. Retain ownership records until termination is confirmed and report any surviving resources or unsupported cancellation capability.
|
|
20
|
+
- Stopping computation does not authorize deletion. Preserve logs, results, worktrees, caches, images, volumes, credentials, and user data unless deletion is requested or an explicit retention policy applies. Check shared use before removing a registered resource; never replace scoped cleanup with a global prune or name-only process kill.
|
|
21
|
+
- Prefer completion notifications and host-supported waits. When polling is necessary, designate one coordinator, increase the interval within the remaining deadline, and read only changed status or short log tails. Keep cancellation delivery independent of the polling interval; avoid duplicate watchers and repeated unchanged updates.
|
|
22
|
+
|
|
23
|
+
## Verification and completion
|
|
24
|
+
|
|
25
|
+
- Verification belongs to the project's local CI and push hooks. Do not run test suites, type checks, linters, or builds on your own initiative; run a check only when the user or the active workflow explicitly requires it.
|
|
26
|
+
- Add a regression test with a bug fix. Do not invent implementation-mirroring tests for prose or configuration edits.
|
|
27
|
+
- Prefer hermetic tests. A test that needs Docker, containers (including testcontainers), or another external service is a last resort: isolate it in the project's opt-in integration task and keep it out of default hooks and required gates.
|
|
28
|
+
- Use the shared [result contract](../runtime/result-contract.md) for agent handoffs. Process exit zero and a Markdown file alone are not verified completion.
|
|
29
|
+
- Report completed, partial, blocked, or failed accurately, with remaining work and verification limits. A gate failure means repair evidence/work within the existing scope and retry; it is not automatically a new permission requirement.
|
|
30
|
+
|
|
31
|
+
Repository check: `cli/platform/execution-policy.test.ts`.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Lessons Learned
|
|
2
|
+
|
|
3
|
+
Consult a relevant lesson after an observed failure or when prior evidence matches the current task. This file defines lesson handling; it is not a mandatory startup read or a destination for automatic edits to installed skills.
|
|
4
|
+
|
|
5
|
+
## Capture a useful lesson
|
|
6
|
+
|
|
7
|
+
Record a lesson when a repeated failure, consequential incident, or requested retrospective exposes a reusable cause and prevention method. Fix and verify routine failures directly. An expected failing regression test, a clarification question, or an experiment with a lower score does not by itself require an RCA.
|
|
8
|
+
|
|
9
|
+
Use the configured coordination store's `lessons-{sessionId}.md` (default `.agents/state/memories/`), or link an existing incident/result artifact. Include only information that helps prevent recurrence:
|
|
10
|
+
|
|
11
|
+
- The affected session/task/run and evidence paths.
|
|
12
|
+
- Observed behavior and impact; separate facts from suspected causes.
|
|
13
|
+
- Relevant framework version, configuration, or operating conditions.
|
|
14
|
+
- The fix and checks that support it.
|
|
15
|
+
- The prevention action and when it applies.
|
|
16
|
+
|
|
17
|
+
If the cause is unknown, say so. Do not invent a lesson merely to close a session. If the user says not to repeat a mistake, apply that correction to ongoing work immediately; record the reusable part without delaying the fix for a template.
|
|
18
|
+
|
|
19
|
+
## Applying lessons
|
|
20
|
+
|
|
21
|
+
- Check applicability against the installed version and actual configuration. A fix for one framework or runtime is not a universal rule.
|
|
22
|
+
- Review generated migrations against intended schema changes; generator success alone does not establish correctness.
|
|
23
|
+
- For integration failures, compare the actual producer and consumer contract: field names, types, authentication, timestamps, and error responses.
|
|
24
|
+
- Verify a suspected lifecycle, hydration, or redirect defect with the failing path before prescribing a hook, wrapper, or address substitution.
|
|
25
|
+
- Review findings need evidence. A disagreement alone does not establish an error; a separate reviewer does not guarantee correctness. Select runtime checks when the behavior requires them and record any verification limits.
|
|
26
|
+
|
|
27
|
+
## Promoting and maintaining lessons
|
|
28
|
+
|
|
29
|
+
Recurring evidence may justify a change to an owning skill, checklist, or project rule. Within an authorized source-maintenance task, prepare the scoped change, preserve exact version/trigger conditions, and verify it. Otherwise retain a proposal in the session artifact; do not mutate installed definitions during an unrelated run.
|
|
30
|
+
|
|
31
|
+
Read an experiment ledger only when it exists and a result needs analysis. A negative delta is a candidate for investigation, not proof of a reusable lesson. Keep successful and failed cases when comparing a proposed rule. Archive or remove historical lessons only under the repository's retention policy or the user's direction.
|
|
32
|
+
|
|
33
|
+
Use `session-metrics.md` for optional session evidence and `execution-policy.md` for authorization and completion.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Task Handoffs
|
|
2
|
+
|
|
3
|
+
Use this guide when composing a task for another agent or when the requested outcome is unclear. A simple direct request does not need to be rewritten into a template.
|
|
4
|
+
|
|
5
|
+
Include the information the recipient needs:
|
|
6
|
+
|
|
7
|
+
| Element | Content |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Goal | Observable behavior or artifact to change |
|
|
10
|
+
| Context | Relevant paths, existing patterns, errors, and prior decisions |
|
|
11
|
+
| Constraints | Actual scope, compatibility, ownership, and authorization boundaries |
|
|
12
|
+
| Done when | Acceptance criteria and proportionate verification |
|
|
13
|
+
|
|
14
|
+
Infer routine details from the request and repository. Do not invent constraints or ask the user to fill headings. Ask only about a missing fact that materially changes the result; follow `execution-policy.md` and `clarification-protocol.md`.
|
|
15
|
+
|
|
16
|
+
For implementation, include affected tests or examples when they clarify the contract. For a bug, describe the failure and expected behavior. For verification, name applicable project checks; a build is included only when explicitly requested by the user.
|
|
17
|
+
|
|
18
|
+
For dispatched tasks, preserve injected task/run/claim identity and required artifact paths from `../runtime/result-contract.md`. Reference the owning skill rather than pasting instructions already supplied by the runtime. Ownership and dependencies matter more than a decorative report format.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Quality Principles
|
|
2
|
+
|
|
3
|
+
Use these principles for implementation and review decisions. Authorization, clarification, verification, and completion follow `execution-policy.md`.
|
|
4
|
+
|
|
5
|
+
- Establish the requested behavior from the task, repository, and relevant tests. State material assumptions; compare alternatives when an unresolved design choice changes the outcome.
|
|
6
|
+
- Prefer an implementation that solves the current problem without speculative features. Preserve useful existing abstractions and project conventions; line count alone is not a reason to rewrite working code.
|
|
7
|
+
- Keep edits within the requested scope. Preserve unrelated work and avoid turning an adjacent issue into an unrequested refactor.
|
|
8
|
+
- Verify the affected behavior with meaningful evidence. Reproduce bugs before fixing where feasible; use characterization tests for behavior-preserving refactors. Use the project's test approach and relevant static or manual checks when appropriate.
|
|
9
|
+
- Report what the evidence supports and what remains unverified. Re-run checks after relevant changes or failures, not to fill a fixed review count.
|
|
10
|
+
|
|
11
|
+
`test-approach.md` defines the plan's test evidence contract. `common-checklist.md` provides optional cross-domain review prompts.
|