Borrowing it
Nothing to install: this file belongs to solanabr/solana-glossary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/solanabr/solana-glossary/main/.claude/commands/quick-commit.mdgit clone --depth 1 https://github.com/solanabr/solana-glossaryWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/solanabr/solana-glossary/quick-commit)<a href="https://agentmods.dev/commands/solanabr/solana-glossary/quick-commit"><img src="https://agentmods.dev/badge/commands/solanabr/solana-glossary/quick-commit/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/solanabr/solana-glossary/quick-commit"><img src="https://agentmods.dev/badge/commands/solanabr/solana-glossary/quick-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.03577 |
| Opus 5.5 | $0.00005 | $0.01431 |
| Sonnet 5.5 | $0.00003 | $0.00715 |
| Haiku 4.5 | $0.00001 | $0.00358 |
Grade A, and why
quick-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to quick-commit — 529 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 526 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are creating a quick commit. This command formats code, runs lints, generates a conventional commit message, and commits changes. If starting a new task, it creates a feature branch first.
Overview
This command automates the commit workflow:
- Check if new task → create feature branch
- Stage changes (or confirm staged changes)
- Format and lint code
- Run quick tests
- Generate conventional commit message
- Create commit
Step 0: Check for New Task / Feature Branch
echo "🌿 Checking branch status..."
# Check if we're in a git repository
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "❌ Not a git repository"
exit 1
fi
# Get current branch
CURRENT_BRANCH=$(git branch --show-current)
echo "Current branch: $CURRENT_BRANCH"
# Check if we're on main/master (starting a new task)
if [ "$CURRENT_BRANCH" = "main" ] || [ "$CURRENT_BRANCH" = "master" ]; then
echo ""
echo "📌 You're on $CURRENT_BRANCH. Starting a new task?"
echo ""
# Get today's date in DD-MM-YYYY format
TODAY=$(date +%d-%m-%Y)
# Analyze changes to determine branch type and name
analyze_for_branch() {
local diff_output=$(git diff --name-status)
local staged_output=$(git diff --cached --name-status)
local all_changes="$diff_output$staged_output"
# Determine type
if echo "$all_changes" | grep -q "test"; then
BRANCH_TYPE="test"
elif echo "$all_changes" | grep -q "\.md$"; then
BRANCH_TYPE="docs"
elif echo "$all_changes" | grep -qE "\.(ts|tsx|js|jsx)$" && echo "$all_changes" | grep -qv "^programs/"; then
BRANCH_TYPE="feat"
elif echo "$all_changes" | grep -q "^programs/\|\.rs$"; then
BRANCH_TYPE="feat"
else
BRANCH_TYPE="feat"
fi
# Get descriptive name from first significant file
local first_file=$(echo "$all_changes" | head -1 | awk '{print $2}')
local file_basename=$(basename "$first_file" 2>/dev/null | sed 's/\.[^.]*$//' | tr '_' '-' | tr '[:upper:]' '[:lower:]')
# Determine scope for name
if echo "$all_changes" | grep -q "^programs/"; then
BRANCH_SCOPE="program"
elif echo "$all_changes" | grep -qE "^(app|src|components)/"; then
BRANCH_SCOPE="frontend"
elif echo "$all_changes" | grep -q "^tests/"; then
BRANCH_SCOPE="tests"
else
BRANCH_SCOPE=""
fi
# Generate branch name
if [ -n "$BRANCH_SCOPE" ]; then
SUGGESTED_BRANCH="$BRANCH_TYPE/$BRANCH_SCOPE-$file_basename-$TODAY"
else
SUGGESTED_BRANCH="$BRANCH_TYPE/$file_basename-$TODAY"
fi
}
analyze_for_branch
echo "💡 Suggested branch: $SUGGESTED_BRANCH"
echo ""
echo "Options:"
echo " 1. Create branch: $SUGGESTED_BRANCH"
echo " 2. Enter custom branch name"
echo " 3. Stay on $CURRENT_BRANCH (not recommended)"
echo ""
# ASK USER which option they prefer
# Default: create the suggested branch
# Create branch
echo "Creating branch: $SUGGESTED_BRANCH"
git checkout -b "$SUGGESTED_BRANCH"
if [ $? -eq 0 ]; then
echo "✅ Created and switched to: $SUGGESTED_BRANCH"
CURRENT_BRANCH="$SUGGESTED_BRANCH"
else
echo "❌ Failed to create branch"
exit 1
fi
fi
echo ""
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 526 lines · 13 tokens per session scan A 383de92f33c7
quick-commit is a command published in the GitHub repository solanabr/solana-glossary (18 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 3,577 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to quick-commit, differing in 529 lines, and is treated as a copy.
Other commands, from other repositories
commit
A command that checks staged Git changes and creates a commit from them.
pre-pr-check
Perform a comprehensive pre-PR check: summarize changes, analyze risk, and generate a review checklist.
port-upstream
Prepare, submit and track an upstream contribution from port work (linux-phone-porting).
improve
Run ONE iteration of the continuous-improvement loop — pick the highest-value backlog item, implement it, verify end-to-end, commit.
commits
Hostile audit of every commit message in a range against the diff it labels: assume every label lies until the hunks prove it — release automation (release-please, semantic-release) reads only the message, so a mislabeled commit silently mis-versions the release.
_committing
Trigger: about to run git commit. Binding on every commit a command creates — the findings commit gate, a fix's code commit, and any commit made while carrying out extra instructions. A run that creates no commit never loads this.