Skip to content

About

AI SDLC Copilot CLI Plugin

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

aisdlc — AI SDLC Copilot CLI Plugin

Enforce Spec-Driven Development across the full SDLC loop — Spec → Tickets → Dev → Review → Update — from inside GitHub Copilot CLI. Integrates GitHub (gh) and Superpowers.

What's inside

  • Commands: /aisdlc:spec, /aisdlc:tickets, /aisdlc:develop, /aisdlc:review, /aisdlc:sync, /aisdlc:status
  • Agents: po-agent, qa-agent, devlead-agent, developer-agent, reviewer-agent
  • Skills: spec-driven-development, spec-to-tickets, ticket-driven-development, sdlc-review-and-sync
  • Prompts: acceptance-criteria, definition-of-done
  • Global instructions: instructions/sdlc-standards.md (surfaced to consumer repos via the SessionStart hook)
  • Hook: SessionStart injects the Spec-Driven Contract
  • Audit tooling: scripts/audit-helpers.mjs records the mandatory per-feature audit JSON and enforces the fail-closed stage gate

The Spec-Driven Contract

  1. No tickets without an approved spec. 2. No code without a ticket. 3. No merge without a passing review.
  2. Audit is mandatory — every step is recorded to a committed audit file.

Artifacts & mandatory audit

aisdlc owns a single artifact tree; Superpowers' docs/superpowers/** is left as-is (design input).

docs/aisdlc/
  specs/      <spec-id>.md        # canonical SDLC spec (Spec-ID, Gherkin, DoD)
  plans/      <issue#>-<slug>.md  # per-ticket implementation plans (produced at develop time)
  audit/      <spec-id>.json      # MANDATORY per-feature metrics/audit log (committed)
  decisions/  <spec-id>.md        # autonomous decision log

The audit JSON records every SDLC stage and every agent dispatch with start/end, duration, status, gate results, traceability (Spec-ID/issue/branch/PR/commit), and produced artifacts. It is written deterministically by scripts/audit-helpers.mjs and enforced fail-closed: each stage runs audit-helpers.mjs check-gate and refuses to proceed unless the prior stage's step is recorded and passed. Configure locations in .aisdlc.yml (spec_dir, plan_dir, audit_dir, decision_dir).

Install (teammates)

# From the Copilot CLI:
/plugin marketplace add <owner>/aisdlc-copilot-plugin
/plugin install aisdlc@aisdlc-marketplace

Then ensure GitHub access:

gh auth login
gh auth refresh -s project   # required for GitHub Projects v2

Configure a repo

cp .aisdlc.yml.example .aisdlc.yml
# edit repo, project_number, labels

Prerequisites

  • GitHub CLI (gh) authenticated. Node.js 18+ (for validation + helpers).
  • Recommended: the superpowers plugin installed (this plugin invokes its skills).

Demo: "Add a dark-mode toggle"

/aisdlc:spec Add a dark-mode toggle to the settings page
   -> brainstorming + PO/QA/Dev-Lead -> docs/aisdlc/specs/2026-07-20-dark-mode-toggle.md (Approved)
/aisdlc:tickets docs/aisdlc/specs/2026-07-20-dark-mode-toggle.md
   -> epic/stories/tasks as GitHub Issues (devlead decomposition; epic body holds the roadmap)
   -> idempotent: re-run to reconcile (create/update/close-obsolete), critic-reviewed, user-approved
/aisdlc:develop 42
/aisdlc:develop 42
   -> preflight: comprehend ticket + check-deps gate (hard-stop if a dependency isn't Done)
   -> Phase 1 Plan PR: writing-plans -> docs/aisdlc/plans/42-dark-mode.md, "Plan for #42", AI review+confidence, dev-lead merges
   -> Phase 2 Dev PR: branch feat/42-dark-mode, TDD via Superpowers, PR "Closes #42" (blocked until Plan PR merged)
/aisdlc:review 42
   -> reviewer checks acceptance criteria + verification, posts advisory confidence -> dev-lead Approves
/aisdlc:sync 42 --status Done
   -> board + issue reflect completion
/aisdlc:status
   -> table of specs, tickets, PRs and their stage

How the pieces connect

/aisdlc:<stage>  ->  command  ->  loads a stage skill
                                    |- dispatches role-agent(s)
                                    |- invokes Superpowers skill(s)
                                    |- calls gh (Issues / Projects / PRs)
                                    '- runs scripts/verify-artifacts.mjs (artifact gate)
Enforcement: instructions/sdlc-standards.md + SessionStart hook + per-command gates
             + per-stage artifact gate (verify-artifacts.mjs must exit 0 before handoff)

Artifact gate

Each stage declares the concrete artifacts it must produce and runs scripts/verify-artifacts.mjs <stage> before handoff, so steps that produce artifacts (e.g. the per-ticket Superpowers writing-plans → docs/aisdlc/plans/<issue#>-<slug>.md in develop Phase 1) can't be silently skipped:

node scripts/verify-artifacts.mjs spec    --spec docs/specs/<date>-<slug>.md
node scripts/verify-artifacts.mjs tickets --spec docs/specs/<date>-<slug>.md
node scripts/verify-artifacts.mjs plan    --issue <#>
node scripts/verify-artifacts.mjs develop --issue <#>
node scripts/verify-artifacts.mjs review  --issue <#>

Filesystem artifacts (spec/plan files + required sections) are enforced; GitHub checks degrade to warnings when gh is unavailable, so the gate still works offline and in CI.

Dependency gate (develop preflight)

Before any code, /aisdlc:develop runs a senior-dev preflight: comprehend the ticket, check dependencies, confirm clarity, and confirm scope. Tickets declare prerequisites in a ## Dependencies section plus a <!-- aisdlc-deps: <numbers> --> marker; the gate reads them and hard-stops (fail-closed) if any prerequisite isn't closed or Done:

node scripts/check-deps.mjs --issue <#>   # exit 0 clear, 1 blocked, 2 usage/config error

If a dependency is unmet, develop refuses to start — run /aisdlc:develop on the blocking ticket first.

Validate the plugin

node tests/validate.mjs   # or: npm test

Releasing / versioning

The repo is the marketplace, so pushing/merging to main publishes the plugin. Every publish must bump the version. Never hand-edit the version — it lives in three manifests (package.json, .claude-plugin/plugin.json, .claude-plugin/marketplace.json) that must stay in sync.

npm run bump -- patch   # or: minor | major | X.Y.Z
npm test                # validates structure + version consistency
git commit -am "chore: release vX.Y.Z"
git push                # -> main == publish

Semver: patch = fix/docs, minor = new command/skill/agent/prompt, major = breaking change. See the version-and-publish skill for the full checklist.

Decisions

See DECISION.md for the autonomous decision audit log and docs/aisdlc/specs/ for the design spec.

About

AI SDLC Copilot CLI Plugin

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages