config-github-synclisted
Install: claude install-skill tatsushige-i/shared-claude-code
# GitHub Config Sync Skill
Sync shared assets under `.github/` (ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE, workflows) from the shared-claude-code repository to the current project using file copies. File copies are used because GitHub does not recognize symlinks.
## Steps
### Step 1: Locate the Shared Repository
1. Search for symlinks under `.claude/rules/shared/` and `.claude/skills/`
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
3. If no symlinks are found → display error and exit:
```text
エラー: shared-claude-codeへのシンボリックリンクが見つかりません。
最初のセットアップはREADMEの手順に従って手動で行ってください。
```
4. Verify that the `.github/` directory exists at the resolved path
- If it does not exist → display error and exit
### Step 2: Detect Differences
1. Scan `.github/ISSUE_TEMPLATE/`, `.github/PULL_REQUEST_TEMPLATE.md`, and `.github/workflows/` on the shared side
2. Compare with the corresponding local files and determine each file's status:
- **Identical**: contents match (determined by `diff -q`)
- **Differs**: exists on both sides but contents differ
- **New**: exists on the shared side but not locally
- **Local only**: exists locally but not on the shared side (display warning only, do not delete)
### Step 3: