bootspring_context
Generate and manage AI context files for your project.
Overview#
The bootspring_context tool creates comprehensive context files (like CLAUDE.md) that help AI assistants understand your project's structure, conventions, and requirements.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Action to perform: generate, update, validate |
options | object | No | Generation options |
Options Object#
| Option | Type | Default | Description |
|---|---|---|---|
includePatterns | boolean | true | Include detected code patterns |
includeStack | boolean | true | Include tech stack info |
includeConventions | boolean | true | Include coding conventions |
customSections | array | [] | Custom sections to add |
outputPath | string | "./CLAUDE.md" | Output file path |
Usage Examples#
Generate Context File#
Use the bootspring_context tool with:
- action: "generate"
- options: { includePatterns: true }
Result:
Loading code block...
Update Existing Context#
Use the bootspring_context tool with:
- action: "update"
This updates the existing context file with any new patterns, dependencies, or structure changes detected.
Validate Context#
Use the bootspring_context tool with:
- action: "validate"
Checks if the context file is accurate and up-to-date.
What Gets Detected#
Tech Stack#
- Framework (Next.js, React, Vue, etc.)
- Language (TypeScript, JavaScript)
- Styling (Tailwind, CSS Modules, etc.)
- Database (PostgreSQL, MySQL, MongoDB)
- ORM (Prisma, Drizzle, TypeORM)
- Testing (Jest, Vitest, Playwright)
Project Structure#
- Directory organization
- Key files and their purposes
- Entry points
Code Patterns#
- Component patterns
- State management approach
- API patterns
- Error handling patterns
Conventions#
- Naming conventions
- File organization
- Import ordering
- Comment styles
Custom Sections#
Add custom sections via configuration:
Loading code block...
Output Format#
The generated context file follows this structure:
Loading code block...
Best Practices#
When to Regenerate#
- After adding new dependencies
- After restructuring the project
- After changing coding standards
- After major feature additions
Keep Context Focused#
- Remove irrelevant sections
- Add project-specific guidelines
- Include deployment notes
- Document environment variables
Version Control#
- Commit CLAUDE.md to source control
- Review changes in PRs
- Keep it updated with the codebase
Related Tools#
- bootspring_analyze - Deep project analysis
- bootspring_config - Configure context generation