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