mcpbeat

Refly Skill for Claude

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.

8k tokens
context cost
the whole folder, loaded on every use
6
files
instructions only
0
copies elsewhere
how many repositories repackaged it
7471
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/refly-ai/refly --skill refly

The instruction itself

11 sections, as written by the author

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 show hint.

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 | workflow status, workflow detail, workflow toolcalls |

| c-xxx | c-g6emwcpi1wpalsz6j4gyi3d9 | Browser URL only |

| df-xxx | df-b3yxyelshtwsbxbrkmcqxmx9 | file download |

| skpe-xxx | skpe-qga5lpyv59yjzz2ghz2iv9bu | ⚠️ Do NOT use for workflow commands |

Required behavior:

  • skill run returns RUN_ID (we-xxx) in .payload.workflowExecutions[0].id
  • Use we-xxx for all workflow commands (status, detail, toolcalls)
  • Choose execution pattern (A/B/C) based on skill category
  • File skills: Download to ~/Desktop/ and open to show user
  • Text skills: Extract .payload.nodes[].content for text output
  • Action skills: Confirm .payload.status for completion

Directory Structure

~/.refly/skills/
├── base/                       # Base skill files (this symlink target)
│   ├── SKILL.md
│   └── rules/
│       ├── execution.md
│       ├── workflow.md
│       ├── node.md
│       ├── file.md
│       └── skill.md
└── <skill-name>/               # Domain skill directories
    └── SKILL.md

~/.claude/skills/
├── refly → ~/.refly/skills/base/           # Base skill symlink
└── <skill-name> → ~/.refly/skills/<name>/  # Domain skill symlinks

Routing

User intent -> match domain skill (name/trigger) in ~/.claude/skills/

-> read domain skill SKILL.md -> execute via refly skill run -> return CLI-verified result.

References

  • rules/execution.md - Skill execution patterns and error handling
  • rules/workflow.md - Workflow command reference
  • rules/node.md - Node command reference
  • rules/file.md - File command reference
  • rules/skill.md - Customized Skill command reference

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take refly-ai/refly from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.