article-queue
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseArticle 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 -lFlags:
- - Use global queue (default):
-g~/.claude/article-queue.md - - Use local/project queue:
-l.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): - shared across all projects
~/.claude/article-queue.md - Local: - project-specific queue
.claude/article-queue.md
Queue File Format:
markdown
undefined支持两种队列存储位置:
- 全局(默认):- 所有项目共享
~/.claude/article-queue.md - 本地:- 项目专属队列
.claude/article-queue.md
队列文件格式:
markdown
undefinedArticle 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:确定队列位置
- Check for flag → use local queue (
-l).claude/article-queue.md - Check for flag or no flag → use global queue (
-g)~/.claude/article-queue.md
- 检查是否有参数 → 使用本地队列(
-l).claude/article-queue.md - 检查是否有参数或无参数 → 使用全局队列(
-g)~/.claude/article-queue.md
Step 2: Read Queue File
步骤2:读取队列文件
- Use Read tool to check if the queue file exists (expand to actual home path for global)
~ - If it doesn't exist, inform the user the queue is empty and suggest using
/article-add
- 使用读取工具检查队列文件是否存在(全局队列需将展开为实际主目录路径)
~ - 若文件不存在,告知用户队列为空,并建议使用添加主题
/article-add
Step 3: Parse Queue Contents
步骤3:解析队列内容
Extract all topics from the file:
- items are pending (not yet generated)
- [ ] - items are completed (already generated)
- [x]
提取所有主题从文件中:
- 项为待处理(尚未生成)
- [ ] - 项为已完成(已生成)
- [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 directly for other topics.
/article如果存在待处理主题,使用AskUserQuestion让用户选择:
- 标题:"生成文章"
- 问题:"是否要为以下某个主题生成文章?"
- 选项(根据待处理主题动态生成,最多4个):
- 第一个待处理主题(推荐)
- 第二个待处理主题(若存在)
- 第三个待处理主题(若存在)
- "暂不生成" - 仅查看队列
若待处理主题超过3个,显示前3个并将"暂不生成"作为第4个选项。用户始终可以直接调用处理其他主题。
/articleStep 6: Handle Selection
步骤6:处理选择
If user selects a topic:
- Mark the topic as in-progress in the queue (optional visual feedback)
- Invoke the skill workflow for that topic
/article - After article generation completes, update the queue:
- Change to
- [ ] topic- [x] topic (generated)
- Change
If user selects "Not now":
- Thank them and remind they can use to add more topics or
/article-addanytime/article <topic>
若用户选择某个主题:
- 在队列中标记该主题为处理中(可选视觉反馈)
- 针对该主题调用Skill的工作流
/article - 文章生成完成后,更新队列:
- 将改为
- [ ] 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 lines.
- [x]若用户要求清除已完成项,编辑队列文件移除所有行。
- [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
- - Generate an HTML article on a topic
/article - - Add a new topic to the queue
/article-add
- - 生成指定主题的HTML文章
/article - - 向队列中添加新主题
/article-add