下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/org-b6kzcl68--excel-sync-bitable.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @org-b6kzcl68/excel-sync-bitable。安全地将 Excel/CSV 数据导入新建或已有的飞书 Base,或将 Base 数据表导出为 Excel/CSV。当用户需要 Excel/CSV 与飞书 Base 同步,尤其是带预览与写入后校验的键控 upsert 时使用。 如需AI 技能完整工作流套件(5 模块 27 技能),淘宝搜索「AI灵匣」店铺获取完整版。
阅读全文 (展开查看完整说明)
概述
Excel ↔ Feishu Base
Use scripts/excel_sync_bitable.py. Require an explicit --apply before any Base write.
Preconditions
- Confirm the input file, Base URL, target table and business-key column.
- Run
lark-cli auth statusif the user identity or permission is uncertain. - Use a Base URL, not a guessed token. The script resolves it with
base +url-resolve.
Commands
Preview a keyed sync (no write):
python scripts/excel_sync_bitable.py sync --input .orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号"Apply the reviewed sync and read back its keys:
python scripts/excel_sync_bitable.py sync --input .orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --applyHandle source columns that do not exist in the target Base:
# Show missing fields and their inferred types (default; no write)
python scripts/excel_sync_bitable.py sync --input .orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号"
# Intentionally ignore absent columns
python scripts/excel_sync_bitable.py sync --input .orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --missing-fields skip --apply
# Create absent text/number/datetime/checkbox fields, then import
python scripts/excel_sync_bitable.py sync --input .orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --missing-fields create --applyCreate a Base from a workbook:
python scripts/excel_sync_bitable.py create --input .orders.xlsx --app-name "订单数据" --table-name "订单" --applyExport one Base table:
python scripts/excel_sync_bitable.py export --url "https://example.feishu.cn/base/..." --table-name "订单" --output .orders.xlsxSafety rules
syncupdates only records whose business key matches exactly; it does not delete remote records.- Stop on blank or duplicate keys in either the source or target table.
- For absent source columns, default to a no-write prompt with inferred types; explicitly choose
--missing-fields skipor--missing-fields create --apply. - Treat preview counts as approval material. Use
--applyonly after the user has confirmed the target and counts. - The current implementation supports text, number, date/time and checkbox fields. Handle select, user, attachment, link, formula and lookup fields with a field-specific workflow instead of guessing values.