Agent skill
brain-commit
Analyze changes in the Brain repo and create semantic commits. Use when the user wants to commit their brain changes with meaningful, organized commit messages. Analyzes staged/unstaged changes, groups related files, creates appropriate commits, and pushes without user interaction.
Install this agent skill to your Project
npx add-skill https://github.com/jonmagic/skills/tree/main/skills/brain-commit
SKILL.md
Brain Commit
Intelligently commit changes to the Brain repository (~/Brain) with semantic commit messages, then push to the remote. This skill is non-interactive: it should do its best without asking for confirmation.
Workflow
-
Navigate to Brain:
cd ~/Brain -
Sync from remote (non-interactive, prefer remote changes):
git pull --rebase --autostash -X theirs- If rebase fails, fallback to merge without prompts:
git rebase --abortthengit pull --no-rebase -X theirs --no-edit
-
Check status: Run
git statusto see what's changed -
Analyze changes: Group files by type/purpose:
Weekly Notes/→docs(weekly): ...Daily Projects/→docs(daily): ...Meeting Notes/→docs(meetings): ...Snippets/→docs(snippets): ...Executive Summaries/→docs(summaries): ...Transcripts/→docs(transcripts): ...Projects/→docs(projects): ...Archive/→chore(archive): ...- Skills/config files →
chore: ... - Multiple directories in one logical session → can combine if related
-
Create commits: For each logical group:
- Stage the related files:
git add <files> - Commit with semantic message:
git commit -m "type(scope): description"
- Stage the related files:
-
Push:
git pushafter all commits are created -
Report: Show what was committed and pushed
Semantic Commit Format
type(scope): short description
- Optional bullet points for details
Types for Brain
docs- Most content (notes, projects, snippets)chore- Maintenance (archiving, config changes)feat- New templates or structural additions
Scopes
weekly- Weekly Notesdaily- Daily Projectsmeetings- Meeting Notessnippets- Snippetssummaries- Executive Summariestranscripts- Transcriptsprojects- Projects folderarchive- Archive folder
Examples
Single directory changed
docs(daily): add queue outcomes migration plan
- Researched spamurai-next and hamzo codebases
- Documented migration approach for 14 outcomes
- Created implementation checklist
Multiple related changes
docs(weekly): update week of 2026-01-11
- Added TODO items
- Logged Monday activities
Mixed changes (multiple commits)
First commit:
docs(daily): add auto-archive queue entries plan
Second commit:
docs(meetings): add notes from team sync
Edge Cases
- No changes: Report "Nothing to commit, working tree clean"
- Only untracked files: Add them to the most sensible group and proceed
- Large number of files: Group by directory, don't create too many commits
- Single file change: One simple commit is fine
- Non-fast-forward push: Re-run the sync step once, then retry push
Safety
- Always show what will be committed before committing, but do not pause for confirmation
- Conflict resolution strategy: always prefer remote changes by using
-X theirsduring rebase/merge to avoid interactive conflict prompts - Never force push
- Never amend commits unless explicitly asked
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
markdown-to-standalone-html
Convert Markdown documents (*.md files) to self-contained HTML files with embedded images. Use when you need a portable, offline-friendly single HTML file from Markdown—ideal for blog posts, essays, reports, or any content that should work without external dependencies.
brain-operating-system
Quick reference for operating within jonmagic's second-brain workspace. Use when working with files in the brain repository—provides directory structure, naming conventions, append-only norms, wikilink patterns, frontmatter requirements, project conventions, and file organization rules. Essential for understanding where to create files, how to name them, and how to maintain continuity with existing structures.
semantic-commit
Generate semantic commit messages from staged changes. Use when committing code to produce consistent, well-structured commit messages following conventional commit format.
archive-meeting
Archive one or more meetings into the brain repo by importing Zoom transcript folders (~/Documents/Zoom/*) and/or downloaded Teams .vtt files (~/Downloads/*.vtt), then generating a transcript markdown file, an executive summary, and creating meeting notes. Use when the user says "archive meeting", "archive my last meeting", "process these transcripts", or similar.
session-to-brain
Archive a Copilot CLI session to the brain. Creates a daily project file with the session transcript and adds a resume link to the weekly note. Use when ending a significant work session to preserve context for future reference.
create-bookmark
Save a URL as a bookmark with frontmatter and a blurb or AI summary. Use when the user says "bookmark this", "save this link", or shares a URL they want to remember.
Didn't find tool you were looking for?