
Felo Mindmap
- 51 installs
- 241 repo stars
- Updated July 22, 2026
- felo-inc/felo-skills
Helps with ai & agent building tasks.
About
felo-mindmap is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- felo-mindmap
- AI & Agent Building
- AI-coding skill
Felo Mindmap by the numbers
- 51 all-time installs (skills.sh)
- Ranked #7,219 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/felo-inc/felo-skills --skill felo-mindmapAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 51 |
|---|---|
| repo stars | ★ 241 |
| Last updated | July 22, 2026 |
| Repository | felo-inc/felo-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
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 2. Open Settings -> API Keys 3. Create and copy your API key
2. Configure environment variable
Linux/macOS:
export FELO_API_KEY="your-api-key-here"Windows PowerShell:
$env:FELO_API_KEY="your-api-key-here"How to Execute
Use Bash tool commands and follow this workflow exactly.
Step 1: Precheck API key
if [ -z "$FELO_API_KEY" ]; then
echo "ERROR: FELO_API_KEY not set"
exit 1
fiIf key is missing, stop and return setup instructions.
Step 2: Run Node Script
Use the bundled script:
node felo-mindmap/scripts/run_mindmap_task.mjs \
--query "USER_PROMPT_HERE" \
--timeout 60To specify a layout type:
node felo-mindmap/scripts/run_mindmap_task.mjs \
--query "USER_PROMPT_HERE" \
--layout "TIMELINE" \
--timeout 60Available layout types:
MIND_MAP(default) - Classic mind mapLOGICAL_STRUCTURE- Logical structure diagramORGANIZATION_STRUCTURE- Organization chartCATALOG_ORGANIZATION- Catalog organization chartTIMELINE- Timeline diagramFISHBONE- Fishbone diagram
To add mindmap to an existing LiveDoc:
node felo-mindmap/scripts/run_mindmap_task.mjs \
--query "USER_PROMPT_HERE" \
--livedoc-short-id "EXISTING_LIVEDOC_ID"Script behavior:
- Creates mindmap via
POST https://openapi.felo.ai/v2/mindmap - Returns immediately (synchronous API, no polling needed)
- Prints
mindmap_urlon success
Optional debug output:
node felo-mindmap/scripts/run_mindmap_task.mjs \
--query "USER_PROMPT_HERE" \
--jsonThis outputs structured JSON including:
resource_idstatusmindmap_urllivedoc_short_id
Step 3: Return structured result
On success, return:
mindmap_urlimmediately- if
--jsonis used, also includeresource_id,livedoc_short_id
Output Format
Use this response structure:
## Mindmap Generation Result
- Resource ID: <resource_id>
- Status: <status>
- Mindmap URL: <mindmap_url>
- LiveDoc Short ID: <livedoc_short_id>Error format:
## Mindmap Generation Failed
- Error Type: <error code or category>
- Message: <readable message>
- Suggested Action: <next step>Error Handling
Known API error codes:
INVALID_API_KEY(401): key invalid or revokedMINDMAP_CREATE_FAILED(502): mindmap creation failedLIVEDOC_CREATE_FAILED(502): failed to create LiveDocLIVEDOC_NOT_FOUND(404): specified LiveDoc not foundLLM_SERVICE_UNAVAILABLE(503): LLM service is unavailableLLM_REQUEST_TIMEOUT(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
{
"name": "Felo Mindmap",
"tagline": "Generate mindmaps with Felo Mindmap API in Claude Code",
"description": "Felo Mindmap creates mindmaps from a prompt using the Felo Mindmap API. Supports multiple layout types (MIND_MAP, TIMELINE, FISHBONE, etc.) and LiveDoc integration. Use from Claude Code when users ask to create or generate mindmaps.",
"category": "productivity",
"tags": ["felo", "mindmap", "mind map", "thinking map", "api", "claude-code"],
"version": "1.0.0",
"license": "MIT",
"pricing": "free",
"support_url": "https://github.com/Felo-Inc/felo-skills/issues",
"homepage": "https://github.com/Felo-Inc/felo-skills"
}MIT License
Copyright (c) 2026 Felo Mindmap Skill Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Felo Mindmap
Generate mindmaps with Felo Mindmap API in Claude Code.
Features
- Create mindmaps from any topic or question
- Support for 6 layout types: MIND_MAP, TIMELINE, FISHBONE, etc.
- Add mindmaps to existing LiveDoc
- Simple synchronous API (no waiting)
Setup
1. Get your API key from felo.ai -> Settings -> API Keys 2. Set environment variable:
export FELO_API_KEY="your-api-key-here"Usage
Basic Usage
node felo-mindmap/scripts/run_mindmap_task.mjs --query "Artificial Intelligence trends in 2024"With Layout Type
node felo-mindmap/scripts/run_mindmap_task.mjs --query "Project timeline" --layout TIMELINEWith Existing LiveDoc
node felo-mindmap/scripts/run_mindmap_task.mjs --query "Meeting notes" --livedoc-short-id "abc123"JSON Output
node felo-mindmap/scripts/run_mindmap_task.mjs --query "Topic" --jsonLayout Types
| Layout | Description |
|---|---|
MIND_MAP | Classic mind map (default) |
LOGICAL_STRUCTURE | Logical structure diagram |
ORGANIZATION_STRUCTURE | Organization chart |
CATALOG_ORGANIZATION | Catalog organization chart |
TIMELINE | Timeline diagram |
FISHBONE | Fishbone diagram |
CLI Options
| Option | Description |
|---|---|
--query <text> | Mindmap topic (required) |
--layout <type> | Layout type (default: MIND_MAP) |
--livedoc-short-id <id> | Add to existing LiveDoc |
--timeout <seconds> | Request timeout (default: 60) |
--json | Output as JSON |
--help | Show help |
License
MIT
#!/usr/bin/env node
const DEFAULT_API_BASE = 'https://openapi.felo.ai';
const DEFAULT_TIMEOUT_SEC = 60;
const DEFAULT_LAYOUT = 'MIND_MAP';
const VALID_LAYOUTS = [
'MIND_MAP',
'LOGICAL_STRUCTURE',
'ORGANIZATION_STRUCTURE',
'CATALOG_ORGANIZATION',
'TIMELINE',
'FISHBONE',
];
function usage() {
console.error(
[
'Usage:',
' node felo-mindmap/scripts/run_mindmap_task.mjs --query "your prompt" [options]',
'',
'Options:',
' --query <text> Mindmap topic (required)',
' --layout <type> Layout type (default: MIND_MAP)',
' --livedoc-short-id <id> Add to existing LiveDoc',
' --timeout <seconds> Request timeout, default 60',
' --json Print JSON output',
' --help Show this help',
'',
'Layout Types:',
' MIND_MAP Classic mind map (default)',
' LOGICAL_STRUCTURE Logical structure diagram',
' ORGANIZATION_STRUCTURE Organization chart',
' CATALOG_ORGANIZATION Catalog organization chart',
' TIMELINE Timeline diagram',
' FISHBONE Fishbone diagram',
].join('\n')
);
}
function parseArgs(argv) {
const out = {
query: '',
layout: DEFAULT_LAYOUT,
livedocShortId: '',
timeoutSec: DEFAULT_TIMEOUT_SEC,
json: false,
};
for (let i = 0; i < argv.length; i += 1) {
const a = argv[i];
if (a === '--help' || a === '-h') {
out.help = true;
} else if (a === '--json') {
out.json = true;
} else if (a === '--query') {
out.query = argv[i + 1] ?? '';
i += 1;
} else if (a === '--layout') {
out.layout = argv[i + 1] ?? '';
i += 1;
} else if (a === '--livedoc-short-id') {
out.livedocShortId = argv[i + 1] ?? '';
i += 1;
} else if (a === '--timeout') {
out.timeoutSec = Number.parseInt(argv[i + 1] ?? '', 10);
i += 1;
} else if (!a.startsWith('-') && !out.query) {
out.query = a;
}
}
if (!Number.isFinite(out.timeoutSec) || out.timeoutSec <= 0) {
out.timeoutSec = DEFAULT_TIMEOUT_SEC;
}
return out;
}
function getMessage(payload) {
return (
payload?.message ||
payload?.error ||
payload?.msg ||
payload?.code ||
'Unknown error'
);
}
function isApiError(payload) {
const status = payload?.status;
const code = payload?.code;
if (typeof status === 'string' && status.toLowerCase() === 'error') return true;
if (typeof code === 'string' && code && code.toUpperCase() !== 'OK') return true;
return false;
}
async function fetchJson(url, init, timeoutMs) {
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), timeoutMs);
try {
const res = await fetch(url, { ...init, signal: controller.signal });
let body = {};
try {
body = await res.json();
} catch {
body = {};
}
if (!res.ok) {
throw new Error(`HTTP ${res.status}: ${getMessage(body)}`);
}
if (isApiError(body)) {
throw new Error(getMessage(body));
}
return body;
} finally {
clearTimeout(timer);
}
}
async function createMindmap(apiKey, apiBase, query, layout, livedocShortId, timeoutMs) {
const reqBody = { query, layout };
if (livedocShortId) {
reqBody.livedoc_short_id = livedocShortId;
}
const payload = await fetchJson(
`${apiBase}/v2/mindmap`,
{
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(reqBody),
},
timeoutMs
);
const data = payload?.data ?? {};
return data;
}
async function main() {
const args = parseArgs(process.argv.slice(2));
if (args.help) {
usage();
process.exit(0);
}
if (!args.query) {
usage();
process.exit(1);
}
const apiKey = process.env.FELO_API_KEY?.trim();
if (!apiKey) {
console.error('ERROR: FELO_API_KEY not set');
console.error('');
console.error('Setup instructions:');
console.error('1. Visit https://felo.ai');
console.error('2. Open Settings -> API Keys');
console.error('3. Create and copy your API key');
console.error('4. Set environment variable: export FELO_API_KEY="your-api-key"');
process.exit(1);
}
// Validate layout type
const layoutUpper = args.layout.toUpperCase();
if (!VALID_LAYOUTS.includes(layoutUpper)) {
console.error(`ERROR: Invalid layout type "${args.layout}"`);
console.error('');
console.error('Available layout types:');
VALID_LAYOUTS.forEach((l) => console.error(` - ${l}`));
process.exit(1);
}
const apiBase = (process.env.FELO_API_BASE?.trim() || DEFAULT_API_BASE).replace(/\/$/, '');
const timeoutMs = args.timeoutSec * 1000;
try {
const data = await createMindmap(
apiKey,
apiBase,
args.query,
layoutUpper,
args.livedocShortId,
timeoutMs
);
if (args.json) {
console.log(
JSON.stringify(
{
status: 'ok',
data: {
resource_id: data.resource_id ?? null,
mindmap_status: data.status ?? null,
mindmap_url: data.mindmap_url ?? null,
livedoc_short_id: data.livedoc_short_id ?? null,
message: data.message ?? null,
},
},
null,
2
)
);
} else {
console.log(data.mindmap_url || data.message || 'Mindmap created successfully');
}
} catch (err) {
const errMsg = err?.message || err;
console.error(`ERROR: ${errMsg}`);
// Provide helpful guidance for known error patterns
if (errMsg.includes('401') || errMsg.includes('INVALID_API_KEY')) {
console.error('');
console.error('Your API key may be invalid or expired.');
console.error('Please check your API key at https://felo.ai -> Settings -> API Keys');
} else if (errMsg.includes('timeout') || errMsg.includes('AbortError')) {
console.error('');
console.error('Request timed out. Try increasing --timeout or retry later.');
}
process.exit(1);
}
}
main();