/ai-sdlc:ai-sdlc-governancefrom ai-sdlc
Governance rules for AI-SDLC projects: merge policies, pre-commit checklist, git flow, and blocked destructive operations. Loaded at session start.
Ships in ai-sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
governance.allowMerge in .ai-sdlc/agent-role.yaml, rendered into the session hard rules; when it permits merging, the only path is cli-merge-if-eligible; never run the raw merge command. Do not run git merge into main or any other merge operation..ai-sdlc/review-policy.md for recurring false positives.gh pr close or gh issue close. The human decides what to close.git push --force or git push -f. A --force-with-lease push after a rebase is governed by allowForcePush (DEC-0264): lease = any non-protected branch, leaseOnOwnBranch (adopter default) = the task's own worktree only, never = no lease push. Do it without asking the operator when permitted, and never to main/master/protected branches.git branch -D or git branch -d.git reset --hard, git checkout -- ., git restore ..These rules are also enforced technically via ai-sdlc-plugin/hooks/enforce-blocked-actions.sh and .ai-sdlc/agent-role.yaml blockedActions.
Before EVERY commit, run these checks and fix any failures:
pnpm build # TypeScript compilation — catches type errors
pnpm test # All tests must pass
pnpm lint # ESLint — no errors allowed
pnpm format:check # Prettier — run `pnpm format` to fix
# Coverage is CI-only, not a local gate (AISDLC-726)
Before committing new .ts modules, verify:
src/**/*.ts file (not types.ts, index.ts) has tests somewhere.test.ts file OR in another test file that imports itDo NOT rely on CI to catch missing tests — check locally first.
Do NOT commit if any of these fail. Fix the errors first, then commit.
git fetch origin && git rebase origin/maingit push --force-with-lease origin HEAD:refs/heads/<branch> (a standalone command with the branch name written literally)gh api pulls/N/update-branch with merge method.feat:, fix:, test:, docs:, chore:, style:Complete ALL steps of a multi-step task before stopping: research, plan, implement, run the checklist above, commit with a conventional commit, push, open a PR (never merge it outside cli-merge-if-eligible), report. If blocked, say which step and why. When review agents post findings: APPROVE with suggestions is ready for merge per governance.allowMerge; CHANGES_REQUESTED with critical or major means fix and push again; a false positive means update .ai-sdlc/review-policy.md, never dismiss.
Reference material (project structure, cross-harness review variants, PR workflow, testing) lives in docs/operations/agent-governance-reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/decision-rubricApply a rigorous decision rubric when asking the user for a non-trivial design, architectural, or policy choice via AskUserQuestion. Six steps — question the requirement → problem statement → evidence: a separate research subagent checks every fact and dependency in the exact draft and writes a ledger that `cli-decisions evidence check` must pass before anything is asked → 3-4 options plus "what would reject all of these?" → recommendation, counter-argument and dependency trace → domain review — presented decision first, with the weakest assumption and what would falsify it. Replaces shallow "do you agree with the author's recommendation?" prompts. Invoke whenever the user is being asked to resolve an open question on ANY work item — an RFC, a backlog task, a GitHub/Jira/Linear issue, a design doc — or to pick a library or pattern, set a default, choose a deprecation policy, or make any choice they would later regret if the framing were shallow. Do NOT use for trivial preferences (naming, formatting, which file to edit first) — those get a plain AskUserQuestion with the header `Preference`./rfc-oq-walkthroughEnd-to-end workflow for resolving open questions in an RFC. Covers the full lifecycle from "operator picked an RFC to walk through" to "PR opened with resolutions + sign-off + implementation tasks." Use whenever the operator asks to walk through an RFC's open questions, re-walk a previously-resolved RFC with higher rigor, or generally make a Draft → Ready for Review lifecycle transition stick. Composes with [[decision-rubric]] for the per-OQ AskUserQuestion mechanics.npx claudepluginhub ai-sdlc-framework/ai-sdlc --plugin ai-sdlcOther plugins' skills for the same job