Best Practices

Get the most out of Bootspring with these recommended practices.

Working with Agents#

Be Specific#

The more context you provide, the better the agent can help.

Instead of:

Help me with the frontend

Try:

Use the frontend-expert agent to create a responsive navigation component with: - Mobile hamburger menu - Dropdown submenus - Active state indication - Keyboard navigation support

Use the Right Agent#

Match your task to the agent's specialization:

TaskAgent
UI componentsFrontend Expert
API designAPI Expert or Backend Expert
Database schemaDatabase Expert
Security reviewSecurity Expert
Performance issuesPerformance Expert
Bug huntingDebugging Detective
Architecture decisionsSoftware Architect

Chain Agents for Complex Tasks#

For complex features, use multiple agents:

  1. Software Architect - Design the approach
  2. Backend Expert - Implement server logic
  3. Database Expert - Design the schema
  4. Frontend Expert - Build the UI
  5. Testing Expert - Write tests
  6. Security Expert - Review for vulnerabilities

Context Management#

Keep CLAUDE.md Updated#

Regenerate your context file when:

  • Adding new dependencies
  • Changing project structure
  • Updating coding standards
  • Adding new team conventions
Regenerate the CLAUDE.md context file

Add Custom Sections#

Include team-specific information:

1// bootspring.config.js 2module.exports = { 3 context: { 4 customSections: [ 5 { 6 title: 'Team Conventions', 7 content: ` 8 - Use conventional commits 9 - Require PR reviews 10 - Deploy on Fridays is forbidden 11 `, 12 }, 13 ], 14 }, 15};

Quality Gates#

Start with Pre-commit#

Run pre-commit checks on every commit:

# Set up husky npm install -D husky npx husky init echo 'npx bootspring quality --gate pre-commit' > .husky/pre-commit

Use Auto-fix#

Let Bootspring fix what it can:

Run quality gates with auto-fix enabled

Don't Skip Gates#

Quality gates catch issues early. Skipping them leads to:

  • Technical debt
  • Bug accumulation
  • Harder reviews
  • Deployment failures

Skills#

Prefer Skills for Common Patterns#

Instead of writing from scratch, use skills:

Use the api-endpoint skill to create a POST /api/orders endpoint

Benefits:

  • Consistent patterns
  • Best practices included
  • Faster development
  • Fewer bugs

Customize for Your Team#

Override skill templates:

1// bootspring.config.js 2module.exports = { 3 skills: { 4 templates: { 5 'api-endpoint': './templates/api-endpoint.ts', 6 }, 7 }, 8};

Project Setup#

Initialize Early#

Set up Bootspring at project start:

npx bootspring init

This creates:

  • Configuration file
  • MCP setup
  • Initial context

Configure for Your Stack#

Update bootspring.config.js with your tech stack:

1module.exports = { 2 stack: { 3 frontend: ['react', 'nextjs', 'tailwindcss'], 4 backend: ['nodejs', 'prisma'], 5 database: ['postgresql'], 6 testing: ['vitest', 'playwright'], 7 }, 8};

Set Quality Thresholds#

Define your standards:

1module.exports = { 2 quality: { 3 thresholds: { 4 coverage: 80, 5 complexity: 10, 6 duplicates: 5, 7 }, 8 }, 9};

Collaboration#

Share Configuration#

Commit bootspring.config.js to source control so the whole team uses the same settings.

Document Agent Decisions#

When an agent suggests something significant, document why:

1## Architecture Decision: JWT over Sessions 2 3Based on Software Architect agent recommendation: 4- Stateless for scalability 5- Works with mobile clients 6- Easier to implement refresh tokens

Review Agent Output#

Agents provide suggestions, not commands. Always:

  1. Review the generated code
  2. Understand the reasoning
  3. Adapt to your specific needs
  4. Test thoroughly

Performance Tips#

Use Appropriate Verbosity#

For quick answers:

Use the frontend-expert agent briefly to explain useState vs useReducer

For detailed guidance:

Use the frontend-expert agent in detail to design a state management solution

Cache Context#

Keep your context file in version control to avoid regenerating on every session.

Instead of multiple separate requests, group related questions:

Use the backend-expert agent to help with: 1. Authentication middleware 2. Rate limiting setup 3. Error handling patterns

Common Mistakes to Avoid#

Don't:#

  1. Ignore agent expertise - Use the right agent for the task
  2. Skip context generation - Context makes agents more effective
  3. Disable quality gates - They prevent issues early
  4. Use generic prompts - Be specific for better results
  5. Forget to update context - Stale context leads to stale suggestions

Do:#

  1. Be specific in your requests
  2. Chain agents for complex tasks
  3. Run quality gates before committing
  4. Keep context updated as the project evolves
  5. Review and adapt agent suggestions