hay-kot/dotfiles/wrap
Claude Code and agent skill by hay-kot/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Wrap up a work session - organize commits, push branch to remote, update task state
Install
npx vskill@latest install hay-kot/dotfiles/wrapSKILL.md
Wrap - Session Wrap-Up
Wrap up a work session by organizing changes into logical commits, pushing the branch to remote, and capturing task state. Work is NOT complete until git push succeeds.
Usage
Assumptions
- You are on a feature branch (not main). If on main, create a branch first and ask the user for a name.
- The branch is yours. Do not pull or rebase from remote unless push is rejected.
- Only update
hive hctasks that were explicitly worked on during this session.
Workflow
Execute ALL steps in order.
Step 1: Assess State
Understand what's changed, what's staged, and what's already committed.
Step 2: Organize and Commit Changes
If there are uncommitted changes:
- Review all changes:
git diff,git diff --cached, and untracked files. - Skip irrelevant files: Temporary files, scratch files, debug logs, or files unrelated to the session's work. Report what you're skipping and why (e.g., "Skipping
scratch.py- temporary test file"). - Group into logical commits: Analyze the changes and organize them into coherent units. Each commit should represent one logical change. Stage specific files per commit with
git add <files>. - Write clear commit messages: Follow the repo's commit style. Concise messages that assume codebase familiarity.
Do NOT use git add -A or git add .. Stage specific files for each logical commit.
Step 3: Run Quality Gates
Discover available tasks and run checks:
- CLAUDE.md / AGENTS.md: Look for project-specific check/lint/test commands
- `mi --ls`: Lists all available tasks across Taskfile, Makefile, and mise. Look for
check,lint,test,fmttargets and run them withmi <task-name>. - Direct commands: Fall back to language-specific commands (
go test ./...,npm test,cargo test, etc.) only ifmifinds no relevant targets.
Run whatever applies. Fix failures before proceeding. Do not push broken code.
Skip this step if only documentation or non-code files changed.
Step 4: Update Task State
Only for hive hc tasks explicitly worked on during this session:
Skip this step entirely if no hive hc tasks were part of this session.
Step 5: Push to Remote
Determine push strategy:
- Check if branch has an upstream:
git rev-parse --abbrev-ref @{upstream} 2>/dev/null - If no upstream:
git push -u origin <branch-name> - If upstream exists:
git push
Force push policy: Check git reflog for rebase entries during this session. If a rebase occurred, use --force-with-lease. Otherwise, use a normal push. Never use --force.
If push is rejected (non-fast-forward) and no rebase happened during the session, do NOT auto-rebase. Ask the user:
Push was rejected. The remote branch has diverged. Options:1. Rebase onto remote and force-push with lease2. Merge remote changes3. Abort and investigate
Step 6: Verify and Report
Confirm working tree is clean and branch is pushed to remote.
Output Format
After completing all steps, report:
Omit sections that have no content.
Critical Rules
- NEVER stop before pushing - Local-only commits are lost work
- NEVER say "ready to push when you are" - YOU must push
- NEVER skip quality gates - Don't push broken code
- NEVER commit sensitive files - Check for .env, credentials, keys
- NEVER pull/rebase from remote on feature branches - Only push
- NEVER use `git add -A` or `git add .` - Stage specific files per logical commit
- ALWAYS verify push succeeded - Check
git statusoutput - ALWAYS use `--force-with-lease` (never `--force`) when force-pushing after rebase
Error Recovery
Push rejected (no rebase in session)
Do NOT auto-rebase. Present options to the user and wait for direction.
Tests failing
Fix the issue, re-run tests, commit the fix, then push.
On main branch
Ask the user for a branch name, create it, then continue with normal wrap workflow.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/wrap/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 24 Oct 2026, 11 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hay-kot/dotfiles/wrap)