/ai-devkit:cmk:sui-devstackfrom ai-devkit
Sets up and manages a local Sui network via Devstack for development and testing. Handles worktree-safe instance selection, port brokering, account funding, Move package publication, and optional Walrus blob storage.
Ships in ai-devkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Devstack (@mysten-incubation/devstack) is Mysten's tool for materializing a
local Sui network from a declarative TypeScript config. This skill teaches
the worktree-safe selection layer cmk:local-stack prescribes on top of it —
Devstack itself is the external tool; its own CLI and plugin API are covered
by Devstack's own docs and README, not repeated here.
A devstack.config.ts declares a topology and Devstack materializes it:
mode: "local", optionally a pinned or custom image);A port broker assigns each instance's service ports internally; callers read
them back from Devstack's own context/manifest rather than hardcoding any.
For the plugin API (account, sui, walrus, localPackage, definePlugin),
the CLI (up, apply, wipe), and version-specific behavior, treat
Devstack's own documentation as authoritative — this skill covers only the
repo-side conventions layered on top.
Devstack's own naming is global by default (an app/stack pair), which is not
enough for several worktrees of the same repo to run instances side by side
without colliding. cmk:local-stack's (worktree, config, instance)
primitive fixes that for Devstack specifically:
<config>-<instance> becomes the Devstack stack name;.local/devstack/<config>/<instance>/,
with named children for state (state/) and the tool's home directory
(move-home/) — never a shared, ambient home.A selection helper should take exactly three inputs — config name, instance
name, absolute config path — validate that both names are lowercase-normalized
(safe for directory, container, and log use) and that the config path resolves
inside the current worktree, then export the identity-derived app name, the
stack name, the config path, and the instance's state/home paths together as
one contract. Whatever consumes those values (a test's global setup, a bridge
process) should re-validate the same invariants at boot rather than trusting
inherited environment blindly — stale values from a parent process are exactly
the failure this guards against. Setting up or debugging that selection
mechanism? Read references/instance-isolation.md.
There is no single shared Devstack config: each e2e subject, benchmark, or dev
topology owns its own devstack.config.ts beside its tests, declaring exactly
the services, accounts, and packages that subject needs. Authoring one? Read
references/config-authoring.md for account-funding hygiene, cross-process
key handling, local Move package staging, and the publish-on-drift guard
shape.
The selection helper never decides whether to share or isolate — that is
purely which instance name gets passed in. The same (config, instance) tuple
joins an already-running instance (the default: one instance normally serves
many tests); a different instance name selects a distinct one. A reuse flag on
the consuming side (e.g. for a second-language process joining a live chain)
signals "attach, don't boot or clean" — it does not change the naming
mechanism itself.
Never read or write a home-directory singleton (~/.sui, ~/.move or
equivalent) — every instance gets its own Move-home path. Never source or
reuse another worktree's state. Never wipe anything but the one explicitly
selected instance: no tool-level prune, no deleting the whole devstack/
state tree, no touching a sibling instance's paths. Run the repo's local-stack
init and coherence scripts first (see cmk:local-stack) so the worktree
identity feeding all of this is fresh before selecting an instance.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.