Skip to content

[Backport v9] agent-features: Fix the package being published without skills and rules - #6206

Merged
VPS-thodax merged 4 commits into
v9.x.xfrom
claude/backport-v9-agent-features-empty-package
Aug 17, 2026
Merged

[Backport v9] agent-features: Fix the package being published without skills and rules#6206
VPS-thodax merged 4 commits into
v9.x.xfrom
claude/backport-v9-agent-features-empty-package

Conversation

@VPS-thodax

Copy link
Copy Markdown
Contributor

Backport of #6205 to v9.x.x.

Problem

@comet/agent-features ships empty. The published tarball contains nothing but package.json and LICENSE, so install-agent-features finds no skills and no rules in it.

Cause

The package's skills/ and rules/ folders were symlinks to the folders at the repository root. pnpm stopped following symlinked directories when packing in v11, so the skills/** and rules/** patterns in files matched nothing.

Fix

The package builds its skills/ and rules/ folders instead of symlinking them, like every other package in the repository builds its lib/. The build script copies both folders in from the repository root and fails when either is missing or empty, so a regression of this kind breaks the release instead of publishing silently. The copies are gitignored.

Adaptation notes

The 3 commits from #6205 cherry-picked cleanly. One follow-up commit adapts the changeset and build.ts error messages from @dextinity/agent-features to @comet/agent-features, since the package rename to @dextinity/* (#6069) happened after v9.x.x diverged from main.

Verification

  • pnpm --filter '@comet/agent-features' run build copies 25 skill files and 12 rule files.
  • pnpm pack --dry-run lists 37 files in the tarball (previously 2), matching what @comet/agent-features@9.3.0 shipped.

Generated by Claude Code

claude added 4 commits August 14, 2026 09:31
…linking them

The package's skills/ and rules/ folders were symlinks to the folders at the
repository root. pnpm stopped following symlinked directories when packing in
v11, so every release since @comet/agent-features v9.4.0 shipped nothing but
the manifest and install-agent-features found no skills or rules to install.

The folders have to stay at the repository root because install-agent-features
sparse-checks-out skills/ and rules/ from there when this repository is used as
an external source. So build them into the package instead: the new build
script copies both folders in and fails when either is missing or empty.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0181iiTBFCfqvBjEwjzxEEzm
(cherry picked from commit 6f56eb1)
Node 24 strips the types natively, so the script runs without a build step of
its own. Set the package's module type to avoid Node re-parsing the file as an
ES module and warning about it on every build; the package ships only markdown,
so the field has no effect on consumers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0181iiTBFCfqvBjEwjzxEEzm
(cherry picked from commit 5933d3f)
The release pipeline builds every package before publishing, so prepack only
duplicated that work. It also wouldn't have prevented the empty releases, since
those were packed after a full build; the guard in the build script covers that.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0181iiTBFCfqvBjEwjzxEEzm
(cherry picked from commit 489c1d7)
The v9.x.x branch still ships the package as @comet/agent-features
(the rename to @dextinity/agent-features happened after this branch
diverged), so update the changeset and the build script's error
messages to match.
@VPS-thodax VPS-thodax self-assigned this Aug 14, 2026
@VPS-thodax
VPS-thodax marked this pull request as ready for review August 14, 2026 11:15
@github-actions
github-actions Bot requested a review from VPS-Obi August 14, 2026 11:16
@VPS-thodax
VPS-thodax merged commit dd4d2f2 into v9.x.x Aug 17, 2026
9 checks passed
@VPS-thodax
VPS-thodax deleted the claude/backport-v9-agent-features-empty-package branch August 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants