engineering-intelligence 1.6.0 → 1.7.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.
Files changed (31) hide show
  1. package/README.md +360 -106
  2. package/dist/adapters/index.d.ts.map +1 -1
  3. package/dist/adapters/index.js +204 -46
  4. package/dist/adapters/index.js.map +1 -1
  5. package/dist/templates.d.ts +2 -2
  6. package/dist/templates.d.ts.map +1 -1
  7. package/dist/templates.js +38 -0
  8. package/dist/templates.js.map +1 -1
  9. package/dist/token-optimizer.d.ts +88 -0
  10. package/dist/token-optimizer.d.ts.map +1 -0
  11. package/dist/token-optimizer.js +259 -0
  12. package/dist/token-optimizer.js.map +1 -0
  13. package/dist/validation/index.d.ts.map +1 -1
  14. package/dist/validation/index.js +12 -6
  15. package/dist/validation/index.js.map +1 -1
  16. package/dist/visualizer/index.d.ts.map +1 -1
  17. package/dist/visualizer/index.js +21 -0
  18. package/dist/visualizer/index.js.map +1 -1
  19. package/package.json +16 -3
  20. package/templates/canonical/agents/engineering-orchestrator.md +19 -1
  21. package/templates/canonical/agents/product-analyst.md +2 -0
  22. package/templates/canonical/rules/engineering-intelligence.md +16 -2
  23. package/templates/canonical/skills/aidlc-lifecycle-engine/SKILL.md +5 -3
  24. package/templates/canonical/skills/backlog-decomposition-engine/SKILL.md +187 -0
  25. package/templates/canonical/skills/engineering-intelligence-skill/SKILL.md +21 -0
  26. package/templates/canonical/skills/issue-tracker-sync-engine/SKILL.md +77 -0
  27. package/templates/canonical/skills/question-file-engine/SKILL.md +110 -0
  28. package/templates/canonical/skills/requirement-scoper/SKILL.md +12 -2
  29. package/templates/canonical/workflows/decompose-backlog.md +37 -0
  30. package/templates/canonical/workflows/deliver-backlog.md +50 -0
  31. package/templates/canonical/workflows/scope-requirement.md +4 -2
package/README.md CHANGED
@@ -1,177 +1,431 @@
1
- # Engineering Intelligence OS
1
+ <h1 align="center">Engineering Intelligence OS</h1>
2
2
 
3
- `engineering-intelligence` installs a reusable, graph-backed Agile + AI-DLC engineering-orchestration toolkit into a software repository for AI coding IDEs. The installed skills and workflows teach the IDE agent how to initialize an evidence-based project knowledge base, maintain backlog and acceptance criteria, map architecture, analyze change impact, preserve lifecycle state, govern NFRs/ADRs, use environmental backpressure, and keep intelligence synchronized while implementing engineering work.
3
+ <p align="center">
4
+ <strong>Turn any AI coding IDE into a disciplined engineering team.</strong><br>
5
+ One install drops 45 skills, 15 specialist agents, and 11 workflows into your repo —<br>
6
+ teaching the agent to plan, implement, validate, and keep its own project knowledge in sync.
7
+ </p>
4
8
 
5
- The installer does **not** inspect the target source code, call an AI model, or generate documentation itself. That work occurs later inside the selected IDE when a developer invokes the installed workflow.
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/package/engineering-intelligence"><img src="https://img.shields.io/npm/v/engineering-intelligence?color=cb3837&logo=npm" alt="npm version"></a>
11
+ <a href="https://www.npmjs.com/package/engineering-intelligence"><img src="https://img.shields.io/npm/dm/engineering-intelligence?color=cb3837&logo=npm" alt="npm downloads"></a>
12
+ <a href="https://github.com/vinideep/engineering-intelligence/stargazers"><img src="https://img.shields.io/github/stars/vinideep/engineering-intelligence?style=flat&logo=github&color=yellow" alt="GitHub stars"></a>
13
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/engineering-intelligence?color=blue" alt="MIT license"></a>
14
+ <img src="https://img.shields.io/node/v/engineering-intelligence?color=brightgreen&logo=node.js" alt="node version">
15
+ </p>
6
16
 
7
- ## Supported IDEs
17
+ <p align="center">
18
+ <a href="#-quick-start">Quick Start</a> ·
19
+ <a href="#-supported-ides">Supported IDEs</a> ·
20
+ <a href="#-workflow-commands">Workflow Commands</a> ·
21
+ <a href="#-lifecycle-commands">Lifecycle</a> ·
22
+ <a href="#-toolkit-contents">What's Included</a> ·
23
+ <a href="WORKFLOW_GUIDE.md">Full Guide</a>
24
+ </p>
8
25
 
9
- | IDE adapter | Installed integration | Invocation |
10
- | --- | --- | --- |
11
- | Antigravity | `.agent/skills`, `.agent/rules`, `.agent/workflows` | Native slash workflows |
12
- | Antigravity CLI | `.agent/skills`, `.agent/rules`, `.agent/workflows`, managed `AGENTS.md` | Native slash workflows |
13
- | Codex | `.agents/skills`, managed `AGENTS.md` guidance | Mention the installed `$skill-name` in chat |
14
- | Claude Code | `.claude/skills`, `.claude/agents`, `.claude/commands`, managed `CLAUDE.md` | Native slash workflows |
15
- | Cursor | `.cursor/rules`, `.cursor/commands` | Native slash workflows |
16
- | GitHub Copilot | `.github/skills`, `.github/agents`, `.github/prompts`, managed instructions | Use supported skills/prompts or ask for the workflow in chat |
17
- | Gemini CLI | `.agents/skills`, `.gemini/commands`, managed `GEMINI.md` | Native slash workflows |
18
- | CommandCode | `.commandcode/skills`, `.commandcode/commands`, managed `AGENTS.md` | Use `/skills` or native slash commands in CommandCode terminal |
19
- | Generic | `.agents/skills`, managed `AGENTS.md` | Ask the agent to invoke the named workflow |
26
+ ---
20
27
 
21
- ## Install
28
+ ## Why This Exists
22
29
 
23
- From the repository that should receive the toolkit:
30
+ AI coding agents forget everything between sessions. They re-read your architecture from scratch, skip impact analysis, drift from your conventions, and have no idea what they changed yesterday. `engineering-intelligence` fixes that it gives the agent a persistent memory of your project, a discipline to plan before touching code, and the ability to pick up exactly where it left off.
31
+
32
+ | The problem | What this installs |
33
+ |---|---|
34
+ | Agent re-learns your codebase from scratch every session | Evidence-based knowledge base + architecture graphs that persist across sessions |
35
+ | Jumps straight to code, skips planning | Mandatory impact analysis + Agile planning before any non-trivial change |
36
+ | Ad-hoc one-shot prompts, no continuity | Autonomous Epic → Feature → Ticket backlog with a human approval gate per feature |
37
+ | Skill and instruction files burn context on every call | Tiered loading: routing table → brief → full skill — **28–37% fewer tokens per invocation** |
38
+ | Tied to one AI tool | One canonical toolkit, rendered natively into **9 AI IDEs** — Claude Code, Cursor, Copilot, Gemini, Codex, Antigravity, CommandCode, and more |
39
+
40
+ > The installer does **not** inspect your source, call an AI model, or generate docs itself. It ships the skills, agents, and workflows — the real work happens inside your IDE when you invoke them.
41
+
42
+ ### What it is — and what it isn't
43
+
44
+ Being precise about this up front, so you can decide if it fits:
45
+
46
+ **What it is**
47
+ - An installable library of structured **instructions** (skills, agents, workflows) plus the machinery to render them natively into 9 different AI IDEs from one canonical source.
48
+ - A **persistence layer**: it directs the agent to build and reuse an evidence-based knowledge base and architecture graphs across sessions, instead of re-deriving them every time.
49
+ - A **discipline layer**: it asks the agent to run impact analysis and safety gates before non-trivial changes, and to keep its own project knowledge in sync afterward.
50
+ - **Conflict-aware tooling**: install/update tracks content hashes, preserves your own edits, and removes only what it added on uninstall.
51
+
52
+ **What it isn't**
53
+ - It is **not** a runtime enforcement engine. The skills guide the agent; they don't intercept or block its actions. Their effectiveness depends on your IDE's model following the instructions — strong models follow them well, smaller ones less so.
54
+ - It is **not** a replacement for review. It makes the agent more thorough and consistent; you still own the final call.
55
+ - The **28–37% token reduction** is measured at the rendered-file level (compression + deferred loading) by a regression-guarded test harness (`test/token-reduction.test.mjs`), not from live IDE sessions. It reflects how much less instruction text is loaded per invocation — treat it as a strong directional figure, not a per-session guarantee.
56
+
57
+ If you want a low-friction start, install it and use just `/initialize-engineering-intelligence` + `/engineering-intelligence` first; adopt the deeper AI-DLC backlog and safety-gate workflows once you've seen the basics fit your team.
58
+
59
+ ---
60
+
61
+ ## ⚡ Quick Start
62
+
63
+ **Step 1 — Install into your project** (run once per project, from the project root):
24
64
 
25
65
  ```bash
66
+ # Interactive — the CLI will ask which IDE you use
26
67
  npx engineering-intelligence
68
+
69
+ # Or install for a specific IDE directly (no prompt)
70
+ npx engineering-intelligence install . --ide claude-code --yes
27
71
  ```
28
72
 
29
- For repeatable or multi-IDE setup:
73
+ **Step 2 Initialize** (run once inside your AI IDE after installing):
74
+
75
+ ```
76
+ /initialize-engineering-intelligence
77
+ ```
78
+
79
+ **Step 3 — Start building:**
80
+
81
+ ```
82
+ /engineering-intelligence Add rate limiting to the authentication endpoints
83
+ ```
84
+
85
+ That's it. The agent now plans, implements, validates, and self-documents.
86
+
87
+ ---
88
+
89
+ ## 🖥 Supported IDEs
90
+
91
+ Install the adapter that matches your IDE. Each adapter writes to the IDE's native file locations so skills and commands are discovered automatically.
92
+
93
+ | IDE | Adapter ID | Install Command |
94
+ |-----|-----------|----------------|
95
+ | **Claude Code** (CLI, Desktop, Web) | `claude-code` | `npx engineering-intelligence install . --ide claude-code --yes` |
96
+ | **Cursor** | `cursor` | `npx engineering-intelligence install . --ide cursor --yes` |
97
+ | **GitHub Copilot** (VS Code) | `github-copilot` | `npx engineering-intelligence install . --ide github-copilot --yes` |
98
+ | **Gemini CLI** | `gemini-cli` | `npx engineering-intelligence install . --ide gemini-cli --yes` |
99
+ | **OpenAI Codex CLI** | `codex` | `npx engineering-intelligence install . --ide codex --yes` |
100
+ | **CommandCode** | `commandcode` | `npx engineering-intelligence install . --ide commandcode --yes` |
101
+ | **Antigravity** (GUI) | `antigravity` | `npx engineering-intelligence install . --ide antigravity --yes` |
102
+ | **Antigravity CLI** | `antigravity-cli` | `npx engineering-intelligence install . --ide antigravity-cli --yes` |
103
+ | **Any other AI IDE** | `generic` | `npx engineering-intelligence install . --ide generic --yes` |
104
+
105
+ **Installing for multiple IDEs at once:**
30
106
 
31
107
  ```bash
32
- npx engineering-intelligence install . --ide antigravity --ide codex --ide cursor --yes
33
- npx engineering-intelligence install . --ide commandcode --yes
34
- npx engineering-intelligence install ./my-project --ide claude-code,gemini-cli --dry-run
108
+ npx engineering-intelligence install . --ide claude-code,cursor,github-copilot --yes
35
109
  ```
36
110
 
37
- With no `--ide` in an interactive terminal, the CLI prompts for one or more adapters. In noninteractive use, `--yes` without an adapter installs the `generic` adapter.
111
+ ### What gets installed per IDE
112
+
113
+ | IDE | Files Written |
114
+ |-----|--------------|
115
+ | Claude Code | `.claude/skills/` · `.claude/agents/` · `.claude/commands/` · managed block in `CLAUDE.md` |
116
+ | Cursor | `.cursor/rules/` · `.cursor/commands/` |
117
+ | GitHub Copilot | `.github/skills/` · `.github/agents/` · `.github/prompts/` · managed instructions block |
118
+ | Gemini CLI | `.agents/skills/` · `.gemini/commands/` · managed block in `GEMINI.md` |
119
+ | OpenAI Codex | `.agents/skills/` · managed block in `AGENTS.md` |
120
+ | CommandCode | `.commandcode/skills/` · `.commandcode/commands/` · managed block in `AGENTS.md` |
121
+ | Antigravity | `.agent/skills/` · `.agent/rules/` · `.agent/workflows/` |
122
+ | Antigravity CLI | `.agent/skills/` · `.agent/rules/` · `.agent/workflows/` · managed block in `AGENTS.md` |
123
+ | Generic | `.agents/skills/` · managed block in `AGENTS.md` |
124
+
125
+ > Managed blocks are clearly delimited sections inside shared files like `CLAUDE.md` and `AGENTS.md`. Content outside the managed block is never touched. Uninstall removes only the managed block.
38
126
 
39
- ## Use In A Target Repository
127
+ ---
40
128
 
41
- Initialize project understanding through the selected AI IDE:
129
+ ## 🚀 First-Time Setup
42
130
 
43
- ```text
131
+ ### Existing project
132
+
133
+ ```bash
134
+ # 1. Install (terminal)
135
+ npx engineering-intelligence install . --ide claude-code --yes
136
+
137
+ # 2. Open your AI IDE, then run:
44
138
  /initialize-engineering-intelligence
139
+
140
+ # 3. Optionally map your architecture:
141
+ /map-architecture
45
142
  ```
46
143
 
47
- Then use the engineering workflow for implementation requests:
144
+ `/initialize-engineering-intelligence` reads your codebase and creates:
48
145
 
49
- ```text
50
- /engineering-intelligence Add rate limiting to public authentication endpoints
51
146
  ```
147
+ knowledge-base/ ← architecture and domain knowledge
148
+ .engineering-intelligence/graph/ ← dependency, service, and architecture graphs
149
+ .engineering-intelligence/aidlc/ ← AI-DLC lifecycle state
150
+ .engineering-intelligence/memory/ ← session memory
151
+ ```
152
+
153
+ ### New (greenfield) project
52
154
 
53
- The standard workflows embed AI-DLC and Agile delivery internally:
155
+ ```bash
156
+ # 1. Create the project directory
157
+ mkdir my-project && cd my-project
158
+
159
+ # 2. Install the toolkit
160
+ npx engineering-intelligence install . --ide claude-code --yes
54
161
 
55
- ```text
56
- /scope-requirement Define rate limiting for public authentication endpoints
57
- /engineering-intelligence Add rate limiting to public authentication endpoints
58
- /engineering-intelligence Harden public checkout APIs using adversarial delivery mode
59
- /engineering-intelligence Implement invoice status transition rules using TDD delivery mode
60
- /engineering-intelligence Migrate orders from MongoDB to PostgreSQL using design-first delivery mode
61
- /engineering-intelligence Investigate intermittent checkout latency spikes using hypothesis debugging mode
162
+ # 3. Inside your AI IDE, scaffold the project:
163
+ /create-project Build a TypeScript REST API with PostgreSQL and Stripe
62
164
  ```
63
165
 
64
- Use the existing `/engineering-intelligence` workflow for implementation. The orchestrator selects standard Agile delivery, adversarial delivery, TDD delivery, design-first delivery, or hypothesis debugging based on risk and task shape.
166
+ ---
65
167
 
66
- V2 also includes read-only-with-respect-to-product-code workflows:
168
+ ## 💬 Workflow Commands
67
169
 
68
- ```text
69
- /map-architecture
70
- /analyze-impact Introduce a checkout service boundary
71
- /sync-engineering-intelligence Review the current working-tree diff
72
- /review-engineering-change Review the current working-tree diff
170
+ All commands are invoked inside your AI IDE. For IDEs with native slash commands (Claude Code, Cursor, Gemini CLI, CommandCode, Antigravity), use `/command-name`. For chat-based IDEs (GitHub Copilot, Codex, generic), type the workflow name in chat.
171
+
172
+ ### Core implementation workflow
173
+
174
+ ```
175
+ /engineering-intelligence <your request>
73
176
  ```
74
177
 
75
- `/map-architecture` writes graph intelligence, `/analyze-impact` writes impact reports, `/sync-engineering-intelligence` updates intelligence artifacts, and `/review-engineering-change` writes findings. Only `/engineering-intelligence` is intended to implement product-code changes.
178
+ Examples:
76
179
 
77
- Where a host does not expose native custom slash commands, mention the installed skill name or request the same workflow in chat.
180
+ ```
181
+ /engineering-intelligence Add rate limiting to the public authentication endpoints
182
+ /engineering-intelligence Fix the intermittent timeout on the checkout service
183
+ /engineering-intelligence Refactor the user service to extract a billing domain
184
+ /engineering-intelligence Add webhook signature validation for Stripe events
185
+ ```
78
186
 
79
- For CommandCode terminal projects, install with `--ide commandcode`. The installer writes project-level skills to `.commandcode/skills/` and workflow commands to `.commandcode/commands/`. CommandCode also discovers `.agents/skills/`, but the native `.commandcode/skills/` location has priority, so this adapter uses the native project-level path.
187
+ The orchestrator runs the full AI-DLC pipeline internally: freshness check impact analysis Agile planning implementation safety gates tests knowledge sync change history.
80
188
 
81
- For a step-by-step guide covering new projects, existing projects, CommandCode, daily workflows, safety gates, and maintenance, see [WORKFLOW_GUIDE.md](WORKFLOW_GUIDE.md).
189
+ ### Delivery modes
82
190
 
83
- The IDE agent, not this installer, creates and maintains:
191
+ Append a delivery mode to the request for specialized workflows:
84
192
 
85
- ```text
86
- knowledge-base/
87
- .engineering-intelligence/memory/
88
- .engineering-intelligence/aidlc/
89
- .engineering-intelligence/context/
90
- .engineering-intelligence/events/
91
- .engineering-intelligence/graph/
92
- .engineering-intelligence/reports/
93
- .engineering-intelligence/snapshots/
94
- .changes/
95
193
  ```
194
+ /engineering-intelligence Harden checkout APIs using adversarial delivery mode
195
+ /engineering-intelligence Add invoice state machine using TDD delivery mode
196
+ /engineering-intelligence Migrate orders to PostgreSQL using design-first delivery mode
197
+ /engineering-intelligence Debug checkout latency spikes using hypothesis debugging mode
198
+ ```
199
+
200
+ | Mode | When to use |
201
+ |------|------------|
202
+ | (default) | Standard Agile delivery — most features and bugfixes |
203
+ | adversarial | Security-sensitive or high-stakes changes |
204
+ | TDD | When tests must drive the design |
205
+ | design-first | Large architectural changes that need an ADR before code |
206
+ | hypothesis debugging | Intermittent bugs or production mysteries |
96
207
 
97
- Graph intelligence includes `dependency-graph.json`, `service-graph.json`, `runtime-graph.json`, `business-flow-graph.json`, and a Mermaid-backed `architecture-map.md`. Impact and review results are stored as `IMP-XXX-*.md` and `REV-XXX-*.md` reports.
208
+ ### Requirement scoping
98
209
 
99
- Agile + AI-DLC lifecycle state is stored under `.engineering-intelligence/aidlc/`, including `aidlc-state.md`, `audit.md`, `open-questions.md`, `execution-plan.md`, `discovery/`, `agile/`, `inception/`, `construction/`, and `operations/`.
210
+ Use this before implementing to get acceptance criteria, edge cases, and a clear spec:
211
+
212
+ ```
213
+ /scope-requirement Add SSO login for enterprise customers
214
+ /scope-requirement Replace in-memory cache with Redis
215
+ ```
100
216
 
101
- The installer reserves only `.engineering-intelligence/install-manifest.json` for safe lifecycle management.
217
+ ### Architecture and impact
102
218
 
103
- ## Lifecycle Commands
219
+ ```
220
+ /map-architecture ← generate architecture graphs
221
+ /analyze-impact Introduce a checkout service boundary ← impact report, no code changes
222
+ /review-engineering-change Review the working-tree diff ← engineering review of your changes
223
+ /sync-engineering-intelligence Review the working-tree diff ← sync knowledge after manual edits
224
+ ```
225
+
226
+ ### Autonomous Epic → Feature → Ticket backlog
227
+
228
+ For large initiatives, decompose first, then deliver feature by feature behind a human approval gate:
229
+
230
+ ```
231
+ # Step 1 — decompose the epic into tickets (no code written)
232
+ /decompose-backlog Build a self-serve billing portal with invoices, payment methods, and dunning
233
+
234
+ # Step 2 — deliver: selects the next ready feature, asks for approval, then implements
235
+ /deliver-backlog
236
+
237
+ # Step 3 — deliver a specific feature by ID
238
+ /deliver-backlog FEAT-002
239
+ ```
240
+
241
+ `/decompose-backlog` creates epics, features, and tickets with stable IDs (`EPIC-XXX`, `FEAT-XXX`, `TKT-XXX`) under `.engineering-intelligence/aidlc/agile/backlog/`. Every feature starts with `Approval: pending` — the agent waits for your sign-off before writing any product code.
242
+
243
+ ### Direct skill invocations
244
+
245
+ For focused, targeted work without going through the full orchestration pipeline:
246
+
247
+ ```
248
+ /type-safety-engine
249
+ /api-backward-compatibility-engine
250
+ /api-snapshot-testing-engine
251
+ /database-migration-safety-engine
252
+ /environment-variable-auditor
253
+ /adr-compliance-checker
254
+ /dead-code-detector
255
+ /llm-prompt-injection-guard
256
+ /context-budget-optimizer
257
+ /security-audit-engine
258
+ /refactoring-planner
259
+ /debugging-engine
260
+ ```
261
+
262
+ ---
263
+
264
+ ## 🔧 Lifecycle Commands
265
+
266
+ Run these in the terminal (not inside the IDE):
104
267
 
105
268
  ```bash
106
- npx engineering-intelligence update . --dry-run
107
- npx engineering-intelligence update .
269
+ # Check installation health — reports missing files, hash mismatches, legacy folders
108
270
  npx engineering-intelligence doctor .
271
+
272
+ # Check health and output JSON (for CI scripts)
109
273
  npx engineering-intelligence doctor . --json
110
- npx engineering-intelligence visualize . --open
274
+
275
+ # Preview an update without writing anything
276
+ npx engineering-intelligence update . --dry-run
277
+
278
+ # Apply updates (files you've locally edited are protected — reported as conflicts)
279
+ npx engineering-intelligence update .
280
+
281
+ # Force overwrite even locally-edited managed files
282
+ npx engineering-intelligence update . --force
283
+
284
+ # Generate an interactive HTML dashboard of all installed skills, agents, and workflows
111
285
  npx engineering-intelligence visualize .
286
+
287
+ # Generate and open the dashboard in the browser
288
+ npx engineering-intelligence visualize . --open
289
+
290
+ # Preview uninstall without removing anything
112
291
  npx engineering-intelligence uninstall . --dry-run
292
+
293
+ # Uninstall (removes only managed content; your files and generated artifacts are untouched)
113
294
  npx engineering-intelligence uninstall .
114
295
  ```
115
296
 
116
- Installation and update track managed content hashes. Files created by the package are updated only when they still match their installed version. Shared instruction documents such as `AGENTS.md`, `CLAUDE.md`, and `GEMINI.md` receive a marked managed block; content outside that block remains user-owned. Locally modified managed content is reported as a conflict and preserved unless `--force` is explicitly provided.
117
-
118
- `doctor` validates installed files, manifest drift, template paths, and obsolete legacy `.agent` folders.
297
+ ### Upgrade from V1
119
298
 
120
- `visualize` generates an interactive HTML dashboard (`.engineering-intelligence/dashboard.html`) to display the relationship between installed skills, workflows, agents, and artifacts. The `--open` option automatically launches it in the default browser.
121
-
122
- Repositories installed with V1 can adopt V2 safely:
299
+ If you installed an earlier version, upgrade in place:
123
300
 
124
301
  ```bash
125
302
  npx engineering-intelligence update .
126
303
  ```
127
304
 
128
- The update adds graph/impact skills and workflows and updates untouched managed instruction blocks; locally edited managed files remain protected by conflict reporting.
305
+ The update adds graph/impact skills and workflows, updates untouched managed blocks, and leaves any locally-edited managed files unchanged (reported as conflicts).
306
+
307
+ ---
308
+
309
+ ## 🛡 Safety Gates
310
+
311
+ The `/engineering-intelligence` workflow applies these gates automatically when relevant:
312
+
313
+ | Gate | Triggered by |
314
+ |------|-------------|
315
+ | Freshness / drift | Every implementation request |
316
+ | Impact analysis | Every implementation request |
317
+ | Acceptance criteria | Product behavior changes |
318
+ | Type safety | Typed projects |
319
+ | API compatibility | API, SDK, event, webhook, or schema contracts |
320
+ | API snapshots | Replayable API response behavior |
321
+ | Database migration | Migrations, schemas, ORM models, indexes |
322
+ | Dependency security | New or upgraded packages |
323
+ | Environment variable audit | Env vars, config schemas, CI/deploy secrets |
324
+ | ADR compliance | Architecture-governed areas |
325
+ | LLM prompt injection guard | User input reaches LLMs, RAG, or durable memory |
326
+ | Rollback planning | Medium, high, or critical risk changes |
327
+ | Observability | New endpoints, jobs, services, or production paths |
328
+
329
+ ---
330
+
331
+ ## 📦 Toolkit Contents
332
+
333
+ **45 skills** across six domains:
334
+
335
+ - **Knowledge & architecture:** codebase discovery, graph engine, knowledge extraction, architecture review, change detection, staleness detection, context sync, memory sync, knowledge sync, incremental sync, change history
336
+ - **Planning & delivery:** AI-DLC lifecycle, backlog decomposition, issue tracker sync, requirement scoping, impact analysis, refactoring planner, greenfield architect
337
+ - **Quality & safety:** testing intelligence, type safety, API compatibility, API snapshots, database migration safety, environment variable auditor, ADR compliance, LLM prompt injection guard, MCP security governor, dead code detector, engineering change review, NFR/ADR governor
338
+ - **Operations:** performance analysis, operations readiness, environmental backpressure, context budget optimizer, debugging engine, PR intelligence, convention detector
339
+ - **Security & compliance:** security audit, contract test generator, API backward compatibility
340
+ - **Engineering workflow:** engineering intelligence orchestration, initialize intelligence, ongoing learning
341
+
342
+ **15 specialist agents:** engineering orchestrator, change agent, quality agent, knowledge agent, system architect, product analyst, security officer, compliance auditor, test engineer, database administrator, performance analyst, documentation writer, release engineer, site reliability engineer, adversary
343
+
344
+ **11 workflows:** `engineering-intelligence`, `initialize-engineering-intelligence`, `create-project`, `scope-requirement`, `map-architecture`, `analyze-impact`, `review-engineering-change`, `sync-engineering-intelligence`, `discover-codebase`, `decompose-backlog`, `deliver-backlog`
345
+
346
+ ---
347
+
348
+ ## 📁 Generated Artifacts
129
349
 
130
- ## Toolkit Contents
350
+ After regular use, a healthy project contains:
131
351
 
132
- The default package installs only engineering-intelligence capabilities:
352
+ ```
353
+ knowledge-base/ ← architecture, domain, and API knowledge
354
+ .engineering-intelligence/
355
+ aidlc/
356
+ aidlc-state.md ← current AI-DLC lifecycle state
357
+ execution-plan.md ← current sprint plan
358
+ agile/backlog/ ← epics, features, tickets, dependency graph
359
+ discovery/ inception/ construction/ operations/
360
+ graph/
361
+ dependency-graph.json
362
+ service-graph.json
363
+ runtime-graph.json
364
+ business-flow-graph.json
365
+ architecture-map.md ← Mermaid architecture diagram
366
+ reports/
367
+ IMP-XXX-*.md ← impact reports
368
+ REV-XXX-*.md ← engineering review reports
369
+ memory/ ← session memory
370
+ context/
371
+ context-manifest.md ← ranked context for the current session
372
+ snapshots/ ← API response snapshots
373
+ .changes/
374
+ CHG-XXX-*.md ← change history
375
+ ```
133
376
 
134
- - initialization, knowledge extraction, and validation
135
- - adaptive AI-DLC Discovery, Inception, Construction, and Operations lifecycle artifacts embedded into the existing workflows
136
- - Agile backlog, user stories, acceptance criteria, Definition of Ready, Definition of Done, sprint plan, and retrospective artifacts
137
- - delivery modes inside `/engineering-intelligence`: standard Agile, adversarial, TDD, design-first, and hypothesis debugging
138
- - safety gates for type checking, API compatibility, API snapshots, database migrations, dependencies, environment variables, ADR compliance, LLM prompt injection, rollback, and observability
139
- - context-budget optimization through ranked context manifests, section-level loading, graph slices, and lazy-loaded safety-gate evidence
140
- - specialist hats for product analysis, architecture, security, data, testing, adversarial validation, performance, compliance, release, SRE, and documentation
141
- - NFR and ADR governance, MCP security review, operations readiness, and environmental backpressure loops
142
- - impact and testing intelligence
143
- - evidence-backed JSON architecture graphs and Mermaid architecture mapping
144
- - standalone impact, synchronization, and read-only engineering review workflows
145
- - incremental knowledge, memory, and context synchronization
146
- - change history, architecture review, and refactoring planning
147
- - engineering orchestrator, change, quality, and knowledge roles
377
+ The installer manages only `.engineering-intelligence/install-manifest.json`. Everything else is written by the agent.
148
378
 
149
- Earlier experimental trading, PDF, and unrelated workflow assets in this development repository are not exported in the package and are never installed into a target project.
379
+ ---
150
380
 
151
- ## Development
381
+ ## 🔨 Development
152
382
 
153
383
  ```bash
154
384
  npm install
155
- npm test
156
- npm pack
385
+ npm test # build + run all tests
386
+ npm run build # TypeScript compile only
157
387
  ```
158
388
 
159
- The source repository is organized as:
389
+ **Source layout:**
160
390
 
161
- ```text
162
- src/adapters/ native IDE renderers
163
- src/installer/ install, update, conflict, and uninstall behavior
164
- src/manifest/ managed-content tracking
165
- src/validation/ doctor and content checks
166
- templates/canonical/ host-neutral engineering toolkit source
167
- test/ adapter and installer lifecycle tests
168
391
  ```
392
+ src/adapters/ IDE renderers — one per adapter
393
+ src/cli/ CLI entry point
394
+ src/installer/ install, update, uninstall, conflict handling
395
+ src/manifest/ managed-content tracking (hashes)
396
+ src/validation/ doctor and template validation
397
+ src/visualizer/ interactive HTML dashboard
398
+ src/token-optimizer.ts path aliasing, SmartCrush, tiered skills, KV-cache ordering
399
+ templates/canonical/ host-neutral skill, workflow, agent, and rule templates
400
+ test/ adapter, installer, template, and token-reduction tests
401
+ ```
402
+
403
+ **Adding a new IDE adapter:**
404
+
405
+ 1. Add a renderer in `src/adapters/index.ts` targeting the IDE's native file locations.
406
+ 2. Reuse canonical skills and workflow templates — don't duplicate logic.
407
+ 3. Extend adapter and lifecycle tests for generated paths, multi-adapter deduplication, and update/uninstall behavior.
408
+ 4. Document the IDE's invocation method in the supported IDE table.
409
+
410
+ **Improving workflow behavior:**
411
+
412
+ Edit canonical templates under `templates/canonical/` — all adapters pull from the same source, so one change propagates everywhere.
413
+
414
+ ---
415
+
416
+ ## Contributing
417
+
418
+ New IDE adapters, workflow improvements, and skills are all welcome. Run `npm test` before opening a PR. The test suite covers generated paths, multi-adapter compatibility, and update/uninstall behavior.
419
+
420
+ ---
421
+
422
+ ## License
169
423
 
170
- To add an IDE adapter:
424
+ [MIT](LICENSE) free for personal and commercial use.
171
425
 
172
- 1. Add a renderer in `src/adapters/index.ts` using documented native locations and formats.
173
- 2. Reuse canonical skills and workflow meaning rather than duplicating host-specific logic.
174
- 3. Extend adapter and lifecycle tests to cover generated paths, multi-adapter compatibility, and update/uninstall behavior.
175
- 4. Document the host’s actual invocation support in the supported IDE table.
426
+ ---
176
427
 
177
- To improve workflow behavior, edit canonical templates under `templates/canonical/` and keep generated runtime paths host-neutral.
428
+ <p align="center">
429
+ Built to make AI coding agents accountable.<br>
430
+ <strong>⭐ <a href="https://github.com/vinideep/engineering-intelligence">Star the repo</a></strong> if it helped you ship faster.
431
+ </p>
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AA8UrE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAErD;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAI3E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAW,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAggBrE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAErD;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAI3E"}