/zsl:commitfrom zsl
Plan and create git commits autonomously for changes made in this session (no per-commit approval prompt). Cross-session dirty files — files modified outside this conversation's tool calls — get confirmed before inclusion. Explicit file lists only, never `git add -A`. No Claude attribution lines. Use when the user wants to commit, says "/commit", or asks to land changes — and composable by any skill that needs to land changes (e.g. commit-push-pr, tdd-parallel).
Ships in zsl. 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.
Fully autonomous for changes made in this session. Whoever summoned this skill — the user typing /commit, or another skill composing it as its commit step — that is the approval. Don't pause to ask "Shall I proceed?"
The only legitimate reason to stop and ask is cross-session ambiguity: dirty files in the tree that this conversation didn't produce.
flowchart TB
git["git status<br/>(every dirty + untracked file)"] --> q{"did this conversation<br/>touch the file?"}
q -->|"yes — Edit/Write/Bash<br/>in this session"| session["**Session bucket**<br/>auto-included"]:::good
q -->|"no — already dirty<br/>or external write"| other["**Other-origin bucket**<br/>confirm before including"]:::warn
q -->|"unsure"| other
session --> stage["explicit `git add <path>`<br/>(never `-A`)"]
other --> stage
stage --> rails{"safety rails"}
rails -->|".env* · *.pem ·<br/>credentials · >10MB"| skip["skipped<br/>(reported in summary)"]:::bad
rails -->|"clean"| route{"touches code?<br/>(SKILL.md · scripts ·<br/>plugin.json · mkdocs.yml)"}
route -->|"yes — any code file<br/>(mixed counts)"| branch["create feature branch<br/>(feature/ fix/ chore/…)"]:::warn
route -->|"no — only docs/**<br/>or .scratch/**"| onmain["stay on `main`"]:::good
branch --> commit["`git commit`<br/>no Claude attribution"]:::good
onmain --> commit
classDef good fill:#dcfce7,stroke:#16a34a;
classDef warn fill:#fef3c7,stroke:#d97706;
classDef bad fill:#fee2e2,stroke:#dc2626;
Classify the dirty tree.
git status to list every dirty and untracked file.Edit, Write, NotebookEdit, or files you created/modified through Bash commands you ran. You have the full conversation history; you know what you touched.Confirm the other-origin bucket (only if non-empty).
<path> — <one-line note on what kind of change, if known>./commit after staging by hand.Plan the commit(s).
git log --oneline -n 20 if unsure).Route to the right branch (PR-ship-style repos only — docs/agents/ship-style.md; trunk-style repos commit everything to main).
main. If every file in the commit is documentation (docs/**, narrative markdown like README.md / CLAUDE.md / docs/changelog.md) or lives under .scratch/, commit it directly on main. These are low-risk, board/tracker, and prose changes — a branch-and-PR round-trip buys nothing.*.py, *.sh, *.ts, …), the skill definitions themselves (**/SKILL.md and their bundled assets), and the sync/build manifests (.claude-plugin/plugin.json, .claude-plugin/marketplace.json, mkdocs.yml, Makefile). The distinction is what the file is, not its extension — a SKILL.md is code here, a docs/** markdown page is not.main, create it yourself — don't stop to ask — with the prefix convention (feature/ fix/ chore/ refactor/ env/, per /zsl:git-branch), then switch to it and commit. If you're already on a non-default branch, just commit there.Execute.
git add <file1> <file2> … — explicit paths only. Never git add -A, git add ., or any wildcard form that could sweep in untracked files you didn't intend.git commit -m "<message>" — use a heredoc for multi-line messages.git log --oneline -n <count> to verify.Report. One short line per commit: sha + subject — and the branch it landed on when that wasn't main. Done.
These checks fire automatically and do not count as "confirmation prompts" — they protect the commit, they don't ask permission:
.env*, *credentials*, *secret*, *.pem, *.key, files matching any pattern in .gitignore that somehow got dirty, and large binaries (>10 MB). Surface them in the final report as "skipped for safety" with a one-line reason each.--no-verify; never git commit --amend after a failed hook (the previous commit may not have been created at all, so amend would modify the wrong target).main (PR-ship-style repos) — a commit that touches code is rerouted to a feature branch by Step 4, not refused: the skill creates the branch itself and commits there. Only documentation (docs/**, narrative *.md) and .scratch/ changes commit straight to main. A mixed docs+code commit counts as code and goes to the branch whole.Co-Authored-By:, no "🤖 Generated with…", no trailer of any kind beyond what the repo's own commit convention requires.git add -A. Ever. Explicit file lists are how we prevent unrelated dirt from sneaking into a commit./commit./commit is invoked after work the user already knows about. Re-confirming each commit was friction without value.-A because the cost of a bad surprise (committing .env or a stash file) is far higher than the cost of typing a few paths.main, code to a branch because the two carry different risk. Prose and tracker edits are cheap to land and cheap to revert, so a PR round-trip is pure friction; code changes behaviour and deserves review, so they always get a branch (and a mixed commit is code). The skill makes that call and creates the branch itself — the opinion is enforced, not negotiated each time.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zunosmartlabs/zsl-superpowers --plugin zsl32 skills in this plugin
/afk-fanoutInteractive local-session scheduler for overnight remote /tdd-parallel runs. Reviews the queue of tracking PRDs with ready-for-agent children, lets the human pick which to run overnight and in what order, then schedules one one-shot remote routine per selected PRD spaced a fixed 2h apart — each fires its own remote claude.ai session running /afk-worker against one PRD. The 2h spacing is a deliberate throttle to stay under the per-5h-window token cap. Places a light scheduled claim on each PRD so a re-run the same evening won't double-book. Morning you walks the results via /morning-review./afk-workerRemote per-PRD executor fired by an /afk-fanout-scheduled one-shot routine. Runs unattended in its own remote claude.ai session — own clone, own working tree, own branch — so it never contends with other PRDs' workers. Flips the PRD's scheduled claim to in-progress, runs /tdd-parallel <num> --on-review-failure=continue --max 2, opens one integration PR, and on halt records the offending slice + RCA. Reports its outcome (claim state, PR URL or halt RCA) as a per-PRD entry on the shared afk-runs git branch that /morning-review reconciles back into the tracker, and fires a best-effort Telegram heads-up. Invoked by the scheduled routine, not by hand./ask-zslInteractive router that helps you find the right ZSL skill for what you're doing right now, without leaving your work. Use when you're mid-session and unsure which skill fits — "which ZSL skill should I use", "how do I do X with these skills", or when you want to be routed to the right part of the loop./codebase-designShared vocabulary and refinements for reasoning about module depth, interfaces, seams, and adapters — the deep-module design language. Use when discussing module/interface design, whether a module is deep or shallow, where to place a seam, how to design an interface for testability, or when exploring alternative interfaces for a module. Composed by /improve-codebase-architecture and /tdd./code-reviewComprehensive pre-PR code review of the current branch with an issues-only tone and an approval gate before applying fixes. Use when user wants a code review, mentions /code-review, or asks to scan the branch before opening a PR./commit-push-prCommit session changes, push the branch, and open a PR — in one shot. Refuses to run on the repo's default branch (main/master) so the PR step can't fail. Delegates the commit step to `/zsl:commit`, then pushes with `-u`, then opens the PR via `gh`. Use when user wants to ship a feature branch end-to-end, says "/commit-push-pr", or asks to commit, push, and open a PR.Other plugins' skills for the same job