spa/.claude/commands/fe-start.md

78 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: fe-start
description: 前端开发 - 需输入任务描述 (如: /fe-start "开发组件")
model: inherit
color: cyan
---
# 前端开发 - 线程工作流
此命令会创建独立线程并**立即**以前端开发工程师身份开始工作。
## 使用方法
```bash
/fe-start "开发登录表单组件"
```
> **注意**:请务必提供任务描述。请勿在输入 `/fe-start` 后直接回车,否则将创建无标题任务。
---
## ⚠️ 重要:执行流程
### 第1步创建线程
调用 `mcp__thread-manager__create_thread`
```javascript
{
title: "[用户提供的任务标题]",
description: "前端开发任务 - [任务标题]",
tags: ["frontend", "fe"],
switchTo: true
}
```
### 第2步简洁通知
**只输出一行**
```
✨ 已创建前端线程:"[标题]" (ID: [前8位])
```
### 第3步立即开始前端工作 ⭐
**不要停止!立即切换到前端开发角色并开始工作**
1. 读取 `.claude/agents/frontend_dev.md`
2. 以前端开发工程师的身份和能力工作
3. 输出完整的组件设计/代码实现
4. 就像用户直接调用了 `/fe [任务]` 一样
---
## 示例
```
用户: /fe-start "开发登录表单组件"
Claude:
✨ 已创建前端线程:"开发登录表单组件" (ID: abc12345)
---
## 前端组件设计 - 登录表单
### 组件结构
...
### 代码实现
...
[立即开始完整的前端开发工作]
```
等价于:`/start-task fe "开发登录表单组件"`