SuperAPI AI Directory

migrate-skill-to-agent

Agents & models

View repository

Updated 10-16 06:19

About this skill

Migrate Skill To Agent

.claude/skills/{name} the skills in .agents/skills/{name} Move to, and .claude/skills/ と .codex/skills/ Create symbolic links from both.

Usage

Receives a skill name as an argument, andscripts/migrate.sh Execute.

bash scripts/migrate.sh <skill-name> [project-root]
  • skill-name(Required): Name of the skill to move (directory name)
  • project-root(Optional): Project root path. If omitted, the current directory

Pre-execution checks

  • .claude/skills/{name} Exists as a real directory (not a symbolic link)
  • .agents/skills/{name} Does not yet exist

Execution result

移動前:
  .claude/skills/{name}/  (実ディレクトリ)

移動後:
  .agents/skills/{name}/               (実体)
  .claude/skills/{name} -> ../../.agents/skills/{name}  (シンボリックリンク)
  .codex/skills/{name}  -> ../../.agents/skills/{name}  (シンボリックリンク)

Workflow

  1. Receive the skill name from the user as an argument
  2. Validation (source existence check, existing link check, target duplication check)
  3. scripts/migrate.sh Execute with the project root as the second argument
  4. Report the result

Execution example

User: "Move intent-based-dedup to .agents"

bash /path/to/migrate-skill-to-agent/scripts/migrate.sh intent-based-dedup /path/to/project