← ClaudeAtlas

cbplisted

Commit and push, branching off first when on the default branch
svyatov/agent-toolkit · ★ 0 · AI & Automation · score 76
Install: claude install-skill svyatov/agent-toolkit
Branch and status: !`git status --short --branch` Changed files: !`git diff HEAD --stat || true` Recent subjects: !`git log --oneline -10 || true` Commit everything above and push, never onto the default branch. 1. Read the full diff (`git diff HEAD`) and every untracked file `git status` lists before writing anything. 2. Scan it for credentials, tokens, private keys, and any value that does not belong in this repository. If you find one, stop, commit nothing, and report what you found. 3. If the current branch is the repository's default branch, create and switch to a new one first: `type/kebab-description`, where `type` matches the Conventional Commit type you are about to use and the description comes from the change itself. 4. Stage the changes. Prefer explicit paths over `git add -A`. 5. Write a Conventional Commit `type(scope): description`, matching the subject style already in `git log`. Follow the `oss-writing` skill for the wording. $ARGUMENTS is a hint at what the change is about, not the message itself. 6. Commit, then `git push -u origin HEAD`. 7. Report the branch, the subject, and the short hash. Split into several commits when the diff covers unrelated changes.