agentleFS
rohithzrrohithzr/claudebase/skills/sync-setup/SKILL.md

sync-setup

Skill26 starsChanged 8 months agoMITView on GitHub

Use when the user wants to set up config sync for the first time, connect to GitHub, or re-initialize the backup repo. Trigger with /sync-setup.

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the documented script and check its result.

    line 34
  2. Distinctive:

    Run the setup script. Parse user arguments for custom repo name and profile:

    line 36
  3. Distinctive:

    Run the first push automatically:

    line 58
  4. Distinctive:

    Read the README for installation, shared layers, and supported configuration paths.

    line 83
  5. Distinctive:

    Read the privacy policy for backup storage and credential handling.

    line 84
  6. Distinctive:

    Read the changelog for changes affecting installed versions.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Config Sync Setup

Overview

Initialize a private GitHub repository for backing up Claude Code configuration and perform the first push. Use this skill for a new installation or an existing backup repository. A successful setup gives later push, pull, status, and profile commands their saved repository context.

Prerequisites

Install Claudebase, Bash, jq, Git, and GitHub CLI. Authenticate GitHub CLI before repository creation. The account needs permission to create the requested private repository or access an existing one. Choose the project directory whose configuration should be backed up.

Setup sequence

  1. Verifies gh CLI is installed and authenticated
  2. Creates a private GitHub repo for config storage (or connects to existing)
  3. Initializes the repo structure with a default profile
  4. Performs the first push of your current Claude Code config

Instructions

  1. Parse the requested arguments and select the appropriate options below.
  2. Run the documented script and check its result.

Run the setup script. Parse user arguments for custom repo name and profile:

  • First argument (if provided): repo name (default: claude-config)
  • Second argument (if provided): initial profile name (default: default)
bash ${CLAUDE_PLUGIN_ROOT}/scripts/ensure-repo.sh REPO_NAME PROFILE_NAME

Replace REPO_NAME and PROFILE_NAME with the user's values or defaults.

If gh is not installed

Guide the user to install it:

  • macOS: brew install gh
  • Linux: sudo apt install gh or sudo dnf install gh
  • Windows: winget install --id GitHub.cli

Then authenticate: gh auth login

After setup succeeds

Run the first push automatically:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/sync-push.sh --profile PROFILE_NAME

Tell the user what was synced and show all available commands: /sync-push, /sync-pull, /sync-status, /sync-profiles, /sync-config.

Output

Report the repository selected or created, the initial profile, and the first push result. Verify setup succeeded before starting the first push. If setup succeeds but the push fails, distinguish those outcomes and explain how to retry the backup with /sync-push.

Error Handling

Troubleshoot missing GitHub CLI with the installation commands in Instructions, and follow its authentication guidance when access fails. Report repository creation or clone errors rather than claiming setup completed. If the first push flags secrets, identify the files for review without including secret values.

Examples

/sync-setup
/sync-setup claude-config work

Resources

  • Read the README for installation, shared layers, and supported configuration paths.
  • Read the privacy policy for backup storage and credential handling.
  • Read the changelog for changes affecting installed versions.

User Arguments

Interpret the following input as arguments for the documented operation:

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.