/agent-core:fused-projectsfrom agent-core
Guides an agent through the Fused project lifecycle: decompose tasks into UDFs, author specs and code, validate, commit, run locally, and deploy via preview to release using the `fused` CLI.
Ships in agent-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part of the Fused skill set — don't work from it alone. Load
fused-executefor how code runs andfused-verifyfor scanning and tests. Seefused-guidefor the full set.
Fused organises work as workspace ⊃ project ⊃ UDF. You — the driving agent — author the specs and the code; Fused supplies the scaffold, the deterministic validators, a spec↔code consistency hook, and the run/deploy machinery. There is no code-generation command and no API key in the loop: authoring code is your job.
Every step goes through the fused CLI (there are no MCP tools). User projects live
in the default workspace at ~/.openfused/workspaces/default/<project>/.
The full loop:
user request
→ pick an environment (local-first for dev)
→ decompose into projects + UDFs
→ write spec.md per UDF → user approves SPECS (never code)
→ author main.py yourself
→ fused code verify → git commit (the pairing hook keeps spec+code in sync)
→ fused code run / code test locally
→ deploy to preview → promote to release (AWS)
The spec is the only artifact the user reviews.
| Step | Command |
|---|---|
| Create/select an env | fused env create / fused env list / fused env show |
| Create a project | fused project new (or project create) |
| Write spec.md / author code | you write the files (no command) |
| Validate code | fused code verify |
| Commit (spec+code together) | git commit — the pre-commit hook enforces pairing |
| Inspect a project | fused project show (context packet) / fused project list |
| Run / test code | fused code run / fused code test |
| Deploy / promote / roll back / retire | `fused project deploy |
| Deploy status | fused project status |
You do not need a cloud account to build and run. For development, use the local backend (code runs in a project venv on the host):
fused env create dev --backend local
AWS is the production target (deploys UDFs to stable URLs); set it up later via
the fused-setup skill. Resolution: if more than one env exists,
nothing is auto-selected — pin the project (fused project set <project> --env dev) or pass --env/OPENFUSED_ENV. Verify with fused project show
(environment.resolved_env).
An unpinned project with multiple envs makes
code runand other commands fail to resolve an environment. Pin early.
Decide the UDFs. Each UDF is a folder scripts/<name>/ with a main.py
entrypoint and a spec.md contract. It does one computation/API call and returns a
value (often a DataFrame).
Each UDF is one independent capability — lean small. Slugs:
^[a-z][a-z0-9]*([-_][a-z0-9]+)*$, ≤64 chars — - and _ are both accepted as
segment separators, so snake_case names like list_comments are valid
(e.g. sessions, dashboard, list_comments). Names starting with _ are not
valid slugs.
fused project new taxi-pipeline
Scaffolds openfused.toml, SKILL.md, and the scripts/ references/ assets/
convention dirs (with scripts/pyproject.toml and scripts/tests/); on first use it
initialises the default workspace as a git repo with the openfused-managed
pre-commit hook.
It also seeds scripts/.venv (runs uv sync against the scaffolded
pyproject.toml, which has an empty dependency list) so the first local
code run starts fast. Seeding is best-effort — if uv is missing or uv sync
fails, the project is still created and project new prints a warning on stderr.
Add the packages your UDFs import before the run step. Use project add-dep,
which runs uv add + uv sync in one step so the venv is never left stale:
fused project add-dep taxi-pipeline duckdb pandas # UDF runtime deps
fused project add-dep taxi-pipeline pytest coverage --dev # only if you'll run `code test`
(Equivalent manual form: cd …/taxi-pipeline/scripts && uv add … && uv sync. A
stale venv left by a bare uv add is auto-reconciled on the next local
code run/code test unless OPENFUSED_NO_VENV_SYNC is set.)
project new <name>is the simple scaffold.project create <name>is the same scaffold plus--description/--env(pin the env in one shot). Preferproject newfor the plain case.
Make the project's SKILL.md a real contract. It is the project's agent-facing
description (surfaced as contract by project show): what the project does, its
UDFs and their parameters, and how to run them. Replace the scaffold's placeholder
text.
For each UDF, write scripts/<name>/spec.md yourself (create the folder if
needed). Fused does not draft specs — you do:
# taxi-analysis
Joins NYC taxi trips to zone boundaries and returns mean fare per zone.
## Inputs
- `bucket` (str), `prefix` (str)
## Output
DataFrame: `zone_id`, `zone_name`, `mean_fare`, `trip_count`
## Notes
- Use DuckDB for the join; filter zones with < 10 trips.
Specs are free-form markdown; the more precise, the better the code.
Stop and get the user to review the specs before writing code. Present each
spec (the full spec.md, or a diff against the previously approved version on a
revision round) and ask for approval or requested changes. On approval → author the
code (Step 5). On requested changes → edit the specs and ask again; loop until
approved. Summarise if multiple UDFs are pending.
Write main.py into each UDF folder to satisfy its spec. You are the codegen —
there is no generate command. Iterate by editing the spec and the code together
(keep them consistent — Step 6's hook enforces it).
import fused
@fused.udf
def main(threshold: int = 0):
...
return df # a DataFrame, or a scalar
@fused.udf entrypoint (takes params; portable; works as a fan-out
worker and a served route). A bare top-level result = <value> is fine for a
quick no-param script. Never both in one file.assets/, use openfused.asset_path(...)
rather than a hard-coded path.Validate the code through the deterministic scanners (see fused-verify), then commit the spec+entrypoint together:
cd ~/.openfused/workspaces/default/taxi-pipeline
fused code verify scripts/taxi-analysis/main.py --project taxi-pipeline
git -C ~/.openfused/workspaces/default add taxi-pipeline/scripts/taxi-analysis/
git -C ~/.openfused/workspaces/default commit -m "taxi-analysis: spec + impl"
The pre-commit hook blocks one-sided commits — a spec.md without its
main.py, or vice versa — so every committed state is internally consistent.
git commit --no-verify is the escape hatch for a genuine one-sided change (e.g.
fixing spec prose with no code change).
UDFs are discovered by directory listing (scripts/<name>/ containing
main.py), so a freshly authored UDF is already visible to run and deploy — you do
not need to register it. A folder with only a main.json (or any other file) is
not a UDF; main.json is just a file. fused project show reports the UDFs it
finds (udf_scripts) but does not rewrite the manifest's [udfs.*] table.
Manifest repair. If
openfused.tomlstill carries akind = "json"UDF entry from an older layout, reading the manifest fails validation (andfused doctorreportsmanifest-unreadable).fused project migrate <name>rebuilds the[udfs.*]table from disk and fixes it.
archive/— soft-deleted artifacts, never enumerated. A project may carry a top-levelarchive/directory that mirrors the layout (archive/scripts/<udf>/,archive/references/<name>.md, …). It holds artifacts a human archived in an app — a reversible soft-delete. Discovery is a shallow, by-name scan of the live dirs, so archived artifacts are invisible toproject show,pipeline graph, and deploy; deploying an archived UDF is simply "not found".archive/is git-tracked, but it is not yours to author into: never write into it, treat it as a UDF source, or "restore" by hand-moving files.
work-products.json— app-owned, read-only to you. A project managed by an app may carry awork-products.jsonat the project root (git-tracked) recording each artifact's status and provenance. The app is its single writer — never hand-author, edit, or commit a change to it. ThefusedCLI has no command that writes it. Editing a file leaves its recordedversionstale; that is expected.
Hard-delete a whole project:
fused project delete <name>. Distinct fromarchive/, this removes the project from the workspace:git rm -rf -- <name>+ a--no-verifycommit, then cleans gitignored residue (scripts/.venv,__pycache__). It prints JSON{name, deleted, root}.
Local backend needs the project venv to have your UDFs' imports (Step 2). If a UDF you just wrote imports something new, add it first:
fused project add-dep taxi-pipeline <new-dep>
Run a UDF:
fused code run scripts/taxi-analysis/main.py --project taxi-pipeline
Test it (code test requires --project or --project-dir on the local
backend, and pytest + coverage as dev deps):
fused code test scripts/taxi-analysis/main.py --test-file scripts/tests/test_taxi.py \
--project taxi-pipeline
Note that code run caches results for 1 h (see fused-execute): re-running
unchanged code within the hour returns the previous result.
To try a UDF as a local HTTP endpoint, fused code serve scripts/ --port 8000
serves every scripts/<name>/main.py at /<name> (see fused-cli).
Prerequisites (AWS only): an AWS env with cache_bucket, resolved for this project,
and a provisioned serving plane (fused infra serve). Verify the resolved env first
(fused project show → environment.resolved_env).
fused project deploy taxi-pipeline # all UDFs → preview
fused udf deploy taxi-analysis --project taxi-pipeline
Each UDF deploys to an HTTP route. The response echoes env: <name> and a preview
URL per UDF — verify the env matches your intent. Deploy always targets
preview; release moves only via promote/rollback.
fused project promote taxi-pipeline
fused udf promote taxi-analysis --project taxi-pipeline
Repoints release to whatever commit preview runs; the release URL is stable from
first promote. Roll back with fused udf rollback … [--to <commit>] (only prior
release commits are valid targets). Check the live state with
fused project status taxi-pipeline.
Behaviour wrong? Edit spec.md and the code together (both under
scripts/<name>/), re-run fused code verify, re-run, and commit (the hook keeps the
pair consistent). There is no regenerate command — you re-author the changed UDFs.
The user reviews specs, not code. Author code only after spec approval. Keep
spec.md and main.py consistent — the pre-commit hook enforces it on commit.
Every deploy/promote/rollback echoes env: <name>. If it is wrong, pin
(fused project set <project> --env <name>) or override (--env /
OPENFUSED_ENV). With a single env it auto-selects; with several you must pin.
The two-channel model exists so code passes through preview before release.
udf deploy --channel release is only for bootstrapping the very first release
URL.
fused udf retire <udf> --project <p> --yes revokes both channel mounts and drops
the UDF from the cloud snapshot (the on-disk folder stays). It is destructive —
confirm with the user first. A UDF present in the cloud snapshot but absent on disk
shows as orphaned in project status.
There is no CLI command that lists every deployed UDF in an environment. Use
fused project status <project> per project, or fused share list for the mounts.
code run patterns (libraries, S3, secrets, caching).code verify, code test, audit log.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
8 skills in this plugin
/fused-cliReference for the fused CLI — environment management, file storage, secrets, code execution, and infrastructure commands. Use when writing or explaining shell commands that invoke `fused`, or when helping users set up, switch between, or provision environments. If the commands are part of building or running a project, load `fused-projects` first for the end-to-end model./fused-executeBest practices for running code with `fused code run`. Use when writing or reviewing code you will execute through the fused CLI — covers how to structure user code, choose a data library, handle results, write outputs to the file store, pick a project venv, fan out, and what caching `code run` applies. For static scanning, spec checks, and testing see fused-verify. If this is part of building or running a project, load `fused-projects` first for the end-to-end model./fused-guideEntry-point router for the Fused skills in this repo. Use when a user asks how to get started with, set up, or install Fused, how to build a project or UDF, how to run or validate code with the `fused` CLI, or is unsure which Fused skill to load. Maps a goal to the specific skill(s) to read next./fused-infraReference for the infrastructure managed by fused — what resources exist, why each one is needed, and when they are created, updated, or deleted. Covers the AWS backend (IAM, Lambda, ECR, S3) and the local backend (data directories + venvs, see "Local backend infra"). Use when helping users understand, provision, or troubleshoot the resources that back an fused environment./fused-setupStep-by-step guide for installing and setting up fused for the first time, including AWS credential checks, detecting an existing installation, provisioning infrastructure, and verifying the setup. Use when a user asks how to install, configure, or get started with openfused./fused-storageThe fused storage and secrets CLI commands — inspecting cloud-native datasets and managing secrets. Use when finding/listing/counting S3 objects, reading a Parquet/Arrow/CSV schema, minting a download URL, uploading content, or storing/reading/deleting secrets, via `fused files list|count|get|schema|upload` and `fused secrets put|get|list|delete`. For running code over the data see fused-execute; for the full flag reference see fused-cli. If this is a step in building or running a project, load `fused-projects` first for the end-to-end model.npx claudepluginhub fusedio/skills --plugin agent-core