Trigger this skill when users want to:
Trigger words:
Explicit commands: /felo-livedoc, "livedoc", "felo livedoc"
Do NOT use for:
Set the FELO_API_KEY environment variable:
Linux/macOS:
export FELO_API_KEY="your-api-key-here"
Windows (PowerShell):
$env:FELO_API_KEY="your-api-key-here"
When this skill is triggered, execute the livedoc script using the Bash tool:
Create a LiveDoc:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs create --name "KB Name" --description "Description"
List LiveDocs:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs list --keyword "search term"
Update a LiveDoc:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs update SHORT_ID --name "New Name" --description "New Desc"
Delete a LiveDoc:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs delete SHORT_ID
Add a text document:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs add-doc SHORT_ID --title "Doc Title" --content "Document content here"
Add URLs (max 10, comma-separated):
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs add-urls SHORT_ID --urls "https://example.com,https://example.org"
Upload a file:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs upload SHORT_ID --file ./document.pdf
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs upload SHORT_ID --file ./document.pdf --convert
List resources:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs resources SHORT_ID
Get a single resource:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs resource SHORT_ID RESOURCE_ID
Delete a resource:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs remove-resource SHORT_ID RESOURCE_ID
Search across resources:
node ~/.agents/skills/felo-livedoc/scripts/run_livedoc.mjs retrieve SHORT_ID --query "your search query"
All commands support:
--json or -j — output raw JSON response
--timeout or -t — request timeout in milliseconds (default: 60000)
The API returns JSON with this structure:
{
"status": "ok",
"message": "success",
"data": { ... }
}
LiveDoc object:
short_id — unique identifier (use this for all operations)
name — LiveDoc name
description — LiveDoc description
created_at / modified_at — timestamps
Resource object:
id — resource identifier
title — resource title
resource_type — type (web, ai_doc, file, etc.)
status — processing status
snippet — content preview
Retrieve result:
id — resource ID
title — resource title
content — matched content
score — relevance score (0-1)
INVALID_API_KEY — API Key is invalid or revoked
LIVEDOC_NOT_FOUND — LiveDoc does not exist
LIVEDOC_RESOURCE_NOT_FOUND — Resource does not exist
LIVEDOC_CREATE_FAILED — Failed to create LiveDoc
LIVEDOC_RESOURCE_UPLOAD_FAILED — File upload failed
LIVEDOC_RESOURCE_ADD_URLS_FAILED — URL addition failed
LIVEDOC_RESOURCE_RETRIEVE_FAILED — Semantic retrieval failed
If FELO_API_KEY is not set, display this message:
ERROR: FELO_API_KEY not set. Get your API key from https://felo.ai (Settings → API Keys).
Set it with: export FELO_API_KEY="your-key"
short_id returned from create/list to reference a LiveDoc
--convert with upload to convert files to searchable documents
共 1 个版本