.substrate/ directory. This guide walks you through building from source, linking the binary to your PATH, and installing the agent skill.
Requirements
- Node.js 20 or later
- macOS or Linux (primary support; Windows is best-effort — WSL is recommended on Windows)
- A package manager:
pnpmis used for the build steps below
Substrate v0.7.0 is a pre-release and is not yet published to npm. Once it is, you will be able to run it directly with
npx @diegoferreyra/substrate <command> without any installation steps.Install from source
1
Clone and build
Clone the repository and build the binary from source.
2
Link the binary globally
Add After this step, the
substrate to your PATH by creating a global link.substrate command is available in any directory. When Substrate reaches npm, the equivalent will be npx @diegoferreyra/substrate <command>.3
Install the agent skill
Copy the packaged agent skill into Claude’s skills directory.This writes to
~/.claude/skills/substrate and stamps the skill with the binary’s current version. The skill teaches your agent conventions like calling whoami first, using optimistic concurrency, and reading the policy envelope — so you do not have to restate those instructions every session. See MCP setup for details.Verify the installation
Run the help command to confirmsubstrate is on your PATH and check the reported version:
Substrate v0.7.0 — …. There is no separate --version flag in v0.7.0.
Inside any project that already has a .substrate/ directory, you can run a deeper health check:
Next steps
Quickstart
Initialize a board in your project and start the local inspector.
Upgrading
Pull the latest source, rebuild, and re-link to upgrade an existing install.