engineering-intelligence 0.2.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/LICENSE +21 -0
- package/README.md +142 -0
- package/dist/adapters/index.d.ts +4 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +125 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +176 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/installer/blocks.d.ts +5 -0
- package/dist/installer/blocks.d.ts.map +1 -0
- package/dist/installer/blocks.js +27 -0
- package/dist/installer/blocks.js.map +1 -0
- package/dist/installer/index.d.ts +10 -0
- package/dist/installer/index.d.ts.map +1 -0
- package/dist/installer/index.js +206 -0
- package/dist/installer/index.js.map +1 -0
- package/dist/manifest/index.d.ts +7 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +25 -0
- package/dist/manifest/index.js.map +1 -0
- package/dist/templates.d.ts +6 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +103 -0
- package/dist/templates.js.map +1 -0
- package/dist/types.d.ts +38 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -0
- package/dist/validation/index.d.ts +4 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +77 -0
- package/dist/validation/index.js.map +1 -0
- package/package.json +39 -0
- package/templates/canonical/agents/change-agent.md +8 -0
- package/templates/canonical/agents/engineering-orchestrator.md +10 -0
- package/templates/canonical/agents/knowledge-agent.md +8 -0
- package/templates/canonical/agents/quality-agent.md +8 -0
- package/templates/canonical/rules/engineering-intelligence.md +22 -0
- package/templates/canonical/skills/architecture-review-engine/SKILL.md +10 -0
- package/templates/canonical/skills/change-detection-engine/SKILL.md +17 -0
- package/templates/canonical/skills/change-history-engine/SKILL.md +13 -0
- package/templates/canonical/skills/context-sync-engine/SKILL.md +19 -0
- package/templates/canonical/skills/deep-project-knowledge-extractor/SKILL.md +16 -0
- package/templates/canonical/skills/engineering-change-review/SKILL.md +18 -0
- package/templates/canonical/skills/engineering-intelligence/SKILL.md +21 -0
- package/templates/canonical/skills/graph-engine/SKILL.md +58 -0
- package/templates/canonical/skills/impact-analysis-engine/SKILL.md +20 -0
- package/templates/canonical/skills/incremental-sync-engine/SKILL.md +21 -0
- package/templates/canonical/skills/initialize-engineering-intelligence/SKILL.md +32 -0
- package/templates/canonical/skills/knowledge-base-validator/SKILL.md +17 -0
- package/templates/canonical/skills/knowledge-sync-engine/SKILL.md +17 -0
- package/templates/canonical/skills/memory-sync-engine/SKILL.md +18 -0
- package/templates/canonical/skills/refactoring-planner/SKILL.md +10 -0
- package/templates/canonical/skills/testing-intelligence-engine/SKILL.md +10 -0
- package/templates/canonical/workflows/analyze-impact.md +13 -0
- package/templates/canonical/workflows/engineering-intelligence.md +11 -0
- package/templates/canonical/workflows/initialize-engineering-intelligence.md +11 -0
- package/templates/canonical/workflows/map-architecture.md +17 -0
- package/templates/canonical/workflows/review-engineering-change.md +11 -0
- package/templates/canonical/workflows/sync-engineering-intelligence.md +11 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Engineering Intelligence Rules
|
|
2
|
+
|
|
3
|
+
When `knowledge-base/` exists, consult its relevant documents, `.engineering-intelligence/context/`, and `.engineering-intelligence/graph/` before non-trivial project edits.
|
|
4
|
+
|
|
5
|
+
For engineering changes:
|
|
6
|
+
|
|
7
|
+
1. Write an impact report before editing.
|
|
8
|
+
2. Modify code and tests appropriate to the request.
|
|
9
|
+
3. Validate honestly and report unrun checks.
|
|
10
|
+
4. Incrementally update only intelligence and graph artifacts affected by changed behavior.
|
|
11
|
+
5. Record completed work in `.changes/`.
|
|
12
|
+
|
|
13
|
+
Read-only workflows:
|
|
14
|
+
|
|
15
|
+
- `map-architecture` maps evidence-backed graphs and may update graph-connected context.
|
|
16
|
+
- `analyze-impact` writes an impact report for a proposal or diff.
|
|
17
|
+
- `sync-engineering-intelligence` synchronizes intelligence for an identified change.
|
|
18
|
+
- `review-engineering-change` writes findings without applying fixes.
|
|
19
|
+
|
|
20
|
+
Only the `engineering-intelligence` implementation workflow is intended to modify product code.
|
|
21
|
+
|
|
22
|
+
Use `knowledge-base/`, `.engineering-intelligence/memory/`, `.engineering-intelligence/context/`, `.engineering-intelligence/events/`, `.engineering-intelligence/graph/`, `.engineering-intelligence/reports/`, and `.changes/` as the canonical project-intelligence paths. Never invent undocumented implementation facts.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architecture-review-engine
|
|
3
|
+
description: Reviews architectural changes and existing design for coupling, scalability, security, maintainability, and migration risk. Use for architecture decisions and high-risk refactors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Architecture Review
|
|
7
|
+
|
|
8
|
+
Analyze domain boundaries, services, dependencies, runtime patterns, deployment, persistence, security, and operational constraints. Ground findings in evidence.
|
|
9
|
+
|
|
10
|
+
For a substantial review, write or update `knowledge-base/19-architecture-review.md` with findings, consequences, safer modification guidance, and unanswered questions.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: change-detection-engine
|
|
3
|
+
description: Determines analysis scope from a proposed engineering change, working-tree diff, commit range, or explicit changed files. Use before impact analysis, synchronization, or review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Change Detection Engine
|
|
7
|
+
|
|
8
|
+
Accept one of these inputs:
|
|
9
|
+
|
|
10
|
+
- a proposed change described by the user
|
|
11
|
+
- an existing working-tree diff
|
|
12
|
+
- a supplied commit or commit range
|
|
13
|
+
- explicitly named changed files
|
|
14
|
+
|
|
15
|
+
Determine mode (`proposal` or `diff`), inspected scope, changed or likely affected paths, and unresolved ambiguity. When the repository is not under git or the target change cannot be identified, ask for the intended change or affected paths instead of assuming.
|
|
16
|
+
|
|
17
|
+
This capability is analytical only and must not modify product code.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: change-history-engine
|
|
3
|
+
description: Records validated engineering work, impacted systems, tests, synchronized documentation, and outstanding risks. Use after initialization and completed engineering changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Change History
|
|
7
|
+
|
|
8
|
+
Store change records in `.changes/`.
|
|
9
|
+
|
|
10
|
+
- Initialization creates `CHG-000-initialization.md`.
|
|
11
|
+
- Subsequent changes create the next numbered `CHG-XXX-<summary>.md`.
|
|
12
|
+
|
|
13
|
+
Include request summary, files or systems affected, related `IMP-*` and `REV-*` reports when present, implementation summary, tests and validation performed, updated graph/intelligence artifacts, and unresolved risk or follow-up.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-sync-engine
|
|
3
|
+
description: Maintains compact AI navigation context when modules, services, dependencies, runtime paths, or risk areas change. Use after significant implementation changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context Synchronization
|
|
7
|
+
|
|
8
|
+
Maintain `.engineering-intelligence/context/`:
|
|
9
|
+
|
|
10
|
+
- `module-map.md`
|
|
11
|
+
- `service-map.md`
|
|
12
|
+
- `runtime-map.md`
|
|
13
|
+
- `critical-paths.md`
|
|
14
|
+
- `dangerous-areas.md`
|
|
15
|
+
- `dependency-map.md`
|
|
16
|
+
|
|
17
|
+
Keep context concise, navigational, and backed by current project paths.
|
|
18
|
+
|
|
19
|
+
Use the associated impact report and graph updates to revise only affected maps; do not regenerate unrelated navigation context.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-project-knowledge-extractor
|
|
3
|
+
description: Analyzes an existing software repository and produces evidence-based architecture, runtime, API, infrastructure, risk, and onboarding documentation. Use when creating or refreshing the project knowledge base.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Deep Project Knowledge Extractor
|
|
7
|
+
|
|
8
|
+
Inspect package/workspace manifests, source entrypoints, dependency boundaries, routes, schemas, middleware, tests, CI and infrastructure. Generate the structured documents in `knowledge-base/`.
|
|
9
|
+
|
|
10
|
+
Every material statement must be supported by repository evidence. Cite relevant paths in the documents. State `Not detected` or `Unclear from repository evidence` where appropriate.
|
|
11
|
+
|
|
12
|
+
Required documents:
|
|
13
|
+
|
|
14
|
+
- `00-project-overview.md` through `14-glossary.md`
|
|
15
|
+
|
|
16
|
+
Cover repository structure, architecture, runtime flow, APIs, persistence, authentication, frontend, backend, infrastructure, integrations, complex areas, technical debt, onboarding, and glossary.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: engineering-change-review
|
|
3
|
+
description: Reviews changed implementation, tests, impact analysis, graph consistency, and synchronized project intelligence without applying fixes. Use after engineering changes or before completion.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Engineering Change Review
|
|
7
|
+
|
|
8
|
+
Review changed code and tests against the request, impact report, validation evidence, graph artifacts, and synchronized intelligence.
|
|
9
|
+
|
|
10
|
+
Write `.engineering-intelligence/reports/REV-XXX-<slug>.md` with:
|
|
11
|
+
|
|
12
|
+
- findings first, ordered by severity
|
|
13
|
+
- code and evidence paths
|
|
14
|
+
- regression, validation, graph-staleness, and documentation-staleness risks
|
|
15
|
+
- test gaps and unresolved questions
|
|
16
|
+
- a short reviewed-change summary only after findings
|
|
17
|
+
|
|
18
|
+
This review capability may write its report. It must not modify product code or auto-fix findings.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: engineering-intelligence
|
|
3
|
+
description: Executes engineering changes with impact analysis, implementation, tests, validation, and incremental synchronization of project intelligence. Use for feature, bugfix, update, refactor, architecture, infrastructure, or security requests.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Engineering Intelligence Workflow
|
|
7
|
+
|
|
8
|
+
Use this workflow for implementation requests after project intelligence has been initialized.
|
|
9
|
+
|
|
10
|
+
## Procedure
|
|
11
|
+
|
|
12
|
+
1. Read relevant files from `knowledge-base/`, `.engineering-intelligence/memory/`, `.engineering-intelligence/context/`, and `.engineering-intelligence/graph/`. If missing, run the initialization capability first.
|
|
13
|
+
2. Classify the request and write a pre-change `.engineering-intelligence/reports/IMP-XXX-<summary>.md` impact report before editing.
|
|
14
|
+
3. Implement the requested change in the project code.
|
|
15
|
+
4. Add or update relevant tests and execute the appropriate validation available in the project.
|
|
16
|
+
5. Use incremental synchronization to update only affected knowledge-base, memory, context, event, graph, and report artifacts.
|
|
17
|
+
6. Create the next `.changes/CHG-XXX-<summary>.md` record referencing related impact and any review reports.
|
|
18
|
+
7. For high-risk changes, run engineering-change review before final reporting.
|
|
19
|
+
8. Report code changes, tests run, affected systems, synchronized documentation/graph artifacts, and unresolved risks.
|
|
20
|
+
|
|
21
|
+
Do not claim validation succeeded unless it ran successfully. Do not update unrelated documents merely to regenerate them.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: graph-engine
|
|
3
|
+
description: Builds and incrementally maintains evidence-backed dependency, service, runtime, and business-flow graph artifacts with a human-readable architecture map. Use during initialization, explicit architecture mapping, or changes that affect relationships.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Graph Engine
|
|
7
|
+
|
|
8
|
+
Generate project graph intelligence under `.engineering-intelligence/graph/`:
|
|
9
|
+
|
|
10
|
+
- `dependency-graph.json`: modules, packages, shared libraries, imports, and dependency relationships
|
|
11
|
+
- `service-graph.json`: deployable services, databases, queues, external integrations, and communication links
|
|
12
|
+
- `runtime-graph.json`: startup, request, job, and event execution paths
|
|
13
|
+
- `business-flow-graph.json`: verified business/user workflows and participating code or services
|
|
14
|
+
- `architecture-map.md`: Mermaid diagrams and human-readable interpretation of the JSON graphs
|
|
15
|
+
|
|
16
|
+
## Graph JSON Contract
|
|
17
|
+
|
|
18
|
+
Each JSON graph uses this envelope:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"schemaVersion": 1,
|
|
23
|
+
"graphType": "dependency | service | runtime | business-flow",
|
|
24
|
+
"generatedAt": "<ISO timestamp>",
|
|
25
|
+
"scope": "<repository/package/scope examined>",
|
|
26
|
+
"nodes": [
|
|
27
|
+
{
|
|
28
|
+
"id": "<stable identifier>",
|
|
29
|
+
"kind": "<graph-specific kind>",
|
|
30
|
+
"label": "<human name>",
|
|
31
|
+
"path": "<repository path when applicable>",
|
|
32
|
+
"confidence": "verified | inferred | unknown",
|
|
33
|
+
"evidence": ["<file path or configuration evidence>"]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"edges": [
|
|
37
|
+
{
|
|
38
|
+
"from": "<node id>",
|
|
39
|
+
"to": "<node id>",
|
|
40
|
+
"relation": "<relationship>",
|
|
41
|
+
"confidence": "verified | inferred | unknown",
|
|
42
|
+
"evidence": ["<file path or configuration evidence>"]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"unknowns": ["<unconfirmed relationship or flow>"]
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Rules
|
|
50
|
+
|
|
51
|
+
- Keep node IDs stable across incremental updates while the represented element still exists.
|
|
52
|
+
- Never mark an edge `verified` without evidence paths.
|
|
53
|
+
- Distinguish inferred and unknown relationships clearly.
|
|
54
|
+
- Derive Mermaid diagrams in `architecture-map.md` from the JSON graph content.
|
|
55
|
+
- Rebuild all graphs on initialization, explicit mapping, or when structural impact cannot be bounded.
|
|
56
|
+
- For ordinary changes, update only impacted nodes, edges, maps, and connected context documents.
|
|
57
|
+
|
|
58
|
+
This capability may write intelligence artifacts. It must not modify product code.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: impact-analysis-engine
|
|
3
|
+
description: Determines direct and indirect impact of a proposed or implemented change across modules, APIs, schemas, runtime flows, infrastructure, integrations, and tests. Use before implementation and during synchronization.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Impact Analysis
|
|
7
|
+
|
|
8
|
+
Determine what can break before changing code. Analyze imports, callers, routes, data schemas, events, configuration, services, infrastructure, and existing tests.
|
|
9
|
+
|
|
10
|
+
Read `.engineering-intelligence/graph/` when available. If graphs are missing or stale for the assessed scope, invoke `graph-engine` to establish or refresh the necessary graph context.
|
|
11
|
+
|
|
12
|
+
Write a reusable `.engineering-intelligence/reports/IMP-XXX-<slug>.md` impact report containing:
|
|
13
|
+
|
|
14
|
+
- mode (`proposal` or `diff`) and inspected scope
|
|
15
|
+
- graph inputs consulted or refreshed
|
|
16
|
+
- directly affected files and systems
|
|
17
|
+
- indirect dependencies and risks
|
|
18
|
+
- required validation and tests
|
|
19
|
+
- documentation, memory, context, event, and graph artifacts affected by the change
|
|
20
|
+
- evidence, unknowns, and an explicit statement that impact analysis did not modify product code
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: incremental-sync-engine
|
|
3
|
+
description: Synchronizes only intelligence artifacts affected by a completed change or identified diff, including knowledge, memory, context, events, graphs, and reports. Use for explicit synchronization or after implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Incremental Sync Engine
|
|
7
|
+
|
|
8
|
+
Read the completed diff, change record, supplied changed scope, and any existing impact report. If no impact report exists for the scope, run impact analysis first and write one under `.engineering-intelligence/reports/`.
|
|
9
|
+
|
|
10
|
+
Update only affected:
|
|
11
|
+
|
|
12
|
+
- `knowledge-base/` documentation
|
|
13
|
+
- `.engineering-intelligence/memory/`
|
|
14
|
+
- `.engineering-intelligence/context/`
|
|
15
|
+
- `.engineering-intelligence/events/`
|
|
16
|
+
- `.engineering-intelligence/graph/` JSON graphs and `architecture-map.md`
|
|
17
|
+
- the associated impact report synchronization notes
|
|
18
|
+
|
|
19
|
+
Use incremental graph changes by default. Require full graph remapping only for broad or unbounded structural changes.
|
|
20
|
+
|
|
21
|
+
As a standalone synchronization capability, do not write `.changes/CHG-XXX-*` records and do not modify product code.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: initialize-engineering-intelligence
|
|
3
|
+
description: Initializes project engineering intelligence by analyzing repository evidence and generating knowledge, context, memory, event guidance, architecture graphs, and an initialization change record. Use when onboarding a repository or when asked to initialize engineering intelligence.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Initialize Engineering Intelligence
|
|
7
|
+
|
|
8
|
+
Create a trustworthy project intelligence baseline. Analyze only evidence present in source code, configuration, tests, infrastructure, and existing documentation. Mark unknowns and uncertainties explicitly; never invent architecture, APIs, schemas, or business rules.
|
|
9
|
+
|
|
10
|
+
## Outputs
|
|
11
|
+
|
|
12
|
+
Generate:
|
|
13
|
+
|
|
14
|
+
- `knowledge-base/00-project-overview.md` through `knowledge-base/15-validation-report.md`
|
|
15
|
+
- `.engineering-intelligence/memory/` for durable decisions, rules, patterns, constraints, and technology decisions
|
|
16
|
+
- `.engineering-intelligence/context/` for module, service, runtime, dependency, critical-path, and dangerous-area maps
|
|
17
|
+
- `.engineering-intelligence/events/` for API, schema, auth, feature, and infrastructure change guidance
|
|
18
|
+
- `.engineering-intelligence/graph/` for JSON dependency, service, runtime, and business-flow graphs plus a Mermaid architecture map
|
|
19
|
+
- `.changes/CHG-000-initialization.md`
|
|
20
|
+
|
|
21
|
+
## Procedure
|
|
22
|
+
|
|
23
|
+
1. Discover repositories, packages, runtimes, build systems, entrypoints, CI, deployment, environment examples, databases, APIs, auth, and tests.
|
|
24
|
+
2. Trace architecture and critical runtime flows from code evidence.
|
|
25
|
+
3. Write the knowledge base with file-backed evidence and clearly labeled unknowns.
|
|
26
|
+
4. Validate major documentation claims against the project and write `15-validation-report.md`.
|
|
27
|
+
5. Generate compact durable memory and navigation context from validated findings.
|
|
28
|
+
6. Use `graph-engine` to generate a full evidence-backed graph baseline and `architecture-map.md`.
|
|
29
|
+
7. Generate change-event guidance and initialization history.
|
|
30
|
+
8. Report generated artifacts, confidence limits, and areas requiring human confirmation.
|
|
31
|
+
|
|
32
|
+
This initialization workflow documents and validates the project. It does not implement product changes.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: knowledge-base-validator
|
|
3
|
+
description: Validates project knowledge documentation against source and configuration evidence, identifying stale, unsupported, or uncertain claims. Use after initialization or documentation synchronization.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Knowledge Base Validator
|
|
7
|
+
|
|
8
|
+
Read `knowledge-base/*.md`, identify significant claims, and verify them against code, config, infrastructure, and tests.
|
|
9
|
+
|
|
10
|
+
Write `knowledge-base/15-validation-report.md` with:
|
|
11
|
+
|
|
12
|
+
- supported, partially supported, unsupported, and unclear findings
|
|
13
|
+
- evidence paths
|
|
14
|
+
- confidence and stale-documentation risks
|
|
15
|
+
- areas needing human review
|
|
16
|
+
|
|
17
|
+
Do not silently rewrite other knowledge documents; update them only as part of an explicit synchronization workflow.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: knowledge-sync-engine
|
|
3
|
+
description: Incrementally synchronizes the project knowledge base after code changes, updating only documents affected by verified behavior changes. Use after implementation or architectural decisions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Knowledge Synchronization
|
|
7
|
+
|
|
8
|
+
Use the persisted impact report and actual diff to update only affected documents:
|
|
9
|
+
|
|
10
|
+
- API behavior: `knowledge-base/04-api-documentation.md`
|
|
11
|
+
- persistence/schema: `knowledge-base/05-database.md`
|
|
12
|
+
- authentication/authorization: `knowledge-base/06-authentication.md`
|
|
13
|
+
- runtime flow: `knowledge-base/03-runtime-flow.md`
|
|
14
|
+
- architecture: `knowledge-base/02-architecture.md`
|
|
15
|
+
- frontend/backend/infrastructure/integrations: corresponding knowledge documents
|
|
16
|
+
|
|
17
|
+
Preserve accurate existing detail and attach evidence for changed claims.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memory-sync-engine
|
|
3
|
+
description: Maintains durable engineering memory after architecture, business rule, constraint, convention, or technology decisions change. Use only for long-lived knowledge.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Memory Synchronization
|
|
7
|
+
|
|
8
|
+
Maintain `.engineering-intelligence/memory/`:
|
|
9
|
+
|
|
10
|
+
- `architecture-decisions.md`
|
|
11
|
+
- `business-rules.md`
|
|
12
|
+
- `coding-patterns.md`
|
|
13
|
+
- `project-constraints.md`
|
|
14
|
+
- `technology-decisions.md`
|
|
15
|
+
|
|
16
|
+
Do not store transient implementation notes or unverified assumptions as durable memory.
|
|
17
|
+
|
|
18
|
+
Use the associated impact report and actual change evidence to decide whether durable memory is affected. Leave memory unchanged when no long-lived decision, rule, constraint, pattern, or technology choice changed.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactoring-planner
|
|
3
|
+
description: Plans safe refactors by identifying dependencies, migration steps, validation needs, compatibility risk, and rollback strategy. Use before non-trivial refactors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Refactoring Planner
|
|
7
|
+
|
|
8
|
+
Identify duplicated logic, unsafe coupling, large or fragile areas, migration boundaries, and tests required to preserve behavior.
|
|
9
|
+
|
|
10
|
+
For significant proposals, write `knowledge-base/18-refactor-plan.md` with motivation, affected areas, migration steps, risk controls, validation, and rollback guidance.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: testing-intelligence-engine
|
|
3
|
+
description: Determines risk-based testing needs for engineering changes and identifies coverage gaps in critical runtime flows. Use during implementation and validation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Testing Intelligence
|
|
7
|
+
|
|
8
|
+
Inspect existing test patterns and identify the smallest sufficient validation for the impacted behavior. Include unit, integration, end-to-end, migration, security, or operational checks when risk requires them.
|
|
9
|
+
|
|
10
|
+
When documenting broad testing posture, update `knowledge-base/17-testing-strategy.md`. For individual changes, record tests run and remaining gaps in the relevant `.changes/` entry.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze the impact of a proposed change or existing diff and write an evidence-backed impact report without changing product code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Analyze Impact
|
|
6
|
+
|
|
7
|
+
Use `change-detection-engine`, `impact-analysis-engine`, and `graph-engine` when graph intelligence is missing or stale.
|
|
8
|
+
|
|
9
|
+
Analyze the user-supplied proposed change, working-tree diff, commit/range, or explicit changed paths. If the scope is ambiguous, ask for it instead of assuming.
|
|
10
|
+
|
|
11
|
+
Write `.engineering-intelligence/reports/IMP-XXX-<slug>.md` covering analysis mode and scope, graph inputs, direct and indirect impact, risks, validation needs, intelligence artifacts needing synchronization, evidence, and uncertainties.
|
|
12
|
+
|
|
13
|
+
This workflow may write intelligence reports or refresh necessary graph context. It must not modify product code.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Implement an engineering request with impact analysis, tests, validation, and intelligence synchronization.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Engineering Intelligence
|
|
6
|
+
|
|
7
|
+
Use the `engineering-intelligence` capability for the user's accompanying request.
|
|
8
|
+
|
|
9
|
+
Read project intelligence and graph artifacts, write a pre-change `.engineering-intelligence/reports/IMP-XXX-<summary>.md` impact report, implement the requested work, add or update appropriate tests, validate the result, incrementally synchronize affected knowledge/memory/context/event/graph artifacts, and write the next `.changes/CHG-XXX-<summary>.md` entry referencing related reports. Run review responsibility before completion when change risk is high.
|
|
10
|
+
|
|
11
|
+
Finish with changed code, tests and validation, affected systems, synchronized artifacts and graphs, related reports, and unresolved risks.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize evidence-based engineering intelligence for the current project.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Initialize Engineering Intelligence
|
|
6
|
+
|
|
7
|
+
Use the `initialize-engineering-intelligence` capability.
|
|
8
|
+
|
|
9
|
+
Analyze this repository thoroughly without changing product code. Generate `knowledge-base/`, validate it against evidence, generate `.engineering-intelligence/memory/`, `.engineering-intelligence/context/`, `.engineering-intelligence/events/`, and build `.engineering-intelligence/graph/` JSON graphs plus `architecture-map.md`. Write `.changes/CHG-000-initialization.md`.
|
|
10
|
+
|
|
11
|
+
Do not fabricate details. Mark uncertainty clearly and finish with the created artifacts and human-review items.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build or refresh evidence-backed architecture graph intelligence without changing product code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Map Architecture
|
|
6
|
+
|
|
7
|
+
Use the `graph-engine` capability.
|
|
8
|
+
|
|
9
|
+
Inspect repository evidence and generate or comprehensively refresh:
|
|
10
|
+
|
|
11
|
+
- `.engineering-intelligence/graph/dependency-graph.json`
|
|
12
|
+
- `.engineering-intelligence/graph/service-graph.json`
|
|
13
|
+
- `.engineering-intelligence/graph/runtime-graph.json`
|
|
14
|
+
- `.engineering-intelligence/graph/business-flow-graph.json`
|
|
15
|
+
- `.engineering-intelligence/graph/architecture-map.md`
|
|
16
|
+
|
|
17
|
+
Use stable node IDs, evidence-backed confidence labels, explicit unknowns, and Mermaid diagrams. You may update graph-connected navigation context when necessary. Do not modify product code.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review changed engineering work, tests, graphs, and synchronized intelligence without applying fixes.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Review Engineering Change
|
|
6
|
+
|
|
7
|
+
Use `change-detection-engine` and `engineering-change-review`.
|
|
8
|
+
|
|
9
|
+
Inspect the identified implementation diff or changed scope, associated impact report, test and validation evidence, graph consistency, and documentation/context synchronization.
|
|
10
|
+
|
|
11
|
+
Write `.engineering-intelligence/reports/REV-XXX-<slug>.md` with severity-ordered findings, evidence paths, test gaps, and stale-intelligence risks. Do not modify product code or auto-fix findings.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Incrementally synchronize intelligence artifacts for an identified change without modifying product code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Sync Engineering Intelligence
|
|
6
|
+
|
|
7
|
+
Use `change-detection-engine`, `impact-analysis-engine`, and `incremental-sync-engine`.
|
|
8
|
+
|
|
9
|
+
Read the supplied changed scope, diff, or completed change record. Create an impact report first if none exists for that scope. Update only affected knowledge, memory, context, event, graph, and report artifacts.
|
|
10
|
+
|
|
11
|
+
Standalone synchronization must not create a `.changes/CHG-XXX-*` implementation record and must not modify product code.
|