Task handoff Skill, pass text directly to generate an editable visual HTML.
Generate handoff document
Agent usage (pass text directly via heredoc)
python3 {skill}/scripts/gen.py --open << 'EOF'
# 任务交接:用户中心重构
## 工作目标
用户中心模块正在从 REST API 迁移到 GraphQL。
## 当前进度
- [x] 完成 Schema 设计
- [ ] 实现 resolver
Notes
Use .env.test for the test database. EOF
### 从已有文件填充
```bash
python3 {skill}/scripts/gen.py --from handoff.md --open
Page operations
Edit directly in the browser after opening: click any text to input, add/delete rows, toggle completion status.
- Click "Write back": write the current page content back to
{skill}/assets/continue.html, and copy/switch-chat 继续to the clipboard - Click "Copy": copy the current handoff Markdown to the clipboard
- Click "Export file": download
switch-chat.md
--open starts a local write-back service, which automatically exits after 5 minutes without a write-back.
New session reading
When the user enters /switch-chat 继续 , you must execute:
python3 {skill}/scripts/read.py
After execution, continue working based on the output structured handoff text:
- First confirm whether it includes "Work Goals", "Current Progress", and "Notes"
- If reading fails, clearly indicate that
{skill}/assets/continue.htmldoes not exist or has not been written back