Skip to content

Projects

fw skills copy

skills copy

Copy skills from one assistant's skills folder to the others

Added in 0.7.2.

Copies skills from one skills folder in the project to others, so every assistant reads the same copy. Use it after you edit a skill in one folder: until the copies match, skill sync stops with "assistant skill copies diverged".

--from and --to name an assistant: claude is .claude/skills, and agents is .agents/skills (codex and copilot read it too). --from-dir and --to-dir take folders relative to the project instead. Without --to or --to-dir, fw copies to every other assistant skills folder the project has.

A skill is a folder with a SKILL.md file; folders whose names start with a dot are skipped. fw copies SKILL.md and its syncable companion files, with their executable modes. Files sync excludes, such as .env, are not copied and stay in the target. fw moves each copy it replaces to .framework/skills-backups/ first. Other files that only the replaced copy had are gone from it, and kept in the backup. fw skips copies that already match and never deletes a skill. Skills only in a target are listed, not read or changed. No target may be in .framework/. When the source skill is tracked in .framework/skills.lock.json, fw records each copy there as a copy of it, keeping its version, so pull moves every copy together and fw skills push still sends an edited skill. A folder the lock records as a different skill is never copied over. --skill copies only the skills it names. --dry-run writes nothing.

Known limits: use one skill per folder name in a project. Copy skills between assistants with fw skills copy, not by hand: a copy made by hand isn't tracked, and pull leaves it alone. On macOS, folder names that differ only in letter case are the same folder; pick one spelling. When a command refuses, it has changed nothing. Follow its message.

Usage

fw skills copy [flags]

Options

Name Type Default Description
--dry-run bool

report what would change without writing anything

--from string

the assistant to copy from: claude or agents (codex and copilot also mean agents)

--from-dir string

the skills folder to copy from, relative to the project

--json bool

print JSON on stdout, for scripts and agents

--skill stringArray "[]"

copy only this skill (repeatable; default: every skill in the source)

--to string

the assistant to copy to (default: every other assistant skills folder in the project)

--to-dir string

the skills folder to copy to, relative to the project

--url string

Framework Cloud server

Environment variable: FW_CLOUD_URL

Value

With --json, {"from", "to", "dry_run", "skills", "counts", "backups", "message"}. from and to are project-relative folders. Each skill has name, status (copied, current, or missing), from, to, and backup, where the replaced copy went, or null. A missing skill is in a target but not the source, and is kept; its from is null.

Exit codes

Code Meaning
0 Success
1 Failure
2 Bad flags or arguments
3 Not logged in, or the server rejected the token
4 The server has no such project or resource
5 Browser login was denied, or its code expired
6 An upload has "private" in a path; rerun with --include-private if you mean to send it

With --json, a failure also prints one JSON line on stderr: {"error": "...", "exit_code": 4}. Exit code 6 adds "reason": "private_path".

Examples

fw skills copy --from claude --to agents
fw skills copy --from-dir .claude/skills --to-dir some/other/skills
fw skills copy --from claude --skill ggplot2-figures --dry-run

Related reference

Search guides and reference for R, Python, Stata, the CLI, and Framework Cloud.