npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-mcp-workflow

v0.3.0

Published

Structured workflow orchestration for AI agents via finite-state machines

Readme

A Claude Code plugin that drives agents through YAML-defined state machines. The engine tracks the state, enforces the guards and hands the agent one prompt at a time; a web dashboard shows everything that runs.

Why

  • Agents lose their step. A long task drifts, a context is compacted, Claude Code restarts. The engine keeps the state, so the agent always gets the next prompt, not a guess.
  • Parallel builds choke the machine. Four agents start a build each and the laptop stops answering. A machine-wide thread pool makes them queue.
  • No picture of what runs. Sessions, branches and reviews are in flight and the only view is scrollback. A live map and a plan pane show them.

Features

  • State machines in YAML — states, transitions, prompts, nested sub-workflows (Workflow YAML)
  • Action states — exec runs a command, fetch an HTTP request, routed by exit code (Action states)
  • Thread pool — heavy builds and tests, agents' own included, share one machine-wide budget (Thread pool)
  • Task queue — a picker, a cheap driver per task, model by difficulty, lessons filed by script (Queue)
  • Subagents — driver, experimental dispatcher (off unless WF_DISPATCHER), recon, reviewer (Agent types)
  • 21 bundled workflows, 29 bundled skills (14 by default, 15 on request) (Concepts)
  • Survives a restart — sessions are suspended, not lost; claude --resume continues them (Restart)
  • Live dashboard — map, plan pane (in your terminal's theme), status line, light or dark (Dashboard)

Install

Prerequisites: Claude Code, Node.js 22 or newer, and jq on your PATH (brew install jq, apt install jq). The session hooks read their input with jq; without it the start hook prints a one-line notice and skips the plan resume, the resume pickup and the conversation stamp.

/plugin marketplace add AxGord/claude-workflow
/plugin install workflow@claude-workflow

This repository as a marketplace gives the latest release, built: the plugin comes from the repository's release branch, which holds master plus the compiled build/. A development checkout is not that tree: build it yourself (details below). The claude-community catalog (anthropics/claude-plugins-community) may serve an older version (its entry is pinned to 0.1.11, which has no build/, so the server does not start): do not install from it until its pin is bumped.

To remove it, run wf-skills remove first (it deletes the unedited skill copies the plugin put in ~/.claude/skills and the staging directories of an interrupted update; your edited copies and learned-* skills stay), then /plugin uninstall workflow. Concepts lists what stays.

Two ways to use it. One task: with the CLAUDE.md snippet every conversation starts the master workflow, which picks a bundled one (bug-fix, coding, new-feature, ...) and hands the agent one prompt at a time; a named one starts with start({ workflow: "bug-fix" }) or by asking. A queue: for many tasks, a queue file plus the batch workflow runs one task workflow per line, several at once, each under a driver agent. A workflow of your own comes from asking the agent (it loads the bundled wf-yaml-authoring skill) or from writing the YAML by hand. Step by step: Getting started, which also covers the other install channels (this repository, npm, a local checkout, manual) and the CLAUDE.md snippet.

Quick start

Save this as .claude/workflows/ship.yaml in your project:

name: ship
description: "Plan, do, test, finish"
initial: plan

states:
  plan:
    prompt: "List the steps for the task in two lines."
    transitions:
      go: do

  do:
    prompt: "Do the steps, then report what changed."
    transitions:
      done: test

  test:
    type: exec
    command: "npm test"
    on_success: finish
    on_error: do

  finish:
    terminal: true
    outcome: complete

Ask the agent to run it. It calls start with workflow: "ship" and gets the prompt of plan; each transition call returns the next prompt. The test state runs by itself and routes on the exit code: a failure goes back to do. Open http://localhost:3100 to watch the session and its graph.

Documentation

The full documentation is the site https://axgord.github.io/claude-workflow/ (sources in docs/).

| Page | Covers | |------|--------| | Getting started | Install channels, the wf-* commands (wf-validate checks that a project's workflow files load), the CLAUDE.md snippet, one task or a queue, your own workflow, permissions, trusting a project's exec states (Claude Code's folder trust, wf-trust as the fallback; what consent does and does not protect against, and the guarded writes of the trust record and the global workflows directory) | | Concepts | How it works, bundled workflows and skills, MCP tools | | Use case: anyparse | A real project on the engine: a queue line's way by its difficulty, with the project's own numbers | | Workflow YAML | The file format, three-tier loading, extends: | | Action states | exec, fetch, routing, fan-out, guards, restart | | Thread pool | Why parallel agents queue: leases, budget, priority, wf-run | | Task queue and dispatch | queue_next, wf-queue, the model table, drivers, agent types | | Dashboard and plan pane | The plan pane, the live map, the status line | | FAQ | Troubleshooting | | Development | Commands, source layout, the site, the replay, the banner |

Contributing

Build, test and source layout: Development. Run npm run check before a commit.

License

MIT