File size: 6,390 Bytes
9f62278
 
 
 
 
 
 
 
 
 
 
 
 
e81062e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
---
title: AI Code Agent Prompt Enhancer
emoji: ๐Ÿ“Š
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit
short_description: Transform your website ideas into professional
---

# ๐Ÿš€ AI Code Agent Prompt Enhancer

Transform your website ideas into professional, production-ready prompts optimized for AI code agent systems. This tool guides you through a series of questions to gather all necessary information, then generates detailed prompts that work with AI coding assistants like Cursor, Bolt.new, v0.dev, and custom AI code agents.

## โœจ Features

- ๐ŸŽฏ **Smart Questionnaire** - Guided questions to gather all project requirements
- ๐ŸŽจ **Professional Prompts** - Generate detailed, production-ready specifications
- ๐Ÿ“ฑ **AI Code Agent Compatible** - Uses TITLE_PAGE, UPDATE_PAGE, SEARCH/REPLACE format
- โœจ **Modern Tech Stack** - Includes TailwindCSS, Feather Icons, AOS, Vanta.js
- ๐Ÿ–ผ๏ธ **Image Placeholders** - Integrates Static.photos for professional placeholder images
- ๐Ÿ“ฅ **Downloadable** - Save prompts for future use

## ๐Ÿ”ง Technology Stack

- **Gradio** - Interactive web interface
- **Hugging Face Inference API** - AI-powered prompt generation
- **TailwindCSS** - Utility-first CSS framework
- **Feather Icons** - Beautiful icon set
- **AOS.js** - Scroll animation library
- **Vanta.js** - Animated backgrounds
- **Static.photos** - Professional placeholder images

## ๐ŸŽฏ What You Get

โœ… **Clean, Professional Prompt** - No Q&A clutter, just specifications  
โœ… **AI Code Agent Format** - Uses TITLE_PAGE, UPDATE_PAGE, SEARCH/REPLACE blocks  
โœ… **TailwindCSS Integration** - Modern, responsive styling  
โœ… **Animation Ready** - AOS scroll animations + Vanta.js backgrounds  
โœ… **Icon System** - Feather Icons integrated  
โœ… **Image Placeholders** - Static.photos for all images  
โœ… **Production Ready** - Complete technical specifications  
โœ… **Downloadable** - Save for future use  

## ๐Ÿ“‹ How to Use

### Step 1: Create Your Prompt
1. **Enter Your Idea** - Describe your website concept
2. **Answer Questions** - Respond to guided questions (7 total)
3. **Generate Prompt** - Click to create your AI code agent prompt
4. **Download/Copy** - Save or copy the generated prompt

### Step 2: Use with AI Code Agent
1. **Copy the generated prompt**
2. **Paste into your AI code agent** (Cursor, Bolt.new, v0.dev, custom agents)
3. **Get production-ready code** with proper formatting

## ๐Ÿ”ง Compatible Systems

This tool generates prompts compatible with:
- โœจ **Custom AI Code Agents** (using the TITLE_PAGE/UPDATE_PAGE format)
- โœจ **Cursor AI** - Paste and generate
- โœจ **Bolt.new** - Direct integration
- โœจ **v0.dev** - Component generation
- โœจ **GitHub Copilot** - Enhanced context
- โœจ **Any LLM** - ChatGPT, Claude, Gemini

## ๐Ÿ“š Output Format

The generated prompts use a specific format for AI code agents:

### For New Websites:
```
<<<<<<< START_TITLE index.html >>>>>>> END_TITLE
```html
<!DOCTYPE html>
...complete HTML code...
```
```

### For Updates:
```
<<<<<<< UPDATE_PAGE_START index.html >>>>>>> UPDATE_PAGE_END
<<<<<<< SEARCH
    <h1>Old Content</h1>
=======
    <h1 class="text-4xl font-bold">New Content</h1>
>>>>>>> REPLACE
```

## ๐Ÿ› ๏ธ Installation

1. **Clone the repository**
```bash
git clone <your-repo-url>
cd ai-code-agent-enhancer
```

2. **Install dependencies**
```bash
pip install -r requirements.txt
```

3. **Set up environment variables**
Create a .env file or set the HuggingFace token:
```bash
export HF_TOKEN="your_huggingface_token_here"
```

## ๐ŸŽฎ Usage

1. **Run the application**
```bash
python app.py
```

2. **Open in browser**
The app will launch at http://localhost:7860

3. **Follow the process**
   - Enter your website idea
   - Answer 7 guided questions
   - Select an AI model
   - Generate your enhanced prompt
   - Copy or download the result

## ๐ŸŽฏ How It Works

### Step 1: Input Collection
The system asks targeted questions about:
- Website type (portfolio, e-commerce, etc.)
- Purpose and goals
- Target audience
- Required sections/pages
- Design preferences
- Features needed
- New vs. update request

### Step 2: Prompt Generation
An LLM processes your answers and creates a detailed specification including:
- Complete technical requirements
- Design specifications
- Feature descriptions
- Code structure format
- CDN links and libraries
- Accessibility guidelines

### Step 3: Format Optimization
The output is formatted for AI code agents with:
- TITLE_PAGE blocks for new websites
- UPDATE_PAGE and SEARCH/REPLACE blocks for updates
- HTML templates
- Animation examples
- Styling guidelines

## ๐Ÿ› ๏ธ Tech Stack

- **Frontend**: Gradio 4.0+
- **AI**: HuggingFace Inference API
- **Models**: Llama, Phi, Zephyr, Mistral
- **Output Format**: AI Code Agent compatible

## ๐Ÿ” Environment Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `HF_TOKEN` | HuggingFace API token | Yes |

Get your token from: https://huggingface.co/settings/tokens

## ๐ŸŽจ Supported Technologies

Generated prompts include:
- **TailwindCSS** - Responsive styling
- **Feather Icons** - Icon library
- **AOS.js** - Scroll animations
- **Vanta.js** - Background animations
- **Anime.js** - Advanced animations
- **Static.photos** - Placeholder images

## ๐Ÿ“ Example Usage

**Input:**
- Website Idea: "Portfolio website for a photographer"
- Type: Portfolio
- Purpose: Showcase work and attract clients
- Audience: Potential photography clients
- Sections: Home, Gallery, About, Contact
- Theme: Dark, modern, elegant
- Features: Image gallery, contact form, smooth animations

**Output:**
Complete AI code agent prompt with all specifications, ready to paste into Cursor, Bolt.new, v0.dev, or any AI coding assistant.

## ๐Ÿค Contributing

Contributions are welcome! Please:
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request

## ๐Ÿ“„ License

MIT License - feel free to use in your projects

## ๐Ÿ†˜ Support

If you encounter issues:
1. Check that `HF_TOKEN` is set correctly
2. Ensure all dependencies are installed
3. Try a different AI model from the dropdown
4. Check HuggingFace API status

## ๐ŸŒŸ Credits

Created for developers who want to streamline their AI-powered web development workflow.

---

**Happy Coding! ๐Ÿš€**