The crate and library names are both yieldskill. The installed command is
yskill.
Create a workflow
1. Install Yield
Yield supports Rust on macOS, Linux, and Windows. Install the public crate:
The crate contains the matching yskill runtime for your platform. You do not
need Go, Node.js, or a separate CLI download.
2. Create the workflow
Create a Rust workflow inside your repository:
Replace skills/data-migration/src/main.rs with this tested workflow:
use json;
use ;
The generated Cargo.toml pins the public yieldskill crate to the installed
CLI version. The generated skill.json runs the named Rust binary.
3. Test the workflow
Use deterministic fixture responses during tests. Save this as
skills/data-migration/fixtures/responses.json:
Then test the workflow:
Yield runs commands for real and supplies agent and user responses from the
fixture. A successful test reaches completed without leaving a run journal.
4. Register the skill
Registration lets installed coding agents discover the workflow:
Select the verified agents explicitly when you do not want automatic detection:
The generated adapters point back to skills/data-migration. They do not copy
the workflow or install its dependencies again.
5. Run the skill
Start a new coding-agent session so it discovers the registered skill. Where slash skills are supported, run:
/data-migration
Otherwise, ask the agent in plain language:
Use the data-migration skill to apply this migration safely.
The agent follows the adapter, starts the canonical Rust workflow, and asks for each required agent or user response.
How Yield runs and resumes
- Your Rust function emits one typed operation.
- Yield records the request and exits. It does not run a daemon.
- The coding agent, user, or CLI supplies the result.
- Yield replays the function from its journal until it reaches the next operation.
Replay must produce the same operation sequence. Yield reports divergence instead of giving a recorded response to a different operation.
Where AgentTask fits
ctx.agent_task() delegates one bounded judgment to the coding agent. Pass
important evidence explicitly, as this workflow passes its dry-run output.
With its schema, Yield checks the returned JSON shape before the workflow
continues; it does not prove the summary is correct. Host workspace and
conversation access are host-dependent.
| Rust primitive | Purpose |
|---|---|
ctx.run_command() |
Execute a command and record its exit code and output. |
ctx.agent_task() |
Delegate one bounded judgment; an optional schema validates the result. |
ctx.ask_user() |
Request an explicit human decision. |
ctx.require() |
Bind a required claim to recorded evidence. |
ctx.blocked() / ctx.refused() |
Stop honestly when work cannot or must not continue. |
See the primitive guides and CLI reference for the complete contract.
Guarantees and limits
Yield provides deterministic control flow, typed requests and responses, persistent run state, replay with divergence detection, stale and duplicate response rejection, and evidence-bound completion.
Schema validity is not truth. Yield cannot prove that a coding agent performed
only the requested work. run_command is different: the Yield CLI executes the
command, so its recorded exit code and output are observed facts.
Programs must remain deterministic between operations. Do not read clocks, random values, environment variables, or changing files to choose the next operation. Cross those boundaries through a Yield operation instead.
Yield is not a daemon, hosted runtime, workflow DSL, marketplace, coding-agent loop, multi-agent orchestrator, or security sandbox.
Optional developer helper
Installing yieldskill does not create skills or coding-agent adapters. After
learning the manual workflow above, install guided assistance explicitly:
Review the plan and restart the coding agent after installation. The helper
can teach, create, convert, check, repair, upgrade, and register workflows.
yskill bootstrap remains a compatibility alias.
Coding agents and source
Cursor, Codex, and Claude Code are verified integrations. Yield also provides registry-backed project paths for other coding agents; those paths are not presented as end-to-end verified.
- Read the documentation
- Explore tested examples
- View the Rust source
- Read the API documentation
- Report an issue
Yield is available under the MIT license.