build-on-vibekit
Skill27 starsChanged 3 months agoMITView on GitHub
Extend VibeKit from its source workspace. Use when defining VibeKit tools, building a ToolPlugin package, composing a deployment, or exposing a custom deployment through stdio or HTTP MCP. Covers the current packages/vibekit/examples and packages/vibekit/src/plugins/* patterns. Do not use for routine CLI or on-chain operations inside a VibeKit-initialized project.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-algorandSkill
- build-on-algorandSkill
- marketing-contentSkill
- update-skillSkill
- use-vibekitSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Before changing structure, read the repository AGENTS.md and docs/CONSTITUTION.md.
- Very specific: line 56
Every host must execute tools through executeToolCall.
- Distinctive: line 60
Keep tool results structured.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build on VibeKit
VibeKit exposes one ToolDefinition contract through every host. Extend that
contract, compose tools and plugins into a deployment, then select a host. Do
not create a parallel handler or execution path.
The toolkit surface
Beyond tools and plugins, @initlabs/vibekit ships the pieces the web agent is
built from — reach for these before writing your own: @initlabs/vibekit/agent
(createAgent, createAgentHandler: a turn over HTTP as NDJSON), /actions
(the draft → approve → sign → confirm machine, createWalletSignDraft), /pay
(createPaywall: x402 → credit → charge(request)), /rest
(createRestHandler: POST /tools/<tool>), and vibekit add <component>
(copy-paste React whose props are a tool's output type). Runnable examples:
packages/vibekit/examples/{agent-http,rest,signer,stdio,http}.ts and
packages/vibekit/examples/action.ts.
Current distribution boundary
Everything ships as one package, @initlabs/vibekit, with subpath exports
(. is the core contract; ./tools, ./preset, ./mcp, ./agent,
./signer-keystore, ./plugins/<name>). Build against this monorepo using
its workspace:* dependency. Do not invent install, publish, or versioning
instructions for external consumers.
Before changing structure, read the repository AGENTS.md and
docs/CONSTITUTION.md. Ask before adding a dependency, package, app, registry, or
extension point.
Choose the guide
| Task | Guide |
| Select tools and plugins, configure networks or signing, and expose a custom stdio or HTTP MCP | Custom MCP deployment |
| Define tools, integrate an external service, and package them as a reusable plugin | Plugin authoring |
Load only the guide needed for the current task. A custom MCP may consume an existing plugin; plugin work does not require changing a host.
Non-negotiable contracts
- Define every tool with
defineTool()and give every parameter a Zod schema and useful.describe()text. - Tool handlers receive all runtime state through
ToolContext. Do not keep module-level mutable state or mutate the context. - Throw
ToolErrorwith a stable code for expected failures. Never return an{ error }result from a handler. - Describe the post-
jsonSafewire shape inoutput: bigint values become numbers or decimal strings and bytes become base64. - Every host must execute tools through
executeToolCall; use the existing MCP adapter rather than registering bespoke handlers. - Build writes through
packages/vibekit/src/core/compose/. Stop if a write requires a side path around that engine. - Keep tool results structured. Tools do not return JSX, HTML, or terminal markup.
- Land tests with code. Run the affected package tests and typecheck, then the
repository gate required by
AGENTS.md.
Source map
packages/vibekit/src/core/contract.ts—ToolDefinition,ToolContext, andToolPluginpackages/vibekit/src/core/deployment.ts— registry validation, network contexts, andexecuteToolCallpackages/vibekit/src/mcp/— the generic ToolDefinition-to-MCP adapterpackages/vibekit/src/preset/— the stock mix (default tools, default plugins, keystore tools, NETWORK env convention) the stock hosts compose frompackages/vibekit/examples/— the reference stdio and HTTP deployments, typechecked with the packagepackages/vibekit/src/plugins/nfd/and.../pera/— service-backed plugin examples with output schemas, network guards, and tests
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

