Context Generation

Context is the foundation of effective AI assistance. Bootspring automatically generates a CLAUDE.md file that captures everything your AI assistant needs to know about your project.

Why Context Matters#

Without context, AI assistants give generic advice. With context, they provide tailored guidance specific to your project's tech stack, conventions, and patterns.

Without Context#

You: "Create a form component" AI: "Here's a generic React form..." (may not match your patterns)

With Context#

You: "Create a form component" AI: "Based on your Next.js 14 project using React Hook Form, Zod, and Tailwind, here's a form following your existing patterns..."

What Gets Generated#

The CLAUDE.md file contains:

Project Overview#

Loading code block...

Tech Stack#

Loading code block...

Project Structure#

Loading code block...

Conventions#

Loading code block...

Commands#

Loading code block...

Guidelines#

Loading code block...

How Detection Works#

Bootspring scans your project to detect:

Framework Detection#

Files DetectedFramework
next.config.* + app/Next.js 14 (App Router)
next.config.* + pages/Next.js (Pages Router)
vite.config.*Vite + React/Vue
gatsby-config.*Gatsby
remix.config.*Remix
nuxt.config.*Nuxt
angular.jsonAngular

Database Detection#

Files DetectedDatabase
prisma/schema.prismaPrisma
drizzle.config.*Drizzle
typeorm.config.*TypeORM
mongoose in package.jsonMongoDB

Auth Detection#

Files/PackagesProvider
joseJWT sessions
next-authNextAuth
@auth0/nextjs-auth0Auth0
@supabase/auth-helpersSupabase

Testing Detection#

Files DetectedFramework
vitest.config.*Vitest
jest.config.*Jest
playwright.config.*Playwright
cypress.config.*Cypress

Generating Context#

Initial Generation#

When you initialize Bootspring:

Loading code block...

This creates CLAUDE.md automatically.

Manual Regeneration#

Regenerate anytime:

Loading code block...

Or ask your AI assistant:

Regenerate the CLAUDE.md context file.

Force Regeneration#

Override existing context:

Loading code block...

Customizing Context#

Custom Sections#

Add team-specific information in bootspring.config.js:

Loading code block...

Excluding Files#

Prevent certain files from being analyzed:

Loading code block...

Explicit Stack#

Override auto-detection:

Loading code block...

Include Extra Files#

Include additional context sources:

Loading code block...

When to Regenerate#

Regenerate your context when:

ChangeImpact
New dependencies addedStack detection
Project structure changedStructure section
New coding standardsConventions section
New team membersCustom guidelines
Major feature addedProject overview
Config files changedVarious sections

Best Practices#

1. Commit CLAUDE.md#

Loading code block...

This ensures all team members share the same context.

2. Review Generated Content#

After generation, review for accuracy:

  • Is the tech stack correct?
  • Are conventions captured?
  • Any missing patterns?

3. Add Domain Knowledge#

Help AI understand your business:

Loading code block...

4. Keep It Updated#

Set a reminder to regenerate:

  • After sprints
  • Before major features
  • When onboarding team members

5. Don't Over-Include#

Keep context focused. Too much information can confuse AI assistants.

Viewing Context#

Via CLI#

Loading code block...

Via AI Assistant#

Show me the current project context.

Via File#

Simply open CLAUDE.md in your editor.

Troubleshooting#

Context Not Generated#

  1. Check you're in project root
  2. Ensure package.json exists
  3. Run with verbose: bootspring generate --verbose

Wrong Stack Detected#

Override in config:

Loading code block...

Context Too Large#

Add exclusions:

Loading code block...

Missing Conventions#

Add custom sections for team-specific conventions.