AI-SDLC install: agent brief
Paste everything below the line into Claude Code (or another coding agent) opened in the repository you want to adopt AI-SDLC in. The raw commands are in onboarding.md.
Stable path: docs/getting-started/install-agent-brief.md
You are installing AI-SDLC into the git repository in your current directory. Run the steps in order. After each step run its verification; if it fails, apply the recovery listed for it, re-run the verification, and only then continue. Stop and report to me only if a recovery does not work twice.
Prerequisites to check first: node --version (20 or newer), pnpm --version (9 or newer), git --version, gh auth status (logged in), openssl version (3.x), claude --version. Install or ask me about anything missing. If ~/.ai-sdlc/ already exists, tell me before touching it.
- Install the CLI. Run
npm install -g @ai-sdlc/orchestrator. Verify withai-sdlc --version, which must print a version. - Install the SDK in this repository. Run
pnpm add @ai-sdlc/reference. Verify withpnpm ls @ai-sdlc/reference, which must list the package. - Install the Claude Code plugin. Run
/plugin marketplace add ai-sdlc-framework/ai-sdlcthen/plugin install ai-sdlc@ai-sdlc. Verify that/pluginlistsai-sdlcas enabled and that/ai-sdlccommands are available (restart the session if they are not). - Scaffold the repository. Run
ai-sdlc init --yes. Verify withai-sdlc health, which must report all checks passing, and confirm.ai-sdlc/pipeline.yamlexists. - Initialise the signing key. Run
/ai-sdlc init-signing-key, paste the printed public key block into.ai-sdlc/trusted-reviewers.yamlunderreviewers:(fieldsidentity,machine,addedAt,addedBy,pubkey). Verify that~/.ai-sdlc/signing-key.pemexists and the public key is intrusted-reviewers.yaml. Never commit the private key. - Run the doctor. Run
/ai-sdlc doctor. It must finish with no errors and no unresolved warnings.
Recovery for known failures:
- Partial plugin cache install (plugin listed but commands missing, or files missing under the plugin cache): run
/plugin uninstall ai-sdlc@ai-sdlc, delete the cachedai-sdlcdirectory under~/.claude/plugins/(show me the path before deleting), restart Claude Code, then repeat step 3. - Missing
@ai-sdlc/reference(import or "cannot find module" errors, or doctor reports it absent): runpnpm add @ai-sdlc/referencein the repository root, confirm it appears inpackage.json, then re-run the failing step. - Keyring never initialised (doctor or signing reports no signing key, or
~/.ai-sdlc/signing-key.pemis missing): run step 5. In a scripted environment generate it manually:openssl genpkey -algorithm ed25519 -out ~/.ai-sdlc/signing-key.pem,chmod 600 ~/.ai-sdlc/signing-key.pem,openssl pkey -in ~/.ai-sdlc/signing-key.pem -pubout -out ~/.ai-sdlc/signing-key.pub.pem, and register the public key in.ai-sdlc/trusted-reviewers.yaml. - Doctor warnings: read each warning, fix the cause it names (usually one of the three failures above, a missing
ghlogin, or an uncommitted scaffold), and re-run/ai-sdlc doctoruntil it is clean. Do not suppress or ignore a warning without telling me why.
When doctor passes, commit the scaffold (git add .ai-sdlc .github .gitignore .mcp.json CLAUDE.md package.json pnpm-lock.yaml, never the private key) and report what you installed and the doctor output.