Files
claudetools/.claude/commands/scc.md
2026-03-14 15:27:38 -07:00

1.1 KiB

/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 <noreply@anthropic.com>
    
  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