Skip to content

tylerbessire/Prompt-Brickz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧱 Prompt Brickz v2.0

AI Prompt Engineering Made Magic

Transform any prompt into professional-grade output through Brickz! Brickz are tag words of phrases that you can drag and drop into a template to optimize your query. Intuitive brick selection and automatic two-pass optimization are all done with the help of Brickz wizard. He will analyze your code, prompt, idea etc, and produce a template and list of suggestion Brickz to use. My end goal is to speed up Model evaluations and alignment A/B by magnitudes if possible.

Prompt Brickz Version License

🚀 Features

🧙‍♂️ Brickz Wizard

  • Intelligent Content Analysis: Automatically detects code, workflows, data, documents, images, and conversations
  • Smart Brick Suggestions: AI-powered recommendations based on content type
  • Humorous Commentary: TARS-like personality with 85% humor setting
  • Easter Eggs: Hidden interactions and witty responses

🎨 Modern Glassmorphism UI

  • Cutting-Edge Design: Ocean blue, jet yellow, and midnight black color scheme
  • Interactive Animations: Bubble effects, floating wizard, liquid glass morphism
  • Mac-Style Navigation: Bottom dock with magnification effects
  • Progress Animations: Engaging circles with humorous commentary

⚡ Two-Pass Optimization Engine

  • PSE(Perspective Shift Effect) Enhancement: Additional output pruning with PSE for optimal code refinement
  • Always-On Processing: Users see only the final optimized output
  • Content-Aware Templates: Different approaches for code, conversations, and workflows
  • Production Ready: Professional-grade prompts automatically

🧱 Advanced Brick System

  • Six Categories: Styles, Goals, Scopes, Personas, Formats, Contexts
  • Smart Selection: Content-aware brick suggestions
  • Custom Creation: Guidance for personal bricks
  • Professional Colors: Bright pastels for visual organization

📸 Screenshots

Main Interface

Beautiful glassmorphism design with interactive elements

Wizard Analysis

AI assistant providing intelligent suggestions

Progress Animation

Engaging progress circles with humor and real-time updates

🛠️ Quick Start

Prerequisites

  • Python 3.8+
  • Node.js (optional for future enhancements)

Installation

  1. Clone the repository

    git clone https://github.com/tylerbessire/prompt-brickz.git
    cd prompt-brickz
  2. Set up virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Configure API keys (optional)

    cp .env.example .env
    # Edit .env with your API keys
  5. Run the application

    python app.py
  6. Open your browser Navigate to http://localhost:5002

🎯 Usage Examples

Code Optimization

# Upload your Python script
# Wizard suggests: Pythonic + Optimize + Function + Senior Engineer
# Result: Professional, optimized code with best practices

Workflow Enhancement

# Paste your automation workflow
# Wizard suggests: Structured + System + Consultant + Step-by-Step
# Result: Enterprise-ready process documentation

Data Analysis

# Upload your CSV or analysis request
# Wizard suggests: Verbose + Research + Detailed + Educational
# Result: Comprehensive insights and explanations

🧩 Architecture

Frontend

  • Modern HTML5/CSS3: Glassmorphism effects with backdrop blur
  • Vanilla JavaScript: No framework dependencies for speed
  • Responsive Design: Mobile-first approach
  • Progressive Enhancement: Works without JavaScript

Backend

  • Flask Application: Lightweight Python web framework
  • Modular Design: Wizard, Bricks, and Optimizer components
  • API Integration: Support for OpenAI, Anthropic, and Gemini
  • Two-Pass System: Backend optimization for better results

Key Components

  • BrickzWizard: Content analysis/User guidance
  • TwoPassOptimizer: PSE enhancement engine
  • BrickLibrary: Modular prompt components
  • Glassmorphism UI: Modern visual effects

🎨 Design Philosophy

Visual Design

  • Glassmorphism Effects: Frosted glass aesthetic with blur effects
  • Interactive Animations: Hover effects and micro-interactions
  • Color Psychology: Orange for energy, blue for trust, yellow for creativity
  • Typography: Inter for UI, JetBrains Mono for code

User Experience

  • Zero Learning Curve: Intuitive drag-and-drop interface
  • Immediate Feedback: Real-time wizard commentary
  • Progressive Disclosure: Features revealed as needed

🔮 Advanced Features

API Integration

# Multiple AI providers supported
ANTHROPIC_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
GEMINI_API_KEY=your_key_here

Custom Bricks

Create personalized prompt modifiers through guidance:

  • Styles: How should it be written?
  • Goals: What should it achieve?
  • Scopes: What level of detail?
  • Personas: From whose perspective?
  • Formats: How should it be structured?
  • Contexts: In what situation?

File Upload Support

  • Code Files: .py, .js, .html, .css, .yml
  • Documents: .pdf, .txt, .md
  • Data: .csv, .json, .xlsx
  • Images: Visual content analysis
  • Any Format: Wizard adapts to content

🛡️ Security & Privacy

  • Local Processing: No data sent to third parties EVER
  • API Key Protection: Environment variables for sensitive data
  • No Logging: Personal information never stored
  • Open Source: Full transparency in code

🎯 Roadmap

Version 2.1

  • Voice integration with OpenAI Realtime API
  • Advanced file format support
  • Collaborative brick sharing
  • Performance analytics dashboard

Version 2.2

  • Plugin system for custom analyzers
  • Team collaboration features
  • Advanced export formats
  • Integration with popular tools

Version 3.0

  • Self-improving brick suggestions
  • Advanced AI model switching
  • Enterprise features
  • Mobile app companion

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Code Style

  • Python: Follow PEP 8
  • JavaScript: Use ES6+ features
  • CSS: BEM methodology
  • Comments: Explain the why, not the what

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • TARS: Inspiration for the wizard personality
  • PSE Research: Foundation for optimization techniques
  • Glassmorphism: Modern UI design principles
  • Open Source Community: For tools and inspiration

📞 Support


Built with ❤️ by Tyler Bessire and Claude

Making AI prompt engineering accessible to everyone

About

Prompt-Brickz: a Lego-style prompt-builder that lets you snap personas, goals, and styles together—complete with a Perspective-Shift-Effect double pass for instant peer-review polish.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors