faizee07 commited on
Commit
e81062e
ยท
verified ยท
1 Parent(s): fe53af3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +211 -1
README.md CHANGED
@@ -11,4 +11,214 @@ license: mit
11
  short_description: Transform your website ideas into professional
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  short_description: Transform your website ideas into professional
12
  ---
13
 
14
+ # ๐Ÿš€ AI Code Agent Prompt Enhancer
15
+
16
+ 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.
17
+
18
+ ## โœจ Features
19
+
20
+ - ๐ŸŽฏ **Smart Questionnaire** - Guided questions to gather all project requirements
21
+ - ๐ŸŽจ **Professional Prompts** - Generate detailed, production-ready specifications
22
+ - ๐Ÿ“ฑ **AI Code Agent Compatible** - Uses TITLE_PAGE, UPDATE_PAGE, SEARCH/REPLACE format
23
+ - โœจ **Modern Tech Stack** - Includes TailwindCSS, Feather Icons, AOS, Vanta.js
24
+ - ๐Ÿ–ผ๏ธ **Image Placeholders** - Integrates Static.photos for professional placeholder images
25
+ - ๐Ÿ“ฅ **Downloadable** - Save prompts for future use
26
+
27
+ ## ๐Ÿ”ง Technology Stack
28
+
29
+ - **Gradio** - Interactive web interface
30
+ - **Hugging Face Inference API** - AI-powered prompt generation
31
+ - **TailwindCSS** - Utility-first CSS framework
32
+ - **Feather Icons** - Beautiful icon set
33
+ - **AOS.js** - Scroll animation library
34
+ - **Vanta.js** - Animated backgrounds
35
+ - **Static.photos** - Professional placeholder images
36
+
37
+ ## ๐ŸŽฏ What You Get
38
+
39
+ โœ… **Clean, Professional Prompt** - No Q&A clutter, just specifications
40
+ โœ… **AI Code Agent Format** - Uses TITLE_PAGE, UPDATE_PAGE, SEARCH/REPLACE blocks
41
+ โœ… **TailwindCSS Integration** - Modern, responsive styling
42
+ โœ… **Animation Ready** - AOS scroll animations + Vanta.js backgrounds
43
+ โœ… **Icon System** - Feather Icons integrated
44
+ โœ… **Image Placeholders** - Static.photos for all images
45
+ โœ… **Production Ready** - Complete technical specifications
46
+ โœ… **Downloadable** - Save for future use
47
+
48
+ ## ๐Ÿ“‹ How to Use
49
+
50
+ ### Step 1: Create Your Prompt
51
+ 1. **Enter Your Idea** - Describe your website concept
52
+ 2. **Answer Questions** - Respond to guided questions (7 total)
53
+ 3. **Generate Prompt** - Click to create your AI code agent prompt
54
+ 4. **Download/Copy** - Save or copy the generated prompt
55
+
56
+ ### Step 2: Use with AI Code Agent
57
+ 1. **Copy the generated prompt**
58
+ 2. **Paste into your AI code agent** (Cursor, Bolt.new, v0.dev, custom agents)
59
+ 3. **Get production-ready code** with proper formatting
60
+
61
+ ## ๐Ÿ”ง Compatible Systems
62
+
63
+ This tool generates prompts compatible with:
64
+ - โœจ **Custom AI Code Agents** (using the TITLE_PAGE/UPDATE_PAGE format)
65
+ - โœจ **Cursor AI** - Paste and generate
66
+ - โœจ **Bolt.new** - Direct integration
67
+ - โœจ **v0.dev** - Component generation
68
+ - โœจ **GitHub Copilot** - Enhanced context
69
+ - โœจ **Any LLM** - ChatGPT, Claude, Gemini
70
+
71
+ ## ๐Ÿ“š Output Format
72
+
73
+ The generated prompts use a specific format for AI code agents:
74
+
75
+ ### For New Websites:
76
+ ```
77
+ <<<<<<< START_TITLE index.html >>>>>>> END_TITLE
78
+ ```html
79
+ <!DOCTYPE html>
80
+ ...complete HTML code...
81
+ ```
82
+ ```
83
+
84
+ ### For Updates:
85
+ ```
86
+ <<<<<<< UPDATE_PAGE_START index.html >>>>>>> UPDATE_PAGE_END
87
+ <<<<<<< SEARCH
88
+ <h1>Old Content</h1>
89
+ =======
90
+ <h1 class="text-4xl font-bold">New Content</h1>
91
+ >>>>>>> REPLACE
92
+ ```
93
+
94
+ ## ๐Ÿ› ๏ธ Installation
95
+
96
+ 1. **Clone the repository**
97
+ ```bash
98
+ git clone <your-repo-url>
99
+ cd ai-code-agent-enhancer
100
+ ```
101
+
102
+ 2. **Install dependencies**
103
+ ```bash
104
+ pip install -r requirements.txt
105
+ ```
106
+
107
+ 3. **Set up environment variables**
108
+ Create a .env file or set the HuggingFace token:
109
+ ```bash
110
+ export HF_TOKEN="your_huggingface_token_here"
111
+ ```
112
+
113
+ ## ๐ŸŽฎ Usage
114
+
115
+ 1. **Run the application**
116
+ ```bash
117
+ python app.py
118
+ ```
119
+
120
+ 2. **Open in browser**
121
+ The app will launch at http://localhost:7860
122
+
123
+ 3. **Follow the process**
124
+ - Enter your website idea
125
+ - Answer 7 guided questions
126
+ - Select an AI model
127
+ - Generate your enhanced prompt
128
+ - Copy or download the result
129
+
130
+ ## ๐ŸŽฏ How It Works
131
+
132
+ ### Step 1: Input Collection
133
+ The system asks targeted questions about:
134
+ - Website type (portfolio, e-commerce, etc.)
135
+ - Purpose and goals
136
+ - Target audience
137
+ - Required sections/pages
138
+ - Design preferences
139
+ - Features needed
140
+ - New vs. update request
141
+
142
+ ### Step 2: Prompt Generation
143
+ An LLM processes your answers and creates a detailed specification including:
144
+ - Complete technical requirements
145
+ - Design specifications
146
+ - Feature descriptions
147
+ - Code structure format
148
+ - CDN links and libraries
149
+ - Accessibility guidelines
150
+
151
+ ### Step 3: Format Optimization
152
+ The output is formatted for AI code agents with:
153
+ - TITLE_PAGE blocks for new websites
154
+ - UPDATE_PAGE and SEARCH/REPLACE blocks for updates
155
+ - HTML templates
156
+ - Animation examples
157
+ - Styling guidelines
158
+
159
+ ## ๐Ÿ› ๏ธ Tech Stack
160
+
161
+ - **Frontend**: Gradio 4.0+
162
+ - **AI**: HuggingFace Inference API
163
+ - **Models**: Llama, Phi, Zephyr, Mistral
164
+ - **Output Format**: AI Code Agent compatible
165
+
166
+ ## ๐Ÿ” Environment Variables
167
+
168
+ | Variable | Description | Required |
169
+ |----------|-------------|----------|
170
+ | `HF_TOKEN` | HuggingFace API token | Yes |
171
+
172
+ Get your token from: https://huggingface.co/settings/tokens
173
+
174
+ ## ๐ŸŽจ Supported Technologies
175
+
176
+ Generated prompts include:
177
+ - **TailwindCSS** - Responsive styling
178
+ - **Feather Icons** - Icon library
179
+ - **AOS.js** - Scroll animations
180
+ - **Vanta.js** - Background animations
181
+ - **Anime.js** - Advanced animations
182
+ - **Static.photos** - Placeholder images
183
+
184
+ ## ๐Ÿ“ Example Usage
185
+
186
+ **Input:**
187
+ - Website Idea: "Portfolio website for a photographer"
188
+ - Type: Portfolio
189
+ - Purpose: Showcase work and attract clients
190
+ - Audience: Potential photography clients
191
+ - Sections: Home, Gallery, About, Contact
192
+ - Theme: Dark, modern, elegant
193
+ - Features: Image gallery, contact form, smooth animations
194
+
195
+ **Output:**
196
+ Complete AI code agent prompt with all specifications, ready to paste into Cursor, Bolt.new, v0.dev, or any AI coding assistant.
197
+
198
+ ## ๐Ÿค Contributing
199
+
200
+ Contributions are welcome! Please:
201
+ 1. Fork the repository
202
+ 2. Create a feature branch
203
+ 3. Make your changes
204
+ 4. Submit a pull request
205
+
206
+ ## ๐Ÿ“„ License
207
+
208
+ MIT License - feel free to use in your projects
209
+
210
+ ## ๐Ÿ†˜ Support
211
+
212
+ If you encounter issues:
213
+ 1. Check that `HF_TOKEN` is set correctly
214
+ 2. Ensure all dependencies are installed
215
+ 3. Try a different AI model from the dropdown
216
+ 4. Check HuggingFace API status
217
+
218
+ ## ๐ŸŒŸ Credits
219
+
220
+ Created for developers who want to streamline their AI-powered web development workflow.
221
+
222
+ ---
223
+
224
+ **Happy Coding! ๐Ÿš€**