explaingit

whale-agent-lab/flowscript

Analysis updated 2026-05-18

2PythonAudience · developerComplexity · 4/5Setup · moderate

TLDR

An experimental runtime that turns a Markdown-defined skill into a deterministic, inspectable workflow of LLM, validator, and Python script steps.

Mindmap

mindmap
  root((FlowScript))
    What it does
      Markdown to workflow
      Deterministic execution
      Replayable context log
    Node types
      LLM nodes
      Validator nodes
      Python script nodes
    Includes
      Skill generator
      CSV quality demo
    Audience
      AI agent developers
      Workflow builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn a Markdown-defined agent skill into a workflow with a fixed, auditable execution order.

USE CASE 2

Run the included CSV data-quality demo to see structured LLM, validator, and script nodes in action.

USE CASE 3

Replay a skill run's skill_agent_context.json to inspect exactly what the model and scripts did.

USE CASE 4

Build a bilingual skill package using the included skill generator for English or Chinese output.

What is it built with?

PythonPyYAML

How does it compare?

whale-agent-lab/flowscript0-bingwu-0/live-interpreter010zx00x1/faresnipe
Stars222
LanguagePythonPythonPython
Setup difficultymoderatemoderateeasy
Complexity4/52/52/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires Python 3.11+, PyYAML, and access to an OpenAI-compatible chat endpoint such as a local model server.

No license information is stated in the README.

In plain English

FlowScript Skill Runtime is an experimental tool for turning a skill written in plain Markdown into a workflow that runs in a fixed, predictable order rather than letting an AI model decide what to do next on its own. The idea is to keep a skill file readable by a person or by an ordinary AI agent, while also giving it an explicit, machine enforced set of steps written in a small workflow language stored in a file called FLOWSCRIPT.md. The runtime reads that workflow definition and executes a sequence of nodes: some call a language model, some run validator checks, and some run plain Python scripts. A component called the WorkflowEngine is solely responsible for deciding execution order, which script runs, and which branch is taken next, based on structured status files rather than anything the model says freely. This means the model is used for interpreting and structuring information, not for choosing what happens next in the process. Every important step and exchange gets recorded into a file called skill_agent_context.json, which is formatted like a normal AI conversation log and can be replayed or inspected afterward. Alongside the core runtime, the repository includes a skill generator and a demo skill that processes CSV style data, each provided in both English and Chinese versions. The demo generates synthetic records, filters and profiles them for data quality, groups them by employee or region, asks a model to interpret the results, validates that interpretation, and produces a Markdown report. To run it, you need Python 3.11 or newer, the PyYAML library, and access to an OpenAI compatible chat completions endpoint, which can be a locally hosted small model server. After creating a virtual environment and installing the package, a command line tool lets you run a skill either from a natural language request or from a structured JSON input file, with support for setting an API token and choosing English or Chinese output. Each run writes its own folder of artifacts, separating files the skill itself produces from files the runtime itself manages. The project describes itself explicitly as an experimental runtime for workflow and trace validation, not a production system or a security sandbox.

Copy-paste prompts

Prompt 1
Help me set up a Python virtual environment and install this runtime in editable mode using pip install -e minimal_flowscript_agent.
Prompt 2
Walk me through running the csv-quality-report-demo skill with a natural-language request against a local model endpoint.
Prompt 3
Explain how the WorkflowEngine decides which node runs next based on the FLOWSCRIPT.md DSL and structured status files.
Prompt 4
Show me the structure of a skill_agent_context.json file so I can parse its tool_calls and results.

Frequently asked questions

What is flowscript?

An experimental runtime that turns a Markdown-defined skill into a deterministic, inspectable workflow of LLM, validator, and Python script steps.

What language is flowscript written in?

Mainly Python. The stack also includes Python, PyYAML.

What license does flowscript use?

No license information is stated in the README.

How hard is flowscript to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is flowscript for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.