Documentation Index
Fetch the complete documentation index at: https://mintlify.com/modiqo/skillspec/llms.txt
Use this file to discover all available pages before exploring further.
skillspec decide evaluates the routing rules declared in a skill.spec.yml against a user task string and returns the full decision as JSON. It is the canonical way to determine which route a task should follow, which rules fired, what substitutions are forbidden, what elicitations are required, and what after-success closures were scheduled.
Run decide before act when you want the raw routing decision without the full OODA action checklist, or use it in scripts that need to branch on a selected route. If you want a human-readable explanation of the same decision, use skillspec explain instead.
Strip skill invocation prefixes from the user task before passing it as --input. The decision engine matches against the raw task intent, not the invocation form.
Synopsis
Options
| Flag | Type | Default | Description |
|---|---|---|---|
<path> | path | (required) | Path to a skill.spec.yml file. |
--input | string | (required) | User task text to route. Strip skill invocation prefixes before passing it. Hyphenated values are accepted. |
--trace-dir | directory path | (none) | Directory where append-only decision trace event files should be written. Creates a new timestamped run subdirectory containing events/, trace.jsonl, and summary.json. |
Examples
Evaluate a task without recording a trace:Output
decide always emits JSON. The top-level fields mirror the internal Decision struct:
| Field | Description |
|---|---|
input | The exact task string passed to the decision engine. |
route | The id of the selected route, or null if no route matched. |
route_selection | How the route was chosen: basis is rule_prefer, route_order_default, or default_route_order; rule_id identifies the winning rule when applicable. |
route_order | Ordered list of route ids evaluated during selection. |
matched_rules | List of rule ids that fired against the input, each with an optional reason. |
forbid | Substitution ids that are forbidden for the selected route. |
allow | Map of explicitly allowed substitutions and their parameters. |
elicit | Elicitation ids that must be answered before the route proceeds. |
after_success | Closure ids that are scheduled to run after the route succeeds. |
execution_plan.phases | Ordered list of execution phase stubs. Expand with act to get full phase detail. |
reason | Optional human-readable explanation for the routing outcome. |
--trace-dir is supplied, the command also prints the path of the written trace run directory before the JSON output.
Related
skillspec explain <path> --input <text>— same decision in human-readable prose; useful for debugging rule logic.skillspec act <path> --input <text>— expands the decision into a full OODA action checklist.skillspec plan <path> --input <text>— lists the execution phases in order without the full action checklist.