config-claude-synclisted
Install: claude install-skill tatsushige-i/shared-claude-code
# Shared Config Sync Skill
Sync shared rules, skills, and agents from the shared-claude-code repository to the current project. Detect missing symlinks and create them after user confirmation.
## Steps
### Step 1: Locate the Shared Repository
1. Search for symlinks under `.claude/rules/shared/`, `.claude/skills/`, and `.claude/agents/shared/`
2. Resolve the shared-claude-code repository path from the `readlink` result of found symlinks
- Rule link example: `../../../../shared-claude-code/rules/conventions.md` → extract `shared-claude-code` path
- Skill link example: `../../../shared-claude-code/skills/git-pr-create` → extract `shared-claude-code` path
- Agent link example: `../../../../shared-claude-code/agents/code-reviewer.md` → extract `shared-claude-code` path
3. If no symlinks are found → display error and exit:
```text
Error: No symlinks to shared-claude-code found.
Initial setup must be done manually following the README instructions.
```
4. Verify that `rules/` and `skills/` directories exist at the resolved path
- If they do not exist → display error and exit
- `agents/` may not exist in older shared-claude-code checkouts; if absent, skip agents handling throughout this skill (treat as "no agents to sync")
### Step 2: Detect Differences
1. Get the list of `.md` files under `rules/` in shared-claude-code
2. Get the list of directories containing `SKILL.md` under `skills/` in shared-claude-code
3. Get the list of `.md` files under `ag