Skillscript: Deterministic Agent Workflows
I've been looking into Skillscript, which takes a completely different approach: treating the agent's instructions as a declarative, sandboxed program rather than just "suggestions" in a prompt.
Instead of the model interpreting a vague set of instructions, Skillscript acts as the program, and the LLM acts as the runtime. This is a massive shift for anyone trying to build local AI workflows.
Here is how the logic is structured. It uses named steps, variables, and conditions to call specific tools (like MCP connectors or shell commands) without letting the model wander off-track:
// Example of the declarative structure
step check_pipeline {
tool: mcp_connector_deploy
query: "Check for overnight failures"
}if (check_pipeline.status == "fail") {
tool: shell_command
command: "notify_admin --urgent"
}
The engineering benefits here are clear:
It is currently in a pre-1.0 state (v0.30), so expect some friction with the initial setup and grammar. However, for anyone building LLM agents where performance and reliability are the priority, this "program-first" workflow is much more robust than the standard "prompt-and-pray" method.
If you want to dig into the implementation:
https://github.com/sshwarts/skillscript
https://skillscript.ai
https://skillscript.mintlify.app/docsAll Replies (7)
timeit on some basic loops to see if the overhead is actually noticeab