ai-engineering-system
A Claude Code plugin that turns "AI writes code" into a versioned, testable engineering process:
role agents with least-privilege tools, orchestrating workflows with a human approval gate,
deterministic guardrails, and a read-only knowledge base.
Install
Development (no install):
claude --plugin-dir /path/to/ai-engineering-system
Install by name from the local marketplace:
claude plugin marketplace add /path/to/ai-engineering-system
claude plugin install ai-engineering-system@ai-engineering-local
After installing the plugin, build the RAG once:
cd rag && npm ci && npm run build
.claude-plugin/marketplace.json uses a relative-path source: "." — the only form the
validator accepts for a local marketplace. When the repo is pushed to GitHub, the source can be
switched to { "source": "github", "repo": "<owner>/ai-engineering-system" } per the
marketplace docs.
Configure
Export in your shell (never commit these):
export N8N_API_KEY=... # n8n MCP
export N8N_API_URL=http://localhost:5678
The RAG reads rag/.env (copy rag/.env.example); the root .env.example only lists optional
shell overrides. See rag/README.md for bringing the knowledge base up and the precedence rules.
Knowledge base (optional but recommended):
cd rag && cp -n .env.example .env && docker compose up -d && npm ci && npm run build && npm run migrate && npm run doctor
Then in each project: /setup-project once, /ingest-knowledge whenever docs or ADRs change.
n8n-mcp starts in every session even when N8N_API_KEY is unset (.mcp.json defaults it to
empty); the n8n management tools then fail until the key is exported.
Do not configure servers named engineering-rag or n8n-mcp at local or user scope while the
plugin is loaded. A same-named server there is exposed as mcp__<server>__*, the plugin's copy
does not start, and the agents, whose grants use the plugin prefix, run without that server.
MCP tool calls made by subagents (like research's RAG lookups) need permission like any other
tool. Interactively, Claude Code prompts once the first time and you can choose "always allow".
Non-interactively, pass --allowedTools "mcp__plugin_ai-engineering-system_engineering-rag__*"
(or list the exact tools) so the call isn't silently denied. /setup-project writes an allow rule
for the read-only RAG tools into the project's .claude/settings.json so this works out of the
box for projects it has set up.
Use in a project
/setup-project writes CLAUDE.md, .claude/settings.json (deny rules) and .ai-engineering/project.yaml.
/implement-feature <description> runs research → plan → your approval → implement → test → review.
/review [base] reviews the current diff independently.
/research <question> answers with cited sources.
/ingest-knowledge [path] indexes docs and ADRs into the RAG.
Skill names may collide with other installed skills or plugins. If a bare /review or
/research does not route to this plugin, use the prefixed form instead:
/ai-engineering-system:review, /ai-engineering-system:research,
/ai-engineering-system:implement-feature, /ai-engineering-system:setup-project.
Claude Code refuses to write .claude/settings.json in non-interactive (-p) mode, so run
/setup-project in an interactive session; alternatively, copy
skills/workflows/setup-project/templates/settings.json by hand.
What is enforced, not suggested