sync: auto-sync from GURU-5070 at 2026-06-02 20:40:54
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-02 20:40:54
This commit is contained in:
28
.grok/skills/sync/SKILL.md
Normal file
28
.grok/skills/sync/SKILL.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
name: sync
|
||||
description: >
|
||||
Sync the ClaudeTools and vault repos with Gitea. Use when the user says /sync, "sync now", "push the changes", "sync repos", after offline work, before switching machines, or to check queue status.
|
||||
---
|
||||
|
||||
# /sync — Cross-Machine Context Sync
|
||||
|
||||
Synchronize queued contexts across machines (and the vault repo).
|
||||
|
||||
**Grok note:** Native Grok skill for the shared command. Authoritative details in `.claude/commands/sync.md`.
|
||||
|
||||
When this skill activates:
|
||||
- First, check for uncommitted session-logs (as described in the source).
|
||||
- If uncommitted logs exist, warn the user and recommend /save first.
|
||||
- Then run the sync logic (typically `bash .claude/scripts/sync.sh`).
|
||||
- Use `run_terminal_command` for the git / sync operations.
|
||||
- Follow any pre/post steps in the command doc.
|
||||
|
||||
## Key logic (see full source)
|
||||
- Phase 0: Check `git status --porcelain` for uncommitted session-logs/*.md . If present, emit warning and suggest /save.
|
||||
- Then delegate to the sync script for staging, committing with conventional messages, pushing to Gitea, and handling the vault repo sync.
|
||||
|
||||
The command also covers offline mode, queue handling, and conflict resolution.
|
||||
|
||||
Read `.claude/commands/sync.md` (and related sync.sh) for the complete implementation and safeguards.
|
||||
|
||||
This is often used after /save or as part of /scc.
|
||||
Reference in New Issue
Block a user