Add /scc command: save session log, commit, push in one shot

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-14 15:27:38 -07:00
parent 0262802047
commit b0af0c5828

30
.claude/commands/scc.md Normal file
View File

@@ -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 <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