JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 84
  • Score
    100M100P100Q99118F

Package Exports

  • engineering-intelligence

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (engineering-intelligence) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Engineering Intelligence OS

Turn any AI coding IDE into a disciplined engineering team.
One install drops 46 skills, 15 specialist agents, and 11 workflows into your repo —
teaching the agent to plan, implement, validate, and keep its own project knowledge in sync.

npm version npm downloads GitHub stars MIT license node version

Quick Start · Supported IDEs · Workflow Commands · Lifecycle · What's Included · Full Guide


Why This Exists

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.

The problem What this installs
Agent re-learns your codebase from scratch every session Evidence-based knowledge base + architecture graphs that persist across sessions
Jumps straight to code, skips planning Mandatory impact analysis + Agile planning before any non-trivial change
Ad-hoc one-shot prompts, no continuity Autonomous Epic → Feature → Ticket backlog with a human approval gate per feature
Skill and instruction files burn context on every call Tiered loading: routing table → brief → full skill — 28–37% fewer tokens per invocation
Tied to one AI tool One canonical toolkit, rendered natively into 9 AI IDEs — Claude Code, Cursor, Copilot, Gemini, Codex, Antigravity, CommandCode, and more
Treats every developer the same Per-developer intelligence — a personal, gitignored profile seeded from your git history calibrates responses to your test philosophy and depth; a committed team layer captures shared consensus

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.

What it is — and what it isn't

Being precise about this up front, so you can decide if it fits:

What it is

  • 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.
  • 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.
  • 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.
  • Conflict-aware tooling: install/update tracks content hashes, preserves your own edits, and removes only what it added on uninstall.

What it isn't

  • 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.
  • It is not a replacement for review. It makes the agent more thorough and consistent; you still own the final call.
  • 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.

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.


⚡ Quick Start

Step 1 — Install into your project (run once per project, from the project root):

# Interactive — the CLI will ask which IDE you use
npx engineering-intelligence

# Or install for a specific IDE directly (no prompt)
npx engineering-intelligence install . --ide claude-code --yes

Step 2 — Initialize (run once inside your AI IDE after installing):

/initialize-engineering-intelligence

Step 3 — Start building:

/engineering-intelligence Add rate limiting to the authentication endpoints

That's it. The agent now plans, implements, validates, and self-documents.


🖥 Supported IDEs

Install the adapter that matches your IDE. Each adapter writes to the IDE's native file locations so skills and commands are discovered automatically.

IDE Adapter ID Install Command
Claude Code (CLI, Desktop, Web) claude-code npx engineering-intelligence install . --ide claude-code --yes
Cursor cursor npx engineering-intelligence install . --ide cursor --yes
GitHub Copilot (VS Code) github-copilot npx engineering-intelligence install . --ide github-copilot --yes
Gemini CLI gemini-cli npx engineering-intelligence install . --ide gemini-cli --yes
OpenAI Codex CLI codex npx engineering-intelligence install . --ide codex --yes
CommandCode commandcode npx engineering-intelligence install . --ide commandcode --yes
Antigravity (GUI) antigravity npx engineering-intelligence install . --ide antigravity --yes
Antigravity CLI antigravity-cli npx engineering-intelligence install . --ide antigravity-cli --yes
Any other AI IDE generic npx engineering-intelligence install . --ide generic --yes

Installing for multiple IDEs at once:

npx engineering-intelligence install . --ide claude-code,cursor,github-copilot --yes

What gets installed per IDE

IDE Files Written
Claude Code .claude/skills/ · .claude/agents/ · .claude/commands/ · managed block in CLAUDE.md
Cursor .cursor/rules/ · .cursor/commands/
GitHub Copilot .github/skills/ · .github/agents/ · .github/prompts/ · managed instructions block
Gemini CLI .agents/skills/ · .gemini/commands/ · managed block in GEMINI.md
OpenAI Codex .agents/skills/ · managed block in AGENTS.md
CommandCode .commandcode/skills/ · .commandcode/commands/ · managed block in AGENTS.md
Antigravity .agent/skills/ · .agent/rules/ · .agent/workflows/
Antigravity CLI .agent/skills/ · .agent/rules/ · .agent/workflows/ · managed block in AGENTS.md
Generic .agents/skills/ · managed block in AGENTS.md

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.


🚀 First-Time Setup

Existing project

# 1. Install (terminal)
npx engineering-intelligence install . --ide claude-code --yes

# 2. Open your AI IDE, then run:
/initialize-engineering-intelligence

# 3. Optionally map your architecture:
/map-architecture

/initialize-engineering-intelligence reads your codebase and creates:

.engineering-intelligence/knowledge-base/    ← architecture and domain knowledge
.engineering-intelligence/graph/             ← dependency, service, and architecture graphs
.engineering-intelligence/aidlc/             ← AI-DLC lifecycle state
.engineering-intelligence/memory/            ← session memory

New (greenfield) project

# 1. Create the project directory
mkdir my-project && cd my-project

# 2. Install the toolkit
npx engineering-intelligence install . --ide claude-code --yes

# 3. Inside your AI IDE, scaffold the project:
/create-project Build a TypeScript REST API with PostgreSQL and Stripe

💬 Workflow Commands

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.

Core implementation workflow

/engineering-intelligence <your request>

Examples:

/engineering-intelligence Add rate limiting to the public authentication endpoints
/engineering-intelligence Fix the intermittent timeout on the checkout service
/engineering-intelligence Refactor the user service to extract a billing domain
/engineering-intelligence Add webhook signature validation for Stripe events

The orchestrator runs the full AI-DLC pipeline internally: freshness check → impact analysis → Agile planning → implementation → safety gates → tests → knowledge sync → change history.

Delivery modes

Append a delivery mode to the request for specialized workflows:

/engineering-intelligence Harden checkout APIs using adversarial delivery mode
/engineering-intelligence Add invoice state machine using TDD delivery mode
/engineering-intelligence Migrate orders to PostgreSQL using design-first delivery mode
/engineering-intelligence Debug checkout latency spikes using hypothesis debugging mode
Mode When to use
(default) Standard Agile delivery — most features and bugfixes
adversarial Security-sensitive or high-stakes changes
TDD When tests must drive the design
design-first Large architectural changes that need an ADR before code
hypothesis debugging Intermittent bugs or production mysteries

Requirement scoping

Use this before implementing to get acceptance criteria, edge cases, and a clear spec:

/scope-requirement Add SSO login for enterprise customers
/scope-requirement Replace in-memory cache with Redis

Architecture and impact

/map-architecture                                       ← generate architecture graphs
/analyze-impact Introduce a checkout service boundary   ← impact report, no code changes
/review-engineering-change Review the working-tree diff ← engineering review of your changes
/sync-engineering-intelligence Review the working-tree diff ← sync knowledge after manual edits

Autonomous Epic → Feature → Ticket backlog

For large initiatives, decompose first, then deliver feature by feature behind a human approval gate:

# Step 1 — decompose the epic into tickets (no code written)
/decompose-backlog Build a self-serve billing portal with invoices, payment methods, and dunning

# Step 2 — deliver: selects the next ready feature, asks for approval, then implements
/deliver-backlog

# Step 3 — deliver a specific feature by ID
/deliver-backlog FEAT-002

/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.

Direct skill invocations

For focused, targeted work without going through the full orchestration pipeline:

/type-safety-engine
/api-backward-compatibility-engine
/api-snapshot-testing-engine
/database-migration-safety-engine
/environment-variable-auditor
/adr-compliance-checker
/dead-code-detector
/llm-prompt-injection-guard
/context-budget-optimizer
/security-audit-engine
/refactoring-planner
/debugging-engine

🔧 Lifecycle Commands

Run these in the terminal (not inside the IDE):

# Check installation health — reports missing files, hash mismatches, legacy folders
npx engineering-intelligence doctor .

# Check health and output JSON (for CI scripts)
npx engineering-intelligence doctor . --json

# Preview an update without writing anything
npx engineering-intelligence update . --dry-run

# Apply updates (files you've locally edited are protected — reported as conflicts)
npx engineering-intelligence update .

# Force overwrite even locally-edited managed files
npx engineering-intelligence update . --force

# Generate an interactive HTML dashboard of all installed skills, agents, and workflows
npx engineering-intelligence visualize .

# Generate and open the dashboard in the browser
npx engineering-intelligence visualize . --open

# Score knowledge-base docs for staleness against related source files (writes a freshness report)
npx engineering-intelligence freshness . --threshold 60
npx engineering-intelligence freshness . --json

# Extract git intelligence — hotspots, change coupling, ownership (last 90 days by default)
npx engineering-intelligence git-analysis . --window 90
npx engineering-intelligence git-analysis . --json

# Seed/refresh your personal developer profile from git history (zero LLM tokens; gitignored)
npx engineering-intelligence user-profile .
npx engineering-intelligence user-profile . --json

# Preview uninstall without removing anything
npx engineering-intelligence uninstall . --dry-run

# Uninstall (removes only managed content; your files and generated artifacts are untouched)
npx engineering-intelligence uninstall .

Upgrade from V1

If you installed an earlier version, upgrade in place:

npx engineering-intelligence update .

The update adds graph/impact skills and workflows, updates untouched managed blocks, and leaves any locally-edited managed files unchanged (reported as conflicts).


👤 Per-Developer Intelligence

The user-intelligence-engine skill calibrates every workflow response to the individual developer — their test philosophy, implementation depth, communication style, and architecture preferences — without an onboarding questionnaire.

  • Zero-token seeding. Identity is resolved from git config and the profile is seeded from your git history (commit patterns, test ratio, primary language, typical change size) by the user-profile CLI command — no LLM context consumed.
  • Multi-user safe. Each developer's user-intelligence.md lives under .engineering-intelligence/memory/users/<slug>/ and is gitignored automatically — your profile never lands in someone else's checkout.
  • Team consensus layer. Preferences shared across the team are promoted to a committed .engineering-intelligence/memory/team-preferences.md, which still applies in CI and to teammates without a personal profile.
  • CI-aware. In CI environments the personal profile is skipped; only the committed team layer applies.
# Seed or refresh your personal profile (run after a few commits for best signal)
npx engineering-intelligence user-profile .

🛡 Safety Gates

The /engineering-intelligence workflow applies these gates automatically when relevant:

Gate Triggered by
Freshness / drift Every implementation request
Impact analysis Every implementation request
Acceptance criteria Product behavior changes
Type safety Typed projects
API compatibility API, SDK, event, webhook, or schema contracts
API snapshots Replayable API response behavior
Database migration Migrations, schemas, ORM models, indexes
Dependency security New or upgraded packages
Environment variable audit Env vars, config schemas, CI/deploy secrets
ADR compliance Architecture-governed areas
LLM prompt injection guard User input reaches LLMs, RAG, or durable memory
Rollback planning Medium, high, or critical risk changes
Observability New endpoints, jobs, services, or production paths

📦 Toolkit Contents

46 skills across six domains:

  • Knowledge & architecture: codebase discovery, graph engine, knowledge extraction, architecture review, change detection, staleness detection, context sync, memory sync, knowledge sync, incremental sync, change history
  • Planning & delivery: AI-DLC lifecycle, backlog decomposition, issue tracker sync, requirement scoping, impact analysis, refactoring planner, greenfield architect, user intelligence engine
  • 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
  • Operations: performance analysis, operations readiness, environmental backpressure, context budget optimizer, debugging engine, PR intelligence, convention detector
  • Security & compliance: security audit, contract test generator, API backward compatibility
  • Engineering workflow: engineering intelligence orchestration, initialize intelligence, ongoing learning

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

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


📁 Generated Artifacts

After regular use, a healthy project contains:

.engineering-intelligence/
  knowledge-base/                                  ← architecture, domain, and API knowledge
  aidlc/
    aidlc-state.md                                 ← current AI-DLC lifecycle state
    execution-plan.md                              ← current sprint plan
    agile/backlog/                                 ← epics, features, tickets, dependency graph
    discovery/ inception/ construction/ operations/
  graph/
    dependency-graph.json
    service-graph.json
    runtime-graph.json
    business-flow-graph.json
    architecture-map.md                            ← Mermaid architecture diagram
  reports/
    IMP-XXX-*.md                                   ← impact reports
    REV-XXX-*.md                                   ← engineering review reports
    freshness-report.md                            ← doc staleness scores (freshness CLI)
    git-analysis.md                                ← hotspots, coupling, ownership (git-analysis CLI)
  memory/
    team-preferences.md                            ← committed team consensus layer
    users/<slug>/user-intelligence.md              ← personal developer profile (gitignored)
  context/
    context-manifest.md                            ← ranked context for the current session
  snapshots/                                       ← API response snapshots
  changes/
    CHG-XXX-*.md                                   ← change history

The installer manages only .engineering-intelligence/install-manifest.json. Everything else is written by the agent.


🔨 Development

npm install
npm test       # build + run all tests
npm run build  # TypeScript compile only

Source layout:

src/adapters/      IDE renderers — one per adapter
src/cli/           CLI entry point
src/installer/     install, update, uninstall, conflict handling
src/manifest/      managed-content tracking (hashes)
src/validation/    doctor and template validation
src/visualizer/    interactive HTML dashboard
src/token-optimizer.ts  path aliasing, SmartCrush, tiered skills, KV-cache ordering
templates/canonical/    host-neutral skill, workflow, agent, and rule templates
test/              adapter, installer, template, and token-reduction tests

Adding a new IDE adapter:

  1. Add a renderer in src/adapters/index.ts targeting the IDE's native file locations.
  2. Reuse canonical skills and workflow templates — don't duplicate logic.
  3. Extend adapter and lifecycle tests for generated paths, multi-adapter deduplication, and update/uninstall behavior.
  4. Document the IDE's invocation method in the supported IDE table.

Improving workflow behavior:

Edit canonical templates under templates/canonical/ — all adapters pull from the same source, so one change propagates everywhere.


Contributing

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.


License

MIT — free for personal and commercial use.


Built to make AI coding agents accountable.
Star the repo if it helped you ship faster.