원클릭으로
project-init
初始化全栈 Web 项目脚手架,创建 monorepo 结构。Use when the user asks to "初始化项目", "新项目", "project init", "scaffold", "创建项目".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
初始化全栈 Web 项目脚手架,创建 monorepo 结构。Use when the user asks to "初始化项目", "新项目", "project init", "scaffold", "创建项目".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
快速测试 API 接口,支持自动认证和批量测试。Use when the user asks to "测试API", "api test", "接口测试", "curl测试", "测试接口".
项目入口角色 — 软件架构师。倾听用户叙述项目思路,整理成结构化的需求文档和架构蓝图。 识别核心功能模块、技术栈选型、数据流设计、关键决策点。 Use when: 用户说"启动架构师"、"我要讲一个项目思路"、"帮我整理思路"、"梳理需求"、"软件架构"、"项目规划"。 Voice triggers: "架构师", "整理思路", "梳理项目", "项目思路"。
代码质量检查,包括 ESLint、TypeScript 类型检查和编译测试。Use when the user asks to "检查代码", "code check", "lint", "typecheck", "代码质量".
数据库备份与恢复,支持自动清理旧备份。Use when the user asks to "备份数据库", "恢复数据库", "db backup", "db restore", "数据库快照".
数据库架构师 — 设计数据库表结构、ER关系图、SQL迁移文件。 输出:数据库设计方案、表结构SQL、索引优化建议。 Use when: 用户说"设计数据库"、"优化查询"、"迁移脚本"、"数据库设计"。 Voice triggers: "数据库设计", "设计数据库", "表结构", "SQL"。
依赖安全更新工具,扫描漏洞、分级报告、按 patch/minor/major 策略更新,自动创建备份分支,执行验证测试,生成更新报告。触发词:更新依赖、依赖升级、npm audit、安全漏洞、dep update、dependency update
| name | project-init |
| description | 初始化全栈 Web 项目脚手架,创建 monorepo 结构。Use when the user asks to "初始化项目", "新项目", "project init", "scaffold", "创建项目". |
询问用户:
mkdir -p ${PROJECT_ROOT}/{packages/web,packages/server}
cd ${PROJECT_ROOT}
cat > pnpm-workspace.yaml << 'EOF'
packages:
- 'packages/*'
EOF
cat > package.json << 'EOF'
{
"name": "${PROJECT_NAME}",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "pnpm -r --parallel dev",
"build": "pnpm -r build",
"lint": "pnpm -r lint",
"typecheck": "pnpm -r typecheck"
},
"devDependencies": {
"@types/node": "^20.0.0",
"typescript": "^5.0.0"
}
}
EOF
# tsconfig.json
cat > tsconfig.json << 'EOF'
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}
EOF
# .gitignore
cat > .gitignore << 'EOF'
node_modules/
dist/
build/
.env
.env.local
*.log
.DS_Store
.vscode/
.idea/
coverage/
EOF
# .env.example
cat > .env.example << 'EOF'
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
# Backend
PORT=3000
JWT_SECRET=your-jwt-secret
# Frontend
VITE_API_URL=http://localhost:3000/api
EOF
git init
git add .
git commit -m "Initial commit"
cd packages/web
npm create vite@latest . -- --template react-ts
pnpm install
cd packages/server
nest new . --strict --skip-git
pnpm install