skills_move()
Move a tracked skill to another folder, or switch the skill it tracks.
.framework/skills.lock.json records where each copy of a skill lives. After a
folder is moved (.claude/skills to .agents/skills when you switch
assistants), skills_move() moves the copies and their lock entries together, so
pull and push keep treating them as the same skill with the same edits. A folder you
already renamed by hand is recorded where it is now.
With skill_id, variant, or builtin, the copy is retargeted: the lock
tracks it as that skill from then on (your fork of a built-in, say, or the r variant
of a Cloud skill). Its unedited copies stay unedited, so the next pull_skills()
updates them to that skill's version. Its edited copies stay edited, and
push_skills() refuses them until force=True, since the new skill has no
version this project pulled. pull_skills() gives the call to make when the
setup names another skill than the one a folder tracks.
Usage
skills_move(
from_: str,
to: str | None = None,
*,
skill_id: str | None = None,
variant: str | None = None,
builtin: str | None = None,
project_path: str | Path = '.',
dry_run: bool = False,
) -> dict[str, Any]
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| from_ required | str |
The copy to move (a project-relative skill folder), or a skills folder, whose tracked copies all move: a path, or an assistant folder name ("claude" for |
|
| to | str | None | None |
Where it goes, named the same way. A skills folder keeps each skill's folder name. Leave it out to retarget only. |
| skill_id | str | None | None |
Retarget to this Cloud skill ID on your current server ( |
| variant | str | None | None |
Retarget to this variant: "r", "python", or "stata". Default: the copy's current variant. |
| builtin | str | None | None |
Retarget to this built-in Framework skill, such as "framework-data". |
| project_path | str | Path | '.' |
The project's root directory. Default: the current directory. |
| dry_run | bool | False |
Report the move and change nothing. |
Value
A dict: dry_run, skills (one row per moved or retargeted copy, each with
name, status "moved", paths, reason, and reason_code:
path_moved, lock_moved, or retargeted), steps, and message.
Details
Everything is checked before anything moves: a target folder that already exists, a target another skill tracks, or a copy the lock doesn't track stops the move. A dry run moves nothing and leaves the lock alone.
Raises
SkillPlanError: When the move is refused; itscodeis move_untracked, move_target_owned, move_target_exists, move_nothing, or move_identity_exists. Nothing changes then.ProjectNotFoundError: When the folder is not a Framework project.ValueError: When another skill sync holds the project's skill lock.
Examples
fw.skills_move("claude", "agents")
fw.skills_move(".claude/skills/team-style", ".agents/skills/team-style")
fw.skills_move(".claude/skills/framework-data", skill_id="5d0c2a7e-...")
fw.skills_move(".claude/skills/mine", variant="r")