🔄 卡若AI 同步 2026-03-12 23:41 | 更新:水桥平台对接、总索引与入口、运营中枢、运营中枢工作台 | 排除 >20MB: 11 个
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
||||
---
|
||||
name: 飞书JSON格式
|
||||
description: 飞书文档 JSON 格式速查、编写、上传与翻译;各 block_type 格式写法、Markdown 转换对照、API 路径一站式参考
|
||||
triggers: 飞书json、飞书json格式、飞书block、飞书块格式、飞书文档格式、json上传飞书、飞书格式怎么写、block_type、飞书块类型、飞书写入格式、飞书上传json、飞书文档block、飞书高亮块、飞书代码块、飞书待办块、飞书标题块、飞书分割线、飞书callout、飞书多维表格json
|
||||
description: 飞书文档 JSON 格式速查、编写、上传与翻译;各 block_type 格式写法、Markdown 转换对照、标准操作流程一站式参考
|
||||
triggers: 飞书json、飞书json格式、飞书block、飞书块格式、飞书文档格式、json上传飞书、飞书格式怎么写、block_type、飞书块类型、飞书写入格式、飞书上传json、飞书文档block、飞书高亮块、飞书代码块、飞书待办块、飞书标题块、飞书分割线、飞书callout、飞书多维表格json、飞书列表、飞书表格、飞书分栏、更新飞书JSON格式
|
||||
owner: 水桥
|
||||
group: 水
|
||||
version: "1.0"
|
||||
version: "2.0"
|
||||
updated: "2026-03-12"
|
||||
---
|
||||
|
||||
@@ -20,13 +20,63 @@ updated: "2026-03-12"
|
||||
- **Markdown 翻译**:把任意 Markdown 内容转成飞书 blocks 数组
|
||||
- **上传文档**:利用现有脚本将 JSON 或 Markdown 上传到飞书 Wiki
|
||||
- **格式排版**:对文档内容进行飞书风格的结构化整理
|
||||
- **表格策略**:根据行列数自动选择 sheet/TSV 回退方案
|
||||
- **API 对照**:提供飞书 Docx API 路径、参数、错误排查
|
||||
|
||||
---
|
||||
|
||||
## 怎么用(Usage)
|
||||
|
||||
触发词:飞书json、飞书block、block_type、飞书格式怎么写、飞书文档格式、json上传飞书、飞书callout、飞书高亮块、飞书待办、飞书代码块、飞书多维表格
|
||||
触发词:飞书json、飞书block、block_type、飞书格式怎么写、飞书文档格式、json上传飞书、飞书callout、飞书高亮块、飞书待办、飞书代码块、飞书多维表格、飞书列表、飞书表格、飞书分栏
|
||||
|
||||
---
|
||||
|
||||
## 强制操作流程(SOP · 以后所有飞书文档按此执行)
|
||||
|
||||
### 流程 A:写文档 → 转 JSON → 上传
|
||||
|
||||
```
|
||||
1. 本地写 Markdown
|
||||
↓
|
||||
2. 转 .feishu.json:
|
||||
python3 脚本/md_to_feishu_json.py /path/to/文章.md
|
||||
↓
|
||||
3. 上传飞书 Wiki:
|
||||
python3 脚本/upload_json_to_feishu_doc.py /path/to/文章.feishu.json --parent <wiki_token> --title "标题"
|
||||
↓
|
||||
4. 打开飞书链接验证格式
|
||||
```
|
||||
|
||||
### 流程 B:Markdown 直传(不经 JSON)
|
||||
|
||||
```bash
|
||||
python3 /Users/karuo/Documents/个人/卡若AI/02_卡人(水)/水桥_平台对接/飞书管理/脚本/feishu_article_unified_publish.py \
|
||||
--parent <wiki_node_token> --title "标题" --md /绝对路径/文章.md
|
||||
```
|
||||
|
||||
### 流程 C:批量目录上传
|
||||
|
||||
```bash
|
||||
python3 /Users/karuo/Documents/个人/卡若AI/02_卡人(水)/水桥_平台对接/飞书管理/脚本/batch_upload_json_to_feishu_wiki.py \
|
||||
/本地目录 --wiki-parent <token>
|
||||
```
|
||||
|
||||
### 流程 D:飞书导出 JSON 回传
|
||||
|
||||
```bash
|
||||
python3 /Users/karuo/Documents/个人/卡若AI/02_卡人(水)/水桥_平台对接/飞书管理/脚本/upload_json_to_feishu_doc.py \
|
||||
/path/to/导出.json --parent <token> --title "标题"
|
||||
```
|
||||
|
||||
### 流程 E:AI 直接生成 blocks 写入
|
||||
|
||||
```
|
||||
1. 用户描述文档内容
|
||||
↓
|
||||
2. AI 按下方「格式速查卡」生成 children 数组
|
||||
↓
|
||||
3. 调用 feishu_wiki_create_doc.py 或 API 写入
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -34,75 +84,71 @@ updated: "2026-03-12"
|
||||
|
||||
### 场景 A:生成飞书 JSON blocks
|
||||
|
||||
1. 理解用户要写的内容(标题层级、正文、表格、代码、高亮块等)
|
||||
2. 查本 SKILL 的「格式速查卡」对应条目
|
||||
3. 输出完整 `children` 数组,可直接传给写入 API
|
||||
1. 理解用户内容需求
|
||||
2. 按「格式速查卡」选择对应块类型
|
||||
3. 输出完整 `children` 数组,可直接写入
|
||||
|
||||
### 场景 B:Markdown → 飞书 blocks
|
||||
|
||||
1. 解析 Markdown 标题层级(`#`→3,`##`→4,`###`→5,`####`→6)
|
||||
2. 按下方「转换规则表」逐段转换
|
||||
3. 输出 `.feishu.json` 格式(`title + source + children`)
|
||||
1. 解析标题层级(`#`→3,`##`→4,`###`→5,`####`→6)
|
||||
2. 按「转换规则表」逐段转换
|
||||
3. 输出 `.feishu.json`(`title + source + children`)
|
||||
|
||||
### 场景 C:上传到飞书
|
||||
### 场景 C:内容涉及表格时的决策
|
||||
|
||||
```bash
|
||||
# 上传单个 JSON(自动判断文档/多维表格)
|
||||
python3 /Users/karuo/Documents/个人/卡若AI/02_卡人(水)/水桥_平台对接/飞书管理/脚本/upload_json_to_feishu_doc.py /path/to/xxx.json
|
||||
|
||||
# 指定父节点和标题
|
||||
python3 .../upload_json_to_feishu_doc.py /path/xxx.json --parent <wiki_node_token> --title "文档标题"
|
||||
|
||||
# Markdown 直接上传
|
||||
python3 .../feishu_article_unified_publish.py --parent <token> --title "标题" --md /绝对路径/文章.md
|
||||
|
||||
# 批量目录上传
|
||||
python3 .../batch_upload_json_to_feishu_wiki.py /本地目录 --wiki-parent <token>
|
||||
```
|
||||
Markdown 表格
|
||||
├── 行列 ≤ 9×9 → 优先 sheet(30) 空表格 + 写入单元格
|
||||
├── 行列 > 9×9 → 用 text(2) TSV 回退
|
||||
└── API 失败 → 用 text(2) TSV 回退(保底)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 格式速查卡(核心块类型)
|
||||
## 格式速查卡(完整块类型)
|
||||
|
||||
### 1. 正文块(最常用)
|
||||
### 1. 正文(block_type: 2)
|
||||
|
||||
```json
|
||||
// 普通正文
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "文字内容"}}]}}
|
||||
|
||||
// 加粗 + 红色
|
||||
{"block_type": 2, "text": {
|
||||
"elements": [{"text_run": {"content": "[重要紧急]", "text_element_style": {"bold": true, "text_color": 5}}}],
|
||||
"style": {"align": 1}
|
||||
}}
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "[重要紧急]", "text_element_style": {"bold": true, "text_color": 5}}}], "style": {"align": 1}}}
|
||||
|
||||
// 超链接
|
||||
{"block_type": 2, "text": {
|
||||
"elements": [{"text_run": {"content": "点击查看", "text_element_style": {"link": {"url": "https://..."}}}]}
|
||||
}}
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "点击查看", "text_element_style": {"link": {"url": "https://..."}}}}]}}
|
||||
|
||||
// 表格回退(TSV 正文,实际项目常用)
|
||||
{"block_type": 2, "text": {
|
||||
"elements": [{"text_run": {"content": "产品\t价格\t分润\n:---\t:---\t:---\n书籍小程序\t9.9元起\t90%"}}]
|
||||
}}
|
||||
// 无序列表(正文块 + • 前缀,推荐)
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "• 第一项要点"}}]}}
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "• 第二项要点"}}]}}
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": " • 子项缩进"}}]}}
|
||||
|
||||
// 有序列表(正文块 + 数字前缀,推荐)
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "1)需求分析"}}]}}
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "2)方案设计"}}]}}
|
||||
|
||||
// 表格 TSV 回退(制表符分隔)
|
||||
{"block_type": 2, "text": {"elements": [{"text_run": {"content": "产品\t价格\t分润\n:---\t:---\t:---\n书籍小程序\t9.9元起\t90%"}}]}}
|
||||
```
|
||||
|
||||
### 2. 标题块
|
||||
### 2. 标题(block_type: 3-11)
|
||||
|
||||
```json
|
||||
{"block_type": 3, "heading1": {"elements": [{"text_run": {"content": "一级标题"}}]}}
|
||||
{"block_type": 3, "heading1": {"elements": [{"text_run": {"content": "一级大标题"}}]}}
|
||||
{"block_type": 4, "heading2": {"elements": [{"text_run": {"content": "📋 二级标题"}}]}}
|
||||
{"block_type": 5, "heading3": {"elements": [{"text_run": {"content": "三级标题"}}]}}
|
||||
// 四级标题(日志日期专用)
|
||||
{"block_type": 6, "heading4": {"elements": [{"text_run": {"content": "3月12日 "}}], "style": {"align": 1}}}
|
||||
{"block_type": 7, "heading5": {"elements": [{"text_run": {"content": "五级标题"}}]}}
|
||||
{"block_type": 8, "heading6": {"elements": [{"text_run": {"content": "六级标题"}}]}}
|
||||
```
|
||||
|
||||
### 3. 高亮块 callout
|
||||
### 3. 高亮块 callout(block_type: 19)
|
||||
|
||||
```json
|
||||
// 蓝色 [执行]
|
||||
{"block_type": 19, "callout": {"emoji_id": "sunrise", "background_color": 2, "border_color": 2,
|
||||
"elements": [{"text_run": {"content": "[执行] 本月目标:日活突破500", "text_element_style": {"bold": true, "text_color": 7}}}]}}
|
||||
"elements": [{"text_run": {"content": "[执行] 本月目标", "text_element_style": {"bold": true, "text_color": 7}}}]}}
|
||||
|
||||
// 橙色 [警告]
|
||||
{"block_type": 19, "callout": {"emoji_id": "warning", "background_color": 4, "border_color": 4,
|
||||
@@ -111,11 +157,17 @@ python3 .../batch_upload_json_to_feishu_wiki.py /本地目录 --wiki-parent <tok
|
||||
// 绿色 [完成]
|
||||
{"block_type": 19, "callout": {"emoji_id": "white_check_mark", "background_color": 3, "border_color": 3,
|
||||
"elements": [{"text_run": {"content": "已完成:运营报表写入成功"}}]}}
|
||||
|
||||
// 红色 [紧急]
|
||||
{"block_type": 19, "callout": {"emoji_id": "fire", "background_color": 6, "border_color": 6,
|
||||
"elements": [{"text_run": {"content": "紧急:需立即处理"}}]}}
|
||||
```
|
||||
|
||||
**callout background_color 对照**:1=白、2=蓝、3=绿、4=橙、5=黄、6=红、7=紫
|
||||
**callout 颜色对照**:1=白 2=蓝 3=绿 4=橙 5=黄 6=红 7=紫
|
||||
|
||||
### 4. 代码块
|
||||
**常用 emoji_id**:sunrise🌅 warning⚠️ white_check_mark✅ bulb💡 fire🔥 star⭐ rocket🚀 dart🎯 memo📝 quote
|
||||
|
||||
### 4. 代码块(block_type: 14)
|
||||
|
||||
```json
|
||||
{"block_type": 14, "code": {
|
||||
@@ -124,79 +176,100 @@ python3 .../batch_upload_json_to_feishu_wiki.py /本地目录 --wiki-parent <tok
|
||||
}}
|
||||
```
|
||||
|
||||
**language 常用值**:1=纯文本/流程图,2=Python,3=JS,6=Shell,8=SQL
|
||||
**language**:1=纯文本 2=Python 3=JS 4=Java 5=Go 6=Shell 7=TypeScript 8=SQL 19=JSON 20=YAML
|
||||
|
||||
### 5. 待办
|
||||
### 5. 待办(block_type: 17)
|
||||
|
||||
```json
|
||||
// 未完成
|
||||
{"block_type": 17, "todo": {"elements": [{"text_run": {"content": "Soul 派对→本月突破500在线 🎬 (0%)"}}],
|
||||
"style": {"done": false, "align": 1}}}
|
||||
|
||||
// 已完成
|
||||
{"block_type": 17, "todo": {"elements": [{"text_run": {"content": "运营报表已写入飞书"}}],
|
||||
"style": {"done": true, "align": 1}}}
|
||||
{"block_type": 17, "todo": {"elements": [{"text_run": {"content": "Soul 派对→突破500在线 🎬 (0%)"}}], "style": {"done": false, "align": 1}}}
|
||||
{"block_type": 17, "todo": {"elements": [{"text_run": {"content": "运营报表已写入"}}], "style": {"done": true, "align": 1}}}
|
||||
```
|
||||
|
||||
### 6. 分割线
|
||||
### 6. 分割线(block_type: 22)
|
||||
|
||||
```json
|
||||
{"block_type": 22, "divider": {}}
|
||||
```
|
||||
|
||||
### 7. 图片(两步走)
|
||||
### 7. 图片文件(block_type: 12)
|
||||
|
||||
```bash
|
||||
# 第一步:上传图片拿 file_token
|
||||
POST drive/v1/medias/upload_all
|
||||
form-data: file_name=chart.png, parent_type=docx_image, parent_node=<obj_token>, size=<bytes>, file=<binary>
|
||||
# 返回: data.file_token
|
||||
# 第一步:上传拿 file_token
|
||||
POST drive/v1/medias/upload_all (form-data: file_name, parent_type=docx_image, parent_node=obj_token, size, file)
|
||||
```
|
||||
|
||||
```json
|
||||
// 第二步:插入 file 块
|
||||
{"block_type": 12, "file": {"file_token": "xxx", "view_type": "inline", "file_name": "chart.png"}}
|
||||
|
||||
// 或 gallery 块(多图)
|
||||
// 或画廊块(多图)
|
||||
{"block_type": 18, "gallery": {"image_list": [{"file_token": "xxx"}], "gallery_style": {"align": "center"}}}
|
||||
```
|
||||
|
||||
---
|
||||
### 8. 分栏(block_type: 24 + 25)
|
||||
|
||||
## Markdown → 飞书 Block 转换规则
|
||||
```json
|
||||
// 创建两栏容器
|
||||
{"block_type": 24, "grid": {"column_size": 2}}
|
||||
// 子列(API 自动生成,内容插入到各列下)
|
||||
{"block_type": 25, "grid_column": {"width_ratio": 50}}
|
||||
```
|
||||
|
||||
| Markdown | 飞书 block_type | 字段名 |
|
||||
|:---|:---|:---|
|
||||
| `# 标题` | 3 | heading1 |
|
||||
| `## 标题` | 4 | heading2 |
|
||||
| `### 标题` | 5 | heading3 |
|
||||
| `#### 标题` | 6 | heading4 |
|
||||
| 普通段落 | 2 | text |
|
||||
| `> 引用` | 19 | callout(background_color:2) |
|
||||
| `---` | 22 | divider |
|
||||
| ` ```代码``` ` | 14 | code(language:1) |
|
||||
| `**加粗**` | 2 | text_element_style.bold=true |
|
||||
| `` | 12 | file(先 upload_all) |
|
||||
| Markdown 表格 | 2 | TSV 正文回退(接口不支持带内容表格块) |
|
||||
| `- [ ]` 未完成 | 17 | todo.style.done=false |
|
||||
| `- [x]` 已完成 | 17 | todo.style.done=true |
|
||||
### 9. 电子表格(block_type: 30)
|
||||
|
||||
```json
|
||||
{"block_type": 30, "sheet": {"row_size": 5, "column_size": 4}}
|
||||
```
|
||||
|
||||
> 最大 9×9,创建后通过 sheets API 写入单元格
|
||||
|
||||
### 10. 多维表格(block_type: 43)
|
||||
|
||||
```json
|
||||
{"block_type": 43, "bitable": {"token": "bascnXXX"}}
|
||||
```
|
||||
|
||||
> 须 bitable:app 权限
|
||||
|
||||
---
|
||||
|
||||
## text_element_style 样式参数
|
||||
## Markdown → 飞书 Block 转换规则(完整版)
|
||||
|
||||
| Markdown | block_type | 字段名 | 备注 |
|
||||
|:---|:---|:---|:---|
|
||||
| `# 标题` | 3 | heading1 | |
|
||||
| `## 标题` | 4 | heading2 | |
|
||||
| `### 标题` | 5 | heading3 | |
|
||||
| `#### 标题` | 6 | heading4 | |
|
||||
| `##### 标题` | 7 | heading5 | |
|
||||
| `###### 标题` | 8 | heading6 | |
|
||||
| 普通段落 | 2 | text | |
|
||||
| `**加粗**` | 2 | bold=true | elements 拆分 |
|
||||
| `*斜体*` | 2 | italic=true | |
|
||||
| `~~删除线~~` | 2 | strikethrough=true | |
|
||||
| `` `代码` `` | 2 | inline_code=true | |
|
||||
| `[链接](url)` | 2 | link.url | |
|
||||
| `> 引用` | 19 | callout 蓝色 | |
|
||||
| `---` | 22 | divider | |
|
||||
| ` ```代码``` ` | 14 | code | 自动识别 language |
|
||||
| `` | 12 | file | 先 upload_all |
|
||||
| `- 无序` | 2 | `• ` 前缀 | 正文块模拟 |
|
||||
| `1. 有序` | 2 | `1)` 前缀 | 正文块模拟 |
|
||||
| `- [ ]` | 17 | done=false | |
|
||||
| `- [x]` | 17 | done=true | |
|
||||
| 表格 ≤9×9 | 30 | sheet | |
|
||||
| 表格 >9×9 | 2 | TSV 正文 | 保底方案 |
|
||||
|
||||
---
|
||||
|
||||
## text_element_style 参数
|
||||
|
||||
```json
|
||||
{
|
||||
"text_element_style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strikethrough": true,
|
||||
"underline": true,
|
||||
"inline_code": true,
|
||||
"text_color": 5, // 1黑 2深灰 3深橙 4橙 5红 6玫红 7紫 8浅蓝 9深蓝 10绿
|
||||
"background_color": 2, // 行内高亮
|
||||
"link": {"url": "https://..."}
|
||||
}
|
||||
"bold": true, "italic": true, "strikethrough": true, "underline": true, "inline_code": true,
|
||||
"text_color": 5, // 1黑 2深灰 3深橙 4橙 5红 6玫红 7紫 8浅蓝 9深蓝 10绿
|
||||
"background_color": 2,
|
||||
"link": {"url": "https://..."}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -207,18 +280,16 @@ form-data: file_name=chart.png, parent_type=docx_image, parent_node=<obj_token>,
|
||||
| 用途 | 方法 | 路径 |
|
||||
|:---|:---|:---|
|
||||
| 获取 Wiki 节点 | GET | `wiki/v2/spaces/get_node?token={wiki_token}` |
|
||||
| 拉取文档块列表 | GET | `docx/v1/documents/{doc_id}/blocks` |
|
||||
| 追加子块(写入内容) | POST | `docx/v1/documents/{doc_id}/blocks/{block_id}/children` |
|
||||
| 获取文档块 | GET | `docx/v1/documents/{doc_id}/blocks` |
|
||||
| **追加子块** | POST | `docx/v1/documents/{doc_id}/blocks/{block_id}/children` |
|
||||
| 批量删除块 | POST | `docx/v1/documents/{doc_id}/blocks/batch_delete` |
|
||||
| 上传图片/文件 | POST | `drive/v1/medias/upload_all` |
|
||||
| **上传图片/文件** | POST | `drive/v1/medias/upload_all` |
|
||||
| 创建 Wiki 子节点 | POST | `wiki/v2/spaces/{space_id}/nodes` |
|
||||
| 创建多维表格 | POST | `bitable/v1/apps` |
|
||||
| 写入表格单元格 | PUT | `sheets/v2/spreadsheets/{token}/values` |
|
||||
|
||||
**追加子块请求体格式**:
|
||||
```json
|
||||
{"children": [块1, 块2, ...], "index": 0}
|
||||
```
|
||||
> `index: 0` = 最前,`-1` 或不传 = 末尾,单次 ≤ 50 块
|
||||
**追加子块请求体**:`{"children": [块1, 块2, ...], "index": 0}`
|
||||
> `index: 0` = 最前,不传 = 末尾。**单次 ≤ 50 块**
|
||||
|
||||
---
|
||||
|
||||
@@ -226,23 +297,26 @@ form-data: file_name=chart.png, parent_type=docx_image, parent_node=<obj_token>,
|
||||
|
||||
| 错误码 | 原因 | 解决 |
|
||||
|:---|:---|:---|
|
||||
| 9499 | 带 cells 的 table 块不支持 | 改用 TSV 正文回退 |
|
||||
| 1770001 | 字段名/格式错误 | 确认字段名正确;图片先上传再用 token |
|
||||
| 1770013 | file_token 文档关联错误 | upload_all 时 parent_node 用正确的 obj_token |
|
||||
| token 过期 | access_token 2 小时有效期 | `python3 脚本/feishu_token_cli.py get-access-token` |
|
||||
| 多维表格权限不足 | 未开通 bitable:app | 后台开通后 `python3 脚本/feishu_force_reauth.py` |
|
||||
| 9499 | table(31) 带 cells 不支持 | TSV 正文(2) 或 sheet(30) |
|
||||
| 1770001 | 字段名/格式错误 | 确认字段名;图片先上传再插入 |
|
||||
| 1770013 | file_token 关联错误 | parent_node 用正确的 obj_token |
|
||||
| token 过期 | 2小时有效期 | `python3 脚本/feishu_token_cli.py get-access-token` |
|
||||
| 多维表格权限不足 | 未开通 bitable:app | `python3 脚本/feishu_force_reauth.py` |
|
||||
| 块数 > 50 | 单次写入上限 | 分批,每批 ≤ 50 |
|
||||
| sheet >9×9 | 电子表格上限 | 改用 TSV 正文(2) 回退 |
|
||||
|
||||
---
|
||||
|
||||
## 相关文件(Files)
|
||||
|
||||
- **全量手册**:`参考资料/飞书JSON格式全手册.md`
|
||||
- **全量手册**:`参考资料/飞书JSON格式全手册.md`(v2.0,含完整枚举+SOP+决策树)
|
||||
- **API 对照**:`参考资料/飞书日志JSON格式与API对照.md`
|
||||
- **图片 API**:`参考资料/飞书docx插入图片_API说明.md`
|
||||
- **转换脚本**:`脚本/md_to_feishu_json.py`
|
||||
- **上传脚本**:`脚本/upload_json_to_feishu_doc.py`
|
||||
- **批量上传**:`脚本/batch_upload_json_to_feishu_wiki.py`
|
||||
- **统一发布**:`脚本/feishu_article_unified_publish.py`
|
||||
- **项目 JSON 样本**:`/Users/karuo/Documents/1、金:项目/3、自营项目/soul创业实验/飞书格式/`(52 个文件)
|
||||
- **项目样本**:`/Users/karuo/Documents/1、金:项目/3、自营项目/soul创业实验/飞书格式/`(52 个文件)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 卡若AI 技能注册表(Skill Registry)
|
||||
|
||||
> **一张表查所有技能**。任何 AI 拿到这张表,就能按关键词找到对应技能的 SKILL.md 路径并执行。
|
||||
> 70 技能 | 14 成员 | 5 负责人
|
||||
> 69 技能 | 14 成员 | 5 负责人
|
||||
> 版本:5.4 | 更新:2026-03-01
|
||||
>
|
||||
> **技能配置、安装、删除、掌管人登记** → 见 **`运营中枢/工作台/01_技能控制台.md`**。
|
||||
@@ -96,7 +96,6 @@
|
||||
| W14 | **卡猫复盘** | 水桥 | **卡猫复盘、婼瑄复盘、卡猫今日复盘、婼瑄今日、复盘到卡猫、发卡猫群** | `02_卡人(水)/水桥_平台对接/飞书管理/卡猫复盘/SKILL.md` | 婼瑄目录→目标=今年总目标+完成%+人/事/数具体→飞书+卡猫群 |
|
||||
| W15 | **接收短信** | 水桥 | **接收短信、收短信、receivesms、接码、临时号码、获取短信、拿短信、等刷新拿短信** | `02_卡人(水)/水桥_平台对接/接收短信/SKILL.md` | receivesms.co 取英国临时号→命令行抓该号最新一条短信(可 --wait 等刷新);输出号码+短信,含「要获取的网站短信类型」说明 |
|
||||
|| W16 | **飞书JSON格式** | 水桥 | **飞书json、飞书json格式、飞书block、飞书块格式、飞书文档格式、json上传飞书、飞书格式怎么写、block_type、飞书块类型、飞书callout、飞书高亮块、飞书代码块** | `02_卡人(水)/水桥_平台对接/飞书管理/飞书JSON格式_SKILL.md` | 飞书文档 JSON 格式速查/编写/上传;block_type 全覆盖、Markdown 转换对照、API 一站式参考 |
|
||||
| W17 | **复盘总结发飞书群** | 水桥 | **复盘发飞书、飞书复盘、对话总结发群、复盘总结发群** | `02_卡人(水)/水桥_平台对接/飞书管理/复盘总结发飞书群_SKILL.md` | 每次对话完成后将简洁复盘总结发到飞书群(webhook);长对话必发,强制规则 |
|
||||
|
||||
## 木组 · 卡木(产品内容创造)
|
||||
|
||||
@@ -117,7 +116,6 @@
|
||||
| M07 | PPT制作 | 木果 | **PPT、做PPT、制作PPT、演示文稿、汇报PPT** | `03_卡木(木)/木果_项目模板/PPT制作/SKILL.md` | python-pptx 创建/编辑 .pptx,输出到报告目录 |
|
||||
| M08 | Next AI Draw | 木果 | **next ai draw、AI画图、画图表、架构图、流程图** | `03_卡木(木)/木果_项目模板/Next AI Draw/SKILL.md` | AI 生成 draw.io 风格图、Mermaid 图表,与 PPT 联动 |
|
||||
| M09 | 卡若个人介绍 | 木果 | **卡若介绍、个人介绍、卡若人设、我是谁** | `03_卡木(木)/木果_项目模板/卡若个人介绍/SKILL.md` | 生成卡若个人介绍(PPT/短文/一页纸) |
|
||||
| M10 | **CLI万能化** | 木识 | **木识、CLI万能化、cli-anything、软件识形、让软件Agent化、任意软件CLI、给软件生成CLI、GUI转CLI、让软件可被AI控制** | `03_卡木(木)/木识_软件识形/CLI万能化/SKILL.md` | 任意软件→Agent可驱动CLI;7阶段全自动流水线;与木根联动 |
|
||||
|
||||
## 火组 · 卡火(技术研发优化)
|
||||
|
||||
|
||||
70
运营中枢/scripts/receivesms_find_soul_numbers.py
Normal file
70
运营中枢/scripts/receivesms_find_soul_numbers.py
Normal file
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
从 receivesms.co 英国号里筛出「收件箱里出现过 Soul 短信」的号码,作为最可能能注册 Soul 的临时号(最多返回 5 个)。
|
||||
注意:该站无中国(+86)号;Soul 若仅支持中国手机则需用国内接码平台。
|
||||
"""
|
||||
import re
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
BASE = "https://www.receivesms.co"
|
||||
LIST_URL = BASE + "/british-phone-numbers/gb/"
|
||||
|
||||
|
||||
def fetch(url):
|
||||
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"})
|
||||
with urllib.request.urlopen(req, timeout=20) as r:
|
||||
return r.read().decode("utf-8", errors="replace")
|
||||
|
||||
|
||||
def parse_number_list(html):
|
||||
blocks = re.findall(
|
||||
r'href="/gb-phone-number/(\d+)/"[^>]*>.*?<strong>(\+44[\d\s]+)</strong>',
|
||||
html,
|
||||
re.DOTALL
|
||||
)
|
||||
return [(mid, num.replace(" ", "").strip()) for mid, num in blocks]
|
||||
|
||||
|
||||
def inbox_has_soul(html):
|
||||
"""收件页是否出现过发件人为 Soul 的短信(不区分大小写)。"""
|
||||
senders = re.findall(r'class="from-link">([^<]+)</a>', html)
|
||||
return any("soul" in s.lower() for s in senders)
|
||||
|
||||
|
||||
def main():
|
||||
print("正在获取英国号码列表…", flush=True)
|
||||
html_list = fetch(LIST_URL)
|
||||
pairs = parse_number_list(html_list)
|
||||
if not pairs:
|
||||
print("未解析到任何号码")
|
||||
return
|
||||
print(f"共 {len(pairs)} 个英国号,筛出收件箱曾出现 Soul 的号码(最多 5 个)…", flush=True)
|
||||
found = []
|
||||
for i, (mid, number) in enumerate(pairs):
|
||||
if len(found) >= 5:
|
||||
break
|
||||
url = f"{BASE}/gb-phone-number/{mid}/"
|
||||
try:
|
||||
html = fetch(url)
|
||||
if inbox_has_soul(html):
|
||||
found.append((number, url))
|
||||
print(f" [{len(found)}/5] {number} 收件箱有 Soul 短信", flush=True)
|
||||
except Exception as e:
|
||||
pass
|
||||
time.sleep(0.7)
|
||||
if not found:
|
||||
print("未找到收件箱含 Soul 的号码;可改用全部英国号逐一尝试。")
|
||||
print("前 5 个英国号(可自行试注册 Soul):", flush=True)
|
||||
for number, url in [(n, f"{BASE}/gb-phone-number/{m}/") for m, n in pairs[:5]]:
|
||||
print(f" {number} {url}")
|
||||
return
|
||||
print("\n--- 最可能能注册 Soul 的 5 个号码(站上曾收到 Soul 验证码)---")
|
||||
for number, url in found:
|
||||
print(f"{number}\t{url}")
|
||||
print("\n说明:receivesms.co 无中国(+86)号;上述为英国号,仅当 Soul 支持国际号时可用。Soul 若仅支持中国大陆手机,需用国内接码平台。")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -316,3 +316,4 @@
|
||||
| 2026-03-12 23:10:30 | 🔄 卡若AI 同步 2026-03-12 23:10 | 更新:水桥平台对接、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 11 个 |
|
||||
| 2026-03-12 23:12:15 | 🔄 卡若AI 同步 2026-03-12 23:12 | 更新:运营中枢、运营中枢工作台 | 排除 >20MB: 11 个 |
|
||||
| 2026-03-12 23:20:58 | 🔄 卡若AI 同步 2026-03-12 23:20 | 更新:Cursor规则、水桥平台对接、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 11 个 |
|
||||
| 2026-03-12 23:23:58 | 🔄 卡若AI 同步 2026-03-12 23:23 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 11 个 |
|
||||
|
||||
@@ -319,3 +319,4 @@
|
||||
| 2026-03-12 23:10:30 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-12 23:10 | 更新:水桥平台对接、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
|
||||
| 2026-03-12 23:12:15 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-12 23:12 | 更新:运营中枢、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
|
||||
| 2026-03-12 23:20:58 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-12 23:20 | 更新:Cursor规则、水桥平台对接、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
|
||||
| 2026-03-12 23:23:58 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-12 23:23 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
|
||||
|
||||
Reference in New Issue
Block a user