oh-my-agent-commandcode 0.0.0-stage → 20.38.3
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,439 @@
|
|
|
1
|
+
# PM Agent - Examples
|
|
2
|
+
|
|
3
|
+
The first two plans illustrate executable acceptance contracts for a sample
|
|
4
|
+
project that already has Bun test scripts. Before dispatch, replace the sample
|
|
5
|
+
paths and commands with the target project's existing checks and confirm that
|
|
6
|
+
they cover the stated criteria. Preserve injected session IDs and freeze the
|
|
7
|
+
contract at first dispatch; these commands are not universal toolchain defaults.
|
|
8
|
+
|
|
9
|
+
## Example 1: Simple TODO App
|
|
10
|
+
|
|
11
|
+
**Input**: "Build a TODO app with JWT authentication"
|
|
12
|
+
|
|
13
|
+
**Output**:
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"project_name": "TODO App with JWT Auth",
|
|
17
|
+
"tech_stack": {
|
|
18
|
+
"frontend": "resolve from oma-frontend/resources/tech-stack.md at planning time",
|
|
19
|
+
"backend": "resolve from oma-backend/variants/{node,python,rust}/tech-stack.md at planning time",
|
|
20
|
+
"mobile": "",
|
|
21
|
+
"database": "resolve from oma-db guidance at planning time",
|
|
22
|
+
"infrastructure": ""
|
|
23
|
+
},
|
|
24
|
+
"tasks": [
|
|
25
|
+
{
|
|
26
|
+
"id": "task-1",
|
|
27
|
+
"agent": "backend",
|
|
28
|
+
"title": "JWT authentication API",
|
|
29
|
+
"priority": 1,
|
|
30
|
+
"dependencies": [],
|
|
31
|
+
"estimated_complexity": "high",
|
|
32
|
+
"scope": [
|
|
33
|
+
"src/api/auth/",
|
|
34
|
+
"tests/api/auth.test.ts"
|
|
35
|
+
],
|
|
36
|
+
"test_approach": "tdd",
|
|
37
|
+
"test_scope": [
|
|
38
|
+
"unit",
|
|
39
|
+
"integration"
|
|
40
|
+
],
|
|
41
|
+
"test_approach_rationale": "Deterministic authorization rules with clear inputs and outputs.",
|
|
42
|
+
"acceptance_criteria": [
|
|
43
|
+
{
|
|
44
|
+
"id": "AC1",
|
|
45
|
+
"description": "POST /api/auth/register with email + password"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "AC2",
|
|
49
|
+
"description": "POST /api/auth/login returns access + refresh tokens"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "AC3",
|
|
53
|
+
"description": "Password hashed with Argon2id"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "AC4",
|
|
57
|
+
"description": "Authentication rate limiting matches the declared project policy"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"task": "Implement registration/login within src/api/auth and its tests using the agreed auth contract. Validate unauthorized access, credential storage, token handling, and the configured rate limit. Run the pinned auth check.",
|
|
61
|
+
"required_checks": [
|
|
62
|
+
{
|
|
63
|
+
"id": "check-task-1",
|
|
64
|
+
"criteria": [
|
|
65
|
+
"AC1",
|
|
66
|
+
"AC2",
|
|
67
|
+
"AC3",
|
|
68
|
+
"AC4"
|
|
69
|
+
],
|
|
70
|
+
"command": [
|
|
71
|
+
"bun",
|
|
72
|
+
"run",
|
|
73
|
+
"test",
|
|
74
|
+
"--",
|
|
75
|
+
"tests/api/auth.test.ts"
|
|
76
|
+
],
|
|
77
|
+
"cwd": "."
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"retry_policy": "manual"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "task-2",
|
|
84
|
+
"agent": "backend",
|
|
85
|
+
"title": "TODO CRUD API",
|
|
86
|
+
"priority": 1,
|
|
87
|
+
"dependencies": [],
|
|
88
|
+
"estimated_complexity": "medium",
|
|
89
|
+
"scope": [
|
|
90
|
+
"src/api/todos/",
|
|
91
|
+
"tests/api/todos.test.ts"
|
|
92
|
+
],
|
|
93
|
+
"acceptance_criteria": [
|
|
94
|
+
{
|
|
95
|
+
"id": "AC1",
|
|
96
|
+
"description": "CRUD endpoints for /api/todos"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "AC2",
|
|
100
|
+
"description": "User-scoped (JWT required)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "AC3",
|
|
104
|
+
"description": "Pagination on list endpoint"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"task": "Implement authenticated, user-scoped TODO CRUD and pagination within src/api/todos and its tests using the agreed API contract. Run the pinned todos check.",
|
|
108
|
+
"required_checks": [
|
|
109
|
+
{
|
|
110
|
+
"id": "check-task-2",
|
|
111
|
+
"criteria": [
|
|
112
|
+
"AC1",
|
|
113
|
+
"AC2",
|
|
114
|
+
"AC3"
|
|
115
|
+
],
|
|
116
|
+
"command": [
|
|
117
|
+
"bun",
|
|
118
|
+
"run",
|
|
119
|
+
"test",
|
|
120
|
+
"--",
|
|
121
|
+
"tests/api/todos.test.ts"
|
|
122
|
+
],
|
|
123
|
+
"cwd": "."
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"retry_policy": "manual"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "task-3",
|
|
130
|
+
"agent": "frontend",
|
|
131
|
+
"title": "Login + Register UI",
|
|
132
|
+
"priority": 1,
|
|
133
|
+
"dependencies": [],
|
|
134
|
+
"estimated_complexity": "medium",
|
|
135
|
+
"scope": [
|
|
136
|
+
"src/web/auth/",
|
|
137
|
+
"tests/web/auth.test.ts"
|
|
138
|
+
],
|
|
139
|
+
"acceptance_criteria": [
|
|
140
|
+
{
|
|
141
|
+
"id": "AC1",
|
|
142
|
+
"description": "Login and register forms with validation"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "AC2",
|
|
146
|
+
"description": "JWT token storage"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "AC3",
|
|
150
|
+
"description": "Redirect to /todos after login"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"task": "Implement login/register forms, validated submission, session handling, and navigation within src/web/auth and its tests using the agreed auth contract. Run the pinned auth UI check.",
|
|
154
|
+
"required_checks": [
|
|
155
|
+
{
|
|
156
|
+
"id": "check-task-3",
|
|
157
|
+
"criteria": [
|
|
158
|
+
"AC1",
|
|
159
|
+
"AC2",
|
|
160
|
+
"AC3"
|
|
161
|
+
],
|
|
162
|
+
"command": [
|
|
163
|
+
"bun",
|
|
164
|
+
"run",
|
|
165
|
+
"test",
|
|
166
|
+
"--",
|
|
167
|
+
"tests/web/auth.test.ts"
|
|
168
|
+
],
|
|
169
|
+
"cwd": "."
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"retry_policy": "manual"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "task-4",
|
|
176
|
+
"agent": "frontend",
|
|
177
|
+
"title": "TODO List UI",
|
|
178
|
+
"priority": 2,
|
|
179
|
+
"dependencies": [
|
|
180
|
+
"task-2",
|
|
181
|
+
"task-3"
|
|
182
|
+
],
|
|
183
|
+
"estimated_complexity": "medium",
|
|
184
|
+
"scope": [
|
|
185
|
+
"src/web/todos/",
|
|
186
|
+
"tests/web/todos.test.ts"
|
|
187
|
+
],
|
|
188
|
+
"acceptance_criteria": [
|
|
189
|
+
{
|
|
190
|
+
"id": "AC1",
|
|
191
|
+
"description": "Add, toggle, delete todos"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "AC2",
|
|
195
|
+
"description": "Loading and empty states"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "AC3",
|
|
199
|
+
"description": "Responsive design"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"task": "Implement adding, toggling, and deleting todos plus loading/empty and responsive states within src/web/todos and its tests. Reuse task-2 and task-3 contracts. Run the pinned todos UI check.",
|
|
203
|
+
"required_checks": [
|
|
204
|
+
{
|
|
205
|
+
"id": "check-task-4",
|
|
206
|
+
"criteria": [
|
|
207
|
+
"AC1",
|
|
208
|
+
"AC2",
|
|
209
|
+
"AC3"
|
|
210
|
+
],
|
|
211
|
+
"command": [
|
|
212
|
+
"bun",
|
|
213
|
+
"run",
|
|
214
|
+
"test",
|
|
215
|
+
"--",
|
|
216
|
+
"tests/web/todos.test.ts"
|
|
217
|
+
],
|
|
218
|
+
"cwd": "."
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"retry_policy": "manual"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "task-5",
|
|
225
|
+
"agent": "qa",
|
|
226
|
+
"title": "Security & Performance Review",
|
|
227
|
+
"priority": 3,
|
|
228
|
+
"dependencies": [
|
|
229
|
+
"task-1",
|
|
230
|
+
"task-2",
|
|
231
|
+
"task-3",
|
|
232
|
+
"task-4"
|
|
233
|
+
],
|
|
234
|
+
"estimated_complexity": "medium",
|
|
235
|
+
"scope": [],
|
|
236
|
+
"acceptance_criteria": [
|
|
237
|
+
{
|
|
238
|
+
"id": "AC1",
|
|
239
|
+
"description": "OWASP Top 10 audit passed"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "AC2",
|
|
243
|
+
"description": "Changed UI paths meet the declared project performance targets"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "AC3",
|
|
247
|
+
"description": "No N+1 queries"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"task": "Review the changed auth, TODO API, and UI paths against the project security/performance requirements. Run the existing test:review check and record confirmed findings separately from verification gaps. Do not claim checks that were not run.",
|
|
251
|
+
"required_checks": [
|
|
252
|
+
{
|
|
253
|
+
"id": "check-task-5",
|
|
254
|
+
"criteria": [
|
|
255
|
+
"AC1",
|
|
256
|
+
"AC2",
|
|
257
|
+
"AC3"
|
|
258
|
+
],
|
|
259
|
+
"command": [
|
|
260
|
+
"bun",
|
|
261
|
+
"run",
|
|
262
|
+
"test:review"
|
|
263
|
+
],
|
|
264
|
+
"cwd": "."
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"retry_policy": "manual"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"session_id": "sample-todo-plan"
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Example 2: Feature Addition to Existing App
|
|
275
|
+
|
|
276
|
+
**Input**: "Add a comment system to the blog posts"
|
|
277
|
+
|
|
278
|
+
**Output**:
|
|
279
|
+
```json
|
|
280
|
+
{
|
|
281
|
+
"project_name": "Blog Comments Feature",
|
|
282
|
+
"tasks": [
|
|
283
|
+
{
|
|
284
|
+
"id": "task-1",
|
|
285
|
+
"agent": "backend",
|
|
286
|
+
"title": "Comments API",
|
|
287
|
+
"priority": 1,
|
|
288
|
+
"dependencies": [],
|
|
289
|
+
"estimated_complexity": "medium",
|
|
290
|
+
"scope": [
|
|
291
|
+
"src/api/comments/",
|
|
292
|
+
"migrations/",
|
|
293
|
+
"tests/api/comments.test.ts"
|
|
294
|
+
],
|
|
295
|
+
"acceptance_criteria": [
|
|
296
|
+
{
|
|
297
|
+
"id": "AC1",
|
|
298
|
+
"description": "POST /api/posts/{id}/comments (auth required)"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "AC2",
|
|
302
|
+
"description": "GET /api/posts/{id}/comments (public, paginated)"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "AC3",
|
|
306
|
+
"description": "DELETE /api/comments/{id} (owner only)"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "AC4",
|
|
310
|
+
"description": "Nested replies (1 level deep)"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"task": "Implement paginated comments, one-level replies, and authenticated creation/owner-only deletion within the comments API, migrations, and tests using the agreed API contract. Run the pinned comments API check.",
|
|
314
|
+
"required_checks": [
|
|
315
|
+
{
|
|
316
|
+
"id": "check-task-1",
|
|
317
|
+
"criteria": [
|
|
318
|
+
"AC1",
|
|
319
|
+
"AC2",
|
|
320
|
+
"AC3",
|
|
321
|
+
"AC4"
|
|
322
|
+
],
|
|
323
|
+
"command": [
|
|
324
|
+
"bun",
|
|
325
|
+
"run",
|
|
326
|
+
"test",
|
|
327
|
+
"--",
|
|
328
|
+
"tests/api/comments.test.ts"
|
|
329
|
+
],
|
|
330
|
+
"cwd": "."
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"retry_policy": "manual"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"id": "task-2",
|
|
337
|
+
"agent": "frontend",
|
|
338
|
+
"title": "Comment Section UI",
|
|
339
|
+
"priority": 2,
|
|
340
|
+
"dependencies": [
|
|
341
|
+
"task-1"
|
|
342
|
+
],
|
|
343
|
+
"estimated_complexity": "medium",
|
|
344
|
+
"scope": [
|
|
345
|
+
"src/web/comments/",
|
|
346
|
+
"tests/web/comments.test.ts"
|
|
347
|
+
],
|
|
348
|
+
"acceptance_criteria": [
|
|
349
|
+
{
|
|
350
|
+
"id": "AC1",
|
|
351
|
+
"description": "Comment list with pagination (load more)"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"id": "AC2",
|
|
355
|
+
"description": "Add comment form (auth required)"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "AC3",
|
|
359
|
+
"description": "Reply to comment"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "AC4",
|
|
363
|
+
"description": "Delete own comment"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "AC5",
|
|
367
|
+
"description": "Real-time count update"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"task": "Implement paginated comment display, authenticated creation, replies, owner deletion, and count updates within src/web/comments and its tests using the task-1 API contract. Run the pinned comments UI check.",
|
|
371
|
+
"required_checks": [
|
|
372
|
+
{
|
|
373
|
+
"id": "check-task-2",
|
|
374
|
+
"criteria": [
|
|
375
|
+
"AC1",
|
|
376
|
+
"AC2",
|
|
377
|
+
"AC3",
|
|
378
|
+
"AC4",
|
|
379
|
+
"AC5"
|
|
380
|
+
],
|
|
381
|
+
"command": [
|
|
382
|
+
"bun",
|
|
383
|
+
"run",
|
|
384
|
+
"test",
|
|
385
|
+
"--",
|
|
386
|
+
"tests/web/comments.test.ts"
|
|
387
|
+
],
|
|
388
|
+
"cwd": "."
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"retry_policy": "manual"
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"session_id": "sample-comments-plan"
|
|
395
|
+
}
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
## Example 3: Standards-Aligned Metadata Fragment
|
|
399
|
+
|
|
400
|
+
This is governance metadata to append to an existing plan, not a complete
|
|
401
|
+
executable plan. Executable tasks still need the acceptance/check/replay
|
|
402
|
+
contract shown above. Include controls only when the delivery context needs them.
|
|
403
|
+
|
|
404
|
+
**Input**: "Plan this enterprise release with risk and governance considerations"
|
|
405
|
+
|
|
406
|
+
**Output**:
|
|
407
|
+
```json
|
|
408
|
+
{
|
|
409
|
+
"project_name": "Enterprise Release Plan",
|
|
410
|
+
"architecture_decisions": [
|
|
411
|
+
{
|
|
412
|
+
"decision": "Use phased rollout with feature flags",
|
|
413
|
+
"rationale": "Reduces operational risk during release",
|
|
414
|
+
"alternatives_considered": ["big bang release", "tenant-by-tenant rollout"]
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"project_controls": {
|
|
418
|
+
"iso_21500": {
|
|
419
|
+
"scope_defined": true,
|
|
420
|
+
"stakeholders_identified": ["product", "security", "operations"],
|
|
421
|
+
"dependencies_mapped": true
|
|
422
|
+
},
|
|
423
|
+
"iso_31000": {
|
|
424
|
+
"top_risks": [
|
|
425
|
+
"migration rollback failure",
|
|
426
|
+
"auth regression on legacy users"
|
|
427
|
+
],
|
|
428
|
+
"treatments": [
|
|
429
|
+
"pre-release restore drill",
|
|
430
|
+
"shadow auth validation"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"iso_38500": {
|
|
434
|
+
"decision_owner": "engineering manager",
|
|
435
|
+
"approval_required_for": ["prod migration", "feature-flag enablement"]
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# PM 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: Analyze Requirements
|
|
7
|
+
- Parse user request into concrete requirements
|
|
8
|
+
- Identify explicit and implicit features
|
|
9
|
+
- List edge cases and assumptions
|
|
10
|
+
- Ask clarifying questions if ambiguous
|
|
11
|
+
- Inspect existing structure and relevant symbols via `../../_shared/core/code-intelligence.md`; if the configured provider is unavailable, use native search only for paths outside this project or ignored paths
|
|
12
|
+
- If risk or governance matters, identify:
|
|
13
|
+
- stakeholders
|
|
14
|
+
- constraints
|
|
15
|
+
- decision owners
|
|
16
|
+
- major delivery risks
|
|
17
|
+
|
|
18
|
+
## Step 2: Design Architecture
|
|
19
|
+
- Select tech stack (frontend, backend, mobile, database, infra)
|
|
20
|
+
- Reuse or update API contracts for changed cross-boundary work (method, path, request/response schema)
|
|
21
|
+
- Design data models (tables, relationships, indexes)
|
|
22
|
+
- Identify security requirements (auth, validation, encryption)
|
|
23
|
+
- Plan infrastructure (hosting, caching, CDN, monitoring)
|
|
24
|
+
- When relevant:
|
|
25
|
+
- map plan structure to ISO 21500-style project management concepts
|
|
26
|
+
- record top risks and treatments using ISO 31000-style thinking
|
|
27
|
+
- note governance, responsibility, and approval needs using ISO 38500-style thinking
|
|
28
|
+
|
|
29
|
+
## Step 3: Decompose Tasks
|
|
30
|
+
- Break into tasks completable by a single agent
|
|
31
|
+
- Each task has: agent, title, description, acceptance criteria, priority, dependencies, **scope**
|
|
32
|
+
- For executable acceptance gates, `acceptance_criteria` contains `{id, description}` objects; `required_checks` contains unique `{id, criteria, command, cwd}` objects. Cover every criterion with relevant exact argv and a project-relative cwd. See `task-template.json` and `../../_shared/runtime/result-contract.md`.
|
|
33
|
+
- Preserve canonical `dependencies` task IDs and a self-contained `task` prompt for replay. `retry_policy` defaults to `manual`; use `safe` only when repetition cannot duplicate external effects.
|
|
34
|
+
- Optional `inputs` declares a complete set of concrete source, test, configuration and dependency inputs for reusable evidence. Omit it for whole-tree verification. `scope` remains the allowed edit boundary and is not an evidence-input list.
|
|
35
|
+
- `agent`: one of the orchestrator-dispatchable domains — `backend`, `frontend`, `mobile`, `db`, `qa`, `debug`, `pm`, `architecture`, `refactor`, `tf-infra`, `docs` (see the agent mapping table in `.agents/workflows/orchestrate.md`)
|
|
36
|
+
- `scope`: array of directory prefixes this agent is allowed to modify (e.g., `["src/api/", "migrations/"]`). Used by `verify` to detect cross-agent boundary violations in parallel execution.
|
|
37
|
+
- **Test approach (opt-in, per task)**: set `test_approach` where a test strategy matters
|
|
38
|
+
- `tdd`: deterministic, high-risk behavior (validation, authorization, state transitions, calculations, error handling). Implementation agent must record RED→GREEN evidence (see `TDD_EVIDENCE` block below).
|
|
39
|
+
- `test_after`: automated tests required, but a useful isolated RED state is impractical
|
|
40
|
+
- `not_applicable`: automated tests inappropriate — **must** fill `test_approach_rationale` and `alternative_verification` (documented manual/alternative check)
|
|
41
|
+
- Do **not** mark `tdd` for: documentation, pure styling, generated code, IaC plans, behavior-preserving refactors (refactor tasks keep their characterization-test safety net), or inherently nondeterministic integrations
|
|
42
|
+
- `test_scope`: which layers the tests cover (e.g., `["unit", "integration"]`)
|
|
43
|
+
- No `test_approach` value waives a project-defined coverage requirement. Where no target exists, plan evidence for changed behavior and justify exclusions; do not invent a universal percentage
|
|
44
|
+
- Minimize dependencies for maximum parallel execution
|
|
45
|
+
- Priority tiers: 1 = independent (run first), 2 = depends on tier 1, etc.
|
|
46
|
+
- The numeric tier is the **canonical** `priority` value in plan JSON (what the orchestrator fans out on).
|
|
47
|
+
- Human-readable trackers (`docs/plans/work/{NNN}-{name}.md`) use the same numeric tier in their Priority column. Do not use a separate P0/P1-style scale.
|
|
48
|
+
- Complexity: Low / Medium / High / Very High
|
|
49
|
+
- Save to `.agents/results/plan-{sessionId}.json` using the injected session ID; record that same ID in the plan JSON `session_id` field. Do not replace an active workflow's ID with a timestamp.
|
|
50
|
+
- Keep injected task/run IDs and the claim path. Write the human-readable `result-{agentId}-{taskId}-{runId}-{sessionId}.md` under the configured memory base per `../../_shared/runtime/memory-protocol.md`. An independent manual run may create local session/task/run IDs once and reuse them throughout its artifacts.
|
|
51
|
+
|
|
52
|
+
## Step 4: Validate Plan
|
|
53
|
+
- Check: Can each task be done independently given its dependencies?
|
|
54
|
+
- Check: Are acceptance criteria measurable and testable?
|
|
55
|
+
- Check: Is `test_approach` valid where set (`tdd|test_after|not_applicable`), with rationale + alternative verification for every `not_applicable`? (`oma verify agent pm` enforces this contract)
|
|
56
|
+
- Check: Is security considered from the start (not deferred)?
|
|
57
|
+
- Check: Are affected API boundaries settled by an existing or updated contract before dependent frontend/mobile work?
|
|
58
|
+
- Check: Are major risks, owners, and approval points explicit when needed?
|
|
59
|
+
- Output task-board.md format for orchestrator compatibility
|
|
60
|
+
|
|
61
|
+
## On Error
|
|
62
|
+
See `resources/error-playbook.md` for recovery steps.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# PM Agent - ISO 21500 / 31000 / 38500 Guide
|
|
2
|
+
|
|
3
|
+
Use this file when the user wants standards-based planning, enterprise delivery structure, risk-aware prioritization, or governance-oriented recommendations.
|
|
4
|
+
|
|
5
|
+
## Positioning
|
|
6
|
+
|
|
7
|
+
- **ISO 21500**: project management structure and planning lens
|
|
8
|
+
- **ISO 31000**: risk management lens
|
|
9
|
+
- **ISO 38500**: governance, accountability, and decision-rights lens
|
|
10
|
+
|
|
11
|
+
Do not turn these into ceremony for simple tasks. Use them when they improve clarity, accountability, or delivery confidence.
|
|
12
|
+
|
|
13
|
+
## 1. ISO 21500 for PM Work
|
|
14
|
+
|
|
15
|
+
Use ISO 21500 thinking to strengthen:
|
|
16
|
+
|
|
17
|
+
- scope definition
|
|
18
|
+
- stakeholder identification
|
|
19
|
+
- dependency mapping
|
|
20
|
+
- schedule and sequencing
|
|
21
|
+
- roles and responsibilities
|
|
22
|
+
- deliverable clarity
|
|
23
|
+
|
|
24
|
+
Practical PM outputs:
|
|
25
|
+
|
|
26
|
+
- explicit scope and exclusions
|
|
27
|
+
- task decomposition with dependencies
|
|
28
|
+
- owner assignment
|
|
29
|
+
- milestone or phase structure
|
|
30
|
+
- acceptance criteria and deliverables
|
|
31
|
+
|
|
32
|
+
## 2. ISO 31000 for Risk-Aware Planning
|
|
33
|
+
|
|
34
|
+
Use ISO 31000 thinking to improve:
|
|
35
|
+
|
|
36
|
+
- risk identification
|
|
37
|
+
- impact/likelihood discussion
|
|
38
|
+
- prioritization
|
|
39
|
+
- treatment / mitigation planning
|
|
40
|
+
- residual risk visibility
|
|
41
|
+
|
|
42
|
+
Practical PM outputs:
|
|
43
|
+
|
|
44
|
+
- top risks list
|
|
45
|
+
- mitigation tasks
|
|
46
|
+
- contingency tasks
|
|
47
|
+
- release blockers vs monitored risks
|
|
48
|
+
- decision points for escalation
|
|
49
|
+
|
|
50
|
+
## 3. ISO 38500 for Governance
|
|
51
|
+
|
|
52
|
+
Use ISO 38500 lightly for:
|
|
53
|
+
|
|
54
|
+
- decision ownership
|
|
55
|
+
- approval boundaries
|
|
56
|
+
- accountability
|
|
57
|
+
- oversight expectations
|
|
58
|
+
- alignment between business intent and technical execution
|
|
59
|
+
|
|
60
|
+
Practical PM outputs:
|
|
61
|
+
|
|
62
|
+
- approver or decision owner
|
|
63
|
+
- who must be informed
|
|
64
|
+
- what needs explicit sign-off
|
|
65
|
+
- where governance review is needed
|
|
66
|
+
|
|
67
|
+
## 4. When to Apply
|
|
68
|
+
|
|
69
|
+
Apply these standards when:
|
|
70
|
+
|
|
71
|
+
- the project is enterprise or regulated
|
|
72
|
+
- many teams or stakeholders are involved
|
|
73
|
+
- risk is material
|
|
74
|
+
- decision rights are unclear
|
|
75
|
+
- the user asks for formal planning or governance
|
|
76
|
+
|
|
77
|
+
Avoid overusing them when:
|
|
78
|
+
|
|
79
|
+
- the task is a small feature or bug
|
|
80
|
+
- standards language would slow delivery without adding control
|
|
81
|
+
|
|
82
|
+
## 5. Output Pattern
|
|
83
|
+
|
|
84
|
+
When relevant, add a short section like:
|
|
85
|
+
|
|
86
|
+
```md
|
|
87
|
+
## Standards-Aligned Planning Notes
|
|
88
|
+
|
|
89
|
+
### ISO 21500
|
|
90
|
+
- Scope:
|
|
91
|
+
- Stakeholders:
|
|
92
|
+
- Major dependencies:
|
|
93
|
+
|
|
94
|
+
### ISO 31000
|
|
95
|
+
- Top risks:
|
|
96
|
+
- Mitigations:
|
|
97
|
+
- Residual risks:
|
|
98
|
+
|
|
99
|
+
### ISO 38500
|
|
100
|
+
- Decision owner:
|
|
101
|
+
- Required approvals:
|
|
102
|
+
- Governance checkpoints:
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 6. Guardrails
|
|
106
|
+
|
|
107
|
+
- Keep recommendations actionable, not ceremonial
|
|
108
|
+
- Do not claim formal compliance
|
|
109
|
+
- Tie each standards suggestion to planning, risk reduction, or decision clarity
|
|
110
|
+
- Keep technical execution delegated to specialist agents
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# PLAN Phase Protocol
|
|
2
|
+
|
|
3
|
+
Execution guide for PLAN Phase (Steps 1-4) in ultrawork workflow. Use `.agents/workflows/ultrawork/resources/phase-gates.md` for canonical criteria and `.agents/workflows/ultrawork.md` for reviewer dispatch; this resource does not start additional reviews.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Step 1: Create Plan
|
|
8
|
+
|
|
9
|
+
### Tasks
|
|
10
|
+
- Define scope, features, architecture
|
|
11
|
+
- Resolve material assumptions from context; compare alternatives for unresolved decisions
|
|
12
|
+
|
|
13
|
+
### Outputs
|
|
14
|
+
- Task decomposition (priority tiers: 1 = independent, ascending)
|
|
15
|
+
- Agent assignments
|
|
16
|
+
- API contracts (if needed)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Step 2: Plan Review (Completeness)
|
|
21
|
+
|
|
22
|
+
### Review Question
|
|
23
|
+
"Is anything missing?"
|
|
24
|
+
|
|
25
|
+
### Checklist
|
|
26
|
+
- [ ] All requirements mapped to plan
|
|
27
|
+
- [ ] Dependencies specified
|
|
28
|
+
- [ ] Edge cases considered
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 3: Review Verification (Meta Review)
|
|
33
|
+
|
|
34
|
+
### Review Question
|
|
35
|
+
"Was the review done properly?"
|
|
36
|
+
|
|
37
|
+
### Checklist
|
|
38
|
+
- [ ] The assigned fresh reviewer checks Step 2 findings against plan criteria and evidence
|
|
39
|
+
- [ ] Uncovered requirements or unsupported findings are identified
|
|
40
|
+
- [ ] The verdict follows the canonical PLAN_GATE and CCR dispatch contract
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Step 4: Over-Engineering Check (Simplicity)
|
|
45
|
+
|
|
46
|
+
### Review Question
|
|
47
|
+
"Is this over-engineered?"
|
|
48
|
+
|
|
49
|
+
### Checklist
|
|
50
|
+
- [ ] Asked "Is this needed for MVP?" for each component
|
|
51
|
+
- [ ] Speculative features removed
|
|
52
|
+
- [ ] No "might need later" code
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## PLAN_GATE Checklist
|
|
57
|
+
|
|
58
|
+
Final verification before completing plan:
|
|
59
|
+
- [ ] Acceptance criteria have stable IDs and all are covered by relevant `required_checks` argv/cwd declarations
|
|
60
|
+
- [ ] Dependencies, replay prompts and retry safety are explicit; any narrowed `inputs` set covers all behavioral dependencies
|
|
61
|
+
- [ ] Material assumptions documented
|
|
62
|
+
- [ ] Alternatives considered for unresolved major decisions
|
|
63
|
+
- [ ] Over-engineering review completed
|
|
64
|
+
- [ ] Execution policy applied; existing authorization reused
|
|
65
|
+
|
|
66
|
+
**Gate failure → Return to Step 1 to revise plan**
|