agent-symlink-init
Initialize or migrate agent-skill symlinks in any repository. Use when a project needs `.claude/skills` linked to `.agents/skills`, `AGENTS.md` linked to `CLAUDE.md`, migration away from `.ruler`-based AI rules, or removal of legacy `sync-llm-skills` copy/sync setups. Trigger on requests about Claude/Codex skill symlinks, AGENTS/CLAUDE symlinks, `.claude/skills` setup, replacing copied skill folders with symlinks, or cleaning old ruler/sync automation.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-symlink-init.zip https://jpskill.com/download/9715.zip && unzip -o agent-symlink-init.zip && rm agent-symlink-init.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9715.zip -OutFile "$d\agent-symlink-init.zip"; Expand-Archive "$d\agent-symlink-init.zip" -DestinationPath $d -Force; ri "$d\agent-symlink-init.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
agent-symlink-init.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
agent-symlink-initフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
Agent Symlink Init
Set up or migrate a repository to the symlink-based agent-skill layout.
Outcomes
- Make
.agents/skillsthe source of truth. - Ensure
.claude/skillspoints at the repository's.agents/skillsdirectory. - Ensure
AGENTS.mdis a symlink toCLAUDE.mdwhenCLAUDE.mdexists. - Remove obsolete ruler or sync automation only when it is actually present.
- Keep the migration idempotent and non-destructive.
Detect Before Editing
Work only from the repository root. Require either .git/ or package.json.
Inspect these paths first:
.agents/skills.claude/skillsCLAUDE.mdAGENTS.md- the .ruler directory
- the sync-llm-skills.ts script under the scripts directory
package.json.gitignore
Classify the work into these modules:
symlink-initRun when.claude/skillsis missing or does not point at the repository's.agents/skillsdirectory, or whenAGENTS.mdshould point toCLAUDE.mdbut does not.migrate-from-rulerRun when a .ruler directory exists orpackage.jsonstill contains ruler-related scripts orpostinstallfragments.migrate-from-syncRun when a sync-llm-skills.ts file exists underscripts/orpackage.jsonstill containsskills:sync:llmor--sync-llm.
Summarize the detected modules before making destructive changes. If the migration will delete the .ruler directory or sync scripts, tell the user exactly what will be removed.
Execute symlink-init
- Ensure
.agents/skillsexists:
mkdir -p .agents/skills
- Ensure
.claudeexists:
mkdir -p .claude
- If
.claude/skillsis a regular directory or file instead of a symlink, preserve it before replacing it:- Prefer a backup named .claude/skills.bak
- If that backup path already exists, choose a timestamped backup name
- Create or refresh the symlink:
ln -sfn ../.agents/skills .claude/skills
- If
CLAUDE.mdexists, ensureAGENTS.mdpoints to it:- If
AGENTS.mdis a regular file, back it up before replacing it
- If
ln -sfn CLAUDE.md AGENTS.md
- Update
.gitignore:- Remove any .claude/skills and AGENTS.md ignore entries if they exist. These symlinks must be tracked by git so that collaborators get them on clone.
- Remove any associated comments (e.g.
# Agent skills (symlinked),# START Ruler Generated Files). - Do not add new ignore entries for the symlinks.
Execute migrate-from-ruler
Run this module only when ruler artifacts still exist.
- Remove the .ruler directory.
- Edit
package.json:- Remove scripts whose keys clearly belong to ruler automation, such as
ruler:applyorruler:check - Remove only the ruler-related fragment from
postinstall - Remove
postinstallentirely if nothing remains
- Remove scripts whose keys clearly belong to ruler automation, such as
- Edit
.gitignore:- Remove ruler-specific ignore entries (e.g. ruler block comments,
/CLAUDE.md,/AGENTS.mdif they were ruler-generated ignores) - Do not re-add
/AGENTS.mdto.gitignore— the symlink must be tracked by git
- Remove ruler-specific ignore entries (e.g. ruler block comments,
- Do not delete
CLAUDE.mdunless the user explicitly asks. The goal is to replace the automation mechanism, not to discard the current source-of-truth document.
Execute migrate-from-sync
Run this module only when legacy copy/sync automation is present.
- Remove the sync-llm-skills.ts file under
scripts/if it exists. - Edit
package.json:- Remove
scripts["skills:sync:llm"] - Remove only the
--sync-llmflag fromskills:test:localif the rest of the command is still valid - Remove sync-related fragments from
postinstall - Remove
postinstallentirely if nothing remains
- Remove
- Edit
.gitignore:- Remove the .claude/skills ignore entry and any associated comments — the symlink must be tracked by git, not ignored
- The old ignore was for copy-based sync artifacts; symlinks should be committed
- Leave
.agents/skillscontents in place. Migrate the linkage model, not the skill payload itself.
Editing Rules
- Make the smallest safe change set.
- Preserve unrelated
package.jsonscripts. - When cleaning
postinstall, remove only the obsolete command fragment and keep remaining commands in order. - Skip modules whose signals are absent.
- If the repository already matches the target layout, report that no migration is needed instead of rewriting files.
Verify
Run lightweight checks after editing:
test -L .claude/skills && readlink .claude/skills
test -f CLAUDE.md && test -L AGENTS.md && readlink AGENTS.md
Also inspect:
package.jsonfor stale ruler or sync commands.gitignorefor duplicate or contradictory entriesgit diff --stator equivalent to summarize the migration
Report Back
Return:
- Which modules ran
- Which files were created, updated, backed up, or removed
- Verification results
- Any follow-up action the user should consider, such as reinstalling dependencies if
postinstallbehavior changed