Enrich Excel 标志

Enrich Excel

组织热门
tinyfish-io
enrich-excel

通过 TinyFish 研究缺失数据,丰富正在使用的 Excel 电子表格,并通过 AppleScript 将结果直接写入运行中的 Excel 应用。适用于用户说“帮我填好电子表格”“丰富这个 Excel 文件”“研究并补齐缺失数据”“更新我的 Excel 表格”“查找每一行的数据”,或提出任何要用网络来源的数据填充已打开 Excel 工作簿空白单元格的请求。仅限 macOS。

Add to TypingMind

概览

发布者tinyfish-io
代码仓库tinyfish-cookbook
技能名称enrich-excel
星标数
2.2K
复刻数
333
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 tinyfish-io 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Enrich Excel AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/tinyfish-io/tinyfish-cookbook/tree/main/skills/enrich-excel
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tinyfish-io/tinyfish-cookbook.git /tmp/tinyfish-cookbook
mkdir -p .claude/skills
cp -r /tmp/tinyfish-cookbook/skills/enrich-excel .claude/skills/enrich-excel
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Enrich Excel,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Enrich Excel。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Enrich Excel 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Enrich Excel with TinyFish

Research missing data with TinyFish and write it directly into a live Excel workbook on macOS — cell by cell, in real time, via AppleScript. No file saves or reloads needed.

Pre-flight Check (REQUIRED)

Run ALL three checks before doing anything else:

bash
# 1. TinyFish CLI installed?
which tinyfish && tinyfish --version || echo "TINYFISH_CLI_NOT_INSTALLED"

# 2. Authenticated?
tinyfish auth status

# 3. Excel running with a workbook?
osascript -e 'tell application "Microsoft Excel" to get name of active workbook'

If any check fails, stop and tell the user what to fix. Do NOT proceed.


Step 1 — Read the active workbook

Write a temporary AppleScript file and execute it. Do NOT use inline heredoc with osascript — it breaks in many shell environments. Always write to a temp file first.

bash
cat > /tmp/tf_read_excel.scpt << 'APPLESCRIPT'
tell application "Microsoft Excel"
    set ws to active sheet of active workbook
    set output to ""
    repeat with r from 1 to 50
        set rv to ""
        set hasValue to false
        repeat with c from 1 to 15
            set cv to (value of cell r of column c of ws) as text
            if cv is not "missing value" and cv is not "" then
                set hasValue to true
                set rv to rv & c & ":" & cv & "|"
            else
                set rv to rv & c & ":|"
            end if
        end repeat
        if hasValue then set output to output & r & ">" & rv & linefeed
    end repeat
    return output
end tell
APPLESCRIPT
osascript /tmp/tf_read_excel.scpt

Parse the output format: row_number>col_num:value|col_num:value|...

If the sheet has more than 50 rows or 15 columns, increase the limits and re-run.


Step 2 — Identify what needs enrichment

From the parsed output:

  1. Find the header row — the first row where multiple cells have non-empty values. These are your column labels.
  2. Map columns — associate each column number with its header text (e.g., column 2 = "Company", column 3 = "Revenue").
  3. Find data rows — rows after the header with at least one non-empty cell.
  4. Find empty cells — in each data row, identify which columns are blank. These are what we need to fill.
  5. Respect user instructions — if the user specified which columns to fill or what to research, narrow the scope accordingly.

Tell the user what you found:

Found 5 data rows. Headers: Company, Revenue, HQ, CEO. Missing data in: Revenue (3 rows), CEO (4 rows). Researching now...


Step 3 — Research with TinyFish

CRITICAL: Use tinyfish search — it is fast (1-2s) and cheap. Do NOT use tinyfish agent or tinyfish browser — they are 10-60x slower and completely unnecessary for data lookups.

For each row with missing data, build a search query from the existing cell values + the column headers you need to fill:

bash
tinyfish search query "Yann LeCun h-index latest paper company affiliation 2025"

The output is JSON: {"results": [{"snippet": "...", "title": "...", "url": "..."}]}. Extract the data points you need from the snippets.

If snippets aren't detailed enough for a specific value, fetch the full page content (still fast):

bash
tinyfish fetch content get "https://some-result-url.com"

Research all rows before writing. Collect all the data first, then write it all in Step 4. This avoids interleaving slow network calls with fast AppleScript writes.

Batch smartly: If multiple rows need similar info (e.g. all are researchers, all are companies), you can sometimes combine queries:

bash
tinyfish search query "Jeff Dean h-index Google Scholar 2025"
tinyfish search query "Demis Hassabis h-index latest paper 2025"

Run searches in parallel when possible (multiple Bash tool calls in one message).


Step 4 — Write back live via AppleScript

After collecting ALL research results, write them into Excel using a Python script. This gives the user a live animation of cells filling in:

python
import subprocess, time

def set_cell(cell, value):
    escaped = str(value).replace('\\', '\\\\').replace('"', '\\"')
    subprocess.run(["osascript", "-e",
        f'tell application "Microsoft Excel" to set value of cell "{cell}" of active sheet of active workbook to "{escaped}"'
    ], capture_output=True)

# Write all collected data row by row
rows = [
    # (cell_ref, value)
    ("C3", "LeJEPA: Provable and Scalable Self-Supervised Learning (2025)"),
    ("D3", "171"),
    ("E3", "Meta / Advanced Machine Intelligence Labs"),
    ("C4", "Gemini 2.5 (2025)"),
    ("D4", "134"),
    ("E4", "Google DeepMind (Chief Scientist)"),
]

for cell, value in rows:
    set_cell(cell, value)
    time.sleep(0.3)

print("Done")

Column mapping: 1=A, 2=B, 3=C, ..., 26=Z, 27=AA.

Go row by row with 0.2–0.4s delays between cells so the user sees the animation.


Step 5 — Verify

Read back the updated cells to confirm everything landed:

bash
cat > /tmp/tf_verify_excel.scpt << 'APPLESCRIPT'
tell application "Microsoft Excel"
    set ws to active sheet of active workbook
    set output to ""
    repeat with r from FIRST_ROW to LAST_ROW
        set rv to ""
        repeat with c from FIRST_COL to LAST_COL
            set cv to (value of cell r of column c of ws) as text
            set rv to rv & c & ":" & cv & "|"
        end repeat
        set output to output & r & ">" & rv & linefeed
    end repeat
    return output
end tell
APPLESCRIPT
osascript /tmp/tf_verify_excel.scpt

Show the user a summary:

Done! Filled 12 cells across 4 rows. All values verified in the live workbook.


Important Rules

  • Always read first — never assume what's in the sheet.
  • Never overwrite — only fill empty cells unless the user explicitly asks to overwrite.
  • Use tinyfish search, NOT tinyfish agent — search is fast and cheap. Agent is for interactive browser automation and is massive overkill for data lookups. Only escalate to agent if search + fetch genuinely cannot get the data (e.g., behind a login wall).
  • Research first, write second — collect all data before writing to Excel. Don't interleave slow network calls with AppleScript writes.
  • Write AppleScript to temp files — do NOT use inline heredoc osascript << 'EOF'. It breaks. Always write to /tmp/*.scpt and run osascript /tmp/file.scpt.
  • Handle "missing value" — Excel returns the string "missing value" for empty cells in AppleScript. Treat it as empty.
  • Rate limits — if TinyFish rate-limits, wait 60 seconds and retry. If still limited, fall back to your own knowledge and note which values are from training data.
  • Show progress — tell the user what you're researching. Don't go silent.
  • macOS only — AppleScript only works on macOS with Microsoft Excel for Mac.
  • Escape values — always escape " and \ in cell values before passing to osascript.
  • Large sheets — for 100+ rows, process in batches of 10–20 and show progress between batches.

常见问题

Enrich Excel AI 技能有什么作用?

通过 TinyFish 研究缺失数据,丰富正在使用的 Excel 电子表格,并通过 AppleScript 将结果直接写入运行中的 Excel 应用。适用于用户说“帮我填好电子表格”“丰富这个 Excel 文件”“研究并补齐缺失数据”“更新我的 Excel 表格”“查找每一行的数据”,或提出任何要用网络来源的数据填充已打开 Excel 工作簿空白单元格的请求。仅限 macOS。

为什么在 TypingMind 中使用 Enrich Excel?

因为您只需安装一次,就能搭配任何模型使用。Enrich Excel 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Enrich Excel?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/tinyfish-io/tinyfish-cookbook/tree/main/skills/enrich-excel。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Enrich Excel?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Enrich Excel 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Enrich Excel 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Enrich Excel AI 技能免费吗?

是的。tinyfish-io 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇