Claude-skill-registry fullstack-template-generator
Generates a complete fullstack application template with Python FastAPI backend and React Vite frontend. Includes OpenAI ChatGPT integration, CORS configuration, comprehensive error handling, and a modern Tailwind CSS + shadcn/ui React UI. Use this skill when the user wants to bootstrap a new fullstack web application project with both API backend and web frontend components ready to go.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/fullstack-template-generator" ~/.claude/skills/majiayu000-claude-skill-registry-fullstack-template-generator && rm -rf "$T"
manifest:
skills/data/fullstack-template-generator/SKILL.mdsource content
Fullstack Template Generator
Overview
This skill automates the creation of a production-ready fullstack application template featuring:
Backend (Python + FastAPI)
- FastAPI framework with async support
- OpenAI ChatGPT API integration
- CORS middleware configured for frontend communication
- Comprehensive error handling and validation
- Environment-based configuration
- Auto-generated API documentation (Swagger UI)
- Pydantic models for request validation
Frontend (React + Vite)
- Modern React 19 with Vite 7 for fast development
- Tailwind CSS 3 configured with PostCSS + autoprefixer
- shadcn/ui primitives (Button, Card, Input, Textarea) powered by class-variance-authority, clsx, and tailwind-merge
- Lucide icons and Framer Motion for polished micro-interactions
- Axios for API communication
- Clean, responsive chat UI built entirely with Tailwind utilities
- Error handling and loading states
- Hot Module Replacement (HMR)
What This Skill Creates
When invoked, this skill generates a complete project structure with:
project-name/ ├── README.md ├── backend/ │ ├── .env.example │ ├── .gitignore │ ├── main.py │ ├── requirements.txt │ └── tests/ │ └── __init__.py └── frontend/ ├── .gitignore ├── index.html ├── package.json ├── vite.config.js ├── eslint.config.js ├── tailwind.config.js ├── postcss.config.js ├── public/ │ └── vite.svg └── src/ ├── App.jsx ├── main.jsx ├── index.css ├── lib/ │ └── utils.js ├── components/ │ └── ui/ ├── assets/ ├── hooks/ ├── pages/ └── styles/
When to Use This Skill
Invoke this skill when the user:
- Wants to create a new fullstack web application
- Needs both a REST API backend and React frontend
- Requests a Python + React project setup
- Asks for a FastAPI + Vite template
- Wants OpenAI integration in their application
- Needs a quick start for a full-stack project
How to Generate the Template
- Ask the user for the project name and target directory location.
- Create the directory structure as shown above.
- Copy template files from the
directory:templates/- Backend files from
templates/backend/ - Frontend files from
templates/frontend/ - Root README from
templates/README.md.template
- Backend files from
- For
files: Remove the.template
suffix when copying..template - Ensure Tailwind/shadcn assets are included:
- Copy
,tailwind.config.js
, andpostcss.config.jssrc/index.css - Copy
and thesrc/lib/utils.js
directory so shadcn primitives are ready to usesrc/components/ui
- Copy
- Customize as needed: Update project names in package.json if requested.
- Provide setup instructions to the user:
- Backend setup (create .env, install dependencies)
- Frontend setup (install dependencies)
- How to run both servers
Key Features Included
Backend API Endpoints
- Health check endpointGET /
- Test connectivityGET /test
- OpenAI ChatGPT integrationPOST /chat- Accepts:
{"message": "...", "model": "gpt-4-turbo-preview"} - Returns: AI response with token usage
- Accepts:
Frontend Features
- Chat interface with input and send button
- Test endpoint button
- Real-time loading states
- Error display and handling
- Tailwind CSS-powered light theme using shadcn/ui components, Lucide icons, and Framer Motion animations
- Responsive design
Configuration
- Environment variable management (.env)
- CORS configured for localhost:5173
- OpenAI API key integration
- Comprehensive error handling
Post-Generation Instructions for User
After generating the template, provide these instructions:
# Backend Setup cd project-name/backend python -m venv venv # Activate venv (Windows: venv\Scripts\activate, Mac/Linux: source venv/bin/activate) pip install -r requirements.txt # Create .env file and add OPENAI_API_KEY python -m uvicorn main:app --reload # Frontend Setup (in new terminal) cd project-name/frontend npm install npm run dev
Notes
- The template includes comprehensive README.md with full documentation
- All configuration files are pre-configured and ready to use
- Template supports both development and production deployments
- Includes .gitignore files to prevent committing sensitive data
- Ready for Git initialization and version control