From b0af0c58284e79b817b3c8056a921cd2665e4169 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Sat, 14 Mar 2026 15:27:38 -0700 Subject: [PATCH] Add /scc command: save session log, commit, push in one shot Co-Authored-By: Claude Opus 4.6 --- .claude/commands/scc.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .claude/commands/scc.md diff --git a/.claude/commands/scc.md b/.claude/commands/scc.md new file mode 100644 index 0000000..c750e59 --- /dev/null +++ b/.claude/commands/scc.md @@ -0,0 +1,30 @@ +# /scc - Save, Commit, and Push + +Quick command to save session log, stage everything, and push to Gitea in one shot. + +## Steps + +1. **Save session log** - Create/update session log for today using the /save skill logic: + - Determine correct location based on work context (project-specific or general `session-logs/`) + - Use format `YYYY-MM-DD-session.md` + - If file exists, append with `## Update: HH:MM` header + - Include: summary, credentials (unredacted), infrastructure, commands, files changed, pending tasks + +2. **Stage all changes** - Run `git add -A` to stage everything including the new session log + +3. **Commit** - Auto-commit with message: + ``` + scc: Session save and push from [hostname] at [timestamp] + + Co-Authored-By: Claude Opus 4.6 + ``` + +4. **Push to Gitea** - Run `git push origin main` + +5. **Report** - Confirm what was saved, committed, and pushed + +## Important +- This is a FAST command - no lengthy analysis, just save and ship +- Do NOT invoke /refresh-directives afterward (unlike /sync) +- Do NOT read behavioral guidelines +- Just save, commit, push, report