Repository navigation
Conversation
- Add symlink utilities to fs.ts: isSymlink, createSymlink, getSymlinkTarget, removeFileOrSymlink - Create symlinkDir function in templates.ts for creating relative symlinks - Update copyTemplates() to use symlinks for scripts/dev/ (not .claude/ which needs template variable processing) - Handle re-initialization: existing symlinks are replaced, existing files skipped unless --force - Add Windows handling: graceful fallback to copies when symlinks fail (EPERM/EACCES) - Add --no-symlinks flag to init command for users who prefer copies - Add unit tests for new fs.ts and templates.ts utilities Benefits: - Template updates automatically available to all users - No manual sync needed - Users can still customize by replacing symlink with real file - Single source of truth for scripts Closes #107 Co-Authored-By: Claude Opus 4.5 <[email protected]>
4 tasks
Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble
deleted the
feature/107-feat-use-symlinks-instead-of-copies-for-scripts-de
branch
January 21, 2026 06:04
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
fs.ts:isSymlink,createSymlink,getSymlinkTarget,removeFileOrSymlinksymlinkDirfunction intemplates.tsfor creating relative symlinkscopyTemplates()to use symlinks forscripts/dev/(not.claude/which needs template variable processing)--force--no-symlinksflag to init command for users who prefer copiesfs.tsandtemplates.tsutilitiesBenefits
Test plan
isSymlink,createSymlink,removeFileOrSymlink,getSymlinkTargetsymlinkDirincluding:processTemplatenpm testpasses (519/529 tests pass, 10 pre-existing failures in state-update-cli.test.ts)npm run buildcompiles successfullyAC Coverage
sequant initcreates symlinks inscripts/dev/pointing totemplates/scripts/--force) or warn user (when not using--force)Closes #107
🤖 Generated with Claude Code