felo-ai 0.2.47 → 0.2.48

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
@@ -15,7 +15,7 @@
15
15
  <a href="./felo-search/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
16
16
  </p>
17
17
 
18
- **Felo AI CLI** — Real-time search, PPT generation, web fetch, YouTube subtitles, and X (Twitter) search from the terminal. Also works as Claude Code skills. Supports Chinese, English, Japanese, and Korean.
18
+ **Felo AI CLI** — Real-time search, PPT generation, web fetch, YouTube subtitles, X (Twitter) search, SuperAgent conversation, and Twitter writing from the terminal. Also works as Claude Code skills. Supports Chinese, English, Japanese, and Korean.
19
19
 
20
20
  <p align="center">
21
21
  <a href="https://felo.ai">Felo AI</a> · <a href="https://openapi.felo.ai/docs/">Docs</a> · <a href="https://openapi.felo.ai/docs/api-reference/v2/chat.html">API Reference</a> · <a href="./docs/EXAMPLES.md">Examples</a> · <a href="./docs/FAQ.md">FAQ</a> · <a href="https://clawhub.ai/u/wangzhiming1999">ClawHub</a> · <a href="https://discord.gg/9W8NubHA">Discord</a> · <a href="https://x.com/felo_ai">X (Twitter)</a>
@@ -55,6 +55,8 @@ $env:FELO_API_KEY="..." # Windows (PowerShell)
55
55
  | `felo x "<query>"` | Search X (Twitter) tweets, users, and replies |
56
56
  | `felo livedoc <subcommand>` | Manage LiveDocs (knowledge bases) and resources |
57
57
  | `felo apple-buy-advisor "<query>"` | Research and compare Apple products before you buy |
58
+ | `felo superagent "<query>"` | AI conversation with real-time streaming output |
59
+ | `felo style-library <category>` | List brand styles from the style library |
58
60
  | `felo config <set\|get\|list\|path>` | Manage API key and config |
59
61
 
60
62
  ---
@@ -127,13 +129,26 @@ felo apple-buy-advisor "Is it worth upgrading to iPad Air 13?"
127
129
  /apple-buy-advisor Is it worth upgrading to iPad Air 13?
128
130
  ```
129
131
 
130
- **Twitter Writer** — [full options →](./felo-twitter-writer/SKILL.md)
132
+ **Twitter Writer** — [full options →](./felo-twitter-writer/README.md)
131
133
 
132
134
  ```bash
133
- # Use as Claude Code skill
135
+ # Use as Claude Code skill — Claude automatically fetches your style library
136
+ # and asks you to pick a writing style before generating
134
137
  /felo-twitter-writer Analyze @paulg's tweet style and extract a style DNA
135
- /felo-twitter-writer Write 3 tweets about AI trends in @paulg's style
138
+ /felo-twitter-writer Write 3 tweets about AI trends
136
139
  /felo-twitter-writer Write a Twitter thread about why most startups fail
140
+ /felo-twitter-writer Write a tweet about AI in the style of @darioamodei
141
+ ```
142
+
143
+ ```bash
144
+ # Run scripts directly
145
+ node felo-superAgent/scripts/run_style_library.mjs --category TWITTER --accept-language en
146
+ node felo-superAgent/scripts/run_superagent.mjs \
147
+ --query "/twitter-writer Write a tweet about AI trends" \
148
+ --live-doc-id "LIVE_DOC_ID" \
149
+ --skill-id twitter-writer \
150
+ --ext '{"brand_style_requirement":"Style name: darioamodei\nStyle labels: Thoughtful long-form essays\nStyle DNA: ..."}' \
151
+ --accept-language en
137
152
  ```
138
153
 
139
154
  **SuperAgent** — [full options →](./felo-superAgent/README.md)
@@ -141,13 +156,22 @@ felo apple-buy-advisor "Is it worth upgrading to iPad Air 13?"
141
156
  ```bash
142
157
  # Use as Claude Code skill
143
158
  /felo-superagent What is the latest news about AI?
144
- /felo-superagent Tell me more --thread-id <thread_short_id>
159
+ /felo-superagent Write a tweet about quantum computing
160
+ /felo-superagent Design a logo for my coffee shop
145
161
  ```
146
162
 
147
163
  ```bash
148
164
  # Run script directly
149
- node felo-superAgent/scripts/run_superagent.mjs --query "What is quantum computing?"
150
- node felo-superAgent/scripts/run_superagent.mjs --query "Tell me more" --thread-id <thread_short_id>
165
+ node felo-superAgent/scripts/run_superagent.mjs --query "What is quantum computing?" --live-doc-id "LIVE_DOC_ID"
166
+ node felo-superAgent/scripts/run_superagent.mjs --query "Tell me more" --thread-id <thread_short_id> --live-doc-id "LIVE_DOC_ID"
167
+ ```
168
+
169
+ ```bash
170
+ # CLI commands
171
+ felo superagent "What is the latest news about AI?"
172
+ felo superagent "Tell me more" --thread-id <thread_short_id>
173
+ felo style-library TWITTER --accept-language en
174
+ felo style-library IMAGE --accept-language zh-Hans
151
175
  ```
152
176
 
153
177
  **[See 40+ more examples →](./docs/EXAMPLES.md)**
@@ -158,45 +182,118 @@ node felo-superAgent/scripts/run_superagent.mjs --query "Tell me more" --thread-
158
182
 
159
183
  9 skills across search, content generation, web scraping, social media, knowledge base, shopping advice, Twitter writing, and AI conversation:
160
184
 
161
- | Skill | Description | Docs |
162
- | --------------------------- | ------------------------------------------------------------- | ----------------------------------------- |
163
- | **felo-search** | Real-time web search with AI answers. Triggers automatically. | [→](./felo-search/) |
164
- | **felo-slides** | Generate PPT from a prompt | [→](./felo-slides/) |
165
- | **felo-web-fetch** | Fetch and extract webpage content | [→](./felo-web-fetch/) |
166
- | **felo-youtube-subtitling** | Fetch YouTube video subtitles | [→](./felo-youtube-subtitling/) |
167
- | **felo-x-search** | Search X (Twitter) tweets, users, replies | [→](./felo-x-search/SKILL.md) |
168
- | **felo-livedoc** | Manage knowledge bases and semantic retrieval | [→](./felo-livedoc/) |
169
- | **apple-buy-advisor** | Research and compare Apple products before you buy | [→](./apple-buy-advisor/) |
170
- | **felo-twitter-writer** | Analyze tweet style DNA and compose tweets, threads, X posts | [→](./felo-twitter-writer/SKILL.md) |
171
- | **felo-superAgent** | AI conversation with real-time streaming, continuous threads | [→](./felo-superAgent/README.md) |
185
+ | Skill | Description | Docs |
186
+ |---|---|---|
187
+ | **felo-search** | Real-time web search with AI answers. Triggers automatically. | [→](./felo-search/) |
188
+ | **felo-slides** | Generate PPT from a prompt | [→](./felo-slides/) |
189
+ | **felo-web-fetch** | Fetch and extract webpage content | [→](./felo-web-fetch/) |
190
+ | **felo-youtube-subtitling** | Fetch YouTube video subtitles | [→](./felo-youtube-subtitling/) |
191
+ | **felo-x-search** | Search X (Twitter) tweets, users, replies | [→](./felo-x-search/SKILL.md) |
192
+ | **felo-livedoc** | Manage knowledge bases and semantic retrieval | [→](./felo-livedoc/) |
193
+ | **apple-buy-advisor** | Research and compare Apple products before you buy | [→](./apple-buy-advisor/) |
194
+ | **felo-twitter-writer** | Analyze tweet style DNA; compose tweets, threads, X posts with brand style | [→](./felo-twitter-writer/README.md) |
195
+ | **felo-superAgent** | AI conversation with real-time streaming, brand style support, continuous threads | [→](./felo-superAgent/README.md) |
172
196
 
173
197
  ---
174
198
 
175
- ## Skills Install
199
+ ## Using felo-twitter-writer and felo-superAgent with Claude Code
176
200
 
177
- ### Claude Code (Recommended)
201
+ These two skills work together and share the style library. Here is how Claude uses them.
202
+
203
+ ### Installation
178
204
 
179
205
  ```bash
180
- # Add the marketplace
181
- /plugin marketplace add Felo-Inc/felo-skills
182
-
183
- # Install individual skills
184
- /plugin install felo-search@felo-ai
185
- /plugin install felo-slides@felo-ai
186
- /plugin install felo-web-fetch@felo-ai
187
- /plugin install felo-youtube-subtitling@felo-ai
188
- /plugin install felo-x-search@felo-ai
189
- /plugin install felo-livedoc@felo-ai
190
- /plugin install apple-buy-advisor@felo-ai
191
- /plugin install felo-twitter-writer@felo-ai
192
- /plugin install felo-superAgent@felo-ai
206
+ # Via ClawHub
207
+ clawhub install felo-superAgent
208
+ clawhub install felo-twitter-writer
209
+ clawhub install felo-x-search
210
+ clawhub install felo-livedoc
211
+
212
+ # Manual
213
+ cp -r felo-superAgent ~/.claude/skills/
214
+ cp -r felo-twitter-writer ~/.claude/skills/
215
+ cp -r felo-x-search ~/.claude/skills/
216
+ cp -r felo-livedoc ~/.claude/skills/
217
+ ```
218
+
219
+ ### felo-twitter-writer
220
+
221
+ Trigger keywords: `write a tweet`, `twitter thread`, `style DNA`, `imitate tweet style`, `tweet in the style of`, `X account analysis`, `ghostwrite tweets`
222
+
223
+ ```
224
+ /felo-twitter-writer Analyze @paulg's tweet style
225
+ /felo-twitter-writer Write 3 tweets about AI trends
226
+ /felo-twitter-writer Write a Twitter thread about why most startups fail
227
+ ```
228
+
229
+ **What Claude does automatically for tweet writing (Mode 2, new conversation):**
230
+
231
+ 1. Calls `run_style_library.mjs --category TWITTER` to fetch your saved writing styles
232
+ 2. Presents the list grouped as **[Your styles]** / **[Recommended styles]** with a "No preference" option
233
+ 3. Waits for your selection, then calls SuperAgent with the full style block in `--ext`
234
+ 4. Streams the result in real time — follow-ups reuse the thread without re-fetching styles
235
+
236
+ ```
237
+ You: Write a Twitter thread about why most startups fail
238
+
239
+ Claude: Here are the available Twitter writing styles — choosing one will make
240
+ the output more accurate:
241
+
242
+ [Your styles]
243
+ 1. My Bold Voice
244
+
245
+ [Recommended styles]
246
+ 2. darioamodei
247
+
248
+ 0. No preference — use default style
249
+
250
+ You: 1
251
+
252
+ Claude: [streams the thread in "My Bold Voice" style]
253
+
254
+ You: Make the hook tweet more provocative
255
+
256
+ Claude: [follow-up — no style re-selection needed]
257
+ ```
258
+
259
+ If the style library is empty, Claude skips the selection step silently.
260
+
261
+ ### felo-superAgent
262
+
263
+ Trigger keywords: `superagent`, `super agent`, `stream chat`, `streaming conversation`, `write a tweet`, `create a logo`, `product image`
264
+
265
+ ```
266
+ /felo-superagent What is the latest news about AI?
267
+ /felo-superagent Write a tweet about quantum computing
268
+ /felo-superagent Design a logo for my coffee shop
269
+ /felo-superagent Generate a product image for wireless headphones
193
270
  ```
194
271
 
195
- ### ClawHub
272
+ **What Claude does automatically for skill-based conversations:**
196
273
 
197
- [ClawHub](https://clawhub.ai) is a public skill registry for AI coding agents. Browse all Felo skills on [ClawHub](https://clawhub.ai/u/wangzhiming1999).
274
+ | Skill intent | Style category fetched | `--skill-id` passed |
275
+ |---|---|---|
276
+ | Write tweets | `TWITTER` | `twitter-writer` |
277
+ | Logo / branding | `IMAGE` | `logo-and-branding` |
278
+ | Product images | `IMAGE` | `ecommerce-product-image` |
279
+ | General conversation | — | — |
280
+
281
+ For skill-based new conversations, Claude fetches the matching style library, presents options, and passes the chosen style via `--ext '{"brand_style_requirement":"..."}'`. The style block includes `Style name`, `Style labels`, `Style DNA`, and optionally `Cover file ID` — passed completely, never truncated.
282
+
283
+ **Thread and LiveDoc management:**
284
+ - Claude reuses the same LiveDoc across the entire session
285
+ - Every message after the first is a follow-up (`--thread-id`) by default
286
+ - A new thread is only started when you say "new topic", "start over", or when a different skill ID is needed
287
+ - `--ext` is only passed for new conversations, never for follow-ups
288
+
289
+ ---
290
+
291
+ ## Skills Install
292
+
293
+ ### Claude Code
198
294
 
199
295
  ```bash
296
+ # Via ClawHub (recommended)
200
297
  clawhub install felo-search
201
298
  clawhub install felo-slides
202
299
  clawhub install felo-web-fetch
@@ -204,8 +301,23 @@ clawhub install felo-youtube-subtitling
204
301
  clawhub install felo-x-search
205
302
  clawhub install felo-livedoc
206
303
  clawhub install apple-buy-advisor
207
- clawhub install felo-twitter-writer
208
304
  clawhub install felo-superAgent
305
+ # felo-twitter-writer: no clawhub.json yet — use manual install below
306
+ ```
307
+
308
+ ```bash
309
+ # Manual
310
+ git clone https://github.com/Felo-Inc/felo-skills.git
311
+ cd felo-skills
312
+ cp -r felo-search ~/.claude/skills/
313
+ cp -r felo-slides ~/.claude/skills/
314
+ cp -r felo-web-fetch ~/.claude/skills/
315
+ cp -r felo-youtube-subtitling ~/.claude/skills/
316
+ cp -r felo-x-search ~/.claude/skills/
317
+ cp -r felo-livedoc ~/.claude/skills/
318
+ cp -r apple-buy-advisor ~/.claude/skills/
319
+ cp -r felo-twitter-writer ~/.claude/skills/
320
+ cp -r felo-superAgent ~/.claude/skills/
209
321
  ```
210
322
 
211
323
  ### Gemini CLI
@@ -213,40 +325,40 @@ clawhub install felo-superAgent
213
325
  ```bash
214
326
  git clone https://github.com/Felo-Inc/felo-skills.git
215
327
  cd felo-skills
216
-
217
- # Copy skill folders to Gemini CLI skills directory
218
328
  cp -r felo-search ~/.gemini/skills/
219
329
  cp -r felo-slides ~/.gemini/skills/
330
+ cp -r felo-web-fetch ~/.gemini/skills/
331
+ cp -r felo-youtube-subtitling ~/.gemini/skills/
332
+ cp -r felo-x-search ~/.gemini/skills/
333
+ cp -r felo-livedoc ~/.gemini/skills/
220
334
  cp -r apple-buy-advisor ~/.gemini/skills/
335
+ cp -r felo-twitter-writer ~/.gemini/skills/
336
+ cp -r felo-superAgent ~/.gemini/skills/
221
337
  ```
222
338
 
223
339
  ### OpenAI Codex
224
340
 
225
341
  ```bash
226
342
  git clone https://github.com/Felo-Inc/felo-skills.git
227
- # Copy any skill folder to ~/.codex/skills/
343
+ cd felo-skills
228
344
  cp -r felo-search ~/.codex/skills/
345
+ cp -r felo-slides ~/.codex/skills/
346
+ cp -r felo-web-fetch ~/.codex/skills/
347
+ cp -r felo-youtube-subtitling ~/.codex/skills/
348
+ cp -r felo-x-search ~/.codex/skills/
349
+ cp -r felo-livedoc ~/.codex/skills/
229
350
  cp -r apple-buy-advisor ~/.codex/skills/
351
+ cp -r felo-twitter-writer ~/.codex/skills/
352
+ cp -r felo-superAgent ~/.codex/skills/
230
353
  ```
231
354
 
232
355
  ### OpenClaw
233
356
 
234
357
  ```bash
358
+ # Installs all skills that contain a SKILL.md (includes felo-twitter-writer and felo-superAgent)
235
359
  bash <(curl -s https://raw.githubusercontent.com/Felo-Inc/felo-skills/main/scripts/openclaw-install.sh)
236
360
  ```
237
361
 
238
- ### Manual Installation
239
-
240
- ```bash
241
- git clone https://github.com/Felo-Inc/felo-skills.git
242
- # Copy any skill folder to the skills directory of your AI coding agent
243
- # Claude Code: ~/.claude/skills/
244
- # Gemini CLI: ~/.gemini/skills/
245
- # Codex: ~/.codex/skills/
246
- cp -r felo-search ~/.claude/skills/
247
- cp -r apple-buy-advisor ~/.claude/skills/
248
- ```
249
-
250
362
  ---
251
363
 
252
364
  ## FAQ