misc-configs/claude/skills/custom-staged-commit/SKILL.md
--- disable-model-invocation: true context: fork argument-hint: [push] [issue-number] allowed-tools: Bash(git --no-pager diff:*), Bash(git rev-parse:*), Bash(git remote get-url:*), Bash(git commit:*), Bash(git push:*) model: haiku --- # Commit STAGED changes, optionally push ## Context - Current staged changes only: !`git --no-pager diff --staged` - Current branch: !`git rev-parse --abbrev-ref HEAD` - Remote URL: !`git remote get-url origin` - Arguments (issue number and/or `push`, empty if n
npx skillsauth add mauroporras/dotfiles misc-configs/claude/skills/custom-staged-commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
git --no-pager diff --stagedgit rev-parse --abbrev-ref HEADgit remote get-url originpush, empty if none): $ARGUMENTSCreate a commit for the STAGED changes above using git commit.
The arguments above may contain an issue number, the literal token push, both, or neither (order does not matter):
72).push.REQUIRED:
alpha, main, master, beta, production): normal commit.<type>(<scope>): <description>WIP(<current-branch>): <description>
Using the current branch as the scope and a brief conventional-style description of the staged changes.
Also pass --no-verify to git commit.72): body MUST be exactly Close #72. Pass it via a second -m.git push after committing if and only if the push token is present.NEVER:
After committing (and pushing, if requested), report the result using EXACTLY this format, one field per line and nothing else:
Subject: <the commit subject you generated>
Body: <the commit body if you added one (e.g. `Close #72`); omit this line otherwise>
Branch: <current branch, from the Context above>
Commit: <short commit hash, from the `git commit` output>
Pushed to: <GitHub commit URL; include this line only when you pushed to a GitHub remote, omit it otherwise>
Derive every field from data already available (the Context branch, the Context remote URL, and the git commit output). Do not run extra commands to populate it.
Build the Pushed to field as follows:
Pushed to line entirely.https://github.com/<owner>/<repo>:
[email protected]:<owner>/<repo>.git) becomes https://github.com/<owner>/<repo>.https://github.com/<owner>/<repo>.git) becomes https://github.com/<owner>/<repo>..git./commit/<short commit hash>.tools
--- disable-model-invocation: true allowed-tools: Read, Bash(git --no-pager log:*), Bash(git --no-pager diff:*) --- # Get familiar with the current branch's changes ## Context - Commits on this branch: !`git --no-pager log origin/HEAD..HEAD --oneline` - List of changed files: !`git --no-pager diff origin/HEAD...HEAD --stat` - Full diff: !`git --no-pager diff origin/HEAD...HEAD` ## Your task Analyze the changes purely based on the code (do not check the branch name, linked GitHub issues, PR
tools
--- disable-model-invocation: true allowed-tools: Write, Bash(gh:*) --- # Fetch and summarize this PR's UNRESOLVED comments ## Context - OWNER: !`gh repo view --json owner -q .owner.login` - REPO: !`gh repo view --json name -q .name` - PR_NUMBER: !`gh pr view --json number -q .number` ## Your task ### Step 1: Fetch unresolved inline review threads Use this GraphQL query (substitute OWNER, REPO, PR_NUMBER from context above): ```bash gh api graphql -f query=' query($owner: String!, $repo:
tools
--- disable-model-invocation: true allowed-tools: Read, Bash(git --no-pager diff:*) model: haiku --- # Summarize STAGED changes ## Context - Current staged changes only: !`git --no-pager diff --staged` ## Your task Summarize the changes purely based on the code (do not check the branch name, linked GitHub issues, PR descriptions, or any other contextual clues). REQUIRED: - Prioritize brevity over grammar: Keep messages short, even if grammatically imperfect NEVER: - Run additional Git
tools
--- disable-model-invocation: true context: fork allowed-tools: Bash(git checkout:*), Bash(git --no-pager diff:*) model: haiku --- # New branch for STAGED changes ## Context - Current Git diff (staged changes only): !`git --no-pager diff --staged` ## Your task Based on the above STAGED changes, create a new branch with a descriptive name. ALWAYS: - Prioritize brevity over grammar: Keep the branch name short, even if grammatically imperfect - Name the branch `<type>/<short-kebab-descript