Add Claude AI integration with hooks and settings scaffolding#7
Merged
Conversation
Adds a .claude/settings.json and .claude/hooks/install-deps-in-fresh-environment.sh to scaffolded projects so Claude Code web sessions auto-install dependencies on fresh checkouts. Also gitignores .claude/settings.local.json.
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 adds Claude AI integration to the project scaffolding system by creating a
.claudefolder with configuration files and executable hooks that run during Claude sessions.Key Changes
New Claude templates: Added two template files for Claude integration:
settings.json.ts: Generates Claude settings configuration with SessionStart hooksinstall-deps-in-fresh-environment.sh.ts: Bash script that installs dependencies ifnode_modulesdoesn't existScaffolding function: Implemented
scaffoldClaudeFolder()that:.claude/hooksdirectory structureIntegration:
scaffold()functionchmodSyncfor file permissions.claude/settings.local.jsonto.gitignorefor local overridesImplementation Details
bun installfor dependency managementhttps://claude.ai/code/session_01KTy1ELU3hDts5i2EWZ6bib