From agentic-sdlc
Create high-quality git commits: review/stage intended changes, split into logical commits, write clear Conventional Commits messages, and run the project's pipeline gate before each commit. Use when committing within an agentic-sdlc cycle or whenever staging changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-sdlc:commit-workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Make commits that are easy to review and safe to ship:
Make commits that are easy to review and safe to ship:
_/sdlc-config.md if present. Use overrides.pipeline_command from its frontmatter if set; otherwise resolve the pipeline command at use site from package.json:scripts.pipeline|ci|check (first match), falling back to a chained lint && typecheck && test && build.Inspect the working tree
git statusgit diff (unstaged)git diff --stat if many changesDecide commit boundaries
Stage only what belongs in the next commit
git add -p for mixed changes.git restore --staged -p or git restore --staged <path>.Review staged changes
git diff --cachedgit diff --cached | grep -i -E 'password|secret|token|api[_-]?key' and inspect).console.log, dbg!, print( in non-debug paths)._/ (the agentic-sdlc working dir is gitignored, but double-check)._/ paths inside staged files (e.g. a source file mentioning _/tracks/... in a comment). The working directory is local-only — code shipped to git must not point at it.Describe the staged change in 1–2 sentences before writing the message.
Run the pipeline gate
_/sdlc-config.md exists and frontmatter has overrides.pipeline_command set → run it.package.json:scripts and run the first of pipeline, ci, check.lint && typecheck && test && build (each from package.json:scripts.*; typecheck falls back to tsc --noEmit when tsconfig.json exists). Prefix every invocation with the detected package manager (npm/pnpm/yarn/bun).Write the commit message
<type>(<scope>): <short summary>
<body — what/why, not implementation diary>
<footer if needed — BREAKING CHANGE, Refs, Co-authored-by>
git commit -v.--no-verify / --no-gpg-sign unless the user explicitly asks. If a hook fails → investigate.Repeat until the working tree is clean.
git add -A / git add . blindly..env, lockfiles you didn't intend to bump, large binaries, or build artifacts.commit-work skill suggested it; this version enforces it)._/ paths in commit messages — no "see _/tracks/TICKET-1.md", no "per _/recordings/...", no mention of the track, scenario, or recordings. The agentic-sdlc working directory is local and gitignored; commit messages get pushed to GitHub and must not leak it. Cite code paths, ticket ids, and behavior — not the working dir.git diff --cached, pipeline output).Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub inperegelion/agentic-sdlc --plugin agentic-sdlc