The agentic harness for the code factory. You decide the strategy. AID runs the tactics. A human stays in the loop.
The dark factory for software, already built: on GitHub since December 2025
Created by Ilan Dahan
Everyone is now talking about the dark factory for software: a code factory where AI agents plan, write, review and test code with the lights off, and people only step in where it matters. Most of what you read describes it as something coming.
AID has been building it in the open since December 2025. It is not a prompt pack or a chat persona. It is the harness around the agents: the gates, the pipeline, the reviewers, the brake and the memory that make it safe to let them run.
| What a code factory needs | What AID ships today |
|---|---|
| A production line from idea to release | 6 phases: Discovery, PRD, Tech Spec, Implementation Plan, Development, QA & Ship |
| Quality gates that cannot be talked past | Phase gates enforced by Claude Code hooks: out-of-phase writes and commands are refused, not just discouraged |
| Machines that build and inspect their own work | A dev pipeline: DEVELOP, CODE_REVIEW, TDD, TEST_REVIEW, PHASE_GATE, CERTIFICATION, each scored by isolated reviewer agents through gate.mjs |
| Specialists, not one generalist | 42 sub-agents and 27 skills: phase specialists, reviewers, validators, test engineers |
| A stop button for runaway spend | A $ brake enforced in code: the gate escalates to a human when the running cost reaches your limit |
| A factory that gets better | A memory and learning system: session feedback becomes reviewed proposals that improve the skills |
| Inspection before anything ships | Eval-first development, an eval release gate, a staged rollout with a tested kill switch (3.1) |
| A security model you can audit | A written threat model per control, Claude Code permission rules, and the limits stated openly (SECURITY-MODEL) |
AID is the agentic harness layer between you and the agents. You work at the level of purpose and decisions. AID turns them into work, runs it, checks it, and stops at the points that need you.
| You (strategic) | AID (tactical) |
|---|---|
| Say WHY the work matters and who it is for | Holds every output to that WHY, from the PRD to the last test |
Approve each phase (/phase-approve, /phase-advance) |
Prepares the deliverables, runs the gate check, shows the evidence |
| Choose the solution shape (how much autonomy) | Fans out drafter agents, writes the spec, plans the tasks |
| Set the budget and the quality bar | Runs develop, review, fix and test loops until the bar is met or the brake trips |
| Resolve escalations | Escalates instead of guessing: score caps, cost brake, open questions |
| Release | Certifies against acceptance criteria and evals, then hands you the release |
The human is never removed from the loop. The steps that only you can take (approving a phase, moving to the next one, resolving an escalation, setting up the project) are confirmed by you in Claude Code; the agent cannot take them for you.
| When | Release | What it added |
|---|---|---|
| Dec 2025 | First public version on GitHub | The 6-phase methodology, WHY-first thinking, phase gates |
| Jan 2026 | v2.0 and v2.1 | Major methodology update, installation and project linking |
| Aug 2026 | v3 public release | Rebuilt as a Claude Code plugin; dev pipeline, hooks and permissions hardened |
| Nov 2026 | 3.0.8 | Security hardening: gates block by default, control files protected in every phase |
| Nov 2026 | 3.1 | The agentic layer: solution-shape ladder, §7A Agentic Design, parallel drafter agents, eval-first development |
| Nov 2026 | 3.1.1 | The $ brake enforced in code, a threat model per control, redaction and reliability fixes |
- 3,500+ automated tests (pytest and node) run in CI on every push, alongside a Windows install check, a full-history secret scan, dependency audits and a plugin security scan.
- Every gate is a hook, so it holds whatever the model decides. What is enforced and what is guidance is written down in docs/SECURITY-MODEL.md, together with what AID does not promise.
- Reviews are isolated: reviewer and validator agents see the work and the criteria, never the conversation that produced it.
- The brake is real: a looping pipeline is stopped by the gate itself, and ordinary git cleanup cannot roll the total back.
- The dark factory, already built
- Strategy for you, tactics for AID
- A year of building it in the open
- Proof, not adjectives
- What's New
- What is AID?
- Research & Methodology
- Key Features
- Phase Gate System
- Agentic projects (3.1)
- Sub-Agents
- MCP Integrations
- Nano Banana Pro (Visual AI)
- Breather (Knowing When to Stop)
- Skills System (27 Skills)
- Commands Reference (44 Commands)
- Quick Start
- Tech Stack
- Testing
- Project Structure
- Documentation
- The pipeline cost brake (
cost_limits.max_per_run_usd) is now enforced bygate.mjsitself: at the limit the gate returns ESCALATE and opensESCALATION.json, and only you resolve it. The running total lives in a cost ledger that agent tools cannot write; inside a git repository it sits in the git directory, per project, where checkout, stash, reset and clean never reach. - docs/SECURITY-MODEL.md gains a threat model per control: which controls stop a cooperating agent that loops, which stop an adversarial one, and the closed list of bypass classes that are documented rather than patched.
- Hooks tell Claude the current UTC time, so context files no longer carry invented times; more secret patterns are redacted, and memory lists are shown redacted.
Every phase now asks whether an agent is the right solution shape, on whose behalf it acts, what it may never do, how we know it is good enough (evals), what it did (traces), and how it is rolled out safely. It applies to every project, scaled to its level on the solution-shape ladder; for a non-AI product each section takes its classic form, and no section is "N/A".
- PRD: new §1.5 Solution Shape and §7A Agentic Design (7A.1-7A.8); §1.4 metrics gain North Star / supporting / guardrail.
- Tech Spec: an agent architecture traced to every §7A item.
- Impl Plan, Development, QA & Ship: eval-driven development, an eval release gate, and a staged rollout with a tested kill switch.
- Gates: the reflection criteria,
phase-review-agent,prd-validatorandphase2-techspec-pm-reviewercheck the agentic deliverables of each phase.
Three new agents for the PRD phase (42 in all); no new skills or commands. See Agentic projects (3.1).
Behaviour change. In an AID project (one with .aid/state.json or
.aid/hooks/config.json), the write and bash phase gates now block by default. Before
Phase 4, a source write or a code run is denied with a reason. Earlier versions only logged
unless you configured block. The phase rules apply only in AID projects, but some of
AID's hooks also act in other folders: see Hook scope.
To lower a gate for one project, set its level in .aid/hooks/config.json (block, warn
= allow with a warning to Claude, log = audit only):
{ "enforcement": { "phase_gate_write": "warn", "phase_gate_bash": "log" } }Lowering a gate relaxes only the phase rules, and it has a cost: at log or warn, code
runs and interpreter one-liners (python -c, node -e) are allowed before Phase 4, so
from then on project code can do anything your account can. Writes to AID's own control
files stay refused at every level. Every session start in such a project states which gates
are not at block.
The bash gate now also covers Claude Code's PowerShell tool, which is on by default on
Windows. By default (phase_gate_bash at block), every PowerShell command is refused
before Phase 4 (Claude uses the Bash tool or Read, Grep and Glob instead), except the few
that are asked: they run only after you confirm them. The exact canonical form of a
human-confirmed aid_session.py command, and the exact form of the plugin's breather
installer (node "<plugin>/integrations/breather/install.mjs") and of
bash "<plugin>/scripts/init-project.sh", get "ask" from PowerShell in every folder, phase
and level, as from Bash; other spellings of these two scripts are not asked; in an AID project every other PowerShell command whose text names
aid_session is refused. That check reads the command text, so it is best effort: a call
whose script name is hidden in a variable (python $env:SCRIPT reset) runs without a
prompt outside AID projects, and in an AID project from Phase 4 on, or at log or warn.
See docs/SECURITY-MODEL.md.
Both install routes register the same gates. The plugin registers AID's hooks from
.claude-plugin/plugin.json. A clone + link-project install registers the same
SessionStart, PreToolUse and Stop hooks in the project's .claude/settings.json, with
absolute paths to the AID install and the same fail-closed setting (onFailure: "block").
link-project.sh / link-project.bat need node: without it they exit 1 before writing
anything. They run node <AID>/scripts/link-settings.mjs <target> <AID> to write the hooks,
and create the project state with aid_session.py init <role> 0 (--role, default 1);
with no python they print that command and exit 0 with a warning. install.sh and
install.bat no longer create .aid/state.json. The gates are identical, but AID's phase
commands (/aid-init, /aid-start, /phase-approve, /phase-advance and the others that
call aid_session.py) need the plugin: they find it through ${CLAUDE_PLUGIN_ROOT}, which
a linked project does not have. In a linked project, install the plugin as well, or run
! python "<AID>/hooks/aid_session.py" init <role> 0 (and later approve / advance)
yourself; see INSTALLATION.md.
Fail-closed PreToolUse gates need Claude Code 2.1.295 or later. A project .aid/state.json
is refused to the write tools and to shell writes in every folder, AID project or not;
aid_session.py (which /aid-init and /aid-start call, and you confirm) is its only
writer. That every-folder refusal, like the every-folder asks, needs the plugin: on the
clone route a folder that is not linked runs no AID hooks. Outside AID projects a shell
write is refused only when its own text names .aid/state.json; one reached through a
change of folder, a shell -c body or interpreter code is not caught there (see
What AID does not promise).
AID's gates are a guardrail for a cooperating agent, not a sandbox. docs/SECURITY-MODEL.md explains what they guarantee and what they do not, and how to add the Claude Code sandbox or managed settings for a hard boundary.
Starting and ending a session used to take five to ten minutes before a single line of
.aid/state.json was written. Both commands now do their bookkeeping in one call.
| Was | Now |
|---|---|
/aid-start read every SKILL.md for the chosen role and phase — up to 12 files, ~120 KB — before writing state. Each read was a round trip. |
One call to hooks/aid_session.py start <role> <phase> resolves the terminology, writes .aid/state.json and prints the greeting. Skills are registered by the plugin and load on demand, so nothing is read up front. skills_loaded in state still records which ones apply. |
/aid-end blocked on a phase-review sub-agent before anything was saved. You watched a spinner. |
The review starts first and runs in the background while you answer the feedback questions. Same agent, same mandatory review, no waiting. |
| Rating, what-worked and what-to-improve were three separate prompts. | One prompt, three answers, one message. |
| The review verdict gated everything. | It gates only the phase transition. Feedback saves regardless, so ending a session never blocks on a PARTIAL. |
The review itself got sharper rather than weaker: it now runs as the purpose-built
aid:phase-review-agent and receives exact deliverable paths, so it reads the PRD or the
tech spec instead of exploring the repository to find them. PASS / PARTIAL / FAIL,
override-with-reason and the subagent_review record in state are all unchanged.
| Feature | What it gives you |
|---|---|
| Data Science / ML track | A full role-data-scientist skill plus 6 phase-specific rule sets — EDA, feasibility, experiment planning, ML architecture, development, production. Covers data pipelines, RAG/CAG, prompt engineering, bias auditing, model cards and monitoring. Phases are relabelled for the role (Phase 0 becomes EDA — Data Gathering & Analysis). |
| Cucumber / BDD | cucumber-bdd skill with step-definition guides for JS, Python, Java, Ruby and Go. Phase 1 acceptance criteria are written as Gherkin, so the PRD and the test suite are the same artifact. Runs via npm run cucumber. |
| Automated dev pipeline | pipeline-orchestrator drives a 12-step state machine: DEVELOP → CODE_REVIEW → AR_DESIGN → TDD → AR_FUNCTION → VISUAL_QA → TEST_REVIEW → PHASE_GATE → AR_ACCEPTANCE → API_TESTS → E2E_TESTS → CERTIFICATION, with hard iteration caps and escalation instead of infinite retry loops. All scored review gates (code review, test review, autoresearch KPI) are unified at 9.5/10, and the E2E step pre-checks that E2E tests actually exist before claiming a pass — if none do, it asks you to create or explicitly skip them. |
| Autoresearch runner | autoresearch performs bounded keep/revert improvement: snapshot → one focused edit → score → keep only if strictly better, else revert. Every edit is reversible and the loop always terminates. |
| Registered sub-agents (39 at that release) | Independent, context-free specialists: 7 reviewers (code, tests, visual QA, phase gates, QA validation, reflection, feedback analysis), 2 builders (developer, test-engineer), 1 test runner (aid-test-agent) and 29 phase specialists covering Phase 0 discovery, Phase 2 architecture, Phase 3 breakdown, Phase 4 sprint work, Phase 5 release and the PRD pipeline. All invocable by name. |
| Quality Check on every output | The reflection skill scores WHY alignment, phase compliance, correctness, security and completeness before you see the result. |
| WHY-first foundation | why-driven-decision loads before everything else — no implementation without an articulated purpose. |
| Learning system | memory-system collects session feedback and turns recurring patterns into concrete skill improvements, with a Python CLI for analysis and dashboards. |
| Enforcement hooks | A Phase 4 QA Stop gate that keeps a task from ending until a QA pass is recorded with aid_session.py qa-pass, which the user confirms in Claude Code's prompt (it stops a cooperating agent; from Phase 4 project code can still write files), a language-check gate that blocks a turn ending on code that does not compile, and automatic pipeline initialization when a plan is approved. |
| Breather | Session-boundary tracking bundled into the plugin: presence across every session, break offers at safe moments, written handoffs, and a rest/usage status line. Activate with /breather-start. See Breather. |
| Area | Fix |
|---|---|
link-project data loss |
Pointing the linker at the AID install itself deleted its own skills, agents and commands — and on Windows the fallback recreated the folders empty while reporting success. Both installers now refuse a self-target or a home-directory target, and never delete before confirming a source exists. |
| Sub-agents were not invocable | Agents shipped as prompt folders with no definition files, so subagent_type could never resolve them. All 39 now have registered definitions - and because Claude Code registers every .md under agents/ recursively, asset folders were moved out of it so no prompt fragment registers as an agent. |
| QA gate never fired | The hook emitted a response shape Claude Code does not read, so it could not block, and it was only ever registered in a personal local settings file. Now it blocks correctly, is registered in .claude/settings.json, and carries a loop guard. |
| Hooks missing in linked projects | settings.json was copied into linked projects while hooks/ was not, leaving hooks pointing at absent scripts. hooks/ is now linked. |
| Least-privilege permissions | The shipped settings no longer pre-approve a bare Bash, which auto-approved any shell command. See Permissions to widen it deliberately. |
| Cross-platform line endings | .gitattributes pins .sh to LF and .bat to CRLF, so a clone on either OS gets working scripts. |
| Silent installer | 50 copy commands ran against a directory removed in v2.1, each suppressing its own failure while reporting "Skills installed". Replaced with a real verification. |
| Dead references | 22 documentation links pointed at files that did not exist. All fixed, and the missing memory-system package and scripts/init-project.sh were restored. |
| Ships as a plugin | claude plugin marketplace add ilandahan/AID then claude plugin install aid@AID. No cloning, no symlinks, no Developer Mode on Windows, and claude plugin update aid moves every project at once. The clone + link-project route still works, and registers the same gates as the plugin (see docs/SECURITY-MODEL.md). |
| Phase-gate hooks that actually block | The enforcement dispatcher emitted decision/reason without hookEventName, a shape Claude Code discards - so every gate was read as an allow and never stopped a write. Fixed, and pinned by tests that execute the hook and assert the payload. |
| Test suite | The tests cover destructive-guard behaviour, hook block/allow payload schemas, agent registration, the plugin layout and repository integrity. |
AID (AI Development Methodology) is a comprehensive framework that guides you through the entire software development process - from a raw idea to production-ready code. It works with Claude Code to provide structure, enforce best practices, and maintain context across sessions.
No coding experience required - AID guides you step by step.
| Problem | AID Solution |
|---|---|
| AI generates code without context | Phase gates enforce requirements before code |
| Losing track across sessions | Context tracking remembers everything |
| Inconsistent code quality | Enforced TDD and mandatory code review |
| Design-dev mismatch | Approved design specifications and design tokens |
| No learning from mistakes | Feedback system improves over time |
| Scope creep | Phase gates and approved PRDs prevent expansion |
| Skipping important steps | Mandatory phase transitions with sub-agent review |
Traditional AI coding assistants generate code reactively without understanding the full context. This leads to:
- Code that doesn't match requirements
- Inconsistent architecture decisions
- Security vulnerabilities from lack of planning
- Wasted effort from scope creep
AID enforces a structured, phase-gated methodology inspired by proven software engineering practices:
- Document-Driven Development: Every line of code traces back to approved requirements
- Phase Gates: Quality checkpoints prevent premature advancement
- Role-Based Guidance: Different skills for PM, Dev, QA, and Tech Lead perspectives
- Continuous Learning: Feedback loops improve the system over time
- Context Preservation: Never lose your place across sessions
| Principle | Implementation |
|---|---|
| Requirements First | No code until PRD is approved |
| Security by Design | OWASP Top 10 and ISO 27001 built into architecture phase |
| Test-Driven Development | Write tests before implementation |
| Design System Fidelity | design spec is source of truth - zero deviation |
| Traceability | Every decision links to research and requirements |
| Transparency | All decisions documented with reasoning |
═══════════════════════════════════════════════════════
WHERE YOU LEFT OFF
═══════════════════════════════════════════════════════
TASKS:
[completed] Previous: PROJ-123 "Create Button atom"
[current] Current: PROJ-124 "Create FormField molecule"
[pending] Next: PROJ-125 "Create Card molecule"
CURRENT TASK PROGRESS:
[completed] Step 1: Write tests - DONE
[current] Step 2: Implement component - 50%
> "Label and input done, error handling next"
[pending] Step 3: Style with tokens
═══════════════════════════════════════════════════════
One command to start your day:
/good-morning
This automatically:
- Checks all systems (Docker, MCPs, integrations)
- Loads your project state
- Shows yesterday's progress
- Asks where to continue
AID gets smarter over time by learning from your feedback:
Session Flow:
1. /aid-init > Initialize project
2. /aid-start > Select role (PM/Lead/Dev/QA/Data Scientist) + phase
3. Work > Claude applies relevant skills
4. /aid-end > Phase review runs in background; rate 1-5 in one prompt
5. /aid-improve > System learns and updates skills
Pattern Detection: After 10+ sessions, AID identifies what works and what doesn't, then updates its recommendations automatically.
See the reasoning behind every major decision:
**Decision:** Using PostgreSQL with Prisma ORM
**Reasoning:**
- Data relationships: Complex hierarchy benefits from relational model
- ACID compliance: Financial data requires strong guarantees
- Query flexibility: Reporting features need complex joins
**Alternatives Considered:**
1. MongoDB - Rejected: Would require complex denormalization
2. MySQL - Viable but PostgreSQL has better JSON support
**Confidence:** High - Clear fit for requirements
**Open to Debate:** Yes - Could discuss if team prefers different stackAID uses 6 phases (0-5) with a gate between each. The method is to finish each phase;
a forward jump (which the user confirms) is the exception. The hooks enforce only that no
source files are written and no project code is run before Phase 4 (see
docs/PHASE-GATES.md).
Phase 0 ──► Gate ──► Phase 1 ──► Gate ──► Phase 2 ──► Gate ──► Phase 3 ──► Gate ──► Phase 4 ──► Gate ──► Phase 5
Discovery ✓ PRD ✓ Tech Spec ✓ Impl Plan ✓ Dev ✓ QA & Ship
| Phase | Name | What Happens | Output |
|---|---|---|---|
| 0 | Discovery | Research, stakeholder mapping, competitive analysis, Go/No-Go | docs/research/YYYY-MM-DD-[project]/ |
| 1 | PRD | Define requirements, user stories, scope (linked to research) | docs/prd/*.md |
| 2 | Tech Spec | Architecture, database design, APIs, security | docs/tech-spec/*.md |
| 3 | Impl Plan | Implementation plan, Jira tasks (< 4 hours each) | docs/implementation-plan/*.md |
| 4 | Development | TDD implementation, code review | src/, testing/ |
| 5 | QA & Ship | Validation, testing, deployment | Production release |
| Phase | Allowed | Not yet (methodology) |
|---|---|---|
| 0 Discovery | Research, stakeholders, competitive analysis | PRD, architecture, code |
| 1 PRD | + Requirements, scope, user stories | Architecture, code, Jira |
| 2 Tech Spec | + Architecture, schemas, APIs | Code, Jira issues |
| 3 Impl Plan | + Jira epics, stories, tasks | Production code |
| 4 Development | + Code, tests, components | Deployment (guidance) |
| 5 QA & Ship | Everything | - |
The hooks enforce only the code rows: source writes and code runs before Phase 4. Jira work and deployment are not checked by any hook; those rows are the method's guidance (see docs/PHASE-GATES.md).
Start every project with research:
/discovery my-project # Creates research folder structureKey Activities:
- Problem Analysis (5 Whys, Problem Severity)
- Stakeholder Research (Interviews, Power/Interest Matrix)
- Competitive Analysis (JTBD, Market Research)
- Root Cause Investigation
- Go/No-Go Decision
Exit Criteria:
- Research report with problem statement (SCQ format)
- Traceability matrix linking research to requirements
- Go/No-Go decision documented
Before each phase transition, the method has a sub-agent review all deliverables:
- Results: PASS / PARTIAL / FAIL
- PASS: Proceed to feedback collection
- PARTIAL: Fix minor issues and re-run
- FAIL: Not yet (methodology): fix the critical issues and re-run
/gate-check. This is guidance:/phase-advancechecks the recorded review and approval, and the user can override orjump.
Every AID project picks a level on the solution-shape ladder in its PRD (§1.5 Solution Shape): the LOWEST level that works, with every step up justified in one sentence.
| Level | Shape |
|---|---|
| 0 | Process change (no software) |
| 1 | Deterministic automation |
| 2 | Single LLM call inside a fixed flow |
| 3 | Workflow (several fixed steps, some with LLM calls) |
| 4 | Agent (the model chooses the path and the tools) |
| 5 | Multi-agent (only for separate permission boundaries, contaminating contexts, genuinely parallel work, or different owning teams) |
§7A Agentic Design follows the NFRs: 7A.1 Charter, 7A.2 Tools & Permissions, 7A.3 Context & Data, 7A.4 Failure Modes & Guardrails, 7A.5 Why-Chain, 7A.6 Eval Plan, 7A.7 Telemetry & Traces, 7A.8 Rollout & Kill Switch. All eight are always filled, at a depth scaled to the level (at level 0-1 the Eval Plan is acceptance tests, Telemetry is logs and metrics, Rollout is a staged release plus rollback). The Why-Chain turns every WHY into a requirement, an eval and a metric; every metric set has at least one guardrail metric.
- Phase 1 flow: the PM writes a WHY + shape brief (
docs/prd/WHY-SHAPE-BRIEF-<feature>.md);/prdfans out the PRD writer and three Phase 1 drafters in parallel; the merge adds 20-30 seed eval cases (docs/prd/SEED-EVALS-<feature>.md); after a PM + tech lead shaping session the tech lead signs the level as an ADR (docs/prd/ADR-SHAPE-<feature>.md). - Eval-driven development (Phase 4): eval cases are written before the prompt or agent changes, like TDD; traces are on by default; prompts and tools are versioned; a regression eval runs on every change.
- Eval release gate (Phase 5): the 7A.6 threshold is met, and the red-team suite and the never-do checks pass.
- Staged rollout (Phase 5): shadow, then human approval, then autonomous, with entry and exit criteria per stage, a kill switch tested before autonomy, and production monitoring of quality drift, cost, escalation rate and guardrail metrics.
Per-phase deliverables: docs/PHASE-GATES.md.
AID ships 42 registered sub-agents: 7 reviewers (below), 2 builders (developer,
test-engineer - spawned by the pipeline DEVELOP and TDD steps), 1 test runner
(aid-test-agent) and 32 phase specialists
(phase0-* discovery, phase1-* PRD shaping (solution shape, charter, eval plan), phase2-* architecture, phase3-* breakdown, phase4-* sprint
work, phase5-* release, and the prd-* pipeline) invocable by name for isolated
clean-room work. Each runs with no knowledge of the conversation
that produced the work - that isolation is the point. An agent with no attachment to the
code being good is the only one that reliably finds what is wrong with it.
| Agent | Reviews | Triggered by |
|---|---|---|
reflection-agent |
Any output: WHY alignment, phase compliance, correctness, security, completeness | Automatic Quality Check; /reflect |
code-review-agent |
A diff or file set: security, quality, documentation, architecture | Pipeline CODE_REVIEW; /code-review |
test-review-agent |
Test quality: coverage, over-mocking, weak assertions, independence | Pipeline TEST_REVIEW; /test-review |
visual-qa-agent |
A running app in a real browser - never the source | Pipeline VISUAL_QA |
qa-validator-agent |
Completed work against .aid/qa/<task>.yaml acceptance criteria |
QA gate Stop hook |
phase-review-agent |
Whether a phase's deliverables justify advancing | /gate-check |
memory-analysis-agent |
Session feedback → concrete skill improvements | /aid-improve |
These 7 reviewer agents cannot write files with the Write, Edit or Bash tools (they
get Read, Grep and Glob, plus a fixed list of browser tools for visual-qa-agent) - a
reviewer that can edit the code is no longer independent. visual-qa-agent drives a
browser, so its clicks and form fills reach the target site. Three of its tools
(take_screenshot, take_snapshot, get_network_request) could save to a path the Write
gate does not see, so the agent is told never to pass one; its screenshots and snapshots
come back inline.
aid-test-agent (/aid-test) is not a reviewer: it is a test runner with write tools
(Read, Write, Edit, Bash, Grep, Glob) that writes its test outputs under
.aid/test-outputs/.
Each agent is one self-contained definition file (agents/<name>.md) with its prompt
inlined - that file is what makes it invocable by name. Calibration examples and response
templates live in agent-assets/; see agent-assets/AGENT-STANDARD.md to add your own.
- AID's hooks read project state and tool-call inputs locally. They can write audit logs,
error logs, session markers and pipeline artifacts under the project's
.aid/directory, and small per-session integrity records (hashes and gate levels) under~/.aid/integrity/(or$AID_HOME/integrity/). Project content and paths may contain personal data. The learning system stores feedback locally in$AID_HOME/feedback/pending/(default~/.aid/feedback/pending/); see memory-system privacy. - In an AID project, the SessionStart hook adds AID's deny and ask rules to the project's
.claude/settings.json(it rewrites that file to merge them in; your own entries stay). - Feedback text is redacted (best effort) before it is written and again when it is read.
E-mail addresses, URLs, absolute paths,
file.ext:linereferences, common secret tokens, the project's own names (folder names, git remote owner and repo) and the OS user name are replaced with placeholders. A person's or company's name written as plain words is not caught unless it is one of those project names. Project names shorter than 4 characters are not removed, and when files are read later, only the current project's names are known. - "Claude Memory" in AID means a local file,
$AID_HOME/memory/slots.json(default~/.aid/memory/). Nothing is sent to Claude's built-in memory. AID's own write commands (memory-sync,memory-apply) run only after you confirm them in Claude Code's prompt.memory-applyis also used by/aid-recommendations. AID's Bash gate itself returns "ask" for every human-confirmedaid_session.pycommand (approve,advance,jump,init,memory-sync,memory-apply,reset,qa-pass), for anyaid_session.pysubcommand run from an installed copy of the plugin that is not the live one (in the canonical form: one plain command, absolute script path), and for the exact forms of the plugin's breather installer andscripts/init-project.sh, in every folder, AID project or not, from the Bash and the PowerShell tool. For these two scripts only the exact form is asked; other spellings are not (before Phase 4 atblockthe Bash allow-list refuses them, and the PowerShell rule refuses every PowerShell command; outside AID projects, and from Phase 4 on or atlogorwarn, they run without a prompt). In AID projects the ask rules AID adds to.claude/settings.jsonare a second layer, and a confirmed call is still asked when the gate or the integrity baseline is atlogorwarn. The ask reads only the command text, so its check of run-time-built names is best effort. It denies the run-time-built spellings it can parse, in every folder and with the exact form to use: a confirmed call whose script name or subcommand comes from a variable,$(...), backticks, a glob,$'...'quoting orxargswith the script path written out (echo approve | xargs python "<plugin>/hooks/aid_session.py"), also behindtimeoutorwinptyor followed by a#comment. Deliberately obfuscated forms are an accepted limit and are not caught:pythonworpyw; a wrapper prefix with an option value or one the gate does not know (exec -a,env -u,sudo -u,setsid,flock,chronic); acasearm;xargsfed by a pipe with the script name in a variable (echo approve | xargs python "$S") or fed by-a; anevalof a string built in a variable; and code given to python through/dev/stdin,/dev/fd/Nor<( ). Outside AID projects these run without a prompt. In an AID project, before Phase 4 atblockthe Bash allow-list refuses all of them. From Phase 4 on, or atlogorwarn, one of them is still refused only when the command writes out theaid_session.pypath and the very next word isapprove,advance,jump,init,memory-syncormemory-apply; the same forms withresetorqa-pass, a script name held in a variable (even when the assignment writes out the path), and the script fed to/dev/stdin,/dev/fd/Norpython -by a redirect or a pipe, and code built inside a<( ), get through without a prompt (see docs/SECURITY-MODEL.md). What it cannot see at all is indirection that leaves no trace in the command (a copy ofaid_session.py, a wrapper script, or anevalof a file written by an earlier call): outside AID projects, and in an AID project from Phase 4 on (or from Phase 0 whenphase_gate_bashis lowered tologorwarn), such a call is neither asked nor denied (best effort, like the other text checks). Before Phase 4 atblock, the Bash allow-list refuses it. In-p, headless or dontAsk sessions nobody can answer the prompt, so these calls are denied. Under--dangerously-skip-permissions, Claude Code documents that ask rules still prompt, but not whether a hook's "ask" does, so outside AID projects, and for the breather installer andinit-project.sh, do not count on a prompt in that mode. Before Phase 4 the phase gate also refuses other writes outside the project. From Phase 4 on, AID does not stop other code from editing these files. - Feedback is stored locally in
$AID_HOME. AID has no collection service of its own. When you run/aid-improve, the redacted feedback is sent to Claude as part of the conversation, for analysis. - Breather and your calendar. breather is optional and installs into
~/.claude, so once installed it is active in every project on the machine. In the first session of each day, and again on each prompt until you answer or skip its day-plan question, its instructions tell Claude to fetch today's calendar events automatically, before answering and without asking you, through any connector available in the session. It names Google Calendar / Gmail and Microsoft 365 / Outlook as examples: it asks only for today's events, but a Gmail or Outlook connector may also have access to your mail. The events go into the conversation (and so to the model and through that connector), and the meeting start times are saved under~/.claude/state/breather/. It also adds hooks and a status line to~/.claude/settings.json; see integrations/breather/README.md for everything it does. To keep this off, do not install breather, or remove it with/breather-stop(uninstall). The installers ask before installing it (default No). See integrations/breather/README.md. - No AID-hosted collection service is configured by this plugin. Local artifacts remain until the user removes them; this repository does not enforce a local retention period.
- External services used by the remaining optional workflows are listed below. These setup templates are not connectors declared in the plugin manifest. They run only when configured and used; review the destination and content before enabling them.
| Service or destination | Data involved and when |
|---|---|
| GitHub | Repository content, commits, issues and pull requests used by the configured GitHub MCP workflows. See GitHub setup. |
| Atlassian Jira and Confluence | Issue, project and documentation content sent to the configured Atlassian site when those workflows run. See Jira setup and the MCP templates. |
| Google AI Studio / Google Vertex AI, or AI/ML API (AIMLAPI) | The optional visual-generation skill describes sending generation prompts, source images or sketches and edit instructions to the selected provider. See visual-generation setup. |
| User-selected websites and application endpoints | Chrome DevTools workflows navigate and test the configured target; browser requests and form submissions reach that target. See browser-testing setup. |
| Google (chrome-devtools-mcp server) | By default the chrome-devtools-mcp server sends usage statistics (tool success rates, latency, environment information) to Google, and its performance tools send trace URLs to the Google CrUX API. AID's templates and snippets pass --no-usage-statistics and --no-performance-crux, which turn both off. The server also checks the npm registry for updates (CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1 disables it). See the Google Privacy Policy and Chrome DevTools privacy. |
AID does not set the retention policy for these third-party services. Their own account
settings and terms apply. Local files under .aid/ and ~/.aid/ are also retained separately
from any server-side data.
The phase rules apply only in AID projects (a folder with .aid/state.json or
.aid/hooks/config.json). Some of AID's hooks also act in other folders once the plugin is
installed (on the clone route only linked projects run AID hooks, so a folder that is not
linked runs none of them):
- dev-pipeline-gate (Stop) runs in every git repo. When a turn ends with changed
source files, it may run the repo's own checkers (for example
node_modules/typescript/bin/tsc) and can block the turn on errors. - plan-execution-pipeline (ExitPlanMode) runs in every project. When a plan is
approved it injects the pipeline instructions into the conversation and writes a session
marker,
~/.claude/.loop1-kickoff/<session_id>. - The Bash gate asks you before any human-confirmed
aid_session.pycommand, the breather installer orscripts/init-project.shruns, in every folder, from the Bash and the PowerShell tool. It asks only for the exact forms; other spellings of the two scripts are not asked outside AID projects, or from Phase 4 on, or atlogorwarn. It also asks before the pipeline'sgate.mjs --resolveruns, in every folder, in its exact form (a non-exact spelling is not caught outside AID projects). - The Write and Bash gates refuse a write to a project
.aid/state.jsonin every folder, AID project or not: from the Write, Edit, MultiEdit and NotebookEdit tools and from Bash and PowerShell commands that name it. Onlyaid_session.pywrites it (outside AID projects a name built at run time, or a write reached through a change of folder, a shell-cbody or interpreter code, is not caught; see What AID does not promise). - Every-folder false denials. A few harmless commands are refused in every folder, AID
project or not, because the gate cannot tell them from a confirmed call or a state write:
an interpreter whose script operand is built at run time (
python "$SCRIPT" "$INPUT") and archiving.aid/state.json(tar czf b.tgz .aid/state.json). Write the script path out, back the file up withcp, or run the command yourself with!(see What AID does not promise).
AID's MCP templates configure Model Context Protocol servers for tool connectivity.
.mcp.json.example holds 3 (GitHub, Jira, Chrome DevTools); the OS templates
.mcp.json.windows and .mcp.json.mac add Filesystem and Confluence:
| MCP | Purpose | Key Capabilities |
|---|---|---|
| Filesystem | File operations | Read/write files, directory operations, search |
| Chrome DevTools | Frontend testing | E2E testing, visual testing, performance audits |
| Jira | Task management | Create epics/stories/tasks, manage sprints, query issues |
| Confluence | Documentation | Create/update pages, manage spaces, organize docs |
| GitHub | Source control | Repos, PRs, issues, code search, reviews |
Never put a token in a file (.env, .mcp.json or any other). In order of preference:
-
SSO / OAuth. Atlassian's official remote MCP server signs in with OAuth, so no token is stored:
claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp, then authorize it with/mcp. -
OS keystore. Store the token once, then load it into the shell you start
claudefrom:OS Store once (prompts for the value) Load per shell macOS (Keychain) security add-generic-password -s aid-github -a "$USER" -wexport GITHUB_PERSONAL_ACCESS_TOKEN=$(security find-generic-password -s aid-github -w)Linux (libsecret) secret-tool store --label="AID GitHub" service aid-githubexport GITHUB_PERSONAL_ACCESS_TOKEN=$(secret-tool lookup service aid-github)Windows (Credential Manager) cmdkey /generic:aid-github /user:you /passPowerShell (module CredentialManager):$env:GITHUB_PERSONAL_ACCESS_TOKEN = (Get-StoredCredential -Target aid-github).GetNetworkCredential().PasswordUse the same pattern with
aid-atlassianforATLASSIAN_API_TOKEN. -
Environment variable. The templates read
GITHUB_PERSONAL_ACCESS_TOKENandATLASSIAN_API_TOKENthrough${VAR}expansion, so the token lives only in the environment of that shell.ATLASSIAN_SITE_NAME(the subdomain only,your-companyforyour-company.atlassian.net) andATLASSIAN_USER_EMAILare not secrets; export them directly.
See INSTALLATION.md for the full table.
All MCPs are configured in .mcp.json. See integrations/ for detailed setup guides.
OPTIONAL FEATURE - AID works fully without this. Enable only if you need AI-generated visuals.
Generate professional visual artifacts using Google's Nano Banana Pro (Gemini 3 Pro Image).
| AID Phase | Visual Artifact | Example |
|---|---|---|
| Phase 0: Discovery | Stakeholder maps, competitive landscape | Power/interest matrix, market positioning |
| Phase 1: PRD | User flows, journey maps | Checkout process flow diagram |
| Phase 2: Tech Spec | Architecture diagrams, ERDs | Microservices system diagram |
| Phase 4: Development | Screen mockups | Dashboard with design tokens applied |
Non-secret settings: ENABLE_NANO_BANANA=true and NANO_BANANA_PROVIDER (google,
aimlapi or vertex; Vertex also takes VERTEX_PROJECT_ID and VERTEX_LOCATION).
The provider key is a secret. Prefer SSO (Vertex AI with
gcloud auth application-default login); otherwise keep the key in the OS keystore and
export it into the shell, as in Credentials (service aid-nano-banana,
variable GOOGLE_AI_API_KEY or AIML_API_KEY). Never write it to .env. Details:
skills/nano-banana-visual/SKILL.extended.md.
Design note: AID ships no client library; this is the interface a project writes itself.
// createNanoBananaClient / isNanoBananaEnabled: your project's own client
if (isNanoBananaEnabled()) {
const client = createNanoBananaClient();
const result = await client.generateFromText(
'Create a user flow diagram for checkout process',
{ aspectRatio: '16:9', resolution: '2K' }
);
}- Text-to-Image: Generate diagrams from descriptions
- Wireframe-to-UI: Transform sketches into high-fidelity mockups
- Design System Integration: Apply Atomic Design tokens automatically
- Multiple Formats: Support for 1:1, 16:9, 9:16, 4:3, and more
- Resolutions: 1K, 2K, 4K output
AID ships with breather bundled. Claude's default answer to "what next?" is always another task. Breather adds a second legitimate answer: now is a good time to stop. It tracks how long you have actually been present, offers a break at a safe boundary, and writes a handoff so leaving costs you nothing.
Breather ships inside the AID plugin. No separate repository, no extra clone, and
claude plugin update aid updates it along with everything else.
claude plugin marketplace add ilandahan/AID
claude plugin install aid@AID
/breather-start # one time, activates itThe plugin carries the installer; /breather-start runs it. On the clone route,
install.sh, install.bat and /setup offer it at step 10 and install it only if you say
yes (default No; install.sh --with-breather or install.bat /breather skip the question).
It reads your calendar: see Data handling and privacy.
Either way, restart Claude Code afterwards so the hooks register, then
confirm with /hooks. A blank status line usually means the workspace trust dialog is still
waiting.
Breather installs to ~/.claude, not to your project, so it is active in every project
on the machine — not only AID ones.
One line appears above the prompt. It carries two clocks that have nothing to do with each other, so read them separately.
[breather] worked=2h40m rest_in=20m now=13:35 zone=offer cooldown=0m
sessions=3 busy=1 next_anchor=14:00 next_anchor_in=25m
usage=83% usage_resets_in=120m
| Field | Meaning |
|---|---|
worked |
Time you have been present today, across every session, with idle gaps over 20 minutes removed. Not session length. |
rest_in |
Minutes until the next stopping point — whichever comes first of fatigue, your next meeting, or the end of your day. |
zone |
quiet (nothing said) → alert (one line) → offer (three options) → boundary (handoff drafted). |
cooldown |
Above zero means an offer was recently made or declined, so Claude stays quiet. |
sessions / busy |
How many of your sessions are alive, and how many have Claude working right now. |
next_anchor |
The next fixed point you told it about this morning — a meeting, lunch, end of day. |
usage / usage_resets_in |
Your five-hour subscription window and its reset. Nothing to do with fatigue — this is billing, not tiredness. |
The rule breather holds itself to: quota may be a reason to stop, never a reason to keep going. Low usage is never presented as headroom you should spend.
| You want | Command |
|---|---|
| Quiet for 90 minutes | /breather-stop → snooze |
| No more offers today | /breather-stop → skip today |
| Remove it from the machine | /breather-stop → uninstall (affects every project, so it confirms first) |
| Tell it you are back from a break | type ! node ~/.claude/hooks/breather/mark.mjs resumed yourself (in an AID project the gate refuses this command to Claude, because it runs a file under ~/.claude/hooks) |
Handoffs are written to .aid/handoff/YYYY-MM-DD-HHMM.md: where exactly you stopped, what
you tried and rejected and why, open decisions, and the one concrete next step.
AID uses 27 specialized skills - domain expertise organized by role and phase.
Each skill ships as a pair: SKILL.md is the compact version the model loads, and
SKILL.extended.md is the human-readable companion. Keeping them separate means the model
spends its context on instructions rather than on formatting.
| Skill | Purpose |
|---|---|
why-driven-decision |
Foundational - loads first. No work without an articulated WHY |
reflection |
Quality Check scoring on every significant output |
phase-enforcement |
Enforce phase gates, refuse out-of-phase work |
context-tracking |
Track tasks, steps, progress across sessions |
learning-mode |
Decision transparency, feedback collection |
memory-system |
Feedback analysis, pattern detection, skill improvement |
| Skill | Phase | Purpose |
|---|---|---|
pre-prd-research |
0 | Business analysis, competitive research, problem validation |
aid-discovery |
0-1 | Stakeholder identification, success metrics |
aid-prd |
1 | User stories, acceptance criteria, scope definition |
aid-tech-spec |
2 | Architecture, API contracts, security design |
aid-impl-plan |
3 | Contradiction resolution, task breakdown, Jira population |
aid-development |
4 | Implementation guidance, TDD practices |
aid-qa-ship |
5 | Validation, release preparation, deployment |
| Skill | Focus Areas |
|---|---|
role-product-manager |
Requirements, user stories, scope, stakeholder alignment |
role-developer |
Code quality, TDD, technical feasibility |
role-qa-engineer |
Test strategy, bug reporting, acceptance testing |
role-tech-lead |
Architecture review, code review, technical direction |
role-data-scientist |
Data pipelines, ML models, RAG/CAG, prompt engineering, analytics, observability, governance, responsible AI |
| Skill | Purpose |
|---|---|
atomic-design |
Specification-to-code component system (atoms, molecules, organisms) |
atomic-page-builder |
Compose pages from existing components only |
system-architect |
Security-first architecture (ISO 27001, OWASP Top 10) |
test-driven |
TDD methodology, test patterns, coverage requirements |
cucumber-bdd |
Gherkin acceptance criteria + step definitions for JS, Python, Java, Ruby, Go |
code-review |
Quality review, security audit, production readiness |
nano-banana-visual |
AI-powered visual artifact generation (optional) |
| Skill | Purpose |
|---|---|
pipeline-orchestrator |
Drives the Phase 4-5 dev pipeline state machine with sub-agent review gates and hard iteration caps |
autoresearch |
Bounded keep/revert improvement loop - one edit at a time, kept only if it strictly improves the score |
role-data-scientist carries its own 6-phase rule set under .claude/rules/skills/, so the
lifecycle maps onto ML work instead of forcing it into a web-app shape:
| Phase | Data Science framing | Rules |
|---|---|---|
| 0 | EDA - data gathering & analysis | phase-1-eda.md |
| 1 | Feasibility assessment | phase-2-feasibility.md |
| 2 | Experiment planning | phase-3-experiment-planning.md |
| 3 | ML architecture & pipeline design | phase-4-ml-architecture.md |
| 4 | Development & validation | phase-5-development.md |
| 5 | Deploy to production & monitoring | phase-6-production.md |
Supporting references include an ML pipeline checklist, RAG architecture guide, prompt testing patterns, model card template, bias audit checklist and monitoring setup guide.
design spec (Source of Truth)
|
v
Design Tokens (colors, spacing, typography)
|
v
Atoms (Button, Input, Label, Icon)
|
v
Molecules (FormField, Card, SearchBar)
|
v
Organisms (Header, Sidebar, DataTable)
|
v
Templates (Page layouts)
|
v
Pages (Complete screens)
Critical Rule: design spec values are source of truth - zero deviation, no "improvements".
AID provides 44 slash commands organized by workflow.
| Command | Description |
|---|---|
/setup |
Complete guided setup for new users (recommended) |
/aid-init |
Initialize project with AID phases + memory system |
/link-project |
Link existing project to AID via symbolic links |
/start-project |
Initialize a new project from scratch |
| Command | Description |
|---|---|
/good-morning |
Morning startup - check systems, load context, continue |
/context |
Show current work context (tasks + steps) |
/context-update |
Update context manually |
| Command | Description |
|---|---|
/discovery |
Start Phase 0 - research and validation |
/phase |
Show current phase status |
/gate-check |
Check if ready to advance to next phase |
/phase-approve |
Human sign-off for current phase |
/phase-advance |
Move to next phase |
/aid-start |
Start session - select role & phase, write state in one call |
/aid-end |
End phase - background review + feedback in one prompt |
/aid-status |
Show current state (phase + session) |
| Command | Skill | Description |
|---|---|---|
/prd |
aid-prd | Create Product Requirements Document |
/tech-spec |
aid-tech-spec | Create Technical Specification |
/jira-breakdown |
- | Break spec into Jira issues |
/design-system |
atomic-design | Build design system from design spec |
/build-page |
atomic-page-builder | Compose pages from components |
/storybook |
atomic-design | Manage Storybook component previews |
/architecture |
system-architect | System architecture design |
/write-tests |
test-driven | Write tests (TDD methodology) |
/test-review |
test-driven | Review test quality |
/code-review |
code-review | Review code quality |
/qa-ship |
aid-qa-ship | QA validation and release |
| Command | Description |
|---|---|
/pipeline |
Start or resume the automated 12-step dev pipeline |
/pipeline-status |
Show current pipeline state and step history |
/reflect |
Detailed breakdown of the last Quality Check (--history, --strict, --explain) |
/yolo |
How to allow specific commands without prompts (scoped allow rules) |
/yolo-off |
How to remove the allow rules you added |
/breather-start |
Enable breather - break offers, presence tracking, status line |
/breather-stop |
Snooze breather offers, skip today, or uninstall |
| Command | Description |
|---|---|
/aid-improve |
Run learning cycle (requires 3+ feedback) |
/aid-memory |
Manage AID's local memory entries |
/aid-analyze |
Full quality analysis with metrics |
/aid-dashboard |
Generate quality dashboard report |
/aid-recommendations |
View/manage skill update recommendations |
/aid-reset |
Reset memory system (destructive) |
| Command | Description |
|---|---|
/aid-test |
Run the methodology test (Phases 0-4; --phase N, --quick, --verbose) |
/test-all-agents |
Run every agent test in sequence |
/test-reflection |
Test reflection-agent isolation and scoring |
/test-qa-validator |
Test QA validator criteria checking |
/test-phase-review |
Test phase gate validation |
Two independent layers, because they answer different questions.
The pytest tests under testing/e2e/ verify that AID itself works - not that
your application works. Run them after cloning, and after any change to a hook,
installer or link script:
pip install pytest pyyaml
npm run test:all # or: python -m pytest testing/e2e/ -vNarrower runs: npm run test:install, npm run test:mcp, npm run test:memory.
Some of them skip unless node and typescript are reachable from the shell that runs
hooks - run npm install first to exercise them. They skip, they do not silently pass.
| Suite | What it proves |
|---|---|
test_repo_integrity.py |
Every path the docs promise exists and runs - python -m memory_system, scripts/init-project.sh, the autoresearch assets, no skill without a SKILL.md |
test_agents_and_hooks.py |
All 42 agents are registered with valid frontmatter; every hook in settings.json exists and parses; no bare Bash in the allow list |
test_link_project_guards.py |
Linking refuses to run against the AID install itself, and refuses to link a source directory that is missing |
test_pipeline_hooks.py |
The Stop hook blocks in the schema Claude Code actually reads, respects stop_hook_active, and does not claim a tsc pass it never ran |
test_installation.py |
A fresh install produces a working tree |
test_mcp_sanity.py |
MCP templates are valid JSON and carry no real tokens |
Every assertion here corresponds to a defect that shipped silently, and each one
was verified by removing the fix and watching the test fail. A test that has
never been red is an unverified claim - see the docstring at the top of
test_repo_integrity.py for the specific defect behind each check.
Written by you (or by Phase 4 with /write-tests), and enforced by the pipeline:
npm run cucumber # executable Gherkin acceptance criteria
npm run cucumber:dry # validate feature files without running them
npm run test:bdd # Cucumber + HTML report in reports/
npm run test:smoke # @smoke-tagged scenarios only
npm run test:critical # @critical-tagged scenarios onlyThe TEST_REVIEW pipeline step hands these to test-review-agent, which looks for
over-mocking, weak assertions and coverage that measures nothing.
Recommended. AID ships as a Claude Code plugin: two commands, no cloning, no symlinks, and no Developer Mode on Windows.
claude plugin marketplace add ilandahan/AID
claude plugin install aid@AIDRestart Claude Code, then run /aid-init in any project. Every project gets the same 44
commands, 27 skills and 42 sub-agents, and one command moves them all forward:
claude plugin update aidUseful checks: claude plugin list, claude plugin details aid (component inventory and
projected token cost), claude plugin disable aid.
1. Open Claude Code in this folder
2. Type: /setup
3. Follow the step-by-step prompts
# Clone the repository
git clone https://github.com/ilandahan/AID.git
cd AID
# Run installation script
./install.sh # macOS/Linux
./install.bat # Windows
# Initialize your project (from this clone; plugin users type /start-project my-app,
# which runs: bash "${CLAUDE_PLUGIN_ROOT}/scripts/init-project.sh" my-app)
bash scripts/init-project.sh my-app
cd my-app
# The script does not write .aid/state.json: run /aid-start in Claude Code to set it up
# (needs the plugin; without it run: python "<AID>/hooks/aid_session.py" init <role> 0)
# Every morning
/good-morning# 1. Clone AID to shared location
git clone https://github.com/ilandahan/AID.git /shared/aid
# 2. From your project folder, link to AID
/link-project
# 3. All team members share the same methodology
# 4. Update AID centrally, all projects get updates| Layer | Technologies |
|---|---|
| Frontend | Next.js, React, TypeScript, SCSS |
| Backend | Node.js, Next.js API Routes |
| Database | PostgreSQL, Prisma ORM |
| Testing | Jest, Testing Library, Supertest, Chrome DevTools MCP |
| Deployment | Docker, Docker Compose |
/\
/ \
/ E2E \ <- Chrome DevTools MCP
/--------\
/Integration\ <- Real DB, APIs
/--------------\
/ Unit Tests \ <- Jest, Vitest (70%+ coverage)
/------------------\
- OWASP Top 10 mitigation at architecture level
- ISO 27001 compliance patterns
- Input validation with Zod
- XSS prevention (React auto-escapes)
- Authentication in httpOnly cookies
AID/
├── .aid/ # Per-project runtime state (created by /aid-init)
│ ├── state.json # Current phase state
│ ├── context.json # Work context tracking
│ ├── qa/ # Acceptance criteria the QA gate enforces
│ └── pipeline/ # Pipeline config (tracked) + run state (ignored)
├── .claude-plugin/ # Plugin manifests
│ ├── plugin.json # Name, version, and the hooks AID registers
│ └── marketplace.json # Lets the repo host itself as a marketplace
├── commands/ # 44 slash commands
│ ├── good-morning.md
│ ├── phase.md
│ └── ... (43 more)
├── skills/ # 27 specialized skills
│ ├── why-driven-decision/ # Foundational - loads first
│ ├── reflection/ # Quality Check + phase criteria
│ ├── pipeline-orchestrator/ # 12-step machine + gate.mjs
│ ├── autoresearch/ # Bounded keep/revert improvement loop
│ ├── cucumber-bdd/ # Gherkin across 5 languages
│ └── ... (23 more)
├── agents/ # 42 sub-agents - FLAT, one .md each, prompt inlined
│ ├── reflection-agent.md
│ ├── phase0-problem-validator.md
│ └── ... (36 more)
├── agent-assets/ # Calibration examples + AGENT-STANDARD.md (not scanned)
├── rules/ # 24 rule files, incl. the Data Science / ML track
├── references/ # Shared lookup data (role/phase terminology)
├── hooks/ # Phase gate, QA gate, pipeline enforcement,
│ # and aid_session.py (the /aid-start and /aid-end writer)
├── .claude/
│ └── settings.json # Permissions + hooks for PROJECT mode (copied on link)
├── testing/e2e/ # Tests covering AID itself
├── docs/
│ ├── prd/ # Phase 1 outputs
│ ├── tech-spec/ # Phase 2 outputs
│ ├── implementation-plan/ # Phase 3 outputs
│ ├── research/ # Phase 0 outputs
│ ├── PHASE-GATES.md
│ └── MORNING-STARTUP.md
├── memory-system/ # Learning & improvement
│ ├── memory_system/ # Python package: python -m memory_system
│ └── docs/
├── storybook-preview/ # Component preview workspace
├── integrations/ # MCP setup guides (jira, github, chrome-devtools)
├── scripts/init-project.sh # New-project scaffolding
├── install.sh / install.bat # Installers
├── link-project.sh / .bat # Link an existing project (one source of truth)
├── .mcp.json.mac / .windows # MCP templates - copy to .mcp.json; tokens come from env vars loaded from your OS keystore (see Credentials)
├── .gitattributes # LF for .sh, CRLF for .bat
└── CLAUDE.md # Critical instructions Claude loads every session
Claude Code reads a plugin's components from the plugin root, and a project's
components from .claude/. AID has to satisfy both from one copy of the files, so the
tracked files live at the root and install.sh mirrors them into .claude/ as symlinks
(macOS/Linux) or junctions (Windows, no admin needed).
Those mirrors are gitignored on purpose. core.symlinks defaults to false on Windows, so
a committed symlink checks out as a text file containing a path — a directory that isn't
one, which git reports as perfectly clean.
Three things here are load-bearing and easy to get wrong:
agents/is flat. Claude Code registers every.mdunderagents/as an agent, recursively. Asset folders there produced ~71 agents, most of them prompt fragments and calibration examples. Each agent is now one self-contained file with its prompt inlined, because an agent's working directory is the user's project — an external asset path resolves against their code, not the plugin..claude/settings.jsonstays put. It is project configuration, not a component.link-projectstarts a target's settings from its permissions block, and registers the hooks from.claude-plugin/plugin.json(throughscripts/link-settings.mjs) with absolute paths to this install, so a linked project runs the same gates as the plugin.- Hook commands use
"${CLAUDE_PLUGIN_ROOT}", always quoted. The likely install path contains a space; unquoted, the hook splits into two arguments and dies.
Upgrading from a pre-3.0 clone: run ./install.sh once. It recreates .claude/*, so
projects already linked to .claude/<name> keep working with no re-linking.
| Document | Description |
|---|---|
| INSTALLATION.md | Complete setup guide for all skill levels |
| CLAUDE.md | Critical instructions for Claude (phase gates, commands) |
| docs/PHASE-GATES.md | Phase system details |
| docs/MORNING-STARTUP.md | Daily workflow guide |
| docs/WORK-CONTEXT-TRACKER.md | Context tracking details |
| Current Labs architecture map | Interactive map of the Current Labs architecture, including the AID pipeline and role flows. |
| Current Labs platform | Production enterprise AI platform built using AID, with five governed role-flows. |
| memory-system/docs/ | Learning system documentation |
| agent-assets/AGENT-STANDARD.md | How to write a sub-agent |
| rules/ | Code standards, and the Data Science / ML phase rules |
1. /good-morning # Load context, check systems
2. /aid-start # Select PM role, Phase 1
3. /prd # Create requirements document
4. /phase-approve # Human approval
5. /aid-end # Collect feedback
6. /phase-advance # Move to Phase 2
7. /aid-start # Select Tech Lead role, Phase 2
8. /tech-spec # Create technical specification
9. /architecture # Design system architecture
10. /design-system # Extract design spec tokens
11. /phase-approve # Human approval
12. /phase-advance # Move to Phase 3
13. /jira-breakdown # Create Jira tasks
14. /phase-advance # Move to Phase 4
15. /aid-start # Select Developer role, Phase 4
16. /write-tests # TDD - tests first
17. [implement code]
18. /code-review # Quality check
19. /phase-advance # Move to Phase 5
20. /qa-ship # Final validation & deploy
21. /aid-end # Collect feedback
22. /aid-improve # Learn from session
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing) - Write tests first (TDD approach)
- Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open Pull Request
Created by Ilan Dahan
Built with Claude Code by Anthropic.
AID Community License v1.0 - Free to use, adapt, and share. Cannot be sold.
See LICENSE for full details.
- FREE: Use it in any project (personal, commercial, open source)
- ADAPT: Customize for your needs
- SHARE: Teach, present, write about it
- CREDIT: Attribute to Ilan Dahan / theaid.ai
- DON'T SELL: The methodology itself must remain free