Felo Mindmap Skill
When to Use
Trigger this skill for requests about creating mindmap files:
- - Create/generate mindmaps from a topic or question
- Turn ideas into a structured mindmap
- Build a mindmap with different layout types (timeline, fishbone, etc.)
- Export mindmap content into a shareable link
Trigger keywords:
- - Chinese prompts about making mindmaps (思维导图, 脑图)
- English: mindmap, mind map, thinking map, generate mindmap
- Explicit commands:
/felo-mindmap, "use felo mindmap"
Do NOT use this skill for:
- - Real-time information lookup (use
felo-search) - Questions about local codebase files
- Pure text tasks that do not require mindmap generation
Setup
1. Get API key
- 1. Visit felo.ai
- Open Settings -> API Keys
- Create and copy your API key
2. Configure environment variable
Linux/macOS:
CODEBLOCK0
Windows PowerShell:
CODEBLOCK1
How to Execute
Use Bash tool commands and follow this workflow exactly.
Step 1: Precheck API key
CODEBLOCK2
If key is missing, stop and return setup instructions.
Step 2: Run Node Script
Use the bundled script:
CODEBLOCK3
To specify a layout type:
CODEBLOCK4
Available layout types:
- -
MIND_MAP (default) - Classic mind map - INLINECODE3 - Logical structure diagram
- INLINECODE4 - Organization chart
- INLINECODE5 - Catalog organization chart
- INLINECODE6 - Timeline diagram
- INLINECODE7 - Fishbone diagram
To add mindmap to an existing LiveDoc:
CODEBLOCK5
Script behavior:
- - Creates mindmap via INLINECODE8
- Returns immediately (synchronous API, no polling needed)
- Prints
mindmap_url on success
Optional debug output:
CODEBLOCK6
This outputs structured JSON including:
- - INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
Step 3: Return structured result
On success, return:
- -
mindmap_url immediately - if
--json is used, also include resource_id, INLINECODE17
Output Format
Use this response structure:
CODEBLOCK7
Error format:
CODEBLOCK8
Error Handling
Known API error codes:
- -
INVALID_API_KEY (401): key invalid or revoked - INLINECODE19 (502): mindmap creation failed
- INLINECODE20 (502): failed to create LiveDoc
- INLINECODE21 (404): specified LiveDoc not found
- INLINECODE22 (503): LLM service is unavailable
- INLINECODE23 (504): LLM request timed out
Important Notes
- - Always execute this skill when user intent is mindmap generation.
- The API is synchronous - no polling required.
- Keep API calls minimal: one request per mindmap.
References
Felo 思维导图技能
使用时机
当用户请求创建思维导图文件时触发此技能:
- - 根据主题或问题创建/生成思维导图
- 将想法转化为结构化的思维导图
- 构建不同布局类型的思维导图(时间线、鱼骨图等)
- 将思维导图内容导出为可分享链接
触发关键词:
- - 中文提示词:思维导图、脑图
- 英文提示词:mindmap, mind map, thinking map, generate mindmap
- 明确指令:/felo-mindmap,使用 felo 思维导图
以下情况不要使用此技能:
- - 实时信息查询(使用 felo-search)
- 关于本地代码库文件的问题
- 不需要生成思维导图的纯文本任务
设置
1. 获取 API 密钥
- 1. 访问 felo.ai
- 打开设置 -> API 密钥
- 创建并复制您的 API 密钥
2. 配置环境变量
Linux/macOS:
bash
export FELOAPIKEY=your-api-key-here
Windows PowerShell:
powershell
$env:FELOAPIKEY=your-api-key-here
执行方法
使用 Bash 工具命令并严格遵循以下工作流程。
步骤 1:预检查 API 密钥
bash
if [ -z $FELOAPIKEY ]; then
echo 错误:未设置 FELOAPIKEY
exit 1
fi
如果密钥缺失,停止并返回设置说明。
步骤 2:运行 Node 脚本
使用捆绑脚本:
bash
node felo-mindmap/scripts/runmindmaptask.mjs \
--query 用户提示词 \
--timeout 60
指定布局类型:
bash
node felo-mindmap/scripts/runmindmaptask.mjs \
--query 用户提示词 \
--layout TIMELINE \
--timeout 60
可用布局类型:
- - MINDMAP(默认)- 经典思维导图
- LOGICALSTRUCTURE - 逻辑结构图
- ORGANIZATIONSTRUCTURE - 组织结构图
- CATALOGORGANIZATION - 目录组织图
- TIMELINE - 时间线图
- FISHBONE - 鱼骨图
将思维导图添加到现有 LiveDoc:
bash
node felo-mindmap/scripts/runmindmaptask.mjs \
--query 用户提示词 \
--livedoc-short-id 现有 LiveDoc ID
脚本行为:
- - 通过 POST https://openapi.felo.ai/v2/mindmap 创建思维导图
- 立即返回(同步 API,无需轮询)
- 成功时打印 mindmap_url
可选调试输出:
bash
node felo-mindmap/scripts/runmindmaptask.mjs \
--query 用户提示词 \
--json
这将输出结构化 JSON,包括:
- - resourceid
- status
- mindmapurl
- livedocshortid
步骤 3:返回结构化结果
成功时,返回:
- - 立即返回 mindmapurl
- 如果使用 --json,还包括 resourceid、livedocshortid
输出格式
使用以下响应结构:
markdown
思维导图生成结果
- - 资源 ID:id>
- 状态:
- 思维导图 URL:url>
- LiveDoc 短 ID:shortid>
错误格式:
markdown
思维导图生成失败
- - 错误类型:<错误代码或类别>
- 消息:<可读消息>
- 建议操作:<下一步>
错误处理
已知 API 错误代码:
- - INVALIDAPIKEY (401):密钥无效或已撤销
- MINDMAPCREATEFAILED (502):思维导图创建失败
- LIVEDOCCREATEFAILED (502):创建 LiveDoc 失败
- LIVEDOCNOTFOUND (404):未找到指定的 LiveDoc
- LLMSERVICEUNAVAILABLE (503):LLM 服务不可用
- LLMREQUESTTIMEOUT (504):LLM 请求超时
重要说明
- - 当用户意图是生成思维导图时,始终执行此技能。
- API 是同步的 - 无需轮询。
- 保持 API 调用最小化:每个思维导图一次请求。
参考