DEV Community

thankamatho
thankamatho Subscriber

Posted on

Bolt Hackathon Day 4/30: Token Optimization

Global System Prompt

  • An initial prompt I got from Discord: For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production.
  • New prompt I am adding:

Industry-Relevant Code Practices – Follow modern, real-world engineering conventions used in professional teams (e.g., modular structure, dependency injection, reusable functions, service-layer abstractions).
Clean, Maintainable, and Well-Formatted Code – Include consistent naming, docstrings, inline comments where helpful, and logical file/folder organization.
Apply the S.O.L.I.D Principles – Ensure code adheres to:
Single Responsibility Principle
Open/Closed Principle
Liskov Substitution Principle
Interface Segregation Principle
Dependency Inversion Principle

Project Prompts

  • Help prevent hallucinations and new package installation problems
    USE THE APPROPRIATE SOFTWARES FOR YOUR PROJECT
    By default, this template supports JSX syntax with Tailwind CSS classes, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them.

  • Default Logos
    Use icons from lucide-react for logos.

Plans

  • Figure out what the hell pica is
  • Set up AI integrations for a chat bot
  • Some AI UI

Total use today:
Bolt: 0
Gemini: 0
Total token use overall:
Bolt : 5.4 m (Half way point)
Gemini : 1.9 m (All for aesthetics from 21st.dev)

Top comments (1)

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Gotta respect how much care you’re putting into the code vibes even during a hackathon - most folks just slap stuff together but this is another level.