skills/commit/SKILL.md
Stage and commit uncommitted changes with conventional commit messages. Use for committing changes or grouping commits by topic.
npx skillsauth add TyrealQ/q-skills 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.
Stages and commits uncommitted changes with conventional commit messages. Groups files by topic when multiple unrelated changes are pending, runs cascade and CLAUDE.md freshness checks, and sweeps temp files after each commit. Does not push — hand off to /ship for that.
Run both commands to get the full picture:
git status --short
git diff --cached --name-status
git status --short shows unstaged modifications and untracked files. git diff --cached catches files that are already staged but not yet committed. Use the union of both outputs.
If both commands return empty, report "nothing to commit" and stop.
Classify each change:
M — modified, ?? — untracked, D — deleted, R — renamed, A — staged new file| Path pattern | Type |
|---|---|
| posts/, articles/, content/ | content/writing |
| .claude/skills/ | skill config |
| src/, *.go, *.py, *.ts, *.R, *.r | code/scripts |
| *.md | documentation |
| *.json, *.yaml, *.toml, *.csv | config/data |
If any modified files are scripts or data files:
If the working directory has a CLAUDE.md, read it and compare against the current project state — not just the changes being committed, but also decisions made during the session, new or renamed files on disk, and structural changes. Update CLAUDE.md before proceeding if any section reflects outdated state.
Grouping priority:
Follow conventional commits format from rules/git-workflow.md:
<type>: <description>
Types: feat, fix, refactor, docs, test, chore, perf, ci
Examples:
docs: add exploratory analysis notebookfeat: add batch processing to pipelinefix: correct citation formatting in reportchore: update project configKeep descriptions concise (under 70 chars).
git add <file1> <file2> ...
git commit -m "<message>"
Rules:
git add . or git add -A*.bak-*, .DS_Store, node_modules/)After the commit succeeds, remove these patterns from the working tree (skip .git/):
*.bak-*, *.pyc, *.pyo, *.swp, *.swo, *~, .DS_Store, Thumbs.db__pycache__/, .pytest_cache/, .mypy_cache/, .ruff_cache/List matches first, then delete. If nothing matches, note "no temp files to clean" and proceed.
find . -not -path '*/.git/*' -type f \( -name '*.bak-*' -o -name '*.pyc' -o -name '*.pyo' -o -name '*.swp' -o -name '*.swo' -o -name '*~' -o -name '.DS_Store' -o -name 'Thumbs.db' \) -print -exec rm -f {} +
find . -not -path '*/.git/*' -type d \( -name '__pycache__' -o -name '.pytest_cache' -o -name '.mypy_cache' -o -name '.ruff_cache' \) -print -exec rm -rf {} +
Run: git log --oneline -3
testing
Capture session decisions, conventions, and lessons into plan files, auto-memory, and CLAUDE.md so a fresh session resumes cleanly. Use for "hand off," "wrap up," "update docs for next session," or before /compact.
data-ai
Run exploratory data analysis on tabular datasets with measurement-appropriate statistics. Use for EDA, descriptive statistics, data exploration, or preparing data summaries for reports and manuscripts.
research
Orchestrate end-to-end academic manuscript preparation following APA 7th edition. Use for writing papers, drafting sections, or academic writing support.
development
Generate professional slide deck images from content with smart logo branding. Use for creating slides, presentations, decks, or PPT output.