@geraldmaron/construct 1.0.4 → 1.0.6
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 +57 -44
- package/agents/prompts/cx-accessibility.md +3 -3
- package/agents/prompts/cx-ai-engineer.md +7 -7
- package/agents/prompts/cx-architect.md +6 -6
- package/agents/prompts/cx-business-strategist.md +6 -6
- package/agents/prompts/cx-data-analyst.md +7 -7
- package/agents/prompts/cx-data-engineer.md +3 -3
- package/agents/prompts/cx-debugger.md +6 -6
- package/agents/prompts/cx-designer.md +5 -5
- package/agents/prompts/cx-devil-advocate.md +4 -4
- package/agents/prompts/cx-docs-keeper.md +5 -5
- package/agents/prompts/cx-engineer.md +5 -5
- package/agents/prompts/cx-evaluator.md +2 -2
- package/agents/prompts/cx-explorer.md +8 -8
- package/agents/prompts/cx-legal-compliance.md +2 -2
- package/agents/prompts/cx-operations.md +5 -5
- package/agents/prompts/cx-orchestrator.md +10 -10
- package/agents/prompts/cx-platform-engineer.md +5 -5
- package/agents/prompts/cx-product-manager.md +4 -4
- package/agents/prompts/cx-qa.md +8 -8
- package/agents/prompts/cx-rd-lead.md +9 -9
- package/agents/prompts/cx-release-manager.md +5 -5
- package/agents/prompts/cx-researcher.md +22 -22
- package/agents/prompts/cx-reviewer.md +7 -7
- package/agents/prompts/cx-security.md +10 -10
- package/agents/prompts/cx-sre.md +7 -7
- package/agents/prompts/cx-test-automation.md +3 -3
- package/agents/prompts/cx-trace-reviewer.md +8 -8
- package/agents/prompts/cx-ux-researcher.md +3 -3
- package/bin/construct +470 -4
- package/commands/build/feature.md +4 -4
- package/commands/build/fix.md +8 -8
- package/commands/design/access.md +3 -3
- package/commands/design/flow.md +3 -3
- package/commands/design/ui.md +4 -4
- package/commands/measure/experiment.md +5 -5
- package/commands/measure/metrics.md +3 -3
- package/commands/measure/results.md +4 -4
- package/commands/plan/api.md +3 -3
- package/commands/plan/challenge.md +3 -3
- package/commands/plan/decide.md +3 -3
- package/commands/plan/feature.md +7 -7
- package/commands/plan/requirements.md +3 -3
- package/commands/remember/context.md +5 -5
- package/commands/remember/handoff.md +3 -3
- package/commands/remember/runbook.md +3 -3
- package/commands/review/code.md +8 -8
- package/commands/review/quality.md +4 -4
- package/commands/review/security.md +3 -3
- package/commands/ship/ready.md +3 -3
- package/commands/ship/release.md +3 -3
- package/commands/ship/status.md +4 -4
- package/commands/understand/docs.md +3 -3
- package/commands/understand/research.md +5 -3
- package/commands/understand/this.md +4 -4
- package/commands/understand/why.md +8 -8
- package/commands/work/clean.md +14 -14
- package/commands/work/drive.md +10 -10
- package/commands/work/optimize-prompts.md +9 -9
- package/commands/work/parallel-review.md +8 -8
- package/db/schema/006_graph.sql +24 -0
- package/examples/provider-plugin/README.md +7 -7
- package/examples/seed-observations/README.md +6 -6
- package/examples/seed-observations/anti-patterns.md +14 -14
- package/examples/seed-observations/decisions.md +4 -4
- package/examples/seed-observations/patterns.md +14 -14
- package/lib/auto-docs.mjs +10 -5
- package/lib/cli-commands.mjs +45 -1
- package/lib/comment-lint.mjs +7 -1
- package/lib/config/schema.mjs +3 -0
- package/lib/flavors/loader.mjs +136 -0
- package/lib/hooks/agent-tracker.mjs +22 -3
- package/lib/hooks/pre-push-gate.mjs +14 -1
- package/lib/hooks/session-optimize.mjs +3 -2
- package/lib/hooks/session-reflect.mjs +68 -0
- package/lib/init-unified.mjs +25 -2
- package/lib/intake/classify.mjs +61 -183
- package/lib/intake/prepare.mjs +7 -0
- package/lib/intake/tables/creative.mjs +94 -0
- package/lib/intake/tables/operations.mjs +85 -0
- package/lib/intake/tables/research.mjs +85 -0
- package/lib/intake/tables/rnd.mjs +175 -0
- package/lib/knowledge/graph.mjs +213 -0
- package/lib/knowledge/research-store.mjs +109 -0
- package/lib/mcp/server.mjs +187 -1
- package/lib/mcp/tools/profile.mjs +270 -0
- package/lib/observation-store.mjs +19 -0
- package/lib/outcomes/aggregate.mjs +104 -0
- package/lib/outcomes/record.mjs +115 -0
- package/lib/parity.mjs +6 -9
- package/lib/profiles/lifecycle.mjs +388 -0
- package/lib/profiles/loader.mjs +123 -0
- package/lib/profiles/validate-custom.mjs +114 -0
- package/lib/reflect/extractor.mjs +193 -0
- package/lib/reflect.mjs +89 -2
- package/lib/sandbox.mjs +102 -0
- package/package.json +6 -1
- package/personas/construct.md +20 -20
- package/platforms/claude/CLAUDE.md +6 -6
- package/platforms/claude/settings.template.json +13 -0
- package/rules/common/agents.md +2 -2
- package/rules/common/beads-hygiene.md +11 -11
- package/rules/common/code-review.md +1 -1
- package/rules/common/coding-style.md +1 -1
- package/rules/common/comments.md +8 -8
- package/rules/common/commit-approval.md +4 -4
- package/rules/common/cx-agent-routing.md +2 -2
- package/rules/common/cx-skill-routing.md +2 -2
- package/rules/common/development-workflow.md +1 -1
- package/rules/common/doc-ownership.md +2 -2
- package/rules/common/efficiency.md +3 -3
- package/rules/common/framing.md +1 -1
- package/rules/common/git-workflow.md +1 -1
- package/rules/common/patterns.md +1 -1
- package/rules/common/performance.md +1 -1
- package/rules/common/release-gates.md +7 -7
- package/rules/common/research.md +4 -4
- package/rules/common/security.md +1 -1
- package/rules/common/skill-composition.md +8 -8
- package/rules/common/testing.md +1 -1
- package/rules/golang/coding-style.md +2 -2
- package/rules/golang/hooks.md +1 -1
- package/rules/golang/patterns.md +1 -1
- package/rules/golang/security.md +1 -1
- package/rules/golang/testing.md +1 -1
- package/rules/python/coding-style.md +1 -1
- package/rules/python/hooks.md +1 -1
- package/rules/python/patterns.md +1 -1
- package/rules/python/security.md +1 -1
- package/rules/python/testing.md +1 -1
- package/rules/swift/coding-style.md +3 -3
- package/rules/swift/hooks.md +2 -2
- package/rules/swift/patterns.md +2 -2
- package/rules/swift/security.md +4 -4
- package/rules/swift/testing.md +2 -2
- package/rules/typescript/coding-style.md +1 -1
- package/rules/typescript/hooks.md +1 -1
- package/rules/typescript/patterns.md +1 -1
- package/rules/typescript/security.md +1 -1
- package/rules/typescript/testing.md +1 -1
- package/rules/web/coding-style.md +1 -1
- package/rules/web/design-quality.md +1 -1
- package/rules/web/hooks.md +1 -1
- package/rules/web/patterns.md +1 -1
- package/rules/web/performance.md +1 -1
- package/rules/web/security.md +1 -1
- package/rules/web/testing.md +1 -1
- package/scripts/sync-agents.mjs +11 -0
- package/skills/ai/agent-dev.md +1 -1
- package/skills/ai/llm-security.md +1 -1
- package/skills/ai/ml-ops.md +6 -6
- package/skills/ai/orchestration-workflow.md +1 -1
- package/skills/ai/prompt-and-eval.md +1 -1
- package/skills/ai/prompt-optimizer.md +13 -13
- package/skills/ai/rag-system.md +1 -1
- package/skills/architecture/api-design.md +1 -1
- package/skills/architecture/caching.md +1 -1
- package/skills/architecture/cloud-native.md +1 -1
- package/skills/architecture/message-queue.md +1 -1
- package/skills/architecture/security-arch.md +1 -1
- package/skills/compliance/ai-disclosure.md +1 -1
- package/skills/compliance/data-privacy.md +1 -1
- package/skills/compliance/license-audit.md +2 -2
- package/skills/compliance/regulatory-review.md +1 -1
- package/skills/development/cpp.md +1 -1
- package/skills/development/go.md +1 -1
- package/skills/development/java.md +1 -1
- package/skills/development/kotlin.md +9 -9
- package/skills/development/mobile-crossplatform.md +13 -13
- package/skills/development/python.md +1 -1
- package/skills/development/rust.md +1 -1
- package/skills/development/shell.md +1 -1
- package/skills/development/swift.md +6 -6
- package/skills/development/typescript.md +1 -1
- package/skills/devops/ci-cd.md +5 -5
- package/skills/devops/containerization.md +9 -9
- package/skills/devops/cost-optimization.md +1 -1
- package/skills/devops/data-engineering.md +2 -2
- package/skills/devops/database.md +1 -1
- package/skills/devops/dependency-management.md +3 -3
- package/skills/devops/devsecops.md +1 -1
- package/skills/devops/git-workflow.md +1 -1
- package/skills/devops/incident-response.md +18 -18
- package/skills/devops/monorepo.md +5 -5
- package/skills/devops/observability.md +1 -1
- package/skills/devops/performance.md +1 -1
- package/skills/devops/testing.md +1 -1
- package/skills/docs/adr-workflow.md +2 -2
- package/skills/docs/backlog-proposal-workflow.md +1 -1
- package/skills/docs/customer-profile-workflow.md +1 -1
- package/skills/docs/document-ingest-workflow.md +1 -1
- package/skills/docs/evidence-ingest-workflow.md +1 -1
- package/skills/docs/init-docs.md +15 -15
- package/skills/docs/init-project.md +1 -1
- package/skills/docs/prd-workflow.md +3 -3
- package/skills/docs/prfaq-workflow.md +1 -1
- package/skills/docs/product-intelligence-review.md +1 -1
- package/skills/docs/product-intelligence-workflow.md +1 -1
- package/skills/docs/product-signal-workflow.md +9 -9
- package/skills/docs/research-workflow.md +10 -10
- package/skills/docs/runbook-workflow.md +2 -2
- package/skills/docs/strategy-workflow.md +3 -3
- package/skills/exploration/repo-map.md +11 -11
- package/skills/frameworks/django.md +15 -15
- package/skills/frameworks/nextjs.md +16 -16
- package/skills/frameworks/react.md +12 -12
- package/skills/frameworks/spring-boot.md +12 -12
- package/skills/frontend-design/accessibility.md +6 -6
- package/skills/frontend-design/component-patterns.md +1 -1
- package/skills/frontend-design/engineering.md +1 -1
- package/skills/frontend-design/state-management.md +1 -1
- package/skills/frontend-design/ui-aesthetics.md +1 -1
- package/skills/frontend-design/ux-principles.md +1 -1
- package/skills/operating/orchestration-reference.md +27 -27
- package/skills/quality-gates/review-work.md +3 -3
- package/skills/quality-gates/verify-change.md +1 -1
- package/skills/quality-gates/verify-module.md +1 -1
- package/skills/quality-gates/verify-quality.md +1 -1
- package/skills/quality-gates/verify-security.md +1 -1
- package/skills/roles/architect.ai-systems.md +4 -2
- package/skills/roles/architect.data.md +4 -2
- package/skills/roles/architect.enterprise.md +4 -2
- package/skills/roles/architect.integration.md +4 -2
- package/skills/roles/architect.md +7 -5
- package/skills/roles/architect.platform.md +4 -2
- package/skills/roles/data-analyst.experiment.md +4 -2
- package/skills/roles/data-analyst.md +9 -7
- package/skills/roles/data-analyst.product-intelligence.md +4 -2
- package/skills/roles/data-analyst.product.md +4 -2
- package/skills/roles/data-analyst.telemetry.md +4 -2
- package/skills/roles/data-engineer.pipeline.md +4 -2
- package/skills/roles/data-engineer.vector-retrieval.md +4 -2
- package/skills/roles/data-engineer.warehouse.md +4 -2
- package/skills/roles/debugger.md +7 -5
- package/skills/roles/designer.accessibility.md +4 -2
- package/skills/roles/designer.md +10 -8
- package/skills/roles/engineer.ai.md +4 -2
- package/skills/roles/engineer.data.md +5 -3
- package/skills/roles/engineer.md +14 -12
- package/skills/roles/engineer.platform.md +5 -3
- package/skills/roles/operator.docs.md +6 -4
- package/skills/roles/operator.md +6 -4
- package/skills/roles/operator.release.md +4 -2
- package/skills/roles/operator.sre.md +5 -3
- package/skills/roles/orchestrator.md +5 -3
- package/skills/roles/product-manager.ai-product.md +4 -2
- package/skills/roles/product-manager.business-strategy.md +4 -2
- package/skills/roles/product-manager.enterprise.md +4 -2
- package/skills/roles/product-manager.growth.md +4 -2
- package/skills/roles/product-manager.md +6 -4
- package/skills/roles/product-manager.platform.md +4 -2
- package/skills/roles/product-manager.product.md +4 -2
- package/skills/roles/qa.ai-eval.md +4 -2
- package/skills/roles/qa.api-contract.md +4 -2
- package/skills/roles/qa.data-pipeline.md +4 -2
- package/skills/roles/qa.md +7 -5
- package/skills/roles/qa.test-automation.md +5 -3
- package/skills/roles/qa.web-ui.md +4 -2
- package/skills/roles/researcher.explorer.md +4 -2
- package/skills/roles/researcher.md +11 -9
- package/skills/roles/researcher.ux.md +4 -2
- package/skills/roles/reviewer.devil-advocate.md +4 -2
- package/skills/roles/reviewer.evaluator.md +4 -2
- package/skills/roles/reviewer.md +14 -12
- package/skills/roles/reviewer.trace.md +4 -2
- package/skills/roles/security.ai.md +4 -2
- package/skills/roles/security.appsec.md +4 -2
- package/skills/roles/security.cloud.md +4 -2
- package/skills/roles/security.legal-compliance.md +4 -2
- package/skills/roles/security.md +7 -5
- package/skills/roles/security.privacy.md +4 -2
- package/skills/roles/security.supply-chain.md +4 -2
- package/skills/routing.md +14 -14
- package/skills/security/blue-team.md +1 -1
- package/skills/security/code-audit.md +1 -1
- package/skills/security/pentest.md +1 -1
- package/skills/security/red-team.md +1 -1
- package/skills/security/threat-intel.md +1 -1
- package/skills/security/vuln-research.md +1 -1
- package/skills/utility/clean-code.md +2 -2
- package/templates/docs/changelog-entry.md +1 -1
- package/templates/docs/construct_guide.md +13 -13
- package/templates/docs/meta-prd.md +16 -16
- package/templates/docs/one-pager.md +1 -1
- package/templates/docs/persona-artifact.md +36 -0
- package/templates/docs/prd-business.md +1 -1
- package/templates/docs/prd-platform.md +1 -1
- package/templates/docs/prd.md +17 -17
- package/templates/docs/research-brief.md +8 -8
- package/templates/docs/research-finding.md +26 -0
- package/templates/docs/rfc.md +1 -1
- package/templates/docs/skill-artifact.md +27 -0
- package/templates/docs/strategy.md +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/design/access.md
|
|
2
|
+
commands/design/access.md (Accessibility audit) WCAG 2.1 AA, keyboard, screen readers, contrast, motion
|
|
3
3
|
|
|
4
|
-
Accessibility audit
|
|
4
|
+
Accessibility audit: WCAG 2.1 AA, keyboard, screen readers, contrast, motion
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Accessibility audit
|
|
7
|
+
description: Accessibility audit: WCAG 2.1 AA, keyboard, screen readers, contrast, motion
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Audit: $ARGUMENTS
|
package/commands/design/flow.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/design/flow.md
|
|
2
|
+
commands/design/flow.md (Map the user flow) entry to success, friction points, jobs-to-be-done
|
|
3
3
|
|
|
4
|
-
Map the user flow
|
|
4
|
+
Map the user flow: entry to success, friction points, jobs-to-be-done
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Map the user flow
|
|
7
|
+
description: Map the user flow: entry to success, friction points, jobs-to-be-done
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Map the user flow for: $ARGUMENTS
|
package/commands/design/ui.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/design/ui.md
|
|
2
|
+
commands/design/ui.md (Design or review UI) visual hierarchy, states, interaction model, accessibility baseline
|
|
3
3
|
|
|
4
|
-
Design or review UI
|
|
4
|
+
Design or review UI: visual hierarchy, states, interaction model, accessibility baseline
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Design or review UI
|
|
7
|
+
description: Design or review UI: visual hierarchy, states, interaction model, accessibility baseline
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Design or review the UI for: $ARGUMENTS
|
|
11
11
|
|
|
12
12
|
Every meaningful UI surface needs:
|
|
13
|
-
- Clear hierarchy through scale contrast
|
|
13
|
+
- Clear hierarchy through scale contrast: not uniform emphasis
|
|
14
14
|
- Every component state defined: empty, loading, error, success, edge cases
|
|
15
15
|
- Hover, focus, and active states that feel designed
|
|
16
16
|
- WCAG AA baseline: keyboard-navigable, 4.5:1 contrast, visible focus, ARIA labels
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/measure/experiment.md
|
|
2
|
+
commands/measure/experiment.md (Design an experiment) hypothesis, test, evidence threshold, go/no-go decision
|
|
3
3
|
|
|
4
|
-
Design an experiment
|
|
4
|
+
Design an experiment: hypothesis, test, evidence threshold, go/no-go decision
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Design an experiment
|
|
7
|
+
description: Design an experiment: hypothesis, test, evidence threshold, go/no-go decision
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Design an experiment for: $ARGUMENTS
|
|
@@ -12,7 +12,7 @@ You are Construct. Design an experiment for: $ARGUMENTS
|
|
|
12
12
|
Produce:
|
|
13
13
|
- HYPOTHESIS: "We believe [X] will result in [Y] because [Z]."
|
|
14
14
|
- KEY UNKNOWNS: a small set of questions (typically 3-7) whose answers most change the decision
|
|
15
|
-
- EXPERIMENT: cheapest useful test per unknown
|
|
15
|
+
- EXPERIMENT: cheapest useful test per unknown: inputs, method, output artifact
|
|
16
16
|
- EVIDENCE THRESHOLD: what result confirms or disconfirms? Be specific.
|
|
17
|
-
- RECOMMENDATION: explore | prototype | build | kill
|
|
17
|
+
- RECOMMENDATION: explore | prototype | build | kill: with rationale
|
|
18
18
|
- WHAT NOT TO LOCK IN YET: decisions that must not harden before evidence arrives
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/measure/metrics.md
|
|
2
|
+
commands/measure/metrics.md (Define metrics) what to measure, baselines, success thresholds, instrumentation needed
|
|
3
3
|
|
|
4
|
-
Define metrics
|
|
4
|
+
Define metrics: what to measure, baselines, success thresholds, instrumentation needed
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Define metrics
|
|
7
|
+
description: Define metrics: what to measure, baselines, success thresholds, instrumentation needed
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Define metrics for: $ARGUMENTS
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/measure/results.md
|
|
2
|
+
commands/measure/results.md (Analyze results) interpret data, separate signal from noise, produce a recommendation
|
|
3
3
|
|
|
4
|
-
Analyze results
|
|
4
|
+
Analyze results: interpret data, separate signal from noise, produce a recommendation
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Analyze results
|
|
7
|
+
description: Analyze results: interpret data, separate signal from noise, produce a recommendation
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Analyze: $ARGUMENTS
|
|
11
11
|
|
|
12
12
|
For each finding:
|
|
13
13
|
- FINDING: what the data shows (with specific numbers)
|
|
14
|
-
- CONFIDENCE: high / medium / low
|
|
14
|
+
- CONFIDENCE: high / medium / low: based on sample size and data quality
|
|
15
15
|
- INFERENCE: what this means for the decision (clearly labeled as interpretation)
|
|
16
16
|
- GAPS: what additional data would increase confidence
|
|
17
17
|
|
package/commands/plan/api.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/plan/api.md
|
|
2
|
+
commands/plan/api.md (Design an API) contracts, endpoints, error model, data schema
|
|
3
3
|
|
|
4
|
-
Design an API
|
|
4
|
+
Design an API: contracts, endpoints, error model, data schema
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Design an API
|
|
7
|
+
description: Design an API: contracts, endpoints, error model, data schema
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Design the API for: $ARGUMENTS
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/plan/challenge.md
|
|
2
|
+
commands/plan/challenge.md (Challenge a plan) stress-test assumptions, surface failure modes and risks
|
|
3
3
|
|
|
4
|
-
Challenge a plan
|
|
4
|
+
Challenge a plan: stress-test assumptions, surface failure modes and risks
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Challenge a plan
|
|
7
|
+
description: Challenge a plan: stress-test assumptions, surface failure modes and risks
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Challenge the following: $ARGUMENTS
|
package/commands/plan/decide.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/plan/decide.md
|
|
2
|
+
commands/plan/decide.md (Record a decision) context, options considered, consequences, what it locks in
|
|
3
3
|
|
|
4
|
-
Record a decision
|
|
4
|
+
Record a decision: context, options considered, consequences, what it locks in
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Record a decision
|
|
7
|
+
description: Record a decision: context, options considered, consequences, what it locks in
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Document the decision about: $ARGUMENTS
|
package/commands/plan/feature.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/plan/feature.md
|
|
2
|
+
commands/plan/feature.md: Plan a feature and turn it into a tracker-linked implementation plan
|
|
3
3
|
|
|
4
4
|
Produces a structured spec using the canonical Construct plan format, saves it
|
|
5
5
|
to .cx/plans/ as a durable planning artifact linked to the active tracker slice.
|
|
6
6
|
-->
|
|
7
7
|
---
|
|
8
|
-
description: Plan a feature
|
|
8
|
+
description: Plan a feature: produce a structured spec and link it to the active tracker-backed plan
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
You are Construct. Plan the following: $ARGUMENTS
|
|
12
12
|
|
|
13
13
|
Use the code-backed orchestration policy for routing/escalation decisions; this prompt only defines the plan artifact shape.
|
|
14
14
|
|
|
15
|
-
## Step 1
|
|
15
|
+
## Step 1: Scope
|
|
16
16
|
Produce:
|
|
17
17
|
- **GOAL**: restate the objective in one sentence
|
|
18
18
|
- **APPROACH**: chosen strategy and why (alternatives considered)
|
|
19
19
|
- **RISKS**: top 3 risks and mitigations
|
|
20
20
|
|
|
21
|
-
## Step 2
|
|
21
|
+
## Step 2: Task breakdown
|
|
22
22
|
|
|
23
23
|
Produce tasks in the canonical Construct plan format:
|
|
24
24
|
|
|
25
25
|
## Tasks
|
|
26
26
|
|
|
27
|
-
### T1
|
|
27
|
+
### T1: {Task title}
|
|
28
28
|
- **Owner**: {cx-specialist}
|
|
29
29
|
- **Phase**: implement
|
|
30
30
|
- **Files**: {comma-separated list of files this task will touch}
|
|
@@ -38,12 +38,12 @@ Produce tasks in the canonical Construct plan format:
|
|
|
38
38
|
(repeat for each task)
|
|
39
39
|
|
|
40
40
|
Rules:
|
|
41
|
-
- Each task is atomic
|
|
41
|
+
- Each task is atomic: one agent, one deliverable
|
|
42
42
|
- Files lists must be disjoint across parallel tasks
|
|
43
43
|
- Acceptance criteria are binary: pass or fail, no "it should be good"
|
|
44
44
|
- Do not change must list every file outside scope that could be accidentally touched
|
|
45
45
|
|
|
46
|
-
## Step 3
|
|
46
|
+
## Step 3: Save and import
|
|
47
47
|
1. Save this full plan to `.cx/plans/{slug}-plan.md`
|
|
48
48
|
2. If the project uses Beads or another external tracker, include the issue id in the plan and keep the current `plan.md` aligned with it
|
|
49
49
|
3. Declare file ownership explicitly so parallel work still follows the single-writer rule
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/plan/requirements.md
|
|
2
|
+
commands/plan/requirements.md (Define requirements) what needs to be true for this to be done
|
|
3
3
|
|
|
4
|
-
Define requirements
|
|
4
|
+
Define requirements: what needs to be true for this to be done
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Define requirements
|
|
7
|
+
description: Define requirements: what needs to be true for this to be done
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Define requirements for: $ARGUMENTS
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/remember/context.md
|
|
2
|
+
commands/remember/context.md (Save project context) update .cx/context.md so the next session picks up where this one left off
|
|
3
3
|
|
|
4
|
-
Save project context
|
|
4
|
+
Save project context: update .cx/context.md so the next session picks up where this one left off
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Save project context
|
|
7
|
+
description: Save project context: update .cx/context.md so the next session picks up where this one left off
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Save context for: $ARGUMENTS
|
|
@@ -12,10 +12,10 @@ You are Construct. Save context for: $ARGUMENTS
|
|
|
12
12
|
Update `.cx/context.json` as canonical state and refresh `.cx/context.md` as the readable mirror:
|
|
13
13
|
|
|
14
14
|
## Active Work
|
|
15
|
-
- [title]
|
|
15
|
+
- [title]: [status: in-progress | blocked | in-review]
|
|
16
16
|
|
|
17
17
|
## Recent Decisions
|
|
18
|
-
- [date] [decision]
|
|
18
|
+
- [date] [decision]: [rationale]
|
|
19
19
|
|
|
20
20
|
## Architecture Notes
|
|
21
21
|
- [constraint or invariant future contributors need to know]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/remember/handoff.md
|
|
2
|
+
commands/remember/handoff.md (Write a handoff) transfer context so the next session or person can continue without loss
|
|
3
3
|
|
|
4
|
-
Write a handoff
|
|
4
|
+
Write a handoff: transfer context so the next session or person can continue without loss
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Write a handoff
|
|
7
|
+
description: Write a handoff: transfer context so the next session or person can continue without loss
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Write a handoff for: $ARGUMENTS
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/remember/runbook.md
|
|
2
|
+
commands/remember/runbook.md (Write a runbook) step-by-step procedure for a recurring task or incident
|
|
3
3
|
|
|
4
|
-
Write a runbook
|
|
4
|
+
Write a runbook: step-by-step procedure for a recurring task or incident
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Write a runbook
|
|
7
|
+
description: Write a runbook: step-by-step procedure for a recurring task or incident
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Write a runbook for: $ARGUMENTS
|
package/commands/review/code.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/review/code.md
|
|
2
|
+
commands/review/code.md (Code review) correctness, regressions, security, test coverage
|
|
3
3
|
|
|
4
|
-
Code review
|
|
4
|
+
Code review: correctness, regressions, security, test coverage
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Code review
|
|
7
|
+
description: Code review: correctness, regressions, security, test coverage
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Review: $ARGUMENTS
|
|
@@ -12,10 +12,10 @@ You are Construct. Review: $ARGUMENTS
|
|
|
12
12
|
If no target specified, review all uncommitted changes (`git diff HEAD`).
|
|
13
13
|
|
|
14
14
|
Check in order:
|
|
15
|
-
1. Correctness
|
|
16
|
-
2. Regression
|
|
17
|
-
3. Security
|
|
18
|
-
4. Coverage
|
|
19
|
-
5. Maintainability
|
|
15
|
+
1. Correctness: does it do what it's supposed to?
|
|
16
|
+
2. Regression: does it break anything that was working?
|
|
17
|
+
3. Security: injection, auth, secrets, data exposure
|
|
18
|
+
4. Coverage: are there tests for changed or new behavior?
|
|
19
|
+
5. Maintainability: can someone unfamiliar understand it?
|
|
20
20
|
|
|
21
21
|
Rate each finding: CRITICAL / HIGH / MEDIUM / LOW. State clearly if no CRITICAL or HIGH findings exist.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/review/quality.md
|
|
2
|
+
commands/review/quality.md (Quality audit) complexity, naming, duplication, dead code, maintainability
|
|
3
3
|
|
|
4
|
-
Quality audit
|
|
4
|
+
Quality audit: complexity, naming, duplication, dead code, maintainability
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Quality audit
|
|
7
|
+
description: Quality audit: complexity, naming, duplication, dead code, maintainability
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Audit quality for: $ARGUMENTS
|
|
@@ -16,4 +16,4 @@ Check:
|
|
|
16
16
|
- Unused exports, unreachable branches, stale imports
|
|
17
17
|
- Coupling, unclear data flow
|
|
18
18
|
|
|
19
|
-
Rate findings: CRITICAL / HIGH / MEDIUM / LOW. Describe the fix
|
|
19
|
+
Rate findings: CRITICAL / HIGH / MEDIUM / LOW. Describe the fix: do not rewrite unprompted.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/review/security.md
|
|
2
|
+
commands/review/security.md (Security scan) secrets, auth, injection, data exposure, dependency risk
|
|
3
3
|
|
|
4
|
-
Security scan
|
|
4
|
+
Security scan: secrets, auth, injection, data exposure, dependency risk
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Security scan
|
|
7
|
+
description: Security scan: secrets, auth, injection, data exposure, dependency risk
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Scan: $ARGUMENTS
|
package/commands/ship/ready.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/ship/ready.md
|
|
2
|
+
commands/ship/ready.md (Pre-release check) is this ready to ship?
|
|
3
3
|
|
|
4
|
-
Pre-release check
|
|
4
|
+
Pre-release check: is this ready to ship?
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Pre-release check
|
|
7
|
+
description: Pre-release check: is this ready to ship?
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Check if the following is ready: $ARGUMENTS
|
package/commands/ship/release.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/ship/release.md
|
|
2
|
+
commands/ship/release.md (Release) plan rollout, changelog, rollback, and post-release verification
|
|
3
3
|
|
|
4
|
-
Release
|
|
4
|
+
Release: plan rollout, changelog, rollback, and post-release verification
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Release
|
|
7
|
+
description: Release: plan rollout, changelog, rollback, and post-release verification
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Release the following: $ARGUMENTS
|
package/commands/ship/status.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/ship/status.md
|
|
2
|
+
commands/ship/status.md (Status) current project state, workflow, uncommitted changes, recent activity
|
|
3
3
|
|
|
4
|
-
Status
|
|
4
|
+
Status: current project state, workflow, uncommitted changes, recent activity
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Status
|
|
7
|
+
description: Status: current project state, workflow, uncommitted changes, recent activity
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Report status for: $ARGUMENTS
|
|
11
11
|
|
|
12
12
|
Check and report:
|
|
13
|
-
1. Tracker and `plan.md` state
|
|
13
|
+
1. Tracker and `plan.md` state: active slices, blockers, and ownership boundaries
|
|
14
14
|
2. Uncommitted changes via `git status`
|
|
15
15
|
3. Recent commits via `git log --oneline -10`
|
|
16
16
|
4. Active branch and relationship to main
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/understand/docs.md
|
|
2
|
+
commands/understand/docs.md (Look up documentation) current behavior from primary sources, not training memory
|
|
3
3
|
|
|
4
|
-
Look up documentation
|
|
4
|
+
Look up documentation: current behavior from primary sources, not training memory
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Look up documentation
|
|
7
|
+
description: Look up documentation: current behavior from primary sources, not training memory
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Look up: $ARGUMENTS
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/understand/research.md
|
|
2
|
+
commands/understand/research.md. Research a topic. Verify facts from primary sources, separate evidence from inference.
|
|
3
3
|
|
|
4
|
-
Research a topic
|
|
4
|
+
Research a topic. Verify facts from primary sources, separate evidence from inference.
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Research a topic
|
|
7
|
+
description: Research a topic. Verify facts from primary sources, separate evidence from inference.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Research: $ARGUMENTS
|
|
@@ -20,3 +20,5 @@ Method:
|
|
|
20
20
|
For each finding: source, date, confidence (confirmed / inferred / weak signal).
|
|
21
21
|
|
|
22
22
|
Output: FINDINGS (with citations) | INFERENCES (labeled) | GAPS | RECOMMENDATION
|
|
23
|
+
|
|
24
|
+
Persistence: after producing the output, run `construct knowledge add --source=research --slug=<topic-slug> --topic="<one-line topic>" --confidence=<confirmed|inferred|weak>` and pass the FINDINGS+INFERENCES+GAPS+RECOMMENDATION block on stdin. The store writes a frontmatter-stamped markdown file under `.cx/knowledge/external/research/` and indexes it for future hybrid search. Pass `--source-url=<url>` repeatedly for each cited source (required when confidence=confirmed).
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/understand/this.md
|
|
2
|
+
commands/understand/this.md (Explore and understand something) trace execution paths, map structure, gather evidence
|
|
3
3
|
|
|
4
|
-
Explore and understand something
|
|
4
|
+
Explore and understand something: trace execution paths, map structure, gather evidence
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Explore and understand something
|
|
7
|
+
description: Explore and understand something: trace execution paths, map structure, gather evidence
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Explore and explain: $ARGUMENTS
|
|
11
11
|
|
|
12
|
-
Gather evidence
|
|
12
|
+
Gather evidence: do not propose solutions unless asked.
|
|
13
13
|
|
|
14
14
|
1. Search for the specific symbol, pattern, or behavior
|
|
15
15
|
2. Trace the execution path from entry point to outcome
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/understand/why.md
|
|
2
|
+
commands/understand/why.md (Investigate a failure) why is this broken, what is the root cause
|
|
3
3
|
|
|
4
|
-
Investigate a failure
|
|
4
|
+
Investigate a failure: why is this broken, what is the root cause
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Investigate a failure
|
|
7
|
+
description: Investigate a failure: why is this broken, what is the root cause
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct. Investigate: $ARGUMENTS
|
|
11
11
|
|
|
12
|
-
1. Capture
|
|
13
|
-
2. Reproduce
|
|
14
|
-
3. Isolate
|
|
15
|
-
4. Trace
|
|
16
|
-
5. Root cause
|
|
12
|
+
1. Capture: exact error, stack trace, reproduction steps
|
|
13
|
+
2. Reproduce: confirm you can trigger the failure consistently
|
|
14
|
+
3. Isolate: narrow to the smallest failing case
|
|
15
|
+
4. Trace: follow data and control flow to where the invariant breaks
|
|
16
|
+
5. Root cause: the one upstream cause that, if fixed, prevents the failure
|
|
17
17
|
|
|
18
18
|
Do not plan a fix until root cause is confirmed. If you cannot reproduce, say so immediately and ask for more context.
|
package/commands/work/clean.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/work/clean.md
|
|
2
|
+
commands/work/clean.md (Remove AI-generated code smells) verbosity, hedging, dead comments, generic names
|
|
3
3
|
|
|
4
|
-
Remove AI-generated code smells
|
|
4
|
+
Remove AI-generated code smells: verbosity, hedging, dead comments, generic names
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Remove AI-generated code smells
|
|
7
|
+
description: Remove AI-generated code smells: verbosity, hedging, dead comments, generic names
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are cx-reviewer identifying AI slop in: $ARGUMENTS
|
|
@@ -13,17 +13,17 @@ Then dispatch cx-engineer to apply the fixes.
|
|
|
13
13
|
|
|
14
14
|
## What to remove
|
|
15
15
|
|
|
16
|
-
1. **Obvious comments
|
|
17
|
-
2. **Hedging names**
|
|
18
|
-
3. **Debug artifacts
|
|
19
|
-
4. **Unnecessary wrapping
|
|
20
|
-
5. **Dead TODO blocks
|
|
21
|
-
6. **Restated types
|
|
22
|
-
7. **Over-specified assertions
|
|
23
|
-
8. **Swallowed errors
|
|
24
|
-
9. **Single-use abstractions
|
|
25
|
-
10. **Padded error messages
|
|
26
|
-
11. **Boilerplate docstrings
|
|
16
|
+
1. **Obvious comments**: `// This function calculates X` when the function is named `calculateX`
|
|
17
|
+
2. **Hedging names** (`result`, `data`, `temp`, `item`, `obj`, `value`, `response`) rename to reflect what they actually contain
|
|
18
|
+
3. **Debug artifacts**: `console.log`, `print`, `debugger`, leftover logging statements
|
|
19
|
+
4. **Unnecessary wrapping**: functions that do nothing except call one other function with no transformation
|
|
20
|
+
5. **Dead TODO blocks**: `// TODO: remove later`, `// FIXME: clean this up`, stale commented-out code
|
|
21
|
+
6. **Restated types**: `const userArray: User[] = []` → name already says it's a list, annotation adds nothing
|
|
22
|
+
7. **Over-specified assertions**: test assertions that restate the implementation rather than the behavior
|
|
23
|
+
8. **Swallowed errors**: `catch (e) {}` or `catch (e) { return null }` with no context or logging
|
|
24
|
+
9. **Single-use abstractions**: helper created for one call site that could just be inline
|
|
25
|
+
10. **Padded error messages**: `"An error occurred while attempting to process your request"` → `"Failed to process request"`
|
|
26
|
+
11. **Boilerplate docstrings**: JSDoc/docstrings that only restate the parameter names
|
|
27
27
|
|
|
28
28
|
## Output
|
|
29
29
|
|
package/commands/work/drive.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/work/drive.md
|
|
2
|
+
commands/work/drive.md (Full autonomous execution) explore, plan, implement, verify, loop until done
|
|
3
3
|
|
|
4
|
-
Full autonomous execution
|
|
4
|
+
Full autonomous execution: explore, plan, implement, verify, loop until done
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Full autonomous execution
|
|
7
|
+
description: Full autonomous execution: explore, plan, implement, verify, loop until done
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are Construct in drive mode. Execute $ARGUMENTS fully and autonomously without stopping for confirmation.
|
|
@@ -16,11 +16,11 @@ This command turns off planning confirmation, but it does not override validatio
|
|
|
16
16
|
|
|
17
17
|
## Execution Loop
|
|
18
18
|
|
|
19
|
-
**Step 1
|
|
19
|
+
**Step 1: Explore** (cx-explorer)
|
|
20
20
|
Map the codebase areas relevant to the task. Identify entry points, dependencies, and affected modules.
|
|
21
21
|
|
|
22
|
-
**Step 2
|
|
23
|
-
Produce a structured plan using the canonical Construct plan format (see `commands/plan/feature.md`
|
|
22
|
+
**Step 2: Plan** (cx-architect)
|
|
23
|
+
Produce a structured plan using the canonical Construct plan format (see `commands/plan/feature.md` (`### T{N}) Title` sections with fielded sub-bullets). Save it to `.cx/plans/{slug}-plan.md`, align `plan.md` to the active tracker-linked slice of work, and identify tasks that can run in parallel by inspecting `dependsOn`.
|
|
24
24
|
|
|
25
25
|
Initialize `.cx/drive-state.json`:
|
|
26
26
|
```json
|
|
@@ -45,16 +45,16 @@ As acceptance criteria are verified, record evidence:
|
|
|
45
45
|
}
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
**Step 3
|
|
48
|
+
**Step 3: Implement** (cx-engineer)
|
|
49
49
|
Execute tasks. Run independent tasks in parallel where possible. One agent per file to avoid conflicts.
|
|
50
50
|
|
|
51
|
-
**Step 4
|
|
51
|
+
**Step 4: Validate** (cx-reviewer + cx-security in parallel)
|
|
52
52
|
Review all changes. Flag CRITICAL or HIGH findings. Security reviews all auth, input handling, and data paths.
|
|
53
53
|
|
|
54
|
-
**Step 5
|
|
54
|
+
**Step 5: Loop**
|
|
55
55
|
If any acceptance criterion is unmet or any CRITICAL/HIGH finding exists, return to Step 3 and address it.
|
|
56
56
|
|
|
57
|
-
**Step 6
|
|
57
|
+
**Step 6: Done**
|
|
58
58
|
Only stop when ALL of the following are true:
|
|
59
59
|
- Every workflow task is `done`
|
|
60
60
|
- Every acceptance criterion has verification evidence
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
commands/work/optimize-prompts.md
|
|
2
|
+
commands/work/optimize-prompts.md: Prompt optimization command.
|
|
3
3
|
|
|
4
4
|
Runs the closed-loop prompt optimization workflow using telemetry trace data.
|
|
5
5
|
-->
|
|
6
6
|
---
|
|
7
|
-
description: Closed-loop prompt optimization
|
|
7
|
+
description: Closed-loop prompt optimization: read telemetry traces, diagnose failures, push improved version to staging
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
You are cx-trace-reviewer running a prompt optimization cycle for: $ARGUMENTS
|
|
@@ -18,13 +18,13 @@ Optimize prompt fragments and overlays, not the runtime orchestration policy. If
|
|
|
18
18
|
|
|
19
19
|
## Required steps
|
|
20
20
|
|
|
21
|
-
1. **Read current prompt
|
|
22
|
-
2. **Fetch recent scores
|
|
23
|
-
3. **Skip agents with fewer than 20 scored traces
|
|
24
|
-
4. **Diagnose failure patterns
|
|
25
|
-
5. **Generate improved prompt
|
|
26
|
-
6. **Push to staging
|
|
27
|
-
7. **Report
|
|
21
|
+
1. **Read current prompt**: read the agent's prompt from `agents/registry.json` (or its `promptFile`)
|
|
22
|
+
2. **Fetch recent scores**: GET `{CONSTRUCT_TELEMETRY_URL}/api/public/scores?name=quality&limit=200`
|
|
23
|
+
3. **Skip agents with fewer than 20 scored traces**: insufficient signal; note them but do not optimize
|
|
24
|
+
4. **Diagnose failure patterns**: analyze low-scoring traces, identify top 3 recurring patterns
|
|
25
|
+
5. **Generate improved prompt**: targeted edits that address failures without breaking high-scoring behaviors
|
|
26
|
+
6. **Push to staging**: update the prompt in a staging marker comment; log the candidate via `cx_trace` with `promptVersion: staging-{timestamp}`
|
|
27
|
+
7. **Report**: for each agent: before/after median score estimate, patterns addressed, staging version note
|
|
28
28
|
|
|
29
29
|
## Output
|
|
30
30
|
|