Skip to content
Open
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dist",
"!dist/voice",
"!dist/composio",
"spec",
"README.md",
"LICENSE"
],
Expand All @@ -43,7 +44,7 @@
"build": "tsc",
"dev": "tsc --watch",
"start": "node dist/index.js",
"test": "node --test test/*.test.ts --experimental-strip-types"
"test": "node --experimental-strip-types --experimental-loader=./test/ts-resolve-hook.mjs --no-warnings --test test/*.test.ts"
},
"engines": {
"node": ">=20"
Expand Down
69 changes: 69 additions & 0 deletions spec/schemas/workflow.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://gitagent.dev/spec/workflow.schema.json",
"title": "Gitagent SkillFlow Workflow",
"description": "A SkillFlow workflow: a named sequence of steps, where each step invokes a skill with a prompt. Runtime semantics are defined by src/workflows.ts.",
"type": "object",
"additionalProperties": false,
"required": ["name", "description", "steps"],
"properties": {
"name": {
"type": "string",
"description": "Kebab-case identifier for the workflow. Used as the file name.",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
},
"description": {
"type": "string",
"description": "One-line description of what the workflow does.",
"minLength": 1
},
"steps": {
"type": "array",
"description": "Ordered list of steps. Steps execute top-to-bottom.",
"minItems": 1,
"items": { "$ref": "#/definitions/step" }
}
},
"definitions": {
"step": {
"type": "object",
"additionalProperties": false,
"required": ["skill", "prompt"],
"properties": {
"id": {
"type": "string",
"description": "Optional snake_case identifier for the step. Used when other steps reference this one via depends_on.",
"pattern": "^[a-z0-9]+(_[a-z0-9]+)*$"
},
"skill": {
"type": "string",
"description": "Name of an installed skill (kebab-case) the step will invoke. Must match an entry in the agent's skills/ directory, or 'approval' for a human-review step.",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
},
"prompt": {
"type": "string",
"description": "The natural-language instruction passed to the skill for this step.",
"minLength": 1
},
"channel": {
"type": "string",
"description": "Optional channel/destination for the step output (e.g. a Slack channel name).",
"minLength": 1
},
"depends_on": {
"type": "array",
"description": "Optional list of step ids that must complete before this step runs.",
"items": {
"type": "string",
"pattern": "^[a-z0-9]+(_[a-z0-9]+)*$"
},
"uniqueItems": true
},
"requires_approval": {
"type": "boolean",
"description": "If true, the workflow pauses for human approval before this step runs."
}
}
}
}
}
Loading