ai-sdlc
A skill library that lets models carry a project's progress across sessions at
a consistent engineering standard. Two skills bracket the session lifecycle —
start (orient + plan) and finish (validate + hand off) — a shared core holds
the standard and the handoff file format, and a session-start hook makes
routing deterministic. Execution between the brackets is governed by the
standard, not scripted by a skill: the library states objectives and durable
contracts and leaves the how to the model.
Built for Claude Code, portable to any harness that loads SKILL.md-style skills.
The lifecycle
session start ──> sdlc-start ──> execution (STANDARD.md) ──> sdlc-finish ──> session end
orient, plan validate, hand off
| Skill | When |
|---|
sdlc-start | Before the first substantive task of a session, and again for any multi-step, risky, or ambiguous change. Two objectives: orient (goal, code, verification baseline, .ai-sdlc/state.md) and plan (observable success criteria, genuine forks, per-step verification). |
sdlc-finish | Before declaring a nontrivial change done and before the session ends: hostile self-review of the full diff with quoted evidence, then persist state.md + journal so the next session cold-starts. |
sdlc-core | Shared foundation the others reference: references/STANDARD.md (the engineering standard) and references/STATE-SPEC.md (the .ai-sdlc/state.md + journal.md handoff format). |
Start and finish are the gates; the work between them is governed by
references/STANDARD.md (root cause over patch, smallest coherent change,
verification ladder) rather than scripted by a skill — the standard states
the bar and the model decides how to clear it.
The handoff medium is two committed files per project:
.ai-sdlc/state.md (current truth, <60 lines) and .ai-sdlc/journal.md
(append-only session log), so any future session — any model, any harness —
can cold-start from the repo alone. Agent plans and state.md Next use the
Xit task profile defined in references/STATE-SPEC.md; no parallel task file
is created by default.
Install
Required dependency: jq must be installed and available on PATH.
Install it with your platform's package manager or the official binary from
https://jqlang.org/download/. The installer refuses to proceed when jq
is missing; the handoff hook also fails clearly rather than falling back to
another JSON parser.
Claude Code — as a plugin (zero manual steps):
/plugin marketplace add 0x7067/ai-sdlc
/plugin install ai-sdlc@ai-sdlc
Skills and both hooks register automatically. Plugin installs namespace
the skills (ai-sdlc:sdlc-start etc.); the session-start gate teaches
those names, so routing still works. One-off trial without installing:
claude --plugin-dir /path/to/ai-sdlc.
Any other harness — symlink install:
./install.sh
Symlinks the skills into ~/.claude/skills (override with SKILLS_DIR=,
e.g. SKILLS_DIR=~/.agents/skills for a shared cross-agent layer) and the
hooks into ~/.claude/hooks, then prints the two manual steps:
- Register the hooks in
~/.claude/settings.json under
hooks.SessionStart and hooks.Stop (entries printed by the script).
- Add the routing snippet from
agents-md/sdlc-lifecycle.md to your
global instructions (~/.claude/CLAUDE.md / ~/.agents/AGENTS.md).
The mechanical layer
Judgment the skills can delegate to a script, they do — a weaker model
complies with a command it must run far better than with prose it must
imitate. In skills/sdlc-core/scripts/:
| Script | Does |
|---|
orient.sh | One-command orientation for sdlc-start: git snapshot, state.md, journal tail, drift check, fill-in Orientation block. Scaffolds .ai-sdlc/ on first use. |
check-state.sh [--strict] [repo-dir] | Validates .ai-sdlc/ against STATE-SPEC; advisory mode warns when compaction is due, while strict mode makes overdue hygiene fail handoff. |
scaffold-state.sh | Emits the state.md skeleton, judgment slots marked TODO-SDLC. |
compact-journal.sh | Journal compaction: byte-for-byte retention, digest carry, folded entries printed for summarizing. |
diff-inventory.sh | One deterministic working-tree inventory (status, stats, untracked, stashes) for validate/handoff. |
TODO-SDLC is the contract between scripts and model: scripts mark every
judgment slot with it, and check-state.sh FAILs while any remains — so a
half-finished artifact cannot pass the gates.