/claude-resources:co [push] [auto|forbid] [--no-push] [--push-auto]from claude-resources
Commits changes with logical grouping and conventional commit messages, with optional push. Supports auto-commit and forbid modes for session control.
Ships in claude-resources. 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.
Parse $ARGUMENTS case-insensitively, hyphens optional:
push — also push after committing.auto — for the rest of the session, commit after each meaningful unit of work (feature, fix, refactor) without asking. Then commit whatever is pending now.forbid — for the rest of the session, make NO commits unless the user explicitly asks (an explicit /co still commits, and does not lift the mode). For try-and-error development. Set the mode, confirm in one line, and stop — commit nothing now.--no-push / --nopush — invoke /push-forbid before committing.--push-auto / --pushauto / --push-ok / --pushok — invoke /push-auto before committing.auto and forbid are explicit user choices: apply them immediately, no confirmation question. They are session instructions like /push-auto / /push-forbid, not stored state, and are independent of the push mode. Under auto, still ask when unsure whether a specific file belongs in a commit.
The commit work runs in a Haiku subagent so the main session sees only a summary, never the git diff, file-selection reasoning, or message drafting.
git status --porcelain
git rev-list --count @{upstream}..HEAD 2>/dev/null || echo "unknown"
push given → no subagent. Ahead: push per the Push rules below. unknown (no upstream): git push -u origin $(git branch --show-current). Report and stop.push → report "Nothing to commit. N commit(s) ahead of remote — use /co push to push." and stop.Spawn an Agent with model: "haiku". Its prompt is the Instructions section below plus the repo path, whether push was requested, and the session's Co-Authored-By line if the session specifies one. On success, relay its report and stop.
Only if the subagent failed (partial commits, conflict, any error): run git status and git log --oneline to see where it stopped, then carry out the Instructions for the remainder in this session.
Inspect — git status, git diff --stat.
Keep junk out via .gitignore. If the status shows files that must never be committed — dependencies (node_modules/), build output (dist/, build/, .next/, out/), logs, temp/swap files, OS files (.DS_Store, Thumbs.db), caches, coverage, env files (.env*), secrets (*.pem, *.key, credentials.json) — add the missing patterns to .gitignore (create it if the project has none), and git reset HEAD <file> anything already staged. If such a file is already in history, tell the user. IDE dirs and lockfiles are context-dependent: follow the repo's existing practice.
Stray images are the exception — NEVER add image globs (*.png etc.) to .gitignore; that can silently exclude real assets. Images in the repo root or non-content dirs are usually headless-browser or conversation leftovers: delete them if no longer needed, otherwise move them out: LOGDIR=$(node $HOME/.claude/scripts/get-logdir.js) && mkdir -p "$LOGDIR" && mv <file> "$LOGDIR/".
Stage selectively — never a blind git add .. Only intentional, meaningful changes; skip auto-generated noise. Unsure about a file → ask.
Group — one commit when changes are small and related; separate commits for unrelated concerns (docs vs code, feature vs fix, refactor vs new behavior, config vs source). Prefer small focused commits.
Commit — conventional style (feat:, fix:, docs:, refactor:, …), HEREDOC message, ending with the Co-Authored-By line you were given, else Co-Authored-By: Claude <[email protected]>:
git commit -m "$(cat <<'EOF'
feat: message here
Co-Authored-By: Claude <[email protected]>
EOF
)"
Push — only if push was requested; see Push rules.
Verify — git status is clean; show git log --oneline -n <commits made>.
Never git commit --amend and never force-push without explicit user permission — always make new commits.
git rev-list --count @{upstream}..HEAD: 0 → nothing to push. unknown → git push -u origin $(git branch --show-current).git fetch && git rev-list --count HEAD..@{upstream}.git push directly. Do NOT pull. A pull is a no-op at best; with --rebase it replays every local commit, flattening any merge commit on the branch and re-applying its contents as fresh work — manufacturing conflicts (typically lockfiles) where there was nothing to reconcile.git pull --no-rebase (regular merge; never rebase), then git push.First re-check the behind-count. If it is 0 the pull should never have run: git merge --abort, plain git push, and treat the conflict as an artifact.
git merge --abort, then report the branch name and conflict details to the caller/manager, who has the full picture.git merge --abort, inspect incoming work with git log --oneline HEAD..@{upstream}, pull again to see the conflicts. Trivial (whitespace, non-overlapping) → resolve, commit, push. Overlapping logic or unclear intent → abort again and resolve deliberately with full knowledge of what was implemented before retrying.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub takazudo/claude-resources --plugin claude-resources84 skills in this plugin
/bambu-3mfCreate/edit Bambu Studio 3MF projects from a saved printer template. Use for Bambu/H2D printable parts, plate arrangement, 3MF revisions, or print settings, even when the input is STL/STEP./big-planPlan work as one epic plus child GitHub issues, with review and verification. Use for /big-plan, implementation planning/decomposition, UI brainstorming that should end in a plan (-pr), or issue sweeps (-is/-isask)./cclogsLoad recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists.Other plugins' skills for the same job