# Ccwf CLI

Use the `ccwf` CLI (from @cc-wf-studio/cli) to render, validate, preview, export, or...

- Repository: https://github.com/breaking-brake/cc-wf-studio (5444 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-10-07
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add breaking-brake/cc-wf-studio --skill ccwf-cli -g -a claude-code -y`
Codex: `npx skills add breaking-brake/cc-wf-studio --skill ccwf-cli -g -a codex -y`
Cursor: `npx skills add breaking-brake/cc-wf-studio --skill ccwf-cli -g -a cursor -y`
Gemini CLI: `npx skills add breaking-brake/cc-wf-studio --skill ccwf-cli -g -a gemini-cli -y`

## Description

Use the `ccwf` CLI (from @cc-wf-studio/cli) to render, validate, preview, export, or run cc-wf-studio workflow JSON files from the terminal. Apply whenever the user mentions viewing, visualizing, checking, executing, or converting a workflow under `.vscode/workflows/` (or any `*workflow*.json`), wants a Mermaid diagram of a workflow, asks to "see" / "preview" / "open" a workflow, or wants to run a workflow as a Claude Code Skill without opening VSCode.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# ccwf CLI

`ccwf` is the command-line entry into cc-wf-studio, a visual AI-agent workflow tool. It treats `.vscode/workflows/*.json` workflow files as inputs and lets you render them as Markdown, validate the schema, open them in a browser-based viewer, convert them into Agent Skills, or execute them. The same workflow JSON also drives the VSCode extension and an MCP server, so you can pick whichever interface fits the situation.

This Skill teaches Claude how to recognise when `ccwf` is the right answer and which subcommand to reach for. The subcommands and flags listed here are the source of truth, if behaviour seems off, check `ccwf <subcommand> --help` first.

## Prerequisites

Confirm `ccwf` is available before running any other subcommand:

```bash
ccwf --version
```

If `ccwf` is not on PATH:

- **Preferred**: install globally, `npm install -g @cc-wf-studio/cli`
- **Without install**: prefix every command with `npx @cc-wf-studio/cli` (e.g. `npx @cc-wf-studio/cli render <file>`)
- **In a project**: `pnpm add -D @cc-wf-studio/cli` and run via `pnpm exec ccwf`

If the user has a VSCode workspace and you can't find a workflow file, search `.vscode/workflows/*.json` first; that's the canonical location.

## Core workflow

The natural flow when the user has a workflow file in hand:

1. **`ccwf validate <file>`**, schema-check it. Exit 0 = clean, exit 1 = errors. Run this first whenever you receive a workflow from elsewhere.
2. **`ccwf preview <file>`**, opens a read-only viewer (Mermaid + per-node Markdown) in the browser. Use this when the user says "show me" / "what's in this workflow?" / "見せて".
3. **`ccwf export <file>` or `ccwf run <file>`**, materialises the workflow as Claude Code (or another agent's) Skill files. Use `run` when the user wants the next step to be actually executing the workflow with `claude`.

If a step fails, stop and surface the exact error to the user before moving on.

## Subcommand reference

### `ccwf render <file>`

The rest: https://github.com/breaking-brake/cc-wf-studio/blob/HEAD/packages/cli/skills/ccwf-cli/SKILL.md
