wrap-session

Audits session-touched files across git repos and chezmoi, then commits, pushes, and closes finished branches.

1|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/azaidrahman/zaid-sani-dotfiles --skill wrap-session-azaidrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrap-session
Source: https://github.com/azaidrahman/zaid-sani-dotfiles/tree/main/dot_claude/skills/wrap-session
Command: npx skills add https://github.com/azaidrahman/zaid-sani-dotfiles --skill wrap-session-azaidrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? At the end of a work session, changes are often scattered across multiple git repos and chezmoi-managed dotfiles, with untracked files, uncommitted edits, and stale branches left behind. This Skill inventories everything the session touched and closes it out cleanly. ## Core Features & Use Cases - Cross-context inventory: Derives every file created or edited from the conversation transcript and resolves each to its owning git repo or chezmoi context. - Three-way cleanliness scan: Detects tracked-but-dirty files, chezmoi targets that diverged from source, and untracked files sitting inside managed directories that plain git status misses. - Delegated close-out: Dispatches commits, chezmoi syncs, PR merges, and branch deletion to purpose-built handler skills, and removes session scratch files before committing. - Use Case: After a day of editing dotfiles and two project repos, ask to wrap up — the Skill reports what is dirty where, commits and pushes each change, merges done PRs, and deletes merged branches with their worktrees. ## Quick Start Wrap up this session: commit and push everything I touched and close out the finished branches.

Frequently Asked Questions about wrap-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up and commit everything at the end of a work session?

Invoke the wrap-session workflow, which inventories every file you edited from the conversation transcript, scans each repo and chezmoi context for dirt, then commits, pushes, and closes finished branches after your confirmation.

How do I find untracked files in chezmoi-managed directories?

Compare chezmoi managed output against files actually on disk using comm with find on the managed directory. Plain git status and chezmoi status both miss new files in managed dirs like ~/.config that chezmoi does not yet track.

Can I delete a branch when its Jira ticket is marked Done?

Not automatically. Squash and rebase merges land under new SHAs, so a Done ticket can still have unmerged commits. Verify with git branch --merged or git cherry before deleting, and stop if git disagrees with Jira.

When should I not use an end-of-session cleanup workflow?

Skip it mid-session while work is still in progress, since it is a closing ritual. For a single known commit in one repo, just use a commit skill directly instead of running the full inventory and branch lifecycle phases.

What happens to temporary scratch files created during a session?

Throwaway files like one-off scripts, /tmp artifacts, and debug dumps are inventoried separately from deliverables and removed before committing, so they never slip into a commit. Files you named as deliverables are never deleted.