Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/cli/src/commands/skills.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ describe("hyperframes skills", () => {
"linux",
"npx",
["--version"],
["skills", "add", "https://github.com/heygen-com/hyperframes", "--all"],
["skills", "add", "https://github.com/heygen-com/hyperframes", "--all", "--copy"],
],
[
"darwin",
"npx",
["--version"],
["skills", "add", "https://github.com/heygen-com/hyperframes", "--all"],
["skills", "add", "https://github.com/heygen-com/hyperframes", "--all", "--copy"],
],
[
"win32",
Expand All @@ -130,6 +130,7 @@ describe("hyperframes skills", () => {
"add",
"https://github.com/heygen-com/hyperframes",
"--all",
"--copy",
],
],
] as const)(
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/commands/skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ function runSkillsAdd(
source: string,
opts: { cwd?: string; extraArgs?: string[] } = {},
): Promise<void> {
return spawnNpx(["skills", "add", source, ...(opts.extraArgs ?? ["--all"])], opts);
// `--copy` writes real files into each target agent's skills dir, instead of
// the upstream default (a canonical `.agents/skills` store + per-agent
// symlinks). That default re-serialises each SKILL.md's frontmatter, so an
// installed bundle no longer byte-matches the published manifest — `skills
// check` then reports a freshly-installed set as outdated, and the symlinked
// layout doesn't reliably land where the agent actually reads. Real copies
// keep the install faithful to the manifest and detectable by `skills check`.
return spawnNpx(["skills", "add", source, ...(opts.extraArgs ?? ["--all"]), "--copy"], opts);
}

// Skill names are kebab-case directory names. Refuse anything that isn't one
Expand Down
Loading