Search

PythonReactSEOPDF
OpenClaw

prompts-workflow

Automated workflow for collecting, converting, and publishing AI prompts to ClawdHub. Collects from multiple sources (Reddit, GitHub, Hacker News, SearXNG), converts prompts into Clawdbot Skills, and publishes them automatically.

hhhh124hhhh0 source installs☆ 0 Repository starsv1.0.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install hhhh124hhhh/prompts-workflow

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Prompts Workflow - AI 提示词自动化工作流

自动化收集、转换和发布 AI 提示词到 ClawdHub 的工作流技能。

功能

这个技能提供了一个统一的编排层,用于管理 AI 提示词的完整生命周期:

  • Collect: 从多个来源(Reddit、GitHub、Hacker News、SearXNG)收集 AI 提示词
  • Convert: 将收集到的提示词转换为 Clawdbot Skills
  • Publish: 自动发布生成的技能到 ClawdHub

使用方式

1. 自动模式(推荐)

运行完整的自动化流程:

cd /root/clawd/skills/prompts-workflow
node main.js auto
2. 交互模式(断点恢复)

从失败的地方恢复执行:

node main.js interactive
3. 手动模式(指定步骤)

只运行特定步骤:

# 只收集
node main.js manual collect

# 收集并转换
node main.js manual collect convert

# 只发布
node main.js manual publish
4. 查看状态

检查当前工作流状态:

node main.js status

输出文件

  • output/state.json: 工作流执行状态
  • output/workflow.log: 详细日志
  • output/prompts/: 收集到的原始提示词
  • output/skills/: 转换后的技能

Cron 集成

方式 1: 通过 sessions_spawn(推荐)
# 在 crontab 中添加
0 9 * * * cd /root/clawd && /usr/local/bin/clawdbot sessions_spawn --task "运行 prompts-workflow 技能,使用自动模式完整执行收集、转换和发布流程" --cleanup delete
方式 2: 直接执行
# 在 crontab 中添加
0 9 * * * cd /root/clawd/skills/prompts-workflow && /usr/bin/node main.js auto >> /root/clawd/skills/prompts-workflow/output/cron.log 2>&1

状态管理

工作流会自动保存执行状态:

  • pending: 等待执行
  • running: 正在执行
  • completed: 执行成功
  • failed: 执行失败

失败时,interactive 模式会自动跳过已完成的步骤,从失败处恢复。

错误处理

  • 每个步骤独立捕获错误
  • 错误信息记录到状态文件和日志
  • 支持断点恢复和重试

脚本架构

prompts-workflow/
├── main.js           # 编排器(状态管理、错误处理)
├── SKILL.md          # 技能文档
├── scripts/
│   ├── collect.sh    # 收集提示词
│   ├── convert.js    # 转换为技能
│   └── publish.sh    # 发布到 ClawdHub
└── output/
    ├─...

Source information

Source
github
Repository
openclaw/skills
Path
skills/hhhh124hhhh/prompts-workflow
Version
1.0.0
Commit
ba73c63b37f5c65d7207a886780faab07eac3c83
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Prompts Workflow - AI 提示词自动化工作流

自动化收集、转换和发布 AI 提示词到 ClawdHub 的工作流技能。

## 功能

这个技能提供了一个统一的编排层,用于管理 AI 提示词的完整生命周期:

- **Collect**: 从多个来源(Reddit、GitHub、Hacker News、SearXNG)收集 AI 提示词
- **Convert**: 将收集到的提示词转换为 Clawdbot Skills
- **Publish**: 自动发布生成的技能到 ClawdHub

## 使用方式

### 1. 自动模式(推荐)

运行完整的自动化流程:

```bash
cd /root/clawd/skills/prompts-workflow
node main.js auto
```

### 2. 交互模式(断点恢复)

从失败的地方恢复执行:

```bash
node main.js interactive
```

### 3. 手动模式(指定步骤)

只运行特定步骤:

```bash
# 只收集
node main.js manual collect

# 收集并转换
node main.js manual collect convert

# 只发布
node main.js manual publish
```

### 4. 查看状态

检查当前工作流状态:

```bash
node main.js status
```

## 输出文件

- `output/state.json`: 工作流执行状态
- `output/workflow.log`: 详细日志
- `output/prompts/`: 收集到的原始提示词
- `output/skills/`: 转换后的技能

## Cron 集成

### 方式 1: 通过 sessions_spawn(推荐)

```bash
# 在 crontab 中添加
0 9 * * * cd /root/clawd && /usr/local/bin/clawdbot sessions_spawn --task "运行 prompts-workflow 技能,使用自动模式完整执行收集、转换和发布流程" --cleanup delete
```

### 方式 2: 直接执行

```bash
# 在 crontab 中添加
0 9 * * * cd /root/clawd/skills/prompts-workflow && /usr/bin/node main.js auto >> /root/clawd/skills/prompts-workflow/output/cron.log 2>&1
```

## 状态管理

工作流会自动保存执行状态:

- **pending**: 等待执行
- **running**: 正在执行
- **completed**: 执行成功
- **failed**: 执行失败

失败时,`interactive` 模式会自动跳过已完成的步骤,从失败处恢复。

## 错误处理

- 每个步骤独立捕获错误
- 错误信息记录到状态文件和日志
- 支持断点恢复和重试

## 脚本架构

```
prompts-workflow/
├── main.js           # 编排器(状态管理、错误处理)
├── SKILL.md          # 技能文档
├── scripts/
│   ├── collect.sh    # 收集提示词
│   ├── convert.js    # 转换为技能
│   └── publish.sh    # 发布到 ClawdHub
└── output/
    ├─...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.