@geraldmaron/construct 1.0.5 → 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 +8 -4
- 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 +235 -21
- 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/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 +8 -3
- package/lib/cli-commands.mjs +2 -2
- package/lib/flavors/loader.mjs +1 -1
- package/lib/knowledge/graph.mjs +213 -0
- package/lib/mcp/server.mjs +187 -1
- package/lib/mcp/tools/profile.mjs +270 -0
- package/package.json +1 -1
- package/platforms/claude/CLAUDE.md +6 -6
- 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/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/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/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/rfc.md +1 -1
- package/templates/docs/strategy.md +1 -1
package/templates/docs/prd.md
CHANGED
|
@@ -12,7 +12,7 @@ process, template, evaluation loop, or operating model.
|
|
|
12
12
|
Before drafting, read rules/common/framing.md.
|
|
13
13
|
|
|
14
14
|
Owning specialist: cx-product-manager (see rules/common/doc-ownership.md).
|
|
15
|
-
Construct must route PRD authoring to cx-product-manager rather than drafting directly
|
|
15
|
+
Construct must route PRD authoring to cx-product-manager rather than drafting directly.
|
|
16
16
|
doing so is how requirements traceability, user grounding, and external research fire.
|
|
17
17
|
|
|
18
18
|
Write with a balance of short paragraphs, tables, and bullets. Bullets are for scans,
|
|
@@ -67,7 +67,7 @@ Examples:
|
|
|
67
67
|
## Outcome
|
|
68
68
|
<!--
|
|
69
69
|
What is concretely different for users, the business, or the system once this
|
|
70
|
-
ships and is adopted. This is the observable end state
|
|
70
|
+
ships and is adopted. This is the observable end state: written from the
|
|
71
71
|
user's perspective when possible. The acceptance criteria below should be the
|
|
72
72
|
falsifiable evidence that this outcome was achieved.
|
|
73
73
|
|
|
@@ -80,13 +80,13 @@ section and see the delta in plain language.
|
|
|
80
80
|
| | Description |
|
|
81
81
|
|---|---|
|
|
82
82
|
| **In scope** | <what this PRD covers and commits to ship> |
|
|
83
|
-
| **Out of scope** | <related work explicitly deferred
|
|
83
|
+
| **Out of scope** | <related work explicitly deferred: name the reason> |
|
|
84
84
|
| **Adjacent (deferred)** | <work that's a natural follow-up but not in this PRD> |
|
|
85
85
|
|
|
86
86
|
<!--
|
|
87
87
|
Be specific. "Authentication" is too vague; "OAuth login for the web dashboard,
|
|
88
88
|
not for the CLI" is right. The Out of scope list is a tool for protecting
|
|
89
|
-
schedule and reviewer attention
|
|
89
|
+
schedule and reviewer attention: use it.
|
|
90
90
|
-->
|
|
91
91
|
|
|
92
92
|
## Phases
|
|
@@ -94,7 +94,7 @@ schedule and reviewer attention — use it.
|
|
|
94
94
|
<!--
|
|
95
95
|
Phases are how this work ships, not how it's organized internally. Each phase
|
|
96
96
|
is independently shippable and provides observable user value (or a clearly
|
|
97
|
-
defined platform capability). Avoid "phase 1: backend, phase 2: frontend"
|
|
97
|
+
defined platform capability). Avoid "phase 1: backend, phase 2: frontend".
|
|
98
98
|
that's a task list, not a phasing.
|
|
99
99
|
|
|
100
100
|
Each phase below holds its own goal, status, functional requirements (FR),
|
|
@@ -108,53 +108,53 @@ NFR categories to consider: performance, reliability, security, privacy,
|
|
|
108
108
|
accessibility, observability, compliance, cost. Numeric targets where possible.
|
|
109
109
|
-->
|
|
110
110
|
|
|
111
|
-
### Phase 1
|
|
111
|
+
### Phase 1: <name>
|
|
112
112
|
|
|
113
113
|
- **Goal**: <what this phase delivers>
|
|
114
114
|
- **Status**: not started
|
|
115
115
|
|
|
116
116
|
**Functional**
|
|
117
117
|
|
|
118
|
-
- **FR-1.1
|
|
118
|
+
- **FR-1.1**: <imperative statement of what the system must do>
|
|
119
119
|
- *Acceptance*: <observable, falsifiable condition a reviewer can check without asking the author>
|
|
120
|
-
- **FR-1.2
|
|
120
|
+
- **FR-1.2**: <...>
|
|
121
121
|
- *Acceptance*: <...>
|
|
122
122
|
|
|
123
123
|
**Non-functional**
|
|
124
124
|
|
|
125
|
-
- **NFR-1.1
|
|
125
|
+
- **NFR-1.1**: <category>: <target with number>
|
|
126
126
|
- *Acceptance*: <how this is measured and what counts as pass>
|
|
127
127
|
|
|
128
|
-
### Phase 2
|
|
128
|
+
### Phase 2: <name>
|
|
129
129
|
|
|
130
130
|
- **Goal**: <what this phase delivers>
|
|
131
131
|
- **Status**: not started
|
|
132
132
|
|
|
133
133
|
**Functional**
|
|
134
134
|
|
|
135
|
-
- **FR-2.1
|
|
135
|
+
- **FR-2.1**: <...>
|
|
136
136
|
- *Acceptance*: <...>
|
|
137
|
-
- **FR-2.2
|
|
137
|
+
- **FR-2.2**: <...>
|
|
138
138
|
- *Acceptance*: <...>
|
|
139
139
|
|
|
140
140
|
**Non-functional**
|
|
141
141
|
|
|
142
|
-
- **NFR-2.1
|
|
142
|
+
- **NFR-2.1**: <category>: <target>
|
|
143
143
|
- *Acceptance*: <...>
|
|
144
144
|
|
|
145
|
-
### Phase 3
|
|
145
|
+
### Phase 3: <name>
|
|
146
146
|
|
|
147
147
|
- **Goal**: <what this phase delivers>
|
|
148
148
|
- **Status**: not started
|
|
149
149
|
|
|
150
150
|
**Functional**
|
|
151
151
|
|
|
152
|
-
- **FR-3.1
|
|
152
|
+
- **FR-3.1**: <...>
|
|
153
153
|
- *Acceptance*: <...>
|
|
154
154
|
|
|
155
155
|
**Non-functional**
|
|
156
156
|
|
|
157
|
-
- **NFR-3.1
|
|
157
|
+
- **NFR-3.1**: <category>: <target>
|
|
158
158
|
- *Acceptance*: <...>
|
|
159
159
|
|
|
160
160
|
## Success metrics
|
|
@@ -165,7 +165,7 @@ acceptance criteria. Leading vs. lagging. Avoid vanity metrics.
|
|
|
165
165
|
|
|
166
166
|
## Constraints
|
|
167
167
|
<!--
|
|
168
|
-
Budget, timeline, platform, team, legal, technical debt
|
|
168
|
+
Budget, timeline, platform, team, legal, technical debt: anything that shapes
|
|
169
169
|
the solution and isn't a requirement.
|
|
170
170
|
-->
|
|
171
171
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## Question
|
|
10
10
|
|
|
11
|
-
<!-- One specific, falsifiable question this research must answer. Not a topic
|
|
11
|
+
<!-- One specific, falsifiable question this research must answer. Not a topic: a question with a determinate answer. -->
|
|
12
12
|
|
|
13
13
|
## Method
|
|
14
14
|
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
<!-- Class definitions:
|
|
31
31
|
- primary: peer-reviewed papers, official docs at exact version, raw source code, standards, company announcements, SEC filings
|
|
32
32
|
- secondary: changelogs, migration guides, tracked issues, maintainer posts, conference talks by authors
|
|
33
|
-
- tertiary: blog posts, forums, Q&A, analyst summaries
|
|
33
|
+
- tertiary: blog posts, forums, Q&A, analyst summaries: for discovery only, never as evidence
|
|
34
34
|
Mark Verified = yes only after fetching the URL and confirming content matches. -->
|
|
35
35
|
|
|
36
36
|
## Findings
|
|
37
37
|
|
|
38
38
|
<!-- For each finding, state separately:
|
|
39
|
-
- Observation: what the source(s) actually say
|
|
40
|
-
- Inference: what is concluded from the observation
|
|
39
|
+
- Observation: what the source(s) actually say: direct, traceable
|
|
40
|
+
- Inference: what is concluded from the observation: labeled as inference
|
|
41
41
|
- Confidence: high / medium / low, with a one-line reason
|
|
42
42
|
- Sources: reference the Source table row(s) -->
|
|
43
43
|
|
|
44
|
-
### Finding 1
|
|
44
|
+
### Finding 1: {short label}
|
|
45
45
|
|
|
46
46
|
**Observation**: <!-- what the sources say -->
|
|
47
|
-
**Inference**: <!-- what is concluded
|
|
48
|
-
**Confidence**: high / medium / low
|
|
47
|
+
**Inference**: <!-- what is concluded: labeled as inference -->
|
|
48
|
+
**Confidence**: high / medium / low: {reason}
|
|
49
49
|
**Sources**: {source title(s) from table}
|
|
50
50
|
|
|
51
|
-
### Finding N
|
|
51
|
+
### Finding N: {short label}
|
|
52
52
|
|
|
53
53
|
<!-- repeat as needed -->
|
|
54
54
|
|
package/templates/docs/rfc.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<!--
|
|
10
10
|
Use this for significant technical or architectural proposals that need structured
|
|
11
11
|
review before implementation begins. An RFC is not an ADR (which records a decision
|
|
12
|
-
already made)
|
|
12
|
+
already made): it is the proposal that leads to one.
|
|
13
13
|
|
|
14
14
|
Use rfc-platform.md instead when the proposal introduces breaking changes to a
|
|
15
15
|
contract, API, schema, or protocol consumed by other systems.
|
|
@@ -5,7 +5,7 @@ horizon: "6–12 months"
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<!--
|
|
8
|
-
templates/docs/strategy.md
|
|
8
|
+
templates/docs/strategy.md: Template for product strategy documents.
|
|
9
9
|
Use for both user-product strategy and Construct's own strategy (.cx/strategy.md).
|
|
10
10
|
Canonical store: ~/.cx/strategy.md (user-global) or .cx/strategy.md (project-local, committed).
|
|
11
11
|
Owning workflow: skills/docs/strategy-workflow.md.
|