README
sdlc-plugin
A Claude Code plugin that automates software development lifecycle workflows
(commit, version, PR, plan, review, ship, Jira sync) through an MCP server and
a set of session/tool-use hooks. The plugin itself is a small shell launcher;
the actual logic is a single compiled Go binary (sdlc) fetched on first use
and cached locally.
This repository is both the plugin and its own marketplace: marketplace name
sdlc-plugin (.claude-plugin/marketplace.json, repo root) lists one plugin,
sdlc, whose source lives at plugins/sdlc/ (plugins/sdlc/.claude-plugin/plugin.json).
New to this plugin? See docs/getting-started.md
for install, project setup, and the day-to-day skill workflow. This README
covers how the plugin works internally.
Website: rnagrodzki.github.io/sdlc-plugin shows the product pages, the skill pages and the docs.
Install
/plugin marketplace add rnagrodzki/sdlc-plugin
/plugin install sdlc@sdlc-plugin
Then reload plugins so Claude Code picks up plugins/sdlc/.mcp.json and
plugins/sdlc/hooks/hooks.json:
/reload-plugins
Reload plugins (or restart the session) again any time .mcp.json or
hooks/hooks.json change, including a plugin update — neither file is
picked up mid-session without one.
First-run binary fetch
plugins/sdlc/.mcp.json and every entry in plugins/sdlc/hooks/hooks.json
invoke the same script, plugins/sdlc/bin/sdlc-launcher.sh (the only file
under plugins/sdlc/bin/ checked into git — see .gitignore). On each
invocation the launcher:
- Reads the plugin version from
plugins/sdlc/.claude-plugin/plugin.json. - Looks for a cached binary at
${SDLC_CACHE_DIR:-$HOME/.sdlc-cache}/bin/sdlc-<version>-<os>-<arch>. - If missing, takes an
mkdir-based lock, downloads that asset pluschecksums.txtfrom thev<version>GitHub Release of this repo, verifies the SHA-256 checksum,chmod +x, and atomically renames it into the cache before exec’ing it.
The launcher never blocks or hangs a Claude Code session: any transient
failure (offline, download error, checksum mismatch, lock timeout) prints a
one-line diagnostic to stderr and exits 0 (“fail open”), so a hook simply
degrades silently and the MCP connection retries on the next attempt. The one
exception is an unsupported OS/arch, which exits non-zero since retrying
can’t help.
Timeout budgets differ by mode: hook invocations (hook <name>) get ~1s
connect/max-time budgets, since a hook runs inside Claude Code’s own hook
timeout (3-10s, see plugins/sdlc/hooks/hooks.json) and must fail open fast rather than
attempt a real download. The MCP connect path (mcp) gets a 60s max-time /
65s lock timeout and is the path that actually completes a cold download.
Practical effect: on a cold cache, hooks (including the SessionStart
banner) may show nothing on the very first session — that’s expected. Opening
the MCP connection (which /reload-plugins and any tool call trigger)
finishes the download; hooks work normally from the next session on.
All of the above is overridable via environment variables:
SDLC_CACHE_DIR, SDLC_LAUNCHER_LOCK_TIMEOUT_S,
SDLC_LAUNCHER_CURL_CONNECT_TIMEOUT_S, SDLC_LAUNCHER_CURL_MAX_TIME_S.
Forcing a re-fetch
There is no re-fetch flag — the launcher only downloads when the cached binary is absent. To force a fresh download (e.g. after a checksum failure, or to pick up a new release under the same version), delete the cached binary and let the next invocation re-fetch it:
rm ~/.sdlc-cache/bin/sdlc-<version>-<os>-<arch>
# or, to reset the whole cache (including any stale lock directories):
rm -rf ~/.sdlc-cache
<version> is the version field in plugins/sdlc/.claude-plugin/plugin.json; <os> is
darwin/linux; <arch> is amd64/arm64.
Usage
Tool surface
The MCP server (sdlc mcp) registers 35 tools across 17 groups (grepped from
internal/tools/*.go, wired in cmd/sdlc/main.go):
| Group | Tools |
|---|---|
| Commit | commit_prepare, commit_apply |
| Pull request | pr_prepare, pr_apply |
| Plan | plan_prepare, plan_mark, plan_explore_prepare, plan_support |
| Review | review_prepare, received_review_prepare, received_review_verify |
| Ship | ship_prepare, ship_verify_side_effect, ship_state |
| Execute state | execute_state |
| Jira | jira |
| Setup & migrate | setup_prepare, setup_init, setup_write_sections, migrate |
| Polling | poll_await, verify_pipeline_classify |
| Validation & links | validate, links_validate, mcp_failure_record |
| CI scaffolding | scaffold_ci, verify_tag_ancestry |
| Orchestrator | prepare_orchestrator |
| OpenSpec | openspec_enrich, openspec_save |
| Dimensions rendering | dimensions_render_instructions |
| Learnings | learnings_log |
| Instructions | instructions_resolve |
| Dashboard | dashboard, dashboard_card |
These are consumed by the plugin’s skills (under plugins/sdlc/skills/), not typically
called by name directly.
Migrating a Node-era (pre-v5) project
Config is read from .sdlc-v2/config.toml (project) and .sdlc-v2/local.toml
(user-local, gitignored). Personal settings for every project go in
~/.sdlc/local.toml (or the path in SDLC_USER_CONFIG), and
.sdlc-v2/local.toml overrides it key by key. If any legacy pre-v5 marker
file is found —
.claude/sdlc.json, .claude/version.json, .sdlc/jira-config.json,
.sdlc/ship-config.json, .sdlc/review.json, .claude/review.json,
.sdlc-v2/config.json (a v0/JSON-era config left in the current data dir) —
any tool that needs config fails with an error naming the migrate tool
(internal/config/config.go, detectLegacy).
Ask Claude to run the migrate tool to move a project from the legacy
(Node-plugin era) layout to the current one. It takes one of two actions,
each independently, with an optional dryRun:
config— schema-migrates the legacy config file(s) into.sdlc-v2/config.toml.import— non-destructively copies config, templates, jira-templates, learnings, and review-dimensions from the old plugin’s data directory into the current one, skipping anything that already exists.
For a project that has never had any sdlc config (not a migration, a fresh
install), use setup_init instead — it scaffolds .sdlc-v2/config.toml and
.sdlc-v2/local.toml from scratch.
Automation config
.sdlc-v2/local.toml’s automation section controls how much confirmation
pipeline steps require (internal/config/config.go):
mode—supervised(default) orunattended.reviewFixIterations— max automatic review-fix loops (default 3).reviewFixSeverityThreshold— minimum severity that blocks ship without a fix (defaulthigh).steps— a per-step map overridingmodewithautoorconfirmfor an individual pipeline step; a per-step override always wins overmode.
unattended mode plus per-step auto overrides is what lets a pipeline run
end-to-end (commit → version → PR → ship) without stopping for confirmation
at each step; supervised is the safer default for interactive use.
Development
- Go module at the repository root; entry point
cmd/sdlc/main.gowith subcommandsmcp,hook <name>,version. go build ./...andgo vet ./...must pass before committing.Taskfile.ymldefines dev tasks;task deploybuilds and installs the binary sosdlc-launcher.shpicks up a local build.go test -tags integration ./...runs the integration-tagged suite (see.github/workflows/test.yml, which runs on every PR).- The launcher itself has no Go test — it’s exercised by
internal/launcher/launcher_test.sh, a bash harness that stubscurlonPATHto deterministically cover the happy path, checksum mismatch, network failure, warm-cache, and concurrent-invocation cases without any real network access. - Releases are cut by
.goreleaser.yaml(darwin/linux × amd64/arm64,sdlc-<version>-<os>-<arch>binaries, no archive format, plus a sha256sum-compatiblechecksums.txt), triggered by pushing av<version>tag (.github/workflows/release.yml).lefthook.ymlruns the samego vet+ test steps as CI onpre-push. site/is the Astro project of the website. It builds the pages fromREADME.md,CHANGELOG.mdanddocs/**(notdocs/internal/**). It uses bun.task site:installinstalls the packages,task site:devserves the site with live reload,task site:testruns the Node tests, andtask site:buildbuilds the site and checks its routes and links. These checks run only in.github/workflows/site.yml;lefthook.ymldoes not run them. Theversionof each entry insite/src/data/assets.jsonandsite/src/data/step-times.jsonmust not be older than the newest minor release inCHANGELOG.md. Page style rules:docs/internal/skill-page-style.md. Design reference:docs/internal/site-design/.
Troubleshooting
“sdlc binary not ready — run any sdlc tool or re-open session” keeps
appearing. The launcher failed open. Check the preceding
sdlc-launcher: ... diagnostic line on stderr:
download failed: <url>— offline, or no GitHub Release exists yet for the version inplugins/sdlc/.claude-plugin/plugin.json. Confirm a release taggedv<version>exists athttps://github.com/rnagrodzki/sdlc-plugin/releasesand that its assets includesdlc-<version>-<os>-<arch>andchecksums.txt.checksum mismatch for ... — download aborted, nothing cached— the downloaded binary didn’t matchchecksums.txt. Nothing is cached in this case; just retry (transient network corruption) or re-check the release assets if it persists.timed out waiting for fetch lock ...— a previous launcher invocation was killed mid-download and left its lock directory behind (themkdir-based lock has no liveness check, by design — see the comment inplugins/sdlc/bin/sdlc-launcher.sh). Remove it manually:rmdir ~/.sdlc-cache/bin/.fetch-<version>.lock.cached binary missing or not executable: <path>orunsupported OS/arch— see “Forcing a re-fetch” above, or file an issue if your platform isn’tdarwin/linux×amd64/arm64.
Tools don’t show up / MCP server doesn’t respond. Run /reload-plugins.
plugins/sdlc/.mcp.json and plugins/sdlc/hooks/hooks.json are only read on
plugin load or explicit reload, not on every message.
No SessionStart banner on a brand-new install. Expected on a cold cache
— see “First-run binary fetch” above. Trigger a fresh SessionStart with
/clear (matcher is startup|clear|compact, plugins/sdlc/hooks/hooks.json)
once the first MCP connection has completed the download.
Legacy config error naming migrate. See “Migrating a Node-era
project” above.