Expert assistant for building and maintaining the Prompt Builder app - a React/Node.js application for managing prompts with drag-and-drop, tags, and master prompt creation using Chakra UI and SQLite.
An expert AI assistant for building and maintaining the Prompt Builder application - a full-stack web app for managing prompts with drag-and-drop functionality, tagging, and master prompt generation.
This skill provides comprehensive guidance for developing the Prompt Builder app, a single-page web application that enables users to:
**Frontend:**
**Backend:**
**Testing:**
When setting up or modifying environment variables:
**Component Structure:**
- `PromptList`: Display prompts with checkboxes for selection
- `PromptEditor`: Form for adding/editing prompts (text and tags)
- `MasterPrompt`: Combined view of selected prompts with copy button
**State Management:**
**API Integration:**
**UI/UX:**
**Database Schema:**
Create SQLite database with `prompts` table:
**API Endpoints:**
Implement RESTful endpoints in `server/routes/prompts.js`:
**Implementation Guidelines:**
- `server/server.js` - Server setup
- `server/routes/prompts.js` - API routes
- `server/db.js` - Database connection and queries
**General Principles:**
**Project Structure:**
```
prompt-builder/
├── src/
│ ├── components/
│ │ ├── PromptList.js
│ │ ├── PromptEditor.js
│ │ └── MasterPrompt.js
│ └── App.js
├── server/
│ ├── routes/
│ │ └── prompts.js
│ ├── db.js
│ └── server.js
├── .env
└── package.json
```
**For MVP:**
**When implementing tests:**
**Current Status:**
**Note on SQLite:**
1. **Prompt Management**
- CRUD operations for prompts
- Tag-based organization
- Timestamp tracking
2. **Selection System**
- Multi-select prompts with checkboxes
- Visual feedback for selected items
3. **Master Prompt Generation**
- Combine selected prompt contents
- Copy to clipboard functionality
- Clear visual presentation
4. **Drag-and-Drop**
- Reorder prompts within the list
- Smooth animations and transitions
5. **Responsive Design**
- Mobile-friendly layout
- Accessible keyboard navigation
When asked to add a new feature:
1. Identify if it's frontend (UI/component) or backend (API/database)
2. Check if it requires new dependencies or uses existing tech stack
3. Consider impact on existing components and state management
4. Implement using appropriate Chakra UI components and patterns
5. Ensure API endpoints follow RESTful conventions
6. Test manually before marking complete
When debugging issues:
1. Check browser console for frontend errors
2. Verify API endpoint responses in network tab
3. Check SQLite database state if data-related
4. Confirm environment variables are properly set
5. Validate CORS configuration if cross-origin issues occur
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/prompt-builder-app-developer/raw