refactor: replace symlinks with file copies for antfu plugin skills#28
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
plugins/*/skills/*directories now contain actual copied files instead of symlinksscripts/generate-antfu-plugins.shfrom bash to TypeScript (scripts/generate-antfu-plugins.ts) for Bun runtimeplugins/*/.claude-plugin/plugin.jsonfiles now have pretty-printed keywords arraysplugins/turborepo/commands/turborepo.mdfrom symlink to actual fileTechnical Details
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):The old bash script is retained for reference but should be deprecated in future workflows.
Test Plan
bun run scripts/generate-antfu-plugins.tsRelated Issues
N/A - Infrastructure improvement for plugin compatibility