refly
它能做什么
这项技能让智能体通过 Refly CLI 查找、运行和监控 Refly 技能及多步骤工作流。适合使用 Refly 自动化重复性任务的人。
适用场景
- ✓当你希望运行一个已保存的 Refly 技能或工作流的时候。
- ✓当你希望检查仍在运行的工作流的状态的时候。
- ✓当你希望下载工作流生成的文件的时候。
技能链接
https://github.com/refly-ai/refly/blob/main/packages/cli/skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 Refly 中运行我的每周报告工作流,并在它完成时告诉我。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用 Refly 命令行列出已安装的技能,携带输入启动一次运行,并监视进度。它只依赖命令输出,绝不编造 ID 或处理令牌。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Refly
Rules
- CLI only - Use
refly <command>, never call API directly. - Trust JSON - Only trust CLI JSON (
ok,payload,error,hint). - No fabricated IDs - Never invent workflow/run/node IDs.
- No tokens - Never print or request auth tokens.
- Stop on error - If
ok=false, stop and showhint.
Available Commands
| Command | ID Format | Description |
|---|---|---|
refly status |
- | Check authentication and connection status |
refly login |
- | Authenticate with Refly |
refly skill list |
- | List all available skills in the marketplace |
refly skill installations |
- | List your installed skills (get installationId here) |
refly skill run --id <installationId> --input '<json>' |
skpi-xxx | Run an installed skill, returns runId (we-xxx) |
refly workflow status <runId> --watch |
we-xxx | Watch workflow execution status |
refly workflow detail <runId> |
we-xxx | Get workflow run details |
refly workflow toolcalls <runId> --files --latest |
we-xxx | Get files from latest toolcall |
refly file download <fileId> -o <path> |
df-xxx | Download a file |
Tip: Get installationId (skpi-xxx) from refly skill installations.
Command Options
| Command | Option | Description |
|---|---|---|
workflow status |
--watch |
Poll until workflow completes |
workflow status |
--interval <ms> |
Polling interval in milliseconds (default: 5000) |
workflow toolcalls |
--files |
Return simplified output with only files and content |
workflow toolcalls |
--latest |
With --files, return only files from the most recent toolcall |
workflow toolcalls |
--raw |
Disable output sanitization (show full tool outputs) |
Recommended: Use --files --latest to get files from the final output without processing all toolcalls.
Skill Categories & Execution Patterns
Choose the execution pattern based on the skill's output type:
| Category | Skills | Output | Pattern |
|---|---|---|---|
| File Generation | image, video, audio skills | Files (png/mp4/mp3) | Run → Wait → Download → Open |
| Text/Data | search, research, report skills | Text content | Run → Wait → Extract content |
| Action | email, messaging, integration skills | Status confirmation | Run → Wait → Confirm |
Pattern A: File Generation Skills
Use for: nano-banana-pro, fal-image, fal-video, fal-audio, seedream-image, kling-video, wan-video
# Step 1: Run and capture RUN_ID
RESULT=$(refly skill run --id <installationId> --input '<json>')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# Step 2: Wait for completion
refly workflow status "$RUN_ID" --watch --interval 30000
# Step 3: Get files and download to Desktop
FILES=$(refly workflow toolcalls "$RUN_ID" --files --latest | jq -r '.payload.files[]')
echo "$FILES" | jq -c '.' | while read -r file; do
FILE_ID=$(echo "$file" | jq -r '.fileId')
FILE_NAME=$(echo "$file" | jq -r '.name')
if [ -n "$FILE_ID" ] && [ "$FILE_ID" != "null" ]; then
refly file download "$FILE_ID" -o "$HOME/Desktop/${FILE_NAME}"
open "$HOME/Desktop/${FILE_NAME}"
fi
done
Pattern B: Text/Data Skills
Use for: jina, perplexity, weather-report, exa, research skills
# Step 1: Run and capture RUN_ID
RESULT=$(refly skill run --id <installationId> --input '<json>')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# Step 2: Wait for completion
refly workflow status "$RUN_ID" --watch --interval 30000
# Step 3: Extract text content from toolcalls
CONTENT=$(refly workflow toolcalls "$RUN_ID" --files --latest | jq -r '.payload.nodes[].content')
echo "$CONTENT"
Pattern C: Action Skills
Use for: send-email, slack, microsoft-teams, zoom, calendar, CRM integrations
# Step 1: Run and capture RUN_ID
RESULT=$(refly skill run --id <installationId> --input '<json>')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# Step 2: Wait for completion
refly workflow status "$RUN_ID" --watch --interval 30000
# Step 3: Confirm action status
STATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
ID Types:
| ID Format | Example | Used For |
|---|---|---|
skpi-xxx |
skpi-h9kpmts9ho1kl9l1sohaloeu | skill run --id only |
we-xxx |
we-abc123def456 |
常见问题
智能体会猜测工作流 ID 吗?
不会。技能要求绝不编造工作流、运行或节点 ID。
如果命令失败会怎样?
智能体会停止,并显示命令输出中的提示。
它也能创建新技能吗?
可以。该技能也涵盖创建与工作流绑定的技能。
详情
作者的原始描述
Base skill for Refly ecosystem: creates, discovers, and runs domain-specific skills bound to workflows. Routes user intent to matching domain skills via symlinks, delegates execution to Refly backend. Use when user asks to: create skills, run workflows, automate multi-step tasks, or manage pipelines. Triggers: refly, skill, workflow, run skill, create skill, automation, pipeline. Requires: @refly/cli installed and authenticated.
repo: refly-ai/refly
热度
- GitHub 星标
- 7.5k
- 排名
- #13212
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …