一键导入
session-close
End-of-session workspace sync - pull clean behind repos, push clean ahead repos, report dirty repos
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
End-of-session workspace sync - pull clean behind repos, push clean ahead repos, report dirty repos
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | session-close |
| description | End-of-session workspace sync - pull clean behind repos, push clean ahead repos, report dirty repos |
| allowed-tools | Bash |
| disable_model_invocation | true |
One command to end a session cleanly. Pulls all repos that are behind (fast-forward only), pushes all repos that are ahead, and reports everything dirty so nothing is left dangling.
~/.claude/commands/workspace-audit/scripts/git-scan.sh --fetch
Uses the shared git scanner with --fetch so ahead/behind counts are accurate.
~/.claude/commands/session-close/scripts/close.sh
The script:
git pull --ff-onlygit pushAfter the script completes, present the result as a clean summary table:
| Status | Count | Repos |
|---|---|---|
| Pulled | N | ... |
| Pushed | N | ... |
| Dirty (action needed) | N | ... |
| Diverged (action needed) | N | ... |
| Clean | N | ... |
Dirty repos need human attention. List them explicitly with their dirty file count.
Mad House project lifecycle manager. Create, list, stage, promote, ship, and archive projects in ~/dev/mad-house/lab. Every project has a stage (concept → prototype → building → shipped → maintained → archived) and a type (code, game, creative, tool, experiment, content, bot). Use when managing lab projects, moving a project between stages, promoting from lab to a GitHub org, marking something as shipped, or archiving a project.
Bootstrap a new GitHub repo with all standard Mad House files. Creates the repo, clones it locally under the correct org path, and writes README, .gitignore, .env.example, Dockerfile, CHANGELOG, and AGENTS.md template. Triggers on "new repo", "bootstrap a repo", "create a new project", "start a new repo", "scaffold repo".
Manage the Mad House agent fleet. List all agents in the central registry, check which repos have which agents deployed, and sync agents from the registry to target repos. Use when adding a new agent to the fleet, syncing agents across repos, auditing what agents are deployed where, or rebuilding the agent registry. Triggers on "sync agents", "deploy agents", "what agents are deployed", "add agent to repo", "agent fleet", "update agents".
Generate SVG banners and navigation buttons for GitHub README files. Creates repeatable, customizable SVG assets - hero banners with title, subtitle, and tagline, and sets of rounded-corner navigation buttons with Inter font. Use when building or refreshing a repo README, updating branding, or generating any SVG visual assets. Triggers on "generate banner", "create svg banner", "make readme buttons", "banner for the readme", "design banner", "add banner to readme".
Run cargo fmt, clippy, and tests on a Rust workspace before committing. Catches format failures that break CI. Triggers on "cargo check", "check rust", "run rust tests", "before I commit rust", "fmt and test", "check the workspace", "is the rust build clean".
Check whether the last git commit in the current repo has the Claude co-author trailer. If missing, amend it. Triggers on "add co-author", "fix co-author", "missing co-author", "add claude to commit", "co-author trailer".