Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions skills/feishu-cli-import/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ allowed-tools: Bash, Read
1. **验证文件**
- 检查 Markdown 文件是否存在
- 预览文件内容
- **编码验证(防御性检查)**:运行 `python3 -c "d=open('<file.md>','rb').read(); assert b'\\xef\\xbf\\xbd' not in d, 'U+FFFD found'; d.decode('utf-8')"` 同时检查 U+FFFD 替换字符和非法 UTF-8 字节。如果报错,**必须先修复再导入**,否则乱码会原样写入飞书文档

2. **执行导入**
```bash
Expand Down
1 change: 1 addition & 0 deletions skills/feishu-cli-write/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ feishu-cli doc create --title "文档标题" --output json
2. **生成 Markdown**
- 在 `/tmp/feishu_write_<timestamp>.md` 创建 Markdown 文件
- 使用标准 Markdown 语法
- **编码验证(防御性检查)**:文件写入后,运行 `python3 -c "d=open('<file.md>','rb').read(); assert b'\\xef\\xbf\\xbd' not in d, 'U+FFFD found'; d.decode('utf-8')"` 同时检查 U+FFFD 替换字符和非法 UTF-8 字节。如果报错,**必须修复后再导入飞书**

3. **导入到飞书**
```bash
Expand Down