Reference

Spark, skill and workflow files

The formats of a Spark's folder, a skill's SKILL.md and a workflow file, and how an agent reads and proposes changes to them.

All pages

A Spark's instructions, skills and scripts are files in its folder, and a workflow is one JSON file. You edit them on the Sparks page; an agent reads them with spark_crew and proposes changes with spark_crew_edit.

A Spark's folder

Path Holds
SPARK.md The Spark's instructions, as plain Markdown. No length limit.
skills/<name>/SKILL.md One skill: a name, a description and what to do.
skills/<name>/<file> Scripts and notes the skill uses.
Any other file Notes the instructions point to.
Limit Value
Files 200 per Spark, each plain text up to 256 KB
A path Up to 200 characters and 6 folders deep, with forward slashes
A name Letters, numbers, dots, hyphens and underscores; starts with a letter or number

SKILL.md

---
name: release-notes
description: Write release notes from merged pull requests.
---

List the pull requests merged since the last tag, then group them.
Field Rule
name The folder's name: 2 to 40 lower-case letters, numbers and hyphens, starting with a letter
description One line, up to 300 characters. The Spark sees it and reads the file when a job needs it

A skill folder without a valid SKILL.md is not offered to the Spark.

A workflow file

{
  "id": "nightly-review",
  "name": "Nightly review",
  "steps": [
    { "id": "look", "sparkId": "<Spark id>" },
    { "id": "write", "sparkId": "<Spark id>", "dependsOn": ["look"], "prompt": "Summarise it." }
  ]
}
Field Rule
id The file's name, in the same form as a skill name
name Up to 60 characters
steps 1 to 100, each with an id and a sparkId or a workflowId
prompt Optional extra words for the step, up to 4,000 characters
dependsOn Steps this one runs after. Steps with none start together. No step waits on itself
join all (default) waits for every parent; any starts after the first
onFailure stop (default) stops the workflow; continue lets later steps run

See Use a workflow as a step.

What an agent can do

Tool Does Asks
spark_crew Lists Sparks with skills, workflows and waiting drafts; reads a Spark's file list, one file or one workflow Never
spark_workflow Runs a workflow in a new chat, stops a run, sets or turns off its schedule, sets its triggers Follows the agent's mode
spark_crew_edit New, changed or deleted files for one Spark, or a new, changed or deleted workflow; withdraws its drafts Follows the agent's mode, with each file before and after

In spark_workflow, triggers takes chatStarted, turnChanged, beforePublish, holdOnFindings, commit, branchGlob, pullRequest, debounceMinutes and edits; fields you leave out keep their value.

In spark_crew_edit, a step may name its Spark with spark or another workflow's id with workflow, text: null deletes a file, remove deletes a skill folder or a workflow, and removeFolder deletes every file under any folder of the Spark.

withdraw (draft ids, or ["all"]) closes the chat's own waiting drafts. Workflow names are unique.

A folder appears when a file is written inside it and goes when its last file is deleted. To move or rename a file, delete the old path and write the new one in the same call.

A change with a problem goes back to the agent and is never shown to you.

In the chat a card waits as one line with Details, Deny and Allow; Details opens it in a window.

The card is titled Change the name Spark? or workflow?. Only you answer it, with Allow or Deny, on the Mac or a device you allow. If a file changed after the card appeared, nothing is written.

Agents get these tools in a chat turn you typed on the Mac; Ask Spark only reads. See protected paths.