engineering-intelligence 1.0.0 → 1.1.0
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 +23 -2
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +52 -11
- package/dist/adapters/index.js.map +1 -1
- package/dist/templates.d.ts +2 -2
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +35 -0
- package/dist/templates.js.map +1 -1
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +2 -1
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/canonical/agents/adversary.md +19 -0
- package/templates/canonical/agents/compliance-auditor.md +20 -0
- package/templates/canonical/agents/database-administrator.md +21 -0
- package/templates/canonical/agents/documentation-writer.md +19 -0
- package/templates/canonical/agents/engineering-orchestrator.md +30 -8
- package/templates/canonical/agents/performance-analyst.md +19 -0
- package/templates/canonical/agents/product-analyst.md +5 -1
- package/templates/canonical/agents/release-engineer.md +20 -0
- package/templates/canonical/agents/security-officer.md +21 -0
- package/templates/canonical/agents/site-reliability-engineer.md +19 -0
- package/templates/canonical/agents/system-architect.md +27 -0
- package/templates/canonical/agents/test-engineer.md +20 -0
- package/templates/canonical/rules/engineering-intelligence.md +45 -4
- package/templates/canonical/skills/aidlc-lifecycle-engine/SKILL.md +141 -0
- package/templates/canonical/skills/engineering-intelligence-skill/SKILL.md +26 -0
- package/templates/canonical/skills/environmental-backpressure-engine/SKILL.md +50 -0
- package/templates/canonical/skills/mcp-security-governor/SKILL.md +51 -0
- package/templates/canonical/skills/nfr-adr-governor/SKILL.md +83 -0
- package/templates/canonical/skills/operations-readiness-engine/SKILL.md +54 -0
- package/templates/canonical/skills/requirement-scoper/SKILL.md +17 -3
- package/templates/canonical/workflows/engineering-intelligence.md +12 -8
- package/templates/canonical/workflows/initialize-engineering-intelligence.md +3 -1
- package/templates/canonical/workflows/scope-requirement.md +5 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: system-architect
|
|
3
|
+
description: Designs component boundaries, API contracts, NFR responses, and ADRs for AI-DLC construction.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# System Architect
|
|
7
|
+
|
|
8
|
+
Owns architecture during AI-DLC Inception and Construction.
|
|
9
|
+
|
|
10
|
+
## Responsibilities
|
|
11
|
+
|
|
12
|
+
- Define logical components, boundaries, contracts, and dependency direction
|
|
13
|
+
- Use `nfr-adr-governor` for measurable NFRs and ADR lifecycle management
|
|
14
|
+
- Keep architecture aligned with `.engineering-intelligence/graph/` and existing memory
|
|
15
|
+
- Identify when design-first workflow is required
|
|
16
|
+
|
|
17
|
+
## Outputs
|
|
18
|
+
|
|
19
|
+
- `.engineering-intelligence/aidlc/construction/<unit>/functional-design/`
|
|
20
|
+
- `.engineering-intelligence/aidlc/construction/<unit>/nfr-design/`
|
|
21
|
+
- ADR files under `decision-records/`
|
|
22
|
+
|
|
23
|
+
## Gates
|
|
24
|
+
|
|
25
|
+
- Architecture claims cite repository evidence or are marked unknown
|
|
26
|
+
- High-risk alternatives are captured in ADRs
|
|
27
|
+
- API and data boundaries are explicit before code generation
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-engineer
|
|
3
|
+
description: Designs and executes unit, integration, contract, regression, performance, and negative-path tests for AI-DLC changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Test Engineer
|
|
7
|
+
|
|
8
|
+
Owns objective completion criteria and validation evidence.
|
|
9
|
+
|
|
10
|
+
## Responsibilities
|
|
11
|
+
|
|
12
|
+
- Convert requirements into executable assertions
|
|
13
|
+
- Add regression tests for bugfixes
|
|
14
|
+
- Add contract and negative-path tests for boundary changes
|
|
15
|
+
- Use `environmental-backpressure-engine` to run and record checks
|
|
16
|
+
|
|
17
|
+
## Outputs
|
|
18
|
+
|
|
19
|
+
- Test plan in the active AI-DLC unit
|
|
20
|
+
- Build and test summary with actual command results
|
|
@@ -4,6 +4,38 @@
|
|
|
4
4
|
|
|
5
5
|
When `knowledge-base/` exists, consult the relevant documents, `.engineering-intelligence/context/`, and `.engineering-intelligence/graph/` before non-trivial project edits.
|
|
6
6
|
|
|
7
|
+
When `.engineering-intelligence/aidlc/` exists, also consult `aidlc-state.md`, `execution-plan.md`, `open-questions.md`, and the active construction unit before edits.
|
|
8
|
+
|
|
9
|
+
## AI-DLC Operating Model
|
|
10
|
+
|
|
11
|
+
Use the AI-Driven Development Lifecycle inside the existing Engineering Intelligence workflows for non-trivial work. Do not fork work into a separate lifecycle; merge AI-DLC with Agile delivery artifacts.
|
|
12
|
+
|
|
13
|
+
| Phase | Purpose | Required Outputs |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| Discovery | Capture business intent and technical environment | `.engineering-intelligence/aidlc/discovery/vision.md`, `technical-environment.md`, `open-questions.md` |
|
|
16
|
+
| Inception | Detect workspace, reverse engineer brownfield systems, validate requirements, plan workflow | `aidlc-state.md`, `execution-plan.md`, `inception/requirements.md`, Agile backlog/story/acceptance artifacts, reverse-engineering docs when brownfield |
|
|
17
|
+
| Construction | Design and implement per independent unit | `construction/<unit>/`, `cross-unit-discoveries.md`, build/test summary |
|
|
18
|
+
| Operations | Prepare deployment, observability, rollback, runbooks | `operations/operations-readiness.md`, MCP/security review when relevant |
|
|
19
|
+
|
|
20
|
+
Select the delivery mode inside `engineering-intelligence`: standard Agile delivery, adversarial delivery, TDD delivery, design-first delivery, or hypothesis debugging.
|
|
21
|
+
|
|
22
|
+
Maintain these Agile artifacts when product work is in scope:
|
|
23
|
+
|
|
24
|
+
| Path | Purpose |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `.engineering-intelligence/aidlc/agile/product-backlog.md` | Epics, stories, priorities, dependencies, status |
|
|
27
|
+
| `.engineering-intelligence/aidlc/agile/sprint-plan.md` | Sprint goal, selected stories, risks, commitments |
|
|
28
|
+
| `.engineering-intelligence/aidlc/agile/acceptance-criteria.md` | Story-level acceptance criteria mapped to tests |
|
|
29
|
+
| `.engineering-intelligence/aidlc/agile/definition-of-ready.md` | Gate before construction starts |
|
|
30
|
+
| `.engineering-intelligence/aidlc/agile/definition-of-done.md` | Gate before completion |
|
|
31
|
+
| `.engineering-intelligence/aidlc/agile/retrospective.md` | Lessons and process improvements |
|
|
32
|
+
|
|
33
|
+
End AI-DLC-enabled workflow responses with:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
AI-DLC: <phase> -> <stage> -> <status>
|
|
37
|
+
```
|
|
38
|
+
|
|
7
39
|
## Engineering Change Protocol
|
|
8
40
|
|
|
9
41
|
For every engineering change, follow this sequence:
|
|
@@ -11,10 +43,11 @@ For every engineering change, follow this sequence:
|
|
|
11
43
|
| Step | Action | Output |
|
|
12
44
|
|---|---|---|
|
|
13
45
|
| 1 | Write impact report before editing | `.engineering-intelligence/reports/IMP-XXX-*.md` |
|
|
14
|
-
| 2 |
|
|
15
|
-
| 3 |
|
|
16
|
-
| 4 |
|
|
17
|
-
| 5 |
|
|
46
|
+
| 2 | Update AI-DLC plan/state when the change is non-trivial | `.engineering-intelligence/aidlc/execution-plan.md`, `aidlc-state.md` |
|
|
47
|
+
| 3 | Implement code changes and tests | Modified source and test files |
|
|
48
|
+
| 4 | Validate honestly with environmental backpressure — report unrun checks | Test results, lint results, build/test summary |
|
|
49
|
+
| 5 | Incrementally update affected intelligence and graph artifacts | Updated knowledge/memory/context/graph/aidlc |
|
|
50
|
+
| 6 | Record completed work | `.changes/CHG-XXX-*.md` |
|
|
18
51
|
|
|
19
52
|
## Read-Only Workflows
|
|
20
53
|
|
|
@@ -37,6 +70,7 @@ Use these as the canonical project-intelligence paths — never invent alternati
|
|
|
37
70
|
|---|---|
|
|
38
71
|
| `knowledge-base/` | Evidence-based project documentation |
|
|
39
72
|
| `.engineering-intelligence/memory/` | Durable decisions, rules, patterns |
|
|
73
|
+
| `.engineering-intelligence/aidlc/` | AI-DLC durable lifecycle state, plans, audit, unit artifacts, operations readiness |
|
|
40
74
|
| `.engineering-intelligence/context/` | Compact AI navigation maps |
|
|
41
75
|
| `.engineering-intelligence/events/` | Change-event guidance |
|
|
42
76
|
| `.engineering-intelligence/graph/` | Architecture graph JSON + Mermaid maps |
|
|
@@ -49,3 +83,10 @@ Use these as the canonical project-intelligence paths — never invent alternati
|
|
|
49
83
|
- Back every material claim with a file path reference
|
|
50
84
|
- Mark uncertainty explicitly — silence is worse than "unknown"
|
|
51
85
|
- Use `**Not detected**` for absent features, not omission
|
|
86
|
+
|
|
87
|
+
## Safety And Governance
|
|
88
|
+
|
|
89
|
+
- Use measurable NFRs for latency, reliability, security, compliance, data, and compatibility targets.
|
|
90
|
+
- Create ADRs only when real alternatives were considered; accepted ADRs are immutable except supersession links.
|
|
91
|
+
- Require explicit human approval before destructive actions, production deployments, merges, irreversible migrations, or broad permission grants.
|
|
92
|
+
- For MCP or external tool execution, prefer tool-level permissions, schema pinning, sandboxed execution, and raw-parameter approval for destructive operations.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aidlc-lifecycle-engine
|
|
3
|
+
description: Runs the adaptive AI-DLC lifecycle with Discovery, Inception, Construction, Operations, durable artifacts, hatted agents, and objective completion gates.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# AI-DLC Lifecycle Engine
|
|
8
|
+
|
|
9
|
+
Use this skill inside the existing Engineering Intelligence workflows. It is not a separate command family. It turns Agile intent into an adaptive, artifact-driven delivery path while preserving familiar Agile concepts: vision, backlog, user stories, acceptance criteria, sprint planning, implementation, review, release readiness, and retrospective learning.
|
|
10
|
+
|
|
11
|
+
## Runtime Artifacts
|
|
12
|
+
|
|
13
|
+
Use `.engineering-intelligence/aidlc/` as the canonical AI-DLC root:
|
|
14
|
+
|
|
15
|
+
| Path | Purpose |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `.engineering-intelligence/aidlc/aidlc-state.md` | Active phase, stage, workflow, hat, unit, and completion status |
|
|
18
|
+
| `.engineering-intelligence/aidlc/audit.md` | Append-only chronological log of decisions, user answers, tool checks, and transitions |
|
|
19
|
+
| `.engineering-intelligence/aidlc/open-questions.md` | Unresolved ambiguities and owner/status |
|
|
20
|
+
| `.engineering-intelligence/aidlc/execution-plan.md` | Adaptive stage plan with mandatory/conditional/skipped stages |
|
|
21
|
+
| `.engineering-intelligence/aidlc/discovery/vision.md` | Business objectives, personas, value, success metrics |
|
|
22
|
+
| `.engineering-intelligence/aidlc/discovery/technical-environment.md` | Runtime, deployment, integrations, data stores, auth, constraints |
|
|
23
|
+
| `.engineering-intelligence/aidlc/agile/product-backlog.md` | Epics, stories, priorities, dependencies, and status |
|
|
24
|
+
| `.engineering-intelligence/aidlc/agile/sprint-plan.md` | Active sprint goal, selected stories, capacity, risks, and commitments |
|
|
25
|
+
| `.engineering-intelligence/aidlc/agile/acceptance-criteria.md` | Story-level acceptance criteria expressed as executable validation targets |
|
|
26
|
+
| `.engineering-intelligence/aidlc/agile/definition-of-ready.md` | Readiness checklist before construction |
|
|
27
|
+
| `.engineering-intelligence/aidlc/agile/definition-of-done.md` | Completion checklist after validation and sync |
|
|
28
|
+
| `.engineering-intelligence/aidlc/agile/retrospective.md` | Lessons, process improvements, recurring risks, and follow-ups |
|
|
29
|
+
| `.engineering-intelligence/aidlc/inception/requirements.md` | Validated functional requirements and edge cases |
|
|
30
|
+
| `.engineering-intelligence/aidlc/inception/reverse-engineering/` | Brownfield architecture, API, code structure, component inventory, technology stack |
|
|
31
|
+
| `.engineering-intelligence/aidlc/construction/cross-unit-discoveries.md` | Shared discoveries from parallel or sequential units |
|
|
32
|
+
| `.engineering-intelligence/aidlc/construction/<unit>/` | Unit functional design, NFR design, ADRs, code plan, build/test evidence |
|
|
33
|
+
| `.engineering-intelligence/aidlc/operations/` | Deployment readiness, observability, runbooks, rollback notes |
|
|
34
|
+
|
|
35
|
+
These AI-DLC files complement `knowledge-base/`, `.engineering-intelligence/memory/`, `.engineering-intelligence/context/`, `.engineering-intelligence/graph/`, `.engineering-intelligence/reports/`, and `.changes/`.
|
|
36
|
+
|
|
37
|
+
## Embedded Agile + AI-DLC Model
|
|
38
|
+
|
|
39
|
+
Map Agile to AI-DLC this way:
|
|
40
|
+
|
|
41
|
+
| Agile Concept | AI-DLC Phase | Artifact |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| Product vision | Discovery | `discovery/vision.md` |
|
|
44
|
+
| Product backlog | Discovery / Inception | `agile/product-backlog.md` |
|
|
45
|
+
| User stories | Inception | `inception/requirements.md`, `agile/product-backlog.md` |
|
|
46
|
+
| Acceptance criteria | Inception / Construction | `agile/acceptance-criteria.md`, tests |
|
|
47
|
+
| Sprint planning | Inception | `agile/sprint-plan.md`, `execution-plan.md` |
|
|
48
|
+
| Development | Construction | `construction/<unit>/` |
|
|
49
|
+
| Daily inspection | Construction | `aidlc-state.md`, `audit.md`, `cross-unit-discoveries.md` |
|
|
50
|
+
| Sprint review | Construction / Operations | validation summary, review report |
|
|
51
|
+
| Release | Operations | `operations/operations-readiness.md` |
|
|
52
|
+
| Retrospective | Operations | `agile/retrospective.md` |
|
|
53
|
+
|
|
54
|
+
## Adaptive Phase Model
|
|
55
|
+
|
|
56
|
+
### 0. Discovery
|
|
57
|
+
|
|
58
|
+
Use when project intent, deployment environment, ownership, or constraints are unclear.
|
|
59
|
+
|
|
60
|
+
Outputs:
|
|
61
|
+
- `discovery/vision.md`
|
|
62
|
+
- `discovery/technical-environment.md`
|
|
63
|
+
- `open-questions.md`
|
|
64
|
+
|
|
65
|
+
Ask role-aware questions. For multiple-choice questions in Markdown, put a blank line between options so strict CommonMark renderers keep options readable. Convert answers into backlog items, user stories, acceptance criteria, and open questions.
|
|
66
|
+
|
|
67
|
+
### 1. Inception
|
|
68
|
+
|
|
69
|
+
Always run workspace detection. Classify the repository as `greenfield` or `brownfield`.
|
|
70
|
+
|
|
71
|
+
For brownfield systems, run reverse engineering and write:
|
|
72
|
+
- `business-overview.md`
|
|
73
|
+
- `architecture.md`
|
|
74
|
+
- `code-structure.md`
|
|
75
|
+
- `api-documentation.md`
|
|
76
|
+
- `component-inventory.md`
|
|
77
|
+
- `technology-stack.md`
|
|
78
|
+
|
|
79
|
+
Then compile validated requirements, backlog updates, acceptance criteria, sprint plan, and an adaptive `execution-plan.md`.
|
|
80
|
+
|
|
81
|
+
### 2. Construction
|
|
82
|
+
|
|
83
|
+
Execute per unit of work. Each unit may include:
|
|
84
|
+
- Functional design
|
|
85
|
+
- NFR requirements
|
|
86
|
+
- NFR design
|
|
87
|
+
- Infrastructure design
|
|
88
|
+
- Code generation plan
|
|
89
|
+
- Build and test summary
|
|
90
|
+
|
|
91
|
+
Before starting each unit, read `cross-unit-discoveries.md`. If new constraints appear, append finding, impact, and action taken.
|
|
92
|
+
|
|
93
|
+
### 3. Operations
|
|
94
|
+
|
|
95
|
+
Use when deployment, infrastructure, observability, or production readiness is in scope. Produce readiness evidence, rollback guidance, alert thresholds, and runbooks.
|
|
96
|
+
|
|
97
|
+
## Delivery Mode Selection
|
|
98
|
+
|
|
99
|
+
Within `/engineering-intelligence`, choose a delivery mode:
|
|
100
|
+
|
|
101
|
+
| Mode | Use When | Required Hats |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| Standard Agile Delivery | General feature, bugfix, refactor, or update | Product Analyst, System Architect, Component Builder, Test Engineer, Documentation Writer |
|
|
104
|
+
| Adversarial Delivery | Auth, payment, public API, data exposure, critical business rules | Security Officer, Adversary, Compliance Auditor, Test Engineer |
|
|
105
|
+
| TDD Delivery | High-reliability business logic or service contracts | Product Analyst, Test Engineer, Component Builder |
|
|
106
|
+
| Design-First Delivery | Major migrations, new architecture, data model redesign | System Architect, Database Administrator, Security Officer, Compliance Auditor |
|
|
107
|
+
| Hypothesis Debugging | Production bugs, regressions, memory leaks, trace failures | Orchestration Lead, Performance Analyst, SRE, Component Builder |
|
|
108
|
+
|
|
109
|
+
## Objective Completion Criteria
|
|
110
|
+
|
|
111
|
+
Each stage must end with binary evidence:
|
|
112
|
+
- Artifact exists at the expected path
|
|
113
|
+
- Story is Ready before implementation and Done before completion
|
|
114
|
+
- Unknowns are recorded or resolved
|
|
115
|
+
- Required tests, type checks, linters, scans, or build commands ran, failed, or were explicitly unavailable
|
|
116
|
+
- Human approval is recorded before irreversible actions
|
|
117
|
+
- Breadcrumb is updated in `aidlc-state.md`
|
|
118
|
+
|
|
119
|
+
## Environmental Backpressure
|
|
120
|
+
|
|
121
|
+
Use compilers, strict linters, type systems, test suites, security scanners, architecture checks, and local reproducer scripts as direct feedback. When a tool fails, analyze the raw diagnostic output, revise the implementation, and rerun the relevant check until the issue is resolved or a concrete blocker is logged.
|
|
122
|
+
|
|
123
|
+
## Progress Breadcrumb
|
|
124
|
+
|
|
125
|
+
End AI-DLC-enabled workflow responses with one compact status line:
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
AI-DLC: <phase> -> <stage> -> <status>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Quality Gates
|
|
132
|
+
|
|
133
|
+
- [ ] Discovery artifacts exist when initial intent or environment was ambiguous
|
|
134
|
+
- [ ] Backlog, stories, acceptance criteria, Definition of Ready, and Definition of Done are updated for product work
|
|
135
|
+
- [ ] Workspace is classified as greenfield or brownfield
|
|
136
|
+
- [ ] Brownfield reverse engineering exists before broad changes
|
|
137
|
+
- [ ] Requirements and execution plan are durable files
|
|
138
|
+
- [ ] Construction is split into explicit units
|
|
139
|
+
- [ ] Cross-unit discoveries are loaded and updated
|
|
140
|
+
- [ ] Validation uses environmental backpressure
|
|
141
|
+
- [ ] Operations readiness is addressed when deployment or production behavior changes
|
|
@@ -34,6 +34,7 @@ Classify the incoming request before starting:
|
|
|
34
34
|
|
|
35
35
|
Read these artifacts and identify relevant context:
|
|
36
36
|
- `knowledge-base/` — architecture, APIs, runtime flow relevant to the change
|
|
37
|
+
- `.engineering-intelligence/aidlc/` — active AI-DLC state, plan, audit, open questions, construction units
|
|
37
38
|
- `.engineering-intelligence/memory/` — decisions, constraints, patterns that apply
|
|
38
39
|
- `.engineering-intelligence/context/` — module map, critical paths, dangerous areas near the change
|
|
39
40
|
- `.engineering-intelligence/graph/` — dependency and service relationships
|
|
@@ -75,6 +76,20 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
75
76
|
|
|
76
77
|
### 3. Implement the Change
|
|
77
78
|
|
|
79
|
+
- Select the adaptive delivery mode inside the existing Engineering Intelligence workflow:
|
|
80
|
+
- Standard Agile delivery for normal feature, bugfix, update, and refactor work
|
|
81
|
+
- Adversarial delivery for auth, payment, public API, secrets, or compliance-sensitive work
|
|
82
|
+
- TDD delivery for high-reliability business rules and service contracts
|
|
83
|
+
- Design-first delivery for migrations, new architecture, and broad system boundaries
|
|
84
|
+
- Hypothesis debugging for unknown-cause defects
|
|
85
|
+
- Update Agile artifacts when product behavior is in scope:
|
|
86
|
+
- `.engineering-intelligence/aidlc/agile/product-backlog.md`
|
|
87
|
+
- `.engineering-intelligence/aidlc/agile/sprint-plan.md`
|
|
88
|
+
- `.engineering-intelligence/aidlc/agile/acceptance-criteria.md`
|
|
89
|
+
- `.engineering-intelligence/aidlc/agile/definition-of-ready.md`
|
|
90
|
+
- `.engineering-intelligence/aidlc/agile/definition-of-done.md`
|
|
91
|
+
- Update `.engineering-intelligence/aidlc/execution-plan.md` and `.engineering-intelligence/aidlc/aidlc-state.md`
|
|
92
|
+
- Split broad changes into construction units and keep `.engineering-intelligence/aidlc/construction/cross-unit-discoveries.md` current
|
|
78
93
|
- Edit only the files necessary for the request
|
|
79
94
|
- Follow existing coding patterns from `.engineering-intelligence/memory/coding-patterns.md`
|
|
80
95
|
- Read conventions from `knowledge-base/16-conventions.md` and `.engineering-intelligence/memory/coding-patterns.md` — match naming patterns, import style, error handling patterns, and code structure
|
|
@@ -85,6 +100,7 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
85
100
|
### 4. Add/Update Tests
|
|
86
101
|
|
|
87
102
|
- Add tests proportional to the change risk level
|
|
103
|
+
- Map each acceptance criterion to at least one automated test, manual verification step, or explicitly recorded unavailable check
|
|
88
104
|
- For `bugfix`: add a regression test reproducing the original issue
|
|
89
105
|
- For `feature`: add unit tests and integration tests for the new behavior
|
|
90
106
|
- For `architecture`/`security`: add boundary and negative-path tests
|
|
@@ -93,6 +109,8 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
93
109
|
### 5. Validate
|
|
94
110
|
|
|
95
111
|
- Run linters, type checks, and test suites available in the project
|
|
112
|
+
- Use environmental backpressure: analyze failed diagnostics, fix, and rerun the relevant command until it passes or a blocker is recorded
|
|
113
|
+
- Write `.engineering-intelligence/aidlc/construction/<unit>/build-and-test/build-and-test-summary.md` for non-trivial units
|
|
96
114
|
- **Never claim validation passed unless it actually ran and passed**
|
|
97
115
|
- Record partial or failed validation honestly
|
|
98
116
|
|
|
@@ -104,6 +122,8 @@ Use `incremental-sync-engine` to update only affected artifacts:
|
|
|
104
122
|
- Context maps if module/service topology changed
|
|
105
123
|
- Graph nodes/edges if dependencies or services changed
|
|
106
124
|
- Event guidance if API/schema/auth contracts changed
|
|
125
|
+
- AI-DLC lifecycle artifacts if state, plan, NFRs, ADRs, operations readiness, or unit discoveries changed
|
|
126
|
+
- Agile artifacts if backlog, story status, acceptance criteria, Ready/Done gates, or retrospective learning changed
|
|
107
127
|
|
|
108
128
|
### 7. Record Change
|
|
109
129
|
|
|
@@ -153,6 +173,7 @@ Summarize to the user:
|
|
|
153
173
|
- Affected systems and services
|
|
154
174
|
- Synchronized intelligence artifacts
|
|
155
175
|
- Unresolved risks or follow-ups
|
|
176
|
+
- Final AI-DLC breadcrumb: `AI-DLC: <phase> -> <stage> -> <status>`
|
|
156
177
|
|
|
157
178
|
## Quality Gates
|
|
158
179
|
|
|
@@ -160,6 +181,11 @@ Summarize to the user:
|
|
|
160
181
|
- [ ] All changed behavior has corresponding test coverage
|
|
161
182
|
- [ ] Validation was actually executed (not just claimed)
|
|
162
183
|
- [ ] Only affected intelligence artifacts were updated
|
|
184
|
+
- [ ] AI-DLC state, execution plan, and unit artifacts are current for non-trivial work
|
|
185
|
+
- [ ] Story meets Definition of Ready before implementation starts
|
|
186
|
+
- [ ] Story meets Definition of Done before final report
|
|
187
|
+
- [ ] Acceptance criteria are mapped to validation evidence
|
|
188
|
+
- [ ] Environmental backpressure was used for validation failures
|
|
163
189
|
- [ ] Change record references the correct impact report
|
|
164
190
|
- [ ] High-risk changes went through review gate
|
|
165
191
|
- [ ] Generated code follows detected project conventions (naming, imports, structure)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: environmental-backpressure-engine
|
|
3
|
+
description: Drives compiler, linter, type-check, test, security, and architecture feedback loops until objective validation passes or blockers are recorded.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Environmental Backpressure Engine
|
|
8
|
+
|
|
9
|
+
Use this skill whenever code is generated or modified. The environment, not subjective inspection alone, supplies the feedback loop.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. Detect available validation commands from package manifests, build files, CI config, and README instructions.
|
|
14
|
+
2. Prefer narrow checks first, then broaden:
|
|
15
|
+
- formatter or static syntax check
|
|
16
|
+
- type check or compile
|
|
17
|
+
- targeted tests
|
|
18
|
+
- full test suite
|
|
19
|
+
- linter
|
|
20
|
+
- security or architecture scanner when relevant
|
|
21
|
+
3. Run the smallest relevant command that can expose the current risk.
|
|
22
|
+
4. Capture raw diagnostics in the active unit's `build-and-test/` artifact.
|
|
23
|
+
5. Fix failures and rerun the relevant check.
|
|
24
|
+
6. Stop only when checks pass, are unavailable, or a blocker is recorded with evidence.
|
|
25
|
+
|
|
26
|
+
## Build And Test Summary
|
|
27
|
+
|
|
28
|
+
Write `.engineering-intelligence/aidlc/construction/<unit>/build-and-test/build-and-test-summary.md`:
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
# Build And Test Summary: <unit>
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
- `<command>`: <passed|failed|unavailable|skipped> — <why>
|
|
35
|
+
|
|
36
|
+
## Failures And Corrections
|
|
37
|
+
- <diagnostic summary> -> <fix applied> -> <rerun result>
|
|
38
|
+
|
|
39
|
+
## Coverage / Performance
|
|
40
|
+
- <available metrics or Not detected>
|
|
41
|
+
|
|
42
|
+
## Residual Risk
|
|
43
|
+
- <remaining risks, blockers, or manual verification>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Rules
|
|
47
|
+
|
|
48
|
+
- Never report validation as passed unless the command actually ran and passed.
|
|
49
|
+
- Do not hide failing output. Summarize it and keep enough detail for reproduction.
|
|
50
|
+
- Human review begins after local backpressure is exhausted, not before.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcp-security-governor
|
|
3
|
+
description: Reviews MCP tools and external execution surfaces for scoped authorization, schema integrity, sandboxing, and human approval gates.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# MCP Security Governor
|
|
8
|
+
|
|
9
|
+
Use this skill when a project configures MCP servers, external tool execution, CI/CD automation, database access, deployment tools, or any agent-callable side effect.
|
|
10
|
+
|
|
11
|
+
## Security Model
|
|
12
|
+
|
|
13
|
+
Check for defense in depth:
|
|
14
|
+
- OAuth 2.1 or equivalent modern authorization for remote servers
|
|
15
|
+
- PKCE for public clients where applicable
|
|
16
|
+
- Server metadata validation before authorization
|
|
17
|
+
- Tool-level permissions rather than server-level blanket permissions
|
|
18
|
+
- Explicit user approval for destructive or irreversible actions
|
|
19
|
+
- Tool schema hashing or pinning to detect schema drift
|
|
20
|
+
- Sandboxed local execution with workspace-scoped filesystem access
|
|
21
|
+
- Secrets kept out of prompts, logs, artifacts, and generated documentation
|
|
22
|
+
|
|
23
|
+
## MCP Review Artifact
|
|
24
|
+
|
|
25
|
+
Write `.engineering-intelligence/aidlc/operations/mcp-security-review.md`:
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
# MCP Security Review
|
|
29
|
+
|
|
30
|
+
## Configurations Reviewed
|
|
31
|
+
- <path or Not detected>
|
|
32
|
+
|
|
33
|
+
## Tool Inventory
|
|
34
|
+
| Server | Tool | Capability | Permission Scope | Destructive | Approval Required |
|
|
35
|
+
|---|---|---|---|---|---|
|
|
36
|
+
|
|
37
|
+
## Risks
|
|
38
|
+
- <risk, evidence, severity>
|
|
39
|
+
|
|
40
|
+
## Required Controls
|
|
41
|
+
- <control and implementation owner>
|
|
42
|
+
|
|
43
|
+
## Approval Boundaries
|
|
44
|
+
- <actions that must never run without human confirmation>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Rules
|
|
48
|
+
|
|
49
|
+
- Do not grant a tool broader filesystem, network, or deployment permission than the task requires.
|
|
50
|
+
- Treat changed tool definitions as untrusted until revalidated.
|
|
51
|
+
- Destructive actions must expose raw parameters to the user before execution.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: nfr-adr-governor
|
|
3
|
+
description: Captures non-functional requirements, maps them to architectural patterns, and governs ADR lifecycle states.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# NFR And ADR Governor
|
|
8
|
+
|
|
9
|
+
Use this skill for performance, reliability, security, privacy, compliance, scalability, compatibility, migration, and operational constraints.
|
|
10
|
+
|
|
11
|
+
## NFR Requirements
|
|
12
|
+
|
|
13
|
+
Write `.engineering-intelligence/aidlc/construction/<unit>/nfr-requirements.md`:
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
# NFR Requirements: <unit>
|
|
17
|
+
|
|
18
|
+
| Dimension | Target | Evidence / Source | Validation Method |
|
|
19
|
+
|---|---|---|---|
|
|
20
|
+
| Latency | <p50/p95/p99> | <source> | <test/monitor> |
|
|
21
|
+
| Throughput | <target> | <source> | <load/perf test> |
|
|
22
|
+
| Reliability | <SLO/SLA> | <source> | <failure test> |
|
|
23
|
+
| Security | <standard/control> | <source> | <scan/review/test> |
|
|
24
|
+
| Data | <volume/retention/migration> | <source> | <migration/test> |
|
|
25
|
+
| Compatibility | <API/browser/runtime> | <source> | <contract test> |
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## NFR Design
|
|
29
|
+
|
|
30
|
+
Write `.engineering-intelligence/aidlc/construction/<unit>/nfr-design/design.md` with concrete patterns. Examples: circuit breaker with exponential backoff, idempotency keys, bulkheads, rate limits, schema expansion/contraction, cache invalidation, trace correlation, policy-based authorization.
|
|
31
|
+
|
|
32
|
+
## ADR Lifecycle
|
|
33
|
+
|
|
34
|
+
Create an ADR only when two or more distinct alternatives were considered.
|
|
35
|
+
|
|
36
|
+
Allowed states:
|
|
37
|
+
- `Proposed`
|
|
38
|
+
- `Accepted`
|
|
39
|
+
- `Rejected`
|
|
40
|
+
- `Superseded`
|
|
41
|
+
|
|
42
|
+
Accepted ADRs are immutable. To change one, create a new `Proposed` ADR and mark the old accepted ADR as `Superseded by ADR-NNNN` after the new decision is accepted.
|
|
43
|
+
|
|
44
|
+
ADR path:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
.engineering-intelligence/aidlc/construction/<unit>/nfr-design/decision-records/ADR-NNNN-<slug>.md
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
ADR template:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
# ADR-NNNN: <decision>
|
|
54
|
+
|
|
55
|
+
## Status
|
|
56
|
+
Proposed
|
|
57
|
+
|
|
58
|
+
## Context
|
|
59
|
+
<problem, constraints, NFR drivers>
|
|
60
|
+
|
|
61
|
+
## Options Considered
|
|
62
|
+
- Option A: <tradeoffs>
|
|
63
|
+
- Option B: <tradeoffs>
|
|
64
|
+
|
|
65
|
+
## Decision
|
|
66
|
+
<chosen option when accepted>
|
|
67
|
+
|
|
68
|
+
## Consequences
|
|
69
|
+
- Positive: <benefits>
|
|
70
|
+
- Negative: <costs>
|
|
71
|
+
- Validation: <how this will be tested>
|
|
72
|
+
|
|
73
|
+
## Supersedes / Superseded By
|
|
74
|
+
<links or Not applicable>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Quality Gates
|
|
78
|
+
|
|
79
|
+
- [ ] NFRs are measurable where possible
|
|
80
|
+
- [ ] Design patterns map back to NFR targets
|
|
81
|
+
- [ ] ADR exists only when alternatives were considered
|
|
82
|
+
- [ ] ADR state transitions are explicit
|
|
83
|
+
- [ ] Accepted ADRs are not edited except to mark supersession
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: operations-readiness-engine
|
|
3
|
+
description: Produces deployment, observability, rollback, and runbook readiness artifacts for production-bound AI-DLC changes.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Operations Readiness Engine
|
|
8
|
+
|
|
9
|
+
Use this skill when a change affects deployment, infrastructure, runtime behavior, SLOs, data migrations, incident response, or production monitoring.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. Identify deployment target, environment variables, infrastructure files, CI/CD gates, and runtime services.
|
|
14
|
+
2. Define release strategy: normal deploy, canary, blue/green, feature flag, or manual rollout.
|
|
15
|
+
3. Define rollback plan and data recovery constraints.
|
|
16
|
+
4. Define observability: metrics, traces, logs, dashboards, alerts, and ownership.
|
|
17
|
+
5. Confirm production readiness with objective gates.
|
|
18
|
+
|
|
19
|
+
## Outputs
|
|
20
|
+
|
|
21
|
+
Write `.engineering-intelligence/aidlc/operations/operations-readiness.md`:
|
|
22
|
+
|
|
23
|
+
```markdown
|
|
24
|
+
# Operations Readiness
|
|
25
|
+
|
|
26
|
+
## Deployment Scope
|
|
27
|
+
- <services, packages, infrastructure>
|
|
28
|
+
|
|
29
|
+
## Release Strategy
|
|
30
|
+
- Strategy: <normal|canary|blue-green|feature-flag|manual>
|
|
31
|
+
- Human approvals required: <yes/no and why>
|
|
32
|
+
|
|
33
|
+
## Observability
|
|
34
|
+
| Signal | Source | Threshold | Owner | Runbook |
|
|
35
|
+
|---|---|---|---|---|
|
|
36
|
+
|
|
37
|
+
## Rollback
|
|
38
|
+
- Code rollback:
|
|
39
|
+
- Data rollback:
|
|
40
|
+
- Configuration rollback:
|
|
41
|
+
|
|
42
|
+
## Readiness Gates
|
|
43
|
+
- [ ] Build passes
|
|
44
|
+
- [ ] Tests pass
|
|
45
|
+
- [ ] Migrations are backward compatible or downtime is approved
|
|
46
|
+
- [ ] Alerts/runbooks exist for changed failure modes
|
|
47
|
+
- [ ] Secrets and environment variables are documented securely
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Rules
|
|
51
|
+
|
|
52
|
+
- Never execute production deployment without explicit user approval.
|
|
53
|
+
- Mark unknown production constraints in `open-questions.md`.
|
|
54
|
+
- For database changes, require backward-compatible migration planning unless downtime is approved.
|
|
@@ -24,13 +24,14 @@ Act as a detailed Business Analyst and Technical Architect persona. Analyze the
|
|
|
24
24
|
|
|
25
25
|
2. **Formulate Scoping Questions** — Identify gaps, ambiguities, and edge cases. Ask the user 3 to 5 targeted questions covering:
|
|
26
26
|
- **Business Value & Scope**: What are the limits of the MVP?
|
|
27
|
+
- **Agile Story Shape**: What user role, user goal, priority, dependencies, and release expectation apply?
|
|
27
28
|
- **Technical Strategy**: Which specific database, caching, or third-party integrations are expected?
|
|
28
29
|
- **Edge Cases**: How should errors, rate limits, or validation failures be handled?
|
|
29
30
|
- **UI/UX (if applicable)**: What configuration or user feedback is expected?
|
|
30
31
|
|
|
31
32
|
3. **Iterate with User** — Wait for user responses. Adjust assumptions based on their answers.
|
|
32
33
|
|
|
33
|
-
4. **Generate Final Requirement Prompt** — Once requirements are clear, output a comprehensive requirements document to `knowledge-base/19-requirements.md
|
|
34
|
+
4. **Generate Final Requirement Prompt** — Once requirements are clear, output a comprehensive requirements document to `knowledge-base/19-requirements.md`, update Agile artifacts under `.engineering-intelligence/aidlc/agile/`, and formulate the finalized prompt for the development agent.
|
|
34
35
|
|
|
35
36
|
## Output Format
|
|
36
37
|
|
|
@@ -47,10 +48,21 @@ The final requirements document `knowledge-base/19-requirements.md` must follow
|
|
|
47
48
|
- **System Boundaries & Dependencies**: <Files/modules affected based on graph mappings>
|
|
48
49
|
- **Edge Cases & Failure Modes**: <Exactly how to handle failures, retries, limits>
|
|
49
50
|
|
|
50
|
-
## 3.
|
|
51
|
+
## 3. Agile Delivery Model
|
|
52
|
+
- **Epic**: <epic or initiative>
|
|
53
|
+
- **User Story**: As a <persona>, I want <capability>, so that <outcome>.
|
|
54
|
+
- **Priority**: <P0/P1/P2 or project convention>
|
|
55
|
+
- **Acceptance Criteria**:
|
|
56
|
+
- Given <context>, when <action>, then <observable result>.
|
|
57
|
+
- **Definition of Ready**:
|
|
58
|
+
- <ready gate status>
|
|
59
|
+
- **Definition of Done**:
|
|
60
|
+
- <done gate expectations>
|
|
61
|
+
|
|
62
|
+
## 4. Iterated QA Log
|
|
51
63
|
<Questions asked and answers received during scoping>
|
|
52
64
|
|
|
53
|
-
##
|
|
65
|
+
## 5. Finalized Implementation Prompt
|
|
54
66
|
Provide the exact prompt to pass to the coding agent to execute this change:
|
|
55
67
|
```text
|
|
56
68
|
/engineering-intelligence <Fully detailed requirements and file scope here>
|
|
@@ -62,10 +74,12 @@ Provide the exact prompt to pass to the coding agent to execute this change:
|
|
|
62
74
|
- **Do not modify product code** — this skill is strictly for scoping and analysis.
|
|
63
75
|
- Do not make assumptions on ambiguities; always ask clarifying questions.
|
|
64
76
|
- Base questions and plans on project graph mappings and existing memory files.
|
|
77
|
+
- Keep Agile artifacts synchronized with the final requirement prompt.
|
|
65
78
|
|
|
66
79
|
## Quality Gates
|
|
67
80
|
|
|
68
81
|
- [ ] Clear business goals and technical boundaries defined.
|
|
69
82
|
- [ ] At least 3 scoping questions asked and logged.
|
|
83
|
+
- [ ] User story, acceptance criteria, priority, dependencies, and Ready/Done gates are documented.
|
|
70
84
|
- [ ] Finalized prompt maps exact files and modules.
|
|
71
85
|
- [ ] Output does not contain any code modification.
|