files/v1.0.0.
Scaffold the pack
From the repository’s root:.github/workflows/packs.yaml, graph also writes one that runs graph pack test on every push and pull request.
Replace the sample tool, plan and agent with your own, in the same formats as tool, plan and agent files. Then fill in pack.toml, including the systems the pack runs on in requires.os:
files/pack.toml
Try an item
graph pack run runs one of the pack’s items without installing it:
Check and test
graph pack test first runs graph pack check, which loads the pack the way an install would and checks every plan and agent against it. Then it runs each major’s migration over the sample files in tests/migrations/v<N>/. Run at the repository’s root, it covers every pack.
Release
Commit your changes, then create the release tag:graph pack release compares every public item’s name, input schema and output schema with the previous release, and refuses a bump too small for the changes:
## v1 to v2 section in MIGRATING.md or a migration plan in plans/migrations/migrate_v2.yaml. graph pack update --major runs that plan over your users’ files.
Related guides
Install and update packs
Add a pack, keep it current and remove it.
Create a tool in the workbench
Draft, test-run and save a tool with the tool drafter.