SuperAPI AI Directory

switch-chat

Office & productivity

View repository

Updated 10-15 21:52

About this skill

Switch Chat

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:

  1. First confirm whether it includes "Work Goals", "Current Progress", and "Notes"
  2. If reading fails, clearly indicate that {skill}/assets/continue.html does not exist or has not been written back