Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "skillflow",
"interface": {
"displayName": "SkillFlow"
},
"plugins": [
{
"name": "skillflow",
"source": {
"source": "local",
"path": "./skills"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
}
16 changes: 16 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "skillflow",
"owner": {
"name": "skovtunenko",
"url": "https://github.com/skovtunenko"
},
"description": "SkillFlow: a declarative language for the intent of an agent skill.",
"plugins": [
{
"name": "skillflow",
"source": "./skills",
"description": "Describes the workflow of a skill as a KDL flow file, checks and syncs the skill against it, and renders it as an HTML page.",
"category": "productivity"
}
]
}
21 changes: 21 additions & 0 deletions .mise/tasks/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,24 @@ set -euo pipefail

# Browser tests skip without Chrome, unless CI or SKILLFLOW_BROWSER=required makes Chrome mandatory.
node --test "build/**/skillflow/tests/*.test.mjs"

# The plugin files: each one parses, and the four plugin names are equal (Codex refuses a marketplace entry with another name).
# The version of each plugin manifest is the version of the skill: Claude Code updates a plugin only when its version changes.
node -e '
const fs = require("fs"), read = (f) => JSON.parse(fs.readFileSync(f, "utf8"));
const manifests = [read("skills/.claude-plugin/plugin.json"), read("skills/.codex-plugin/plugin.json")];
const entries = [read(".claude-plugin/marketplace.json").plugins[0], read(".agents/plugins/marketplace.json").plugins[0]];
const names = [...manifests, ...entries].map((p) => p.name);
if (!names[0] || new Set(names).size !== 1) throw new Error(`plugin names differ: ${names}`);
// metadata.version of the frontmatter only: the body of SKILL.md can show another version in an example
const text = fs.readFileSync("skills/skillflow/SKILL.md", "utf8").replace(/\r\n/g, "\n");
const front = /^---\n([\s\S]*?)\n---/.exec(text)?.[1] ?? "";
// strict, not a YAML parser: the version is the line right under metadata, and the frontmatter has no other version line
// shortcut: reads line shapes, so text that copies these lines inside a multi-line quoted value passes; use a YAML parser when the frontmatter stops being flat key lines
const first = /^metadata:[ \t]*\n[ \t]+version:[ \t]*"([^"]+)"[ \t]*$/m.exec(front)?.[1];
const skill = (front.match(/^[ \t]*version:/gm) ?? []).length === 1 ? first : undefined;
const versions = manifests.map((p) => p.version);
if (!skill || versions.some((v) => v !== skill)) throw new Error(`plugin versions ${versions} differ from the skill version ${skill}`);
// plugin.json wins over a marketplace entry, so a version there would only mislead
if (entries.some((p) => "version" in p)) throw new Error("a marketplace entry has a version: keep it in plugin.json only");
'
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,43 @@ The flow of SkillFlow itself is

## Install

Pick one: the [skills CLI](https://skills.sh/) or
[kasetto](https://kasetto.dev/). The skill needs Node.js 22 or later; its
scripts use no packages and no network.
Pick one: the [skills CLI](https://skills.sh/),
[kasetto](https://kasetto.dev/), or a plugin for
[Claude Code](https://code.claude.com/docs/en/discover-plugins) or
[Codex](https://developers.openai.com/codex/plugins). The skill needs
Node.js 22 or later; its scripts use no packages and no network.

```bash
# skills CLI (skills.sh): installs into the current project
npx skills add skovtunenko/skillflow

# kasetto: --project, because its default scope is global
kst add https://github.com/skovtunenko/skillflow --skill skillflow --project

# Claude Code plugin: this repository is its own marketplace
claude plugin marketplace add skovtunenko/skillflow
claude plugin install skillflow@skillflow

# Codex plugin: the repository is its marketplace too
codex plugin marketplace add skovtunenko/skillflow
codex plugin add skillflow@skillflow
```

The plugin holds only the skill, and its version is the version of the
skill. To get the latest release:

```bash
# Claude Code: refresh the marketplace, then update the plugin
claude plugin marketplace update skillflow
claude plugin update skillflow@skillflow

# Codex
codex plugin marketplace upgrade skillflow
```

A plugin loads in the next session of the agent, also after an update.
It keeps the skill folder in the plugin cache of the tool.

By hand: copy `skills/skillflow` into the skills folder of your agent.

## Use it through your agent
Expand Down Expand Up @@ -128,8 +153,11 @@ unreadable input. `skillflowctl --help` lists all commands and options.

```text
skills/skillflow/ the skill: SKILL.md, flow.kdl, skillflowctl, scripts, references, assets
skills/ the plugin: the skill, and a plugin manifest for Claude Code and for Codex
build/skillflow/ tests, the eval kit, and the tool that vendors the KDL parser
site/ website sources and the examples it shows
.claude-plugin/ plugin marketplace for Claude Code
.agents/plugins/ plugin marketplace for Codex
```

This repository receives releases from a private source repository.
Expand Down
14 changes: 9 additions & 5 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
.ig-t>p:last-child{margin:0}
.iterm{min-width:0;border-radius:16px;background:color-mix(in srgb,var(--ink) 92%,var(--bg));color:var(--bg);box-shadow:var(--shadow-2);overflow:hidden}
.iterm-h{display:flex;align-items:center;gap:12px;padding:0 12px 0 20px;border-bottom:1px solid color-mix(in srgb,var(--bg) 14%,transparent)}
.itabs{display:flex;gap:22px;min-width:0;overflow-x:auto;scrollbar-width:none}
.itabs{display:flex;flex-wrap:wrap;gap:0 22px;min-width:0}
.itabs button{flex:none;padding:14px 0 12px;border:0;border-bottom:2px solid transparent;background:none;color:color-mix(in srgb,var(--bg) 62%,transparent);font:500 var(--fs-14)/1 var(--sans);cursor:pointer}
@media (hover:hover){.itabs button:hover{color:var(--bg)}}
.itabs button[aria-selected=true]{border-bottom-color:var(--accent-fill);color:var(--bg)}
Expand Down Expand Up @@ -628,12 +628,16 @@ <h2 id="modes-h">Modes</h2>
<section id="start" aria-labelledby="start-h"><div class="wrap ig">
<div class="ig-t"><div class="sh"><span class="num" aria-hidden="true"></span>
<h2 id="start-h">Install</h2></div>
<p>Adds SkillFlow to Claude Code, Codex, Cursor, and more, through <a href="https://skills.sh/" rel="noreferrer">skills.sh</a> or <a href="https://www.kasetto.dev/" rel="noreferrer">kasetto</a>. Needs Node.js 22 or later.</p>
<p>Then type <code>skillflow help</code> in your agent.</p></div>
<p>Adds SkillFlow to Claude Code, Codex, Cursor, and more, through <a href="https://skills.sh/" rel="noreferrer">skills.sh</a> or <a href="https://www.kasetto.dev/" rel="noreferrer">kasetto</a>. <a href="https://code.claude.com/docs/en/discover-plugins" rel="noreferrer">Claude Code</a> and <a href="https://developers.openai.com/codex/plugins" rel="noreferrer">Codex</a> can also install it as a plugin. Needs Node.js 22 or later.</p>
<p>Then type <code>skillflow help</code> in a new session of your agent.</p></div>
<div class="iterm" role="group" aria-label="Install commands">
<div class="iterm-h"><div class="itabs" role="tablist" aria-label="Ways to install"><button type="button" role="tab" id="t-cli" aria-controls="p-cli" aria-selected="true">skills CLI</button><button type="button" role="tab" id="t-kst" aria-controls="p-kst" aria-selected="false" tabindex="-1">kasetto</button><button type="button" role="tab" id="t-hand" aria-controls="p-hand" aria-selected="false" tabindex="-1">by hand</button></div><button type="button" class="tb copy" data-copy="tab">Copy</button></div>
<div class="iterm-h"><div class="itabs" role="tablist" aria-label="Ways to install"><button type="button" role="tab" id="t-cli" aria-controls="p-cli" aria-selected="true">skills CLI</button><button type="button" role="tab" id="t-kst" aria-controls="p-kst" aria-selected="false" tabindex="-1">kasetto</button><button type="button" role="tab" id="t-cc" aria-controls="p-cc" aria-selected="false" tabindex="-1">Claude Code</button><button type="button" role="tab" id="t-cx" aria-controls="p-cx" aria-selected="false" tabindex="-1">Codex</button><button type="button" role="tab" id="t-hand" aria-controls="p-hand" aria-selected="false" tabindex="-1">by hand</button></div><button type="button" class="tb copy" data-copy="tab">Copy</button></div>
<div class="tps"><div class="tp" role="tabpanel" id="p-cli" aria-labelledby="t-cli"><pre><code>npx skills add skovtunenko/<wbr>skillflow</code></pre></div>
<div class="tp" role="tabpanel" id="p-kst" aria-labelledby="t-kst"><pre><code>kst add https://<wbr>github.com/<wbr>skovtunenko/<wbr>skillflow --skill skillflow --project</code></pre></div>
<div class="tp" role="tabpanel" id="p-cc" aria-labelledby="t-cc"><pre><code>claude plugin marketplace add skovtunenko/<wbr>skillflow
claude plugin install skillflow@skillflow</code></pre></div>
<div class="tp" role="tabpanel" id="p-cx" aria-labelledby="t-cx"><pre><code>codex plugin marketplace add skovtunenko/<wbr>skillflow
codex plugin add skillflow@skillflow</code></pre></div>
<div class="tp" role="tabpanel" id="p-hand" aria-labelledby="t-hand"><pre><code>git clone https://<wbr>github.com/<wbr>skovtunenko/<wbr>skillflow
cp -R skillflow/<wbr>skills/<wbr>skillflow <span class="nw">&lt;skills-folder&gt;</span>/</code></pre></div></div>
</div>
Expand All @@ -660,7 +664,7 @@ <h3 id="use-h" class="use-h">Use your flow</h3>
<li><div class="bubble"><code>skillflow help</code><button type="button" class="tb copy">Copy</button></div><span>It answers how to use SkillFlow and how to write a flow.</span></li>
</ul><p>Each message spends model tokens. All <a href="#modes">modes</a>.</p></div></li>
<li class="is"><div class="is-h"><h3>Or run it yourself</h3><p>A script in the skill folder. No agent, no tokens.</p></div>
<div class="is-b"><div class="cmd ps"><pre><code>.claude/<wbr>skills/<wbr>skillflow/<wbr>skillflowctl page my-skill</code></pre><button type="button" class="tb copy">Copy</button></div><p>Claude Code keeps the skills of a project in <code>.claude/skills</code>; another agent uses its own folder. With no command, the script shows a menu.</p></div></li>
<div class="is-b"><div class="cmd ps"><pre><code>.claude/<wbr>skills/<wbr>skillflow/<wbr>skillflowctl page my-skill</code></pre><button type="button" class="tb copy">Copy</button></div><p>Claude Code keeps the skills of a project in <code>.claude/skills</code>; another agent or a plugin uses its own folder. With no command, the script shows a menu.</p></div></li>
</ol>
</figure>
</div></section>
Expand Down
13 changes: 13 additions & 0 deletions skills/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "skillflow",
"version": "2026.12.01.1",
"description": "Describes the workflow of a skill as a KDL flow file, checks and syncs the skill against it, and renders it as an HTML page.",
"author": {
"name": "skovtunenko",
"url": "https://github.com/skovtunenko"
},
"homepage": "https://skovtunenko.github.io/skillflow/",
"repository": "https://github.com/skovtunenko/skillflow",
"license": "MIT",
"skills": "./skillflow"
}
20 changes: 20 additions & 0 deletions skills/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "skillflow",
"version": "2026.12.01.1",
"description": "Describes the workflow of a skill as a KDL flow file, checks and syncs the skill against it, and renders it as an HTML page.",
"author": {
"name": "skovtunenko",
"url": "https://github.com/skovtunenko"
},
"homepage": "https://skovtunenko.github.io/skillflow/",
"repository": "https://github.com/skovtunenko/skillflow",
"license": "MIT",
"skills": "./skillflow",
"interface": {
"displayName": "SkillFlow",
"shortDescription": "A language for the workflow of an agent skill.",
"developerName": "skovtunenko",
"category": "Productivity",
"websiteURL": "https://skovtunenko.github.io/skillflow/"
}
}
2 changes: 1 addition & 1 deletion skills/skillflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: skillflow
description: Describes a skill's workflow as a KDL flow file, checks and syncs the skill against it, and renders it as an HTML page. Use when the user says "skillflow", "skillflow help", "skillflow reverse", "skillflow author", "skillflow check", "skillflow sync", "skillflow explain", or "skillflow review", when the user pastes a review that a flow page exported, or after a change to a skill whose folder has a flow file (flow.kdl or a .kdl file named after the skill).
metadata:
version: "2026.11.30.1"
version: "2026.12.01.1"
---

# SkillFlow
Expand Down
2 changes: 1 addition & 1 deletion skills/skillflow/flow.kdl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
skillflow 1.0 skill-version="2026.11.30.1" skillflow-version="2026.11.30.1"
skillflow 1.0 skill-version="2026.12.01.1" skillflow-version="2026.12.01.1"

context {
input request "what the user asks for, possibly naming a mode, or a review that a flow page exported"
Expand Down