23 lines
1.1 KiB
Markdown
23 lines
1.1 KiB
Markdown
---
|
|
name: scc
|
|
description: >
|
|
Quick command to save session log, stage everything, and push to Gitea in one shot. Use when the user says /scc, "save commit push", "scc it", "quick save and sync".
|
|
---
|
|
|
|
# /scc - Save, Commit, and Push
|
|
|
|
Quick one-shot: save session log + git add -A + commit + push to Gitea.
|
|
|
|
**Grok wrapper:** See the detailed steps in the source `.claude/commands/scc.md`.
|
|
|
|
Workflow (adapt for Grok tools):
|
|
1. Save session log using the /save logic (determine scope, write narrative sections, use whoami-block, etc.). Read `.claude/commands/save.md` and `.claude/commands/scc.md`.
|
|
2. `run_terminal_command` with `git add -A`.
|
|
3. Commit with conventional message (the source suggests a specific "scc: ..." format; update Co-Authored-By if relevant or omit for Grok).
|
|
4. Push.
|
|
|
|
This is a convenience composition of /save + git operations + push. After the save log is written, it forces a commit of everything.
|
|
|
|
Full details, exact commit message template, and handling for the vault repo or other repos are in `.claude/commands/scc.md`.
|
|
|
|
Often the fastest way to checkpoint and share work at the end of a session. |