When the user requests to sync the Claude Code configuration to the public repository:
Ensure you're in the monorepo root (
/Users/.../wythm) with a clean working tree, then execute the sync script:.claude/scripts/sync-to-public.shThe script will:
- Copy the
.claude/directory towythm-claude-workflowsrepository - Exclude sensitive files (settings.local.json, logs, etc.)
- Create a commit with a descriptive message
- Automatically push to GitHub
- Copy the
Show the user:
- What files were synced
- Commit status
- GitHub repository URL: https://github.com/alexandrbasis/wythm-claude-workflows
If any errors occur, report them clearly and suggest manual intervention if needed
Usage: /sync-public
Purpose: Keep the public Claude Code workflows repository up-to-date with the latest agents, commands, hooks, and skills from the main Wythm project.
Note: This command is safe to run - it excludes all sensitive data (tokens, IDs, logs) by design.