Skill站外收录 @skilllib/skill-2014279370469224449
setup
为新成员提供开箱即用的全栈开发环境初始化能力,涵盖 IDE 与工具链安装、代码库拉取与依赖安装、本地服务启动、数据库迁移与填充、环境变量配置、MCP 服务集成(含 Notion n8n 等)、Cursor 智能体设置及完整性验证,确保一键进入高效开发状态。
开发运维 AI 技能
Skills.MD
# Environment Setup Skill
Use this skill for first-time setup of your development environment.
## Phase 1: Core Development Tools
Verify these are installed:
- [ ] Cursor IDE (latest version)
- [ ] GitHub Desktop
- [ ] Docker
- [ ] TablePlus (database GUI)
- [ ] Figma Desktop App - https://www.figma.com/downloads/
- [ ] Screen.studio (optional, for demos)
- [ ] Google Cloud SDK (only for admins)
## Phase 2: Repository Setup
1. Clone the repository
2. Run `npm install` in monorepo root
3. Start Docker: `docker-compose up -d`
4. Run migrations: `npm run migrate`
5. Seed database: `npm run seed`
## Phase 2.5: Pattern Resources Orientation
Familiarize yourself with design resources:
1. Read `/docs/pattern-resources.md` - External UI/UX references
2. Read `/docs/design-system/` folder - Internal tokens and guidelines
3. Bookmark key competitor sites for your domain:
- [Mobbin](https://mobbin.com/) - Real app screenshots
- [Page Flows](https://pageflows.com/) - User flow recordings
- [Refactoring UI](https://www.refactoringui.com/) - Visual design principles
## Phase 3: Environment Configuration
1. Copy `.env.example` to `.env` in:
- `apps/api/.env`
- `apps/web/.env`
2. Configure required variables
## Phase 4: MCP Configuration
### Installation Method: Manual (Recommended)
Cursor's UI auto-install can loop indefinitely. **Edit `~/.cursor/mcp.json` directly.**
### Complete mcp.json Template
Copy this to `~/.cursor/mcp.json` and replace `YOUR_*` placeholders:
```json
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@notionhq/notion-mcp-server"],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer YOUR_NOTION_TOKEN\", \"Notion-Version\": \"2022-06-28\"}"
}
},
"n8n-mcp": {
"command": "npx",
"args": ["-y", "supergateway", "--streamableHttp", "YOUR_N8N_URL/mcp-server/http", "--header", "authorization:Bearer YOUR_N8N_TOKEN"]
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
},
"figma": {
"url": "http://127.0.0.1:3845/mcp"
}
}
}
```
### Authentication by MCP
| MCP | Auth Type | How to Get Token |
|-----|-----------|------------------|
| Notion | API Token | notion.so/my-integrations > New integration > Copy token |
| n8n | Bearer Token | n8n instance > Settings > API > Create key |
| Context7 | None | Just works |
| Figma Desktop | None | Enable in Figma app Dev Mode (Shift+D) |
| Figma Remote | OAuth | Use `"url": "https://mcp.figma.com/mcp"`, click Connect in Cursor |
| Browser | None | Built-in to Cursor |
### Browser MCP (Built-in)
Browser MCP is built into Cursor and requires no setup. Use it for:
- Taking screenshots of competitor apps during DIVERGE phase
- Testing Storybook stories
- E2E workflow verification
**Tip**: During feature exploration, navigate to competitor apps and use `browser_take_screenshot` to capture reference designs.
### Troubleshooting
**MCP won't install (infinite loop):**
1. Cancel the operation (Cmd+C or close dialog)
2. Manually edit `~/.cursor/mcp.json`
3. Add the config block directly
4. Restart Cursor: Cmd+Shift+P > "Reload Window"
**MCP shows disconnected:**
1. Verify JSON syntax is valid (use jsonlint.com)
2. Check token is correct and not expired
3. For Figma: ensure desktop app is running with MCP enabled
**Verification:**
After restart, list MCP folder to confirm all servers loaded:
```bash
ls ~/.cursor/projects/*/mcps/
```
## Phase 5: Cursor Settings
Configure in Cursor Settings:
- Model: Claude Opus 4.5
- Auto mode: Disabled
- Completion sounds: Enabled
- Usage summary: Always
## Phase 6: Verification
Run these to verify setup:
- [ ] `npm run dev` - starts without errors
- [ ] `npm run typecheck` - passes
- [ ] `npm run storybook` - loads components
## Completion
When all phases complete, you're ready to use:
- `init [Notion URL]` - Start a new feature
- `plan [feature]` - Create implementation plan
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「setup」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次