article-queue

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Article Queue - View and Manage Article Topics

文章队列 - 查看与管理文章主题

This skill displays the article topic queue and offers to generate an article from any queued topic.
本Skill用于展示文章主题队列,并支持从队列中选择主题生成文章。

Invocation

调用方式

/article-queue
/article-queue -l
Flags:
  • -g
    - Use global queue (default):
    ~/.claude/article-queue.md
  • -l
    - Use local/project queue:
    .claude/article-queue.md
/article-queue
/article-queue -l
参数标识:
  • -g
    - 使用全局队列(默认):
    ~/.claude/article-queue.md
  • -l
    - 使用本地/项目队列:
    .claude/article-queue.md

Queue Storage

队列存储

Two queue locations are supported:
  • Global (default):
    ~/.claude/article-queue.md
    - shared across all projects
  • Local:
    .claude/article-queue.md
    - project-specific queue
Queue File Format:
markdown
undefined
支持两种队列存储位置:
  • 全局(默认):
    ~/.claude/article-queue.md
    - 所有项目共享
  • 本地
    .claude/article-queue.md
    - 项目专属队列
队列文件格式:
markdown
undefined

Article Queue

Article Queue

Topics queued for article generation.
Topics queued for article generation.

Topics

Topics

  • How kubernetes networking works
  • The history of Unix file permissions
  • WebSocket vs Server-Sent Events comparison (generated)

Items marked with `[x]` have already been generated.
  • How kubernetes networking works
  • The history of Unix file permissions
  • WebSocket vs Server-Sent Events comparison (generated)
标记为`[x]`的项目已完成生成。

Execution Workflow

执行流程

Step 1: Determine Queue Location

步骤1:确定队列位置

  1. Check for
    -l
    flag → use local queue (
    .claude/article-queue.md
    )
  2. Check for
    -g
    flag or no flag → use global queue (
    ~/.claude/article-queue.md
    )
  1. 检查是否有
    -l
    参数 → 使用本地队列(
    .claude/article-queue.md
  2. 检查是否有
    -g
    参数或无参数 → 使用全局队列(
    ~/.claude/article-queue.md

Step 2: Read Queue File

步骤2:读取队列文件

  1. Use Read tool to check if the queue file exists (expand
    ~
    to actual home path for global)
  2. If it doesn't exist, inform the user the queue is empty and suggest using
    /article-add
  1. 使用读取工具检查队列文件是否存在(全局队列需将
    ~
    展开为实际主目录路径)
  2. 若文件不存在,告知用户队列为空,并建议使用
    /article-add
    添加主题

Step 3: Parse Queue Contents

步骤3:解析队列内容

Extract all topics from the file:
  • - [ ]
    items are pending (not yet generated)
  • - [x]
    items are completed (already generated)
提取所有主题从文件中:
  • - [ ]
    项为待处理(尚未生成)
  • - [x]
    项为已完成(已生成)

Step 4: Display Queue

步骤4:展示队列

Present the queue to the user in a clear format:
📋 **Article Queue**

**Pending topics:**
1. How kubernetes networking works
2. The history of Unix file permissions
3. Understanding TCP congestion control

**Previously generated:**
- WebSocket vs Server-Sent Events comparison

Use `/article <topic>` to generate any article, or select one below.
以清晰格式向用户展示队列:
📋 **文章队列**

**待处理主题:**
1. How kubernetes networking works
2. The history of Unix file permissions
3. Understanding TCP congestion control

**已生成主题:**
- WebSocket vs Server-Sent Events comparison

使用`/article <topic>`生成任意文章,或从下方选择主题。

Step 5: Offer Selection (if pending topics exist)

步骤5:提供选择(若有待处理主题)

If there are pending topics, use AskUserQuestion to let the user pick one:
  • Header: "Generate"
  • Question: "Would you like to generate an article for one of these topics?"
  • Options (dynamically built from pending topics, max 4):
    • First pending topic (Recommended)
    • Second pending topic (if exists)
    • Third pending topic (if exists)
    • "Not now" - Just viewing the queue
If there are more than 3 pending topics, show the first 3 and include "Not now" as the 4th option. The user can always invoke
/article
directly for other topics.
如果存在待处理主题,使用AskUserQuestion让用户选择:
  • 标题:"生成文章"
  • 问题:"是否要为以下某个主题生成文章?"
  • 选项(根据待处理主题动态生成,最多4个):
    • 第一个待处理主题(推荐)
    • 第二个待处理主题(若存在)
    • 第三个待处理主题(若存在)
    • "暂不生成" - 仅查看队列
若待处理主题超过3个,显示前3个并将"暂不生成"作为第4个选项。用户始终可以直接调用
/article
处理其他主题。

Step 6: Handle Selection

步骤6:处理选择

If user selects a topic:
  1. Mark the topic as in-progress in the queue (optional visual feedback)
  2. Invoke the
    /article
    skill workflow for that topic
  3. After article generation completes, update the queue:
    • Change
      - [ ] topic
      to
      - [x] topic (generated)
If user selects "Not now":
  • Thank them and remind they can use
    /article-add
    to add more topics or
    /article <topic>
    anytime
若用户选择某个主题:
  1. 在队列中标记该主题为处理中(可选视觉反馈)
  2. 针对该主题调用
    /article
    Skill的工作流
  3. 文章生成完成后,更新队列:
    • - [ ] topic
      改为
      - [x] topic (generated)
若用户选择"暂不生成":
  • 感谢用户,并提醒他们可以使用
    /article-add
    添加更多主题,或随时使用
    /article <topic>

Example Interactions

交互示例

Empty Queue

空队列

User: /article-queue

Claude: Your global article queue is empty.

Use `/article-add <topic>` to add topics you'd like to write articles about later.

User: /article-queue -l

Claude: Your local article queue is empty.

Use `/article-add -l <topic>` to add project-specific topics.
用户: /article-queue

Claude: 你的全局文章队列为空。

使用`/article-add <topic>`添加你之后想要撰写的文章主题。

用户: /article-queue -l

Claude: 你的本地文章队列为空。

使用`/article-add -l <topic>`添加项目专属主题。

Queue with Topics

包含主题的队列

User: /article-queue

Claude: 📋 **Article Queue**

**Pending topics:**
1. How kubernetes networking works
2. The history of Unix file permissions
3. Understanding TCP congestion control

Use `/article <topic>` to generate any article, or select one below.

[AskUserQuestion: Would you like to generate an article for one of these topics?]
- How kubernetes networking works (Recommended)
- The history of Unix file permissions
- Understanding TCP congestion control
- Not now

User: [Selects "How kubernetes networking works"]

Claude: [Proceeds with /article workflow for "How kubernetes networking works"]
        [After completion, marks topic as generated in queue]
用户: /article-queue

Claude: 📋 **文章队列**

**待处理主题:**
1. How kubernetes networking works
2. The history of Unix file permissions
3. Understanding TCP congestion control

使用`/article <topic>`生成任意文章,或从下方选择主题。

[AskUserQuestion: 是否要为以下某个主题生成文章?]
- How kubernetes networking works (推荐)
- The history of Unix file permissions
- Understanding TCP congestion control
- 暂不生成

用户: [选择"How kubernetes networking works"]

Claude: [执行`/article`工作流生成"How kubernetes networking works"的文章]
        [完成后,在队列中标记该主题为已生成]

Queue Management

队列管理

Clearing Completed Items

清除已完成项

If the user asks to clear completed items, edit the queue file to remove all
- [x]
lines.
若用户要求清除已完成项,编辑队列文件移除所有
- [x]
行。

Removing a Pending Item

移除待处理项

If the user asks to remove a specific pending item, edit the queue file to remove that line.
若用户要求移除特定待处理项,编辑队列文件移除对应行。

Error Handling

错误处理

  • If queue file doesn't exist: Report empty queue, suggest
    /article-add
  • If queue file is malformed: Attempt to parse what's there, report any issues
  • If all topics are already generated: Report this and suggest adding new topics
  • 若队列文件不存在:报告队列为空,建议使用
    /article-add
  • 若队列文件格式错误:尝试解析可识别的内容,并报告问题
  • 若所有主题均已生成:告知用户此情况,并建议添加新主题

Related Skills

相关Skill

  • /article
    - Generate an HTML article on a topic
  • /article-add
    - Add a new topic to the queue
  • /article
    - 生成指定主题的HTML文章
  • /article-add
    - 向队列中添加新主题