一键导入
start-services
一键启动药赚赚交易系统的全部服务(PostgreSQL、Redis、后端、前端)。Use when the user asks to start, launch, or run the project services, or mentions "启动服务".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
一键启动药赚赚交易系统的全部服务(PostgreSQL、Redis、后端、前端)。Use when the user asks to start, launch, or run the project services, or mentions "启动服务".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | start-services |
| description | 一键启动药赚赚交易系统的全部服务(PostgreSQL、Redis、后端、前端)。Use when the user asks to start, launch, or run the project services, or mentions "启动服务". |
按以下顺序启动所有服务:
pg_isready -h localhost -p 5432 || brew services start postgresql@14
redis-cli ping || brew services start redis
cd /Users/a1234/jiaoyi/packages/server
nohup npx nest start --watch > /tmp/yaozhuanzhuan-server.log 2>&1 &
等待后端就绪(端口 3000):
for i in {1..30}; do curl -s http://localhost:3000/api/health > /dev/null && break; sleep 1; done
cd /Users/a1234/jiaoyi/packages/web
nohup npx vite > /tmp/yaozhuanzhuan-web.log 2>&1 &
curl -s http://localhost:3000/api/healthcurl -s http://localhost:5173lsof -ti:3000 | xargs kill -9 2>/dev/null
lsof -ti:5173 | xargs kill -9 2>/dev/null
快速测试 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