Skip to content

fix(installer): create Claude project symlinks#1150

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/create-claude-parent
Open

fix(installer): create Claude project symlinks#1150
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/create-claude-parent

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

Fixes project-local Claude Code installs in fresh repositories that do not already have a .claude/ directory.

Previously, project-local symlink installs skipped non-universal agents when the agent root directory was missing. That made sense for avoiding unrelated agent directories, but it also caused Claude Code installs to silently skip .claude/skills/<name> even when Claude Code was the selected target.

Changes

  • Allow Claude Code project-local symlink installs to continue when .claude/ does not exist yet.
  • Keep the existing skip behavior for other non-universal agents.
  • Add a regression test that installs a skill for Claude Code in a fresh project and verifies .claude/skills/<name> is created as a symlink.

Validation

  • pnpm format
  • pnpm test tests/installer-symlink.test.ts
  • pnpm format:check

I also ran pnpm type-check, but it currently fails on existing unrelated errors in untouched files:

  • src/git.ts: simple-git options type does not include env
  • src/skills.ts: frontmatter metadata is inferred as {} / unknown

Closes #1138.

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.

[Bug]: Project-local install silently skips Claude Code symlinks when .claude/ doesn't pre-exist

1 participant