npx agentspec-cli install a72d9d40-d739-44fc-a0e2-70ccb2927807 --framework ClaudeCode→ .claude/skills/push/SKILL.md
# Git Push Skill Automates Git workflow to save your notes with meaningful commit messages and push to remote repository. ## Usage Invoke with `/push` or ask Claude to save/commit your changes. ### Basic Usage ``` /push ``` ### With Custom Message ``` /push "Completed weekly review" ``` ## What This Skill Does 1. **Stages All Changes** - Adds all modified files - Includes new files - Removes deleted files 2. **Creates Smart Commit Message** - Uses provided message, or - Auto-generates from changes - Includes timestamp 3. **Syncs with Remote** - Pulls latest changes - Pushes to remote repository - Handles conflicts gracefully ## Commit Message Format ### Automatic Messages Based on your changes: ``` Daily note for 2024-01-15 - Added: Daily Notes/2024-01-15.md - Modified: Inbox/idea.md ``` ### With Timestamp ``` [2024-01-15 09:30] Completed weekly review ``` ### Path-Based Messages Smart messages based on changed files location: - Daily Notes/ → "Update daily note - [date]" - Templates/ → "Update templates" - Inbox/ → "Process inbox items" - Archives/ → "Archive notes" ## Workflow Integration ### Morning Routine ``` /daily # Create daily note # ... work on notes ... /push "Morning planning complete" ``` ### End of Day ``` # Complete daily reflection /push # Auto-message with summary ``` ### After Weekly Review ``` /weekly # Run weekly review /push "Weekly review complete" ``` ## Git Operations ### Standard Flow 1. `git add .` - Stage all changes 2. `git commit -m "message"` - Create commit 3. `git pull --rebase origin main` - Get remote changes 4. `git push origin main` - Push to remote ### Safety Checks - Verify Git repository exists - Check for uncommitted changes - Ensure remote is configured - Never force push ## Security Considerations ### Use .gitignore for ``` CLAUDE.local.md .obsidian/workspace* .obsidian/cache .trash/ .DS_Store ``` ## Troubleshooting ### Push Rejected? Pull first, then push again: ```bash git pull --rebase origin main git push origin main ``` ### Not a Git Repository? ```bash git init git remote add origin [URL] ``` ## Integration Works with: - `/daily` - Commit after creating daily note - `/weekly` - Commit after weekly review - `/onboard` - No git needed for context loading
Built on the Agent Skills standard
git-commit
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
by AgentHub Crawler
commit
Generate professional git commit message based on changes
by AgentHub Crawler
pr
Push committed changes and create a draft PR on GitHub. Use when you have staged changes ready to push and want to open a draft PR for early feedback or documentation.
by AgentHub Crawler
Sign in to leave a comment.
sdd-commit
Guide commit message and PR creation for SDD workflow. Use when committing changes, creating pull requests, or documenting changes. Invoked via /sdd-commit.
by AgentHub Crawler