ljg-word-flow

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ljg-word-flow: 词卡

ljg-word-flow: Word Card

一条命令完成:解词 → 铸信息图。支持多词并行。
Complete in one command: Word Analysis → Infographic Generation. Supports parallel processing of multiple words.

参数

Parameters

直接传入一个或多个英文单词,空格分隔。
/ljg-word-flow Obstacle
/ljg-word-flow Serendipity Resilience Entropy
Pass one or more English words directly, separated by spaces.
/ljg-word-flow Obstacle
/ljg-word-flow Serendipity Resilience Entropy

执行

Execution

1. 收集单词列表

1. Collect Word List

从用户消息中提取所有英文单词。
Extract all English words from the user's message.

2. 处理每个单词

2. Process Each Word

对每个单词,串行执行两步:
步骤 A — 解词(ljg-word):
调用 Skill tool 执行
ljg-word
,传入单词。在对话中输出 Markdown 解析结果。
步骤 B — 铸信息图(ljg-card -i):
以步骤 A 的解析内容为输入,调用 Skill tool 执行
ljg-card -i
。生成 PNG 文件到
~/Downloads/
For each word, execute two steps in sequence:
Step A — Word Analysis (ljg-word):
Call the Skill tool to execute
ljg-word
with the word passed in. Output the Markdown analysis result in the conversation.
Step B — Infographic Generation (ljg-card -i):
Use the analysis content from Step A as input, call the Skill tool to execute
ljg-card -i
. Generate a PNG file to
~/Downloads/
.

3. 多词并行

3. Parallel Processing for Multiple Words

多个单词时,每个单词启动一个 Agent subagent 并行处理(每个 subagent 内部 A→B 串行)。
When there are multiple words, start an Agent subagent for each word for parallel processing (each subagent executes A→B in sequence internally).

4. 汇总报告

4. Summary Report

════ 词卡完成 ═══════════════════════
📖 {Word1}
   🖼️ ~/Downloads/{Word1}.png

📖 {Word2}
   🖼️ ~/Downloads/{Word2}.png
...
════ 词卡完成 ═══════════════════════
📖 {Word1}
   🖼️ ~/Downloads/{Word1}.png

📖 {Word2}
   🖼️ ~/Downloads/{Word2}.png
...

关键约束

Key Constraints

  • 先解词后铸卡,顺序不可逆
  • ljg-word 和 ljg-card -i 各自的质量标准不变
  • 信息图内容来自解词结果,不是字典释义
  • Word analysis must be done before infographic generation; the order cannot be reversed
  • The quality standards for ljg-word and ljg-card -i remain unchanged
  • The content of the infographic comes from the word analysis result, not dictionary definitions