用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill project-scaffold命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | project-scaffold |
| description | Generate complete fullstack project structure with all boilerplate |
| shortcut | ps |
| category | devops |
| difficulty | beginner |
| estimated_time | 5-10 minutes |
Generates a complete fullstack project structure with frontend, backend, database, authentication, testing, and deployment configuration.
Generated Project:
Output: Production-ready fullstack application
Time: 5-10 minutes
# Generate fullstack project
/project-scaffold "Task Management App"
# Shortcut
/ps "E-commerce Platform" --stack react,express,postgresql
# With specific features
/ps "Blog Platform" --features auth,admin,payments,analytics
my-app/
├── client/ # Frontend (React + TypeScript + Vite)
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # Page components
│ │ ├── hooks/ # Custom hooks
│ │ ├── services/ # API services
│ │ ├── context/ # Context providers
│ │ ├── utils/ # Utilities
│ │ ├── types/ # TypeScript types
│ │ ├── App.tsx
│ │ └── main.tsx
│ ├── public/
│ ├── index.html
│ ├── package.json
│ ├── vite.config.ts
│ ├── tsconfig.json
│ └── tailwind.config.js
│
├── server/ # Backend (Express + TypeScript)
│ ├── src/
│ │ ├── controllers/ # Request handlers
│ │ ├── services/ # Business logic
│ │ ├── models/ # Database models
│ │ ├── routes/ # API routes
│ │ ├── middleware/ # Express middleware
│ │ ├── utils/ # Utilities
│ │ ├── config/ # Configuration
│ │ ├── app.ts
│ │ └── server.ts
│ ├── tests/
│ ├── prisma/
│ │ └── schema.prisma
│ ├── package.json
│ ├── tsconfig.json
│ └── jest.config.js
│
├── .github/
│ └── workflows/
│ ├── ci.yml # Continuous Integration
│ └── deploy.yml # Deployment
│
├── docker-compose.yml # Development environment
├── Dockerfile # Production container
├── .env.example # Environment template
├── .gitignore
├── README.md
└── package.json # Root workspace
Frontend (client/src/pages/Dashboard.tsx):
import { useState, useEffect } from 'react'
import { TaskList } from '../components/TaskList'
import { CreateTaskForm } from '../components/CreateTaskForm'
import { useAuth } from '../context/AuthContext'
import { taskService } from '../services/api'
export function Dashboard() {
const { user } = useAuth()
const [tasks, setTasks] = useState([])
const [loading, setLoading] = useState(true)
useEffect(() => {
loadTasks()
}, [])
async function loadTasks() {
try {
const data = await taskService.getAll()
setTasks(data)
} catch (error) {
console.error('Failed to load tasks:', error)
} finally {
setLoading(false)
}
}
async function handleCreateTask() {
newTask = taskService.(task)
([newTask, ...tasks])
}
() {
updated = taskService.(id)
(tasks.( t. === id ? updated : t))
}
(loading)
(
)
}
Backend (server/src/controllers/task.controller.ts):
import { Request, Response } from 'express'
import { TaskService } from '../services/task.service'
const taskService = new TaskService()
export class TaskController {
async getAll(req: Request, res: Response) {
const tasks = await taskService.findAll(req.user!.userId)
res.json({ data: tasks })
}
async create(req: Request, res: Response) {
const task = await taskService.create(req.user!.userId, req.body)
res.status(201).json({ data: task })
}
async toggle(req: Request, res: Response) {
const task = taskService.(req.., req.!.)
res.({ : task })
}
() {
taskService.(req.., req.!.)
res.().()
}
}
1. Install dependencies:
# Install all dependencies (client + server)
npm install
# Or individually
cd client && npm install
cd server && npm install
2. Setup environment:
cp .env.example .env
# Edit .env with your configuration
3. Setup database:
cd server
npx prisma migrate dev
npx prisma generate
4. Start development:
# Start all services (client, server, database)
docker-compose up
# Or start individually
npm run dev:client # Frontend on http://localhost:5173
npm run dev:server # Backend on http://localhost:3000
5. Run tests:
npm run test # All tests
npm run test:client # Frontend tests
npm run test:server # Backend tests
Frontend:
Backend:
Database:
Styling:
Authentication:
Testing:
CI/CD:
Development:
Production:
Add Features:
# Add payment processing
/ps --add-feature payments --provider stripe
# Add file uploads
/ps --add-feature uploads --storage s3
# Add email service
/ps --add-feature email --provider sendgrid
# Add admin dashboard
/ps --add-feature admin
Change Stack:
# Use Next.js instead of React
/ps --frontend nextjs
# Use FastAPI instead of Express
/ps --backend fastapi
# Use MongoDB instead of PostgreSQL
/ps --database mongodb
Vercel (Frontend):
cd client
vercel
Railway (Backend):
cd server
railway up
Docker (Full Stack):
docker-compose -f docker-compose.prod.yml up -d
/express-api-scaffold - Generate Express API/fastapi-scaffold - Generate FastAPI/auth-setup - Authentication boilerplate/env-config-setup - Environment configurationStart building immediately. Ship faster. Scale effortlessly.