Skip to content

Commit f0c9dcf

Browse files
Nick Sullivanclaude
andcommitted
🔧 Add v2 architecture setup to bootstrap script
- Creates rules/ directory for fresh installs - Creates .cursor/rules symlink pointing to ../rules - Adds symlink verification with error handling - Detects existing v1 installs and suggests migration Addresses Claude Code Review feedback. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9fb6878 commit f0c9dcf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

scripts/bootstrap.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,32 @@ cp ~/.ai_coding_config/.claude/commands/ai-coding-config.md .claude/commands/
5252
echo "✓ Copied ai-coding-config command"
5353
echo ""
5454

55+
# Set up v2 cross-tool architecture if fresh install
56+
echo "📁 Setting up cross-tool architecture..."
57+
58+
# Create .cursor directory structure
59+
mkdir -p .cursor/commands
60+
61+
# For fresh installs without existing rules, create v2 structure
62+
if [ ! -d "rules" ] && [ ! -d ".cursor/rules" ]; then
63+
mkdir -p rules
64+
ln -s ../rules .cursor/rules
65+
# Verify symlink was created
66+
if [ ! -L ".cursor/rules" ]; then
67+
echo "❌ Failed to create .cursor/rules symlink"
68+
exit 1
69+
fi
70+
echo "✓ Created rules/ with .cursor/rules symlink (v2 architecture)"
71+
elif [ -d ".cursor/rules" ] && [ ! -L ".cursor/rules" ]; then
72+
# Existing .cursor/rules as real directory - user needs to run /ai-coding-config update
73+
echo "⚠️ Detected existing .cursor/rules/ directory"
74+
echo " Run /ai-coding-config update to migrate to v2 architecture"
75+
elif [ -d "rules" ] && [ -L ".cursor/rules" ]; then
76+
echo "✓ Already using v2 architecture"
77+
fi
78+
79+
echo ""
80+
5581
echo "✨ Bootstrap complete!"
5682
echo ""
5783
echo "Next steps:"

0 commit comments

Comments
 (0)