bootspring_generate
Regenerate the CLAUDE.md context file with current project state.
Overview#
The bootspring_generate tool regenerates your project's CLAUDE.md file, updating it with the latest project information, configurations, and learnings. This ensures your AI assistant always has accurate context about your project.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
full | boolean | No | Full regeneration including .mcp.json and todo.md |
Usage Examples#
Basic Generation#
Use the bootspring_generate tool with no parameters
Response:
Generated CLAUDE.md at /path/to/project/CLAUDE.md
Full Generation#
Use the bootspring_generate tool with:
- full: true
Response:
Generated CLAUDE.md at /path/to/project/CLAUDE.md
Generated .mcp.json at /path/to/project/.mcp.json
Generated todo.md at /path/to/project/todo.md
What Gets Generated#
CLAUDE.md Contents#
The generated file includes:
Configuration#
Configure generation in bootspring.config.js:
When to Regenerate#
Automatically Trigger#
Consider regenerating when:
- Adding new dependencies
- Changing project structure
- Updating configurations
- After major feature additions
- Changing coding standards
Manual Trigger#
Use the tool directly when you want to ensure context is fresh:
Regenerate my CLAUDE.md file
CLI Integration#
You can also regenerate via CLI:
Generated File Location#
By default, CLAUDE.md is created in your project root:
my-project/
├── CLAUDE.md # Generated context file
├── package.json
├── src/
└── ...
Customization#
Custom Sections#
Add project-specific sections:
Exclude Patterns#
Control what gets detected:
Error Handling#
No Config Found#
If no configuration exists:
Warning: No bootspring.config.js found, using defaults
Generated CLAUDE.md at /path/to/project/CLAUDE.md
Permission Error#
If the file cannot be written:
Best Practices#
Version Control#
Commit CLAUDE.md to version control so the entire team benefits from consistent AI context.
Regular Updates#
Regenerate periodically, especially after significant changes.
Review Generated Content#
Verify the generated content is accurate and add custom sections for project-specific context.
Keep It Current#
An outdated context file can lead to incorrect AI suggestions.
Related Tools#
- bootspring_context - More context operations
- bootspring_memory - Memory provides recent learnings
- bootspring_seed - Seed includes generation