Skip to content
Development
Command

/sync

Sync plugin files (--github default, --env, --marketplace, --plugin-dev, --all, --uninstall)

From plugin
autonomous-dev
3226 skills16 agents26 commands1 MCP
Install
$ npx -y skills add akaszubski/autonomous-dev --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/sync

Context preview

What this command does when you run it.

Sync plugin files (--github default, --env, --marketplace, --plugin-dev, --all, --uninstall)

Command definition

sync.md
name: sync
description: "Sync plugin files (--github default, --env, --marketplace, --plugin-dev, --all, --uninstall)"
argument-hint: "--github | --env | --marketplace | --plugin-dev | --all | --uninstall [--force]"
allowed-tools: [Bash]
disable-model-invocation: true
user-invocable: true
user_facing: true

Do NOT fetch any URLs or documentation. Execute the script below directly.

Implementation

python3 ~/.claude/lib/sync_dispatcher.py $ARGUMENTS

Flags

| Flag | Description | |------|-------------| | `--github` | Sync from GitHub repository (default if no flag specified) | | `--env` | Sync environment variables between `.env` files | | `--marketplace` | Update plugin from marketplace to latest version | | `--plugin-dev` | Sync for plugin development (watches local changes) | | `--all` | Sync all sources (github + env + marketplace) | | `--uninstall` | Remove plugin files from Claude Code | | `--force` | Force sync even if no changes detected (use with any flag) |

Usage

# Default: Sync from GitHub (most common)
/sync

# Update from marketplace
/sync --marketplace

# Sync environment variables
/sync --env

# Force full resync
/sync --github --force

# Uninstall plugin
/sync --uninstall

Post-Sync: Strip duplicate global hooks (Issue #944)

When invoked with `--all` (or after a `--github` sync that updates templates), the model SHOULD invoke the migration helper to strip global hook duplicates from the local `.claude/settings.json`:

python3 plugins/autonomous-dev/scripts/strip_duplicate_hooks.py \
    --target .claude/settings.json

Parse the JSON result and report `removed_count` to the user (e.g., "Stripped 3 duplicate global hook(s) from .claude/settings.json"). This is idempotent — a second run reports `removed_count: 0`.

The helper skips files whose basename is `settings.autonomous-dev.json` or that contain `"_autonomous_dev_dogfooding": true` at the top level.

Read more
Ships withautonomous-dev

A harness that wraps Claude Code with enforcement, specialist agents, and alignment gates to deliver consistent, production-grade software engineering outcomes.

Get the whole plugin, auto-invoked
Stats
32
Stars
0
Views
5
Forks
Active
Maintenance
Python
Language
2h ago
Last commit
9mo ago
Created

Repo: akaszubski/autonomous-dev