SuperAPI AI Directory

migrate-skill-agent

Agents & models

View repository

Updated 10-15 21:02

About this skill

$ARGUMENTS: name and options of the skill or agent to install

Install the skill or agent specified in skills-store.

Proceed in the following order:

  1. $ARGUMENTScheck the name and options in
  2. --target home or --target projectif there is no --target home or --target project, ask the user whether it is a home directory update or a current project update
  3. this skill's scripts/migrate-skill-agent.shuse
  4. Do not append the original $ARGUMENTS as-is as a shell string; instead, wrap each parsed value in quotes and execute in the following form: $ARGUMENTSDo not append the original as-is as a shell string; instead, wrap each parsed value in quotes and execute in the following form:
"<이 스킬의 scripts/migrate-skill-agent.sh 경로>" --skill "<name>" --target home

When installing an agent, --agent "<name>"use, and when installing into the current project, --target projectuse.

Options

  • --skill <name>: search and install only skills
  • --agent <name>: search and install only agents
  • <name>: search for skills and agents. If both exist, require an explicit option
  • --target home: ~/.claude와 ~/.codex install under
  • --target project: the current project's .claude와 .codex install under
  • --clone: locally, skills-store : if there is no checkout, clone it
  • --link: install via symbolic link instead of copying
  • --flavor claude|codex: install only one side (default is both)

Behavior

  • In the user directory, skills-store find the project
  • In the found repository, git pullrun
  • git pullIf this fails, stop without copying
  • Copy only the specified items
  • After target selection, existing items are overwritten immediately
  • The completion condition is successful copying and confirmation that the required files exist

--clone

It operates only when the repository cannot be found. Use the search order as-is.

$MIGRATE_SKILLS_STORE_PATH → $PWD → $HOME/SourceCode/skills-store → $HOME/skills-store

The clone location is $HOME/SourceCode/skills-store → $HOME/skills-store 중 the first place where the parent directory already exists. /tmp Do not use a temporary directory such as . Afterward, it must also be possible to keep it up to date with git pull , and --link because the location must be stable for the installation to be meaningful.

--link

rsync/cp Create a symbolic link instead.

~/.claude/skills/issue-create  ->  <store>/.claude/skills/issue-create

In the repository, git pull doing so also updates the installed copy. There is no need to recopy multiple skills each time. Whether the existing target is a real directory or a symbolic link, delete it and create it anew.

Caution: editing a linked skill directly modifies the skills-store repository. If you are going to edit it experimentally, do not use --link .

--flavor

issue-* Used when the skill group is installed automatically. If the running runtime is of the Claude family, pass --flavor claude, and if it is of the Codex family, pass --flavor codex to avoid installing the unnecessary side.

migrate-skill-agent.sh --skill issue-create --target home --link --clone --flavor claude

Things it does not do

  • No diff preview
  • No backup
  • No rollback
  • No hash comparison
  • No full sync
  • No automatic detection of changed items