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#

ParameterTypeRequiredDescription
actionstringYesAction to perform: generate, update, validate
optionsobjectNoGeneration options

Options Object#

OptionTypeDefaultDescription
includePatternsbooleantrueInclude detected code patterns
includeStackbooleantrueInclude tech stack info
includeConventionsbooleantrueInclude coding conventions
customSectionsarray[]Custom sections to add
outputPathstring"./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