felo-ai 0.2.51 → 0.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -165,9 +165,9 @@ node felo-superAgent/scripts/run_superagent.mjs \
|
|
|
165
165
|
|
|
166
166
|
```bash
|
|
167
167
|
# Use as Claude Code skill
|
|
168
|
-
/felo-
|
|
169
|
-
/felo-
|
|
170
|
-
/felo-
|
|
168
|
+
/felo-superAgent What is the latest news about AI?
|
|
169
|
+
/felo-superAgent Write a tweet about quantum computing
|
|
170
|
+
/felo-superAgent Design a logo for my coffee shop
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
```bash
|
|
@@ -215,16 +215,17 @@ These two skills work together and share the style library. Here is how Claude u
|
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
217
|
# Via ClawHub
|
|
218
|
-
|
|
218
|
+
# felo-twitter-writer depends on felo-superAgent + felo-livedoc; felo-superAgent depends on felo-livedoc
|
|
219
219
|
clawhub install felo-twitter-writer
|
|
220
|
-
clawhub install felo-
|
|
220
|
+
clawhub install felo-superAgent
|
|
221
221
|
clawhub install felo-livedoc
|
|
222
|
+
clawhub install felo-x-search
|
|
222
223
|
|
|
223
224
|
# Manual
|
|
224
|
-
cp -r felo-superAgent ~/.claude/skills/
|
|
225
225
|
cp -r felo-twitter-writer ~/.claude/skills/
|
|
226
|
-
cp -r felo-
|
|
226
|
+
cp -r felo-superAgent ~/.claude/skills/
|
|
227
227
|
cp -r felo-livedoc ~/.claude/skills/
|
|
228
|
+
cp -r felo-x-search ~/.claude/skills/
|
|
228
229
|
```
|
|
229
230
|
|
|
230
231
|
### felo-twitter-writer
|
|
@@ -274,10 +275,10 @@ If the style library is empty, Claude skips the selection step silently.
|
|
|
274
275
|
Trigger keywords: `superagent`, `super agent`, `stream chat`, `streaming conversation`, `write a tweet`, `create a logo`, `product image`
|
|
275
276
|
|
|
276
277
|
```
|
|
277
|
-
/felo-
|
|
278
|
-
/felo-
|
|
279
|
-
/felo-
|
|
280
|
-
/felo-
|
|
278
|
+
/felo-superAgent What is the latest news about AI?
|
|
279
|
+
/felo-superAgent Write a tweet about quantum computing
|
|
280
|
+
/felo-superAgent Design a logo for my coffee shop
|
|
281
|
+
/felo-superAgent Generate a product image for wireless headphones
|
|
281
282
|
```
|
|
282
283
|
|
|
283
284
|
**What Claude does automatically for skill-based conversations:**
|
|
@@ -313,8 +314,15 @@ clawhub install felo-youtube-subtitling
|
|
|
313
314
|
clawhub install felo-x-search
|
|
314
315
|
clawhub install felo-livedoc
|
|
315
316
|
clawhub install apple-buy-advisor
|
|
317
|
+
|
|
318
|
+
# felo-superAgent depends on felo-livedoc — install both:
|
|
316
319
|
clawhub install felo-superAgent
|
|
317
|
-
|
|
320
|
+
clawhub install felo-livedoc
|
|
321
|
+
|
|
322
|
+
# felo-twitter-writer depends on felo-superAgent and felo-livedoc — install all three:
|
|
323
|
+
clawhub install felo-twitter-writer
|
|
324
|
+
clawhub install felo-superAgent
|
|
325
|
+
clawhub install felo-livedoc
|
|
318
326
|
```
|
|
319
327
|
|
|
320
328
|
```bash
|
|
@@ -177,7 +177,7 @@ node felo-superAgent/scripts/run_superagent.mjs \
|
|
|
177
177
|
--query "Write a tweet about AI trends" \
|
|
178
178
|
--live-doc-id "LIVE_DOC_ID" \
|
|
179
179
|
--skill-id twitter-writer \
|
|
180
|
-
--ext '{"brand_style_requirement":"Style name: darioamodei\nStyle labels: Thoughtful long-form essays\nStyle DNA: # Dario Amodei (@DarioAmodei) Tweet Writing Style DNA\n\n##
|
|
180
|
+
--ext '{"brand_style_requirement":"Style name: darioamodei\nStyle labels: Thoughtful long-form essays\nStyle DNA: # Dario Amodei (@DarioAmodei) Tweet Writing Style DNA\n\n## Style Overview\nDario writes like a serious intellectual...(full content)"}' \
|
|
181
181
|
--accept-language en
|
|
182
182
|
```
|
|
183
183
|
|
package/felo-superAgent/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: felo-superAgent
|
|
3
|
-
description: "Felo SuperAgent API: AI conversation with real-time SSE streaming on a persistent LiveDoc canvas. Use when users want SuperAgent chat, continuous conversation, logo/branding design, or e-commerce product images. Do NOT use for tweet/X post writing — use felo-twitter-writer instead. Explicit commands: /felo-
|
|
3
|
+
description: "Felo SuperAgent API: AI conversation with real-time SSE streaming on a persistent LiveDoc canvas. Use when users want SuperAgent chat, continuous conversation, logo/branding design, or e-commerce product images. Do NOT use for tweet/X post writing — use felo-twitter-writer instead. Explicit commands: /felo-superAgent."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Felo SuperAgent Skill
|
|
@@ -11,7 +11,7 @@ These rules are mandatory. Violating any of them will produce incorrect behavior
|
|
|
11
11
|
|
|
12
12
|
1. **ALWAYS use `--json` flag.** The script MUST run in JSON mode (`--json`). In Claude Code's Bash tool, stdout is always captured — it never streams directly to the user. JSON mode returns the full answer in a structured response that Claude can then output as text. State IDs are extracted from the JSON response fields `thread_short_id` and `live_doc_short_id`.
|
|
13
13
|
|
|
14
|
-
2. **ALWAYS output the answer directly as text.** After the script finishes, read `data.answer` from the JSON output and print it verbatim as your response text. Do NOT summarize, paraphrase, or add commentary around it. Output it exactly as-is so the user sees the full content.
|
|
14
|
+
2. **ALWAYS output the answer directly as text.** After the script finishes, read `data.answer` from the JSON output and print it verbatim as your response text. Do NOT summarize, paraphrase, or add commentary around it. Output it exactly as-is so the user sees the full content. Then, if `data.image_urls` is non-empty, append image links immediately after, formatted as one line per image: `[title](url)`.
|
|
15
15
|
|
|
16
16
|
3. **`--live-doc-id` is REQUIRED when creating a conversation.** Never call `run_superagent.mjs` without `--live-doc-id`. If you do not have one yet, obtain it first (see Step 2 below).
|
|
17
17
|
|
|
@@ -69,7 +69,7 @@ Trigger this skill when users want:
|
|
|
69
69
|
- Traditional Chinese (pinyin): chao ji zhu shou, liu shi dui hua, lian xu dui hua, zhui wen, she ji logo, pin pai she ji, dian shang tu pian
|
|
70
70
|
- Japanese (romaji): suupaa eejento, sutoriimingu kaiwa, keizoku kaiwa, rogo sakusei, shouhin gazou
|
|
71
71
|
|
|
72
|
-
**Explicit commands:** `/felo-
|
|
72
|
+
**Explicit commands:** `/felo-superAgent`, "use felo superagent", "felo superagent"
|
|
73
73
|
|
|
74
74
|
**Do NOT use for:**
|
|
75
75
|
|
|
@@ -233,58 +233,55 @@ If this is a follow-up (`--thread-id` is set), skip this step entirely. `--skill
|
|
|
233
233
|
|
|
234
234
|
**4.5a. If the user has already specified a style** (by name, or by pasting a style block), use it directly — skip to 4.5d.
|
|
235
235
|
|
|
236
|
-
**4.5b. Fetch the style list:**
|
|
236
|
+
**4.5b. Fetch the style list (names only):**
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
| Skill ID | `--category` |
|
|
241
|
-
|---|---|
|
|
242
|
-
| `twitter-writer` | `TWITTER` |
|
|
243
|
-
| `logo-and-branding` | `IMAGE` |
|
|
244
|
-
| `ecommerce-product-image` | `IMAGE` |
|
|
245
|
-
|
|
246
|
-
Pass `--accept-language` matching the user's language (same value used for SuperAgent).
|
|
238
|
+
IMPORTANT: Style DNA content is very large. Always use `--json` and extract only names/labels via Node.js to avoid Bash tool output truncation. Never call `run_style_library.mjs` without `--json` for listing purposes.
|
|
247
239
|
|
|
248
240
|
```bash
|
|
249
241
|
# For twitter-writer
|
|
250
|
-
node felo-superAgent/scripts/run_style_library.mjs --category TWITTER --accept-language en
|
|
242
|
+
node felo-superAgent/scripts/run_style_library.mjs --category TWITTER --accept-language en --json | node -e "
|
|
243
|
+
const d=require('fs').readFileSync('/dev/stdin','utf8');
|
|
244
|
+
const j=JSON.parse(d);
|
|
245
|
+
const list=j.list||[];
|
|
246
|
+
const user=list.filter(s=>!s.recommended);
|
|
247
|
+
const rec=list.filter(s=>s.recommended);
|
|
248
|
+
if(user.length){console.log('[Your styles]');user.forEach((s,i)=>{const labels=(s.content?.labels?.en||[]).join(', ');console.log((i+1)+'. '+s.name+(labels?' — '+labels:''));});}
|
|
249
|
+
if(rec.length){console.log('[Recommended styles]');rec.forEach((s,i)=>{const labels=(s.content?.labels?.en||[]).join(', ');console.log((user.length+i+1)+'. '+s.name+(labels?' — '+labels:''));});}
|
|
250
|
+
if(!list.length)console.log('(No styles found)');
|
|
251
|
+
"
|
|
251
252
|
|
|
252
253
|
# For logo-and-branding or ecommerce-product-image
|
|
253
|
-
node felo-superAgent/scripts/run_style_library.mjs --category IMAGE --accept-language en
|
|
254
|
+
node felo-superAgent/scripts/run_style_library.mjs --category IMAGE --accept-language en --json | node -e "
|
|
255
|
+
const d=require('fs').readFileSync('/dev/stdin','utf8');
|
|
256
|
+
const j=JSON.parse(d);
|
|
257
|
+
const list=j.list||[];
|
|
258
|
+
if(list.length){list.forEach((s,i)=>{const labels=(s.content?.labels?.en||s.content?.tags?.en||[]).join(', ');console.log((i+1)+'. '+s.name+(labels?' — '+labels:''));});}
|
|
259
|
+
else console.log('(No styles found)');
|
|
260
|
+
"
|
|
254
261
|
```
|
|
255
262
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
```
|
|
259
|
-
Style name: darioamodei
|
|
260
|
-
Style labels: Thoughtful long-form essays
|
|
261
|
-
Style DNA: # Dario Amodei (@DarioAmodei) Tweet Writing Style DNA
|
|
262
|
-
...(full content)
|
|
263
|
+
Replace `en` with the matching `--accept-language` value for the user's language (`zh`, `ja`, `ko`, `en`). Also update the `.labels?.en` reference in the node script to match (e.g. `.labels?.zh` for Chinese).
|
|
263
264
|
|
|
264
|
-
|
|
265
|
-
Style labels: humor, relatable
|
|
266
|
-
Style DNA: ...(full content)
|
|
267
|
-
Cover file ID: file_abc123
|
|
268
|
-
```
|
|
265
|
+
**4.5c. Present the styles to the user and ask them to choose:**
|
|
269
266
|
|
|
270
|
-
|
|
271
|
-
- `Style labels` is omitted if no labels exist for this entry.
|
|
272
|
-
- `Style DNA` is the full text of `content.styleDna` (TWITTER type). Do NOT truncate it.
|
|
273
|
-
- `Cover file ID` is omitted if the value is null/empty.
|
|
267
|
+
Output the COMPLETE list as plain text — every style returned, numbered sequentially. NEVER use the `AskUserQuestion` tool (it limits to 4 options and will silently drop styles). NEVER pre-select or filter styles on behalf of the user. Always append a "no preference" option last. Wait for the user's plain-text reply before proceeding.
|
|
274
268
|
|
|
275
|
-
|
|
269
|
+
Example output:
|
|
270
|
+
```
|
|
271
|
+
Here are the available writing styles — choosing one will make the output more accurate:
|
|
276
272
|
|
|
277
|
-
|
|
273
|
+
[Your styles]
|
|
274
|
+
1. My Bold Voice — bold, provocative
|
|
278
275
|
|
|
279
|
-
|
|
276
|
+
[Recommended styles]
|
|
277
|
+
2. darioamodei — Thoughtful long-form essays
|
|
278
|
+
3. Casual & Witty — humor, relatable
|
|
279
|
+
...(ALL styles listed, none omitted)
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
> 1. Casual & Witty (your style)
|
|
284
|
-
> 2. Professional Thought Leader (recommended)
|
|
285
|
-
> 3. No style preference — use default
|
|
281
|
+
0. No preference — use default style
|
|
282
|
+
```
|
|
286
283
|
|
|
287
|
-
If the user picks "no preference" or the list is empty, proceed to Step 5 without `--ext`.
|
|
284
|
+
If the user picks "no preference" (0) or the list is empty, proceed to Step 5 without `--ext`.
|
|
288
285
|
|
|
289
286
|
**4.5d. Build the `--ext` value:**
|
|
290
287
|
|
|
@@ -375,7 +372,14 @@ After the script finishes, parse the JSON output:
|
|
|
375
372
|
"answer": "...",
|
|
376
373
|
"thread_short_id": "CmYpuGwBgCnrUdDx5ZtmxA",
|
|
377
374
|
"live_doc_short_id": "QPetunwpGnkKuZHStP7gwt",
|
|
378
|
-
"live_doc_url": "https://felo.ai/livedoc/QPetunwpGnkKuZHStP7gwt"
|
|
375
|
+
"live_doc_url": "https://felo.ai/livedoc/QPetunwpGnkKuZHStP7gwt",
|
|
376
|
+
"image_urls": [
|
|
377
|
+
{
|
|
378
|
+
"url": "https://...",
|
|
379
|
+
"title": "Image title",
|
|
380
|
+
"file_id": "b9e5be11-7686-4aa8-ae6c-9876511a7b5c"
|
|
381
|
+
}
|
|
382
|
+
]
|
|
379
383
|
}
|
|
380
384
|
}
|
|
381
385
|
```
|
|
@@ -383,6 +387,20 @@ After the script finishes, parse the JSON output:
|
|
|
383
387
|
1. **Output `data.answer` verbatim** as your response text — print it exactly as-is so the user sees the full content.
|
|
384
388
|
2. **Extract and save** `data.thread_short_id` and `data.live_doc_short_id` — you MUST use these in the next call.
|
|
385
389
|
3. **Optionally show** `data.live_doc_url` so the user can view the LiveDoc canvas in a browser.
|
|
390
|
+
4. **Image results (`data.image_urls`):** If this array is non-empty, append image links immediately after `data.answer`, formatted as **one line per image**:
|
|
391
|
+
|
|
392
|
+
```
|
|
393
|
+
[title](url)
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
Example output:
|
|
397
|
+
```
|
|
398
|
+
[Giant panda eating bamboo](https://...)
|
|
399
|
+
[Giant panda dancing](https://...)
|
|
400
|
+
[Blue whale leaping out of the water](https://...)
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
Each image has `url` (signed S3 URL, time-limited), `title`, and `file_id` (stable file identifier). Note: the same image may appear in both `tools_result_stream` and `tools_result` events with different signed URLs — deduplication is handled automatically by `file_id`. When referencing a previously generated image in a follow-up query, include its `file_id` in the `--query` so SuperAgent can locate the file (e.g., `"Please generate a variation of file_id=b9e5be11-..."`).
|
|
386
404
|
|
|
387
405
|
Do NOT show `thread_short_id` or `live_doc_short_id` to the user unless they ask for it.
|
|
388
406
|
|
|
@@ -717,8 +735,8 @@ User sends a message
|
|
|
717
735
|
|
|
|
718
736
|
v
|
|
719
737
|
Have live_doc_id from ANY source?
|
|
720
|
-
NO --> Step 2b: fetch list --> got
|
|
721
|
-
YES --> use data.items
|
|
738
|
+
NO --> Step 2b: fetch list --> got is_shared=false item?
|
|
739
|
+
YES --> use data.items.find(i => !i.is_shared)?.short_id as live_doc_id
|
|
722
740
|
NO --> Step 2c: create new LiveDoc
|
|
723
741
|
YES --> continue (reuse it, do NOT fetch list)
|
|
724
742
|
|
|
|
@@ -168,14 +168,14 @@ function extractToolResults(data) {
|
|
|
168
168
|
if (!callResult) continue;
|
|
169
169
|
if (Array.isArray(callResult)) {
|
|
170
170
|
for (const item of callResult) {
|
|
171
|
-
if (item?.image_url) out.push({ type: 'image', title: item?.title || '', image_url: item.image_url });
|
|
171
|
+
if (item?.image_url) out.push({ type: 'image', title: item?.title || '', image_url: item.image_url, file_id: item?.file_id || null });
|
|
172
172
|
}
|
|
173
173
|
} else if (callResult?.images && Array.isArray(callResult.images)) {
|
|
174
174
|
for (const img of callResult.images) {
|
|
175
|
-
if (img?.image_url) out.push({ type: 'image', title: img?.title || '', image_url: img.image_url });
|
|
175
|
+
if (img?.image_url) out.push({ type: 'image', title: img?.title || '', image_url: img.image_url, file_id: img?.file_id || null });
|
|
176
176
|
}
|
|
177
177
|
} else if (callResult?.image_url) {
|
|
178
|
-
out.push({ type: 'image', title: callResult?.title || '', image_url: callResult.image_url });
|
|
178
|
+
out.push({ type: 'image', title: callResult?.title || '', image_url: callResult.image_url, file_id: callResult?.file_id || null });
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
if (t?.name === 'generate_discovery' && callResult?.status === 'success') {
|
|
@@ -477,7 +477,9 @@ async function main() {
|
|
|
477
477
|
|
|
478
478
|
const onToolResult = (item) => {
|
|
479
479
|
const LIVEDOC_TYPES = new Set(['document', 'ppt', 'html', 'discovery']);
|
|
480
|
-
const key =
|
|
480
|
+
const key = (item?.type === 'image' && item?.file_id)
|
|
481
|
+
? `file:${item.file_id}`
|
|
482
|
+
: item?.image_url || (LIVEDOC_TYPES.has(item?.type) ? item.type : `${item?.type}:${item?.title}`);
|
|
481
483
|
if (seenKeys.has(key)) return;
|
|
482
484
|
seenKeys.add(key);
|
|
483
485
|
toolResults.push(item);
|
|
@@ -543,7 +545,7 @@ async function main() {
|
|
|
543
545
|
answer: answer || null,
|
|
544
546
|
thread_short_id: thread_short_id ?? null,
|
|
545
547
|
live_doc_short_id: live_doc_short_id ?? null,
|
|
546
|
-
image_urls: images.length > 0 ? images.map((r) => ({ url: r.image_url, title: r.title })) : undefined,
|
|
548
|
+
image_urls: images.length > 0 ? images.map((r) => ({ url: r.image_url, title: r.title, ...(r.file_id ? { file_id: r.file_id } : {}) })) : undefined,
|
|
547
549
|
discoveries: discoveries.length > 0 ? discoveries.map((r) => ({ title: r.title })) : undefined,
|
|
548
550
|
documents: documents.length > 0 ? documents.map((r) => ({ title: r.title })) : undefined,
|
|
549
551
|
ppts: ppts.length > 0 ? ppts.map((r) => ({ title: r.title })) : undefined,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Felo Twitter Writer",
|
|
3
|
+
"tagline": "Analyze tweet style DNA and compose tweets, threads, X posts with brand style in Claude Code",
|
|
4
|
+
"description": "Felo Twitter Writer lets you analyze any Twitter/X account's writing style and extract a Style DNA document, then compose high-quality tweets, threads, or X long-form posts that match that style. Supports style library, multi-language, and continuous follow-up. Requires a Felo API key.",
|
|
5
|
+
"category": "writing",
|
|
6
|
+
"tags": ["felo", "twitter", "tweet", "writing", "style", "thread", "ghostwrite"],
|
|
7
|
+
"version": "1.0.0",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"pricing": "free",
|
|
10
|
+
"support_url": "https://github.com/Felo-Inc/felo-skills/issues",
|
|
11
|
+
"homepage": "https://github.com/Felo-Inc/felo-skills",
|
|
12
|
+
"dependencies": ["felo-superAgent", "felo-livedoc"]
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "felo-ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
4
4
|
"description": "Felo AI CLI - real-time search, PPT generation, SuperAgent conversation, LiveDoc management, web fetch, YouTube subtitles, LiveDoc knowledge base, and X (Twitter) search from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/cli.js",
|