**Category:** Project
Re-scan your project and update all context files when structure, dependencies, or conventions change. Use this instead of re-running initialization to preserve existing customizations while refreshing detected patterns.
/plugin marketplace add nguyenthienthanh/aura-frog/plugin install aura-frog@aurafrogproject/Category: Project
Priority: Medium
Syntax: project:regen [project-name]
Re-generate project context by re-scanning the project and updating all context files. This is useful when:
Difference from project:init:
project:init - Full initialization (creates everything from scratch)project:regen - Re-generate existing project context (updates only)If project-name provided:
.claude/project-contexts/[project-name]/ existsIf not provided:
project:init)project:init first?"Create backup:
# Backup existing context
cp -r .claude/project-contexts/[project-name] \
.claude/project-contexts/[project-name].backup.$(date +%Y%m%d-%H%M%S)
Ask user:
Existing project context found: [project-name]
Options:
1. Backup and re-generate (recommended)
2. Re-generate without backup
3. Cancel
Choice [1]:
Same deep analysis as project:init Step 3:
Update existing files (don't recreate from scratch):
project-config.yamlconventions.mdrules.mdexamples.md.claude/CLAUDE.md (CRITICAL)⚠️ CRITICAL: This file is required for Claude Code to load Aura Frog instructions!
Use the auto-update script to refresh AURA-FROG section:
PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/aurafrog/aura-frog"
PROJECT_ROOT=$(pwd)
PROJECT_NAME="[DETECTED_PROJECT_NAME]"
TECH_STACK="[DETECTED_TECH_STACK]"
PRIMARY_AGENT="[DETECTED_PRIMARY_AGENT]"
PROJECT_TYPE="[DETECTED_TYPE]"
CURRENT_DATE=$(date +%Y-%m-%d)
if [ ! -f "$PROJECT_ROOT/.claude/CLAUDE.md" ]; then
# Create from template
cp "$PLUGIN_DIR/templates/project-claude.md" "$PROJECT_ROOT/.claude/CLAUDE.md"
# Replace placeholders
sed -i '' "s/\[PROJECT_NAME\]/$PROJECT_NAME/g" "$PROJECT_ROOT/.claude/CLAUDE.md"
sed -i '' "s/\[TECH_STACK\]/$TECH_STACK/g" "$PROJECT_ROOT/.claude/CLAUDE.md"
sed -i '' "s/\[PRIMARY_AGENT\]/$PRIMARY_AGENT/g" "$PROJECT_ROOT/.claude/CLAUDE.md"
sed -i '' "s/\[PROJECT_TYPE\]/$PROJECT_TYPE/g" "$PROJECT_ROOT/.claude/CLAUDE.md"
sed -i '' "s/\[DATE\]/$CURRENT_DATE/g" "$PROJECT_ROOT/.claude/CLAUDE.md"
echo "✅ Created .claude/CLAUDE.md"
else
# Update AURA-FROG section, preserve USER-CUSTOM
bash "$PLUGIN_DIR/scripts/claude-md-update.sh" "$PROJECT_ROOT/.claude/CLAUDE.md"
echo "✅ Updated .claude/CLAUDE.md (AURA-FROG section refreshed)"
fi
Template sections:
<!-- AURA-FROG:START --> ... <!-- AURA-FROG:END --> - Auto-updated by plugin<!-- USER-CUSTOM:START --> ... <!-- USER-CUSTOM:END --> - Preserved during updatesWhy This is Critical:
.claude/CLAUDE.md at session start (highest priority)project:regenCheck if updates needed:
If changes detected:
ccpm-config.yamlRun validation:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Project Context Re-generated Successfully!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Project: [project-name]
🔄 Changes Detected:
Tech Stack:
- Framework: [old] → [new]
- State: [old] → [new]
- Data: [old] → [new]
Structure:
- Added: [new directories]
- Removed: [removed directories]
- Changed: [modified paths]
Conventions:
- Updated: [naming patterns]
- Updated: [import patterns]
- Updated: [component patterns]
Team:
- Added: [new reviewers]
- Removed: [removed reviewers]
- Updated: [changed reviewers]
📄 Files Updated:
✅ .claude/project-contexts/[project-name]/
├── project-config.yaml - Updated (tech stack, structure)
├── conventions.md - Updated (patterns)
├── rules.md - Updated (quality rules)
└── examples.md - Updated (code examples)
✅ ccpm-config.yaml
- Updated: [changes made]
📦 Backup Created:
.claude/project-contexts/[project-name].backup.[timestamp]/
✅ Project context refreshed!
You: project:regen
Claude:
🔍 Detecting project...
✅ Found: my-project
📦 Existing context found: my-project
Options:
1. Backup and re-generate (recommended)
2. Re-generate without backup
3. Cancel
Choice [1]: 1
💾 Creating backup...
✅ Backup: my-project.backup.20251125-153022
🔄 Re-scanning project...
📦 Scanning files:
✅ Detected new dependencies: 3 added
✅ Updated framework version: 0.76.9 → 0.77.0
✅ Found new directory: src/hooks/
📋 Extracting conventions:
✅ Updated naming patterns
✅ Found new import aliases
✅ Updated component structure
👥 Detected team changes:
✅ Added reviewer: New Team Member
🔧 Updating project context...
✅ project-config.yaml - Updated
✅ conventions.md - Updated
✅ rules.md - Updated
✅ examples.md - Updated
✅ Re-generation complete!
You: project:regen my-other-project
Claude:
🔍 Checking project: my-other-project
📦 Found context: my-other-project
🔄 Re-scanning project...
[Same process as Example 1]
✅ Re-generation complete!
You: project:regen
Claude:
🔍 Detecting project...
✅ Found: new-project
❌ No project context found: new-project
Options:
1. Run project:init to create context first
2. Cancel
Choice [1]: 1
[Executes project:init...]
Always updated:
Preserved (if exists):
Use project:regen:
Use project:init:
Backups are created with timestamp:
project-contexts/
├── my-project/
└── my-project.backup.20251125-153022/
Cleanup old backups:
rm -rf .claude/project-contexts/*.backup.*project:init - Full initialization (first time setup)project:detect - Re-detect project type onlyproject:list - List all indexed projectsproject:switch - Switch between projectshelp - Show all commandsFor project-config.yaml:
For conventions.md:
<!-- MANUAL -->)For rules.md:
<!-- CUSTOM -->)For examples.md:
Detected Values > Existing Config > Defaults
Version: 1.0.0
Last Updated: 2025-11-25