Skip to content

refactor: replace symlinks with file copies for antfu plugin skills#28

Merged
amondnet merged 3 commits into
mainfrom
refactor/antfu-plugins-copy-skills
Feb 8, 2026
Merged

refactor: replace symlinks with file copies for antfu plugin skills#28
amondnet merged 3 commits into
mainfrom
refactor/antfu-plugins-copy-skills

Conversation

@amondnet

@amondnet amondnet commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR replaces symbolic links with actual file copies for all antfu plugin skills, as Claude Code plugins don't support symbolic links.

Changes

Core Changes

  • Replaced symlinks with file copies: All plugins/*/skills/* directories now contain actual copied files instead of symlinks
  • Converted generator script: Migrated scripts/generate-antfu-plugins.sh from bash to TypeScript (scripts/generate-antfu-plugins.ts) for Bun runtime
  • Updated plugin manifests: All plugins/*/.claude-plugin/plugin.json files now have pretty-printed keywords arrays
  • Fixed turborepo command: Converted plugins/turborepo/commands/turborepo.md from symlink to actual file

Technical Details

  • Total files changed: 754 files
  • Lines added: ~100,744 (skill content from symlink targets)
  • Lines removed: 32 (symlink references)

Why This Change?

Claude Code plugin system cannot follow symbolic links, making skills inaccessible. This change ensures all skill content is directly available within each plugin directory.

Script Migration

The new TypeScript generator (scripts/generate-antfu-plugins.ts):

  • ✅ Uses Bun for better performance and type safety
  • ✅ Properly copies directories instead of creating symlinks
  • ✅ Pretty-prints JSON output for better readability
  • ✅ Maintains the same plugin structure and configuration

The old bash script is retained for reference but should be deprecated in future workflows.

Test Plan

  • Verify all plugins load correctly in Claude Code
  • Confirm skills are accessible (no symlink errors)
  • Test regeneration with bun run scripts/generate-antfu-plugins.ts
  • Validate plugin.json formatting

Related Issues

N/A - Infrastructure improvement for plugin compatibility

Claude Code plugins don't support symbolic links, causing skills to be
inaccessible. This change replaces all symlinked skill directories with
actual copied directories.

Additional changes:
- Convert scripts/generate-antfu-plugins.sh from bash to TypeScript
- Use Bun runtime for better maintainability and type safety
- Update plugin.json files with pretty-printed keywords arrays
- Convert turborepo command from symlink to real file

The bash script is retained for reference but should be replaced by the
TypeScript version in workflows.
@vercel

vercel Bot commented Feb 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
claude-code-plugins Ready Ready Preview, Comment Feb 8, 2026 10:22am

Request Review

@amondnet amondnet self-assigned this Feb 8, 2026
@amondnet amondnet merged commit bac98ff into main Feb 8, 2026
4 of 5 checks passed
@amondnet amondnet deleted the refactor/antfu-plugins-copy-skills branch February 8, 2026 10:22
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.

1 participant