一键导入
start-dev-server
Start Clarinet devnet and frontend development servers. Use when the user wants to run their Stacks project locally for testing and development.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Start Clarinet devnet and frontend development servers. Use when the user wants to run their Stacks project locally for testing and development.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates Clarity smart contracts for Stacks blockchain. Use when writing Clarity contract code, implementing SIP009 NFTs, SIP010 fungible tokens, defining traits, or working with Clarinet for testing and deployment. Don't use for Solidity, Rust, or general blockchain development outside Stacks.
Guide deployment of Clarity contracts to testnet or mainnet with pre-flight checks and safety prompts. Use when the user wants to deploy contracts to a live network.
Display Stacks plugin capabilities, available commands, and example prompts. Use when user runs /stacks:help or asks about plugin features.
Run Clarity contract tests and diagnose common errors. Use when the user wants to run tests, check coverage, or debug test failures in a Stacks/Clarinet project.
Builds full-stack decentralized applications on Stacks L2 for Bitcoin. Use when developing dApps, integrating sBTC, connecting wallets (Leather, Xverse), deploying smart contracts, building with Clarity, or interacting with Stacks APIs. Don't use for Ethereum, Solana, or non-Bitcoin layer 2 development.
| name | start-dev-server |
| description | Start Clarinet devnet and frontend development servers. Use when the user wants to run their Stacks project locally for testing and development. |
| license | MIT |
| metadata | {"author":"Stacks Skills Contributors","version":"1.0.0"} |
| allowed-tools | ["Read","Bash","Glob","Grep","AskUserQuestion"] |
This skill starts the local development environment for Stacks projects, including the Clarinet devnet (local blockchain) and the frontend development server.
/stacks:init when user wants to start developmentDocker Check:
docker info > /dev/null 2>&1 && echo "Docker is running" || echo "Docker is NOT running"
If Docker is not running, tell the user: "Clarinet devnet requires Docker to run. Please start Docker Desktop and try again."
Project Check:
Verify Clarinet.toml exists in the project root. If not:
"This doesn't appear to be a Clarinet project. Would you like me to create one with clarinet new?"
Ask the user: "How would you like me to run the dev servers?
Which do you prefer?"
If background tasks:
clarinet devnet start --no-dashboard
Run this in background mode. Monitor the output for:
If external terminal: Tell the user: "In a new terminal window, run:
clarinet devnet start --no-dashboard
Keep this terminal open during development. Let me know when you see the node is ready."
Wait for devnet to be ready, then verify:
curl -s http://localhost:20443/v2/info | head -c 200
If successful, you should see JSON with stacks_tip_height and other node info.
If it fails after 60 seconds, suggest:
clarinet devnet stop then clarinet devnet startDetect package manager and dev script:
Check for package.json:
cat package.json 2>/dev/null | grep -A 20 '"scripts"'
Detect package manager by checking for lock files:
pnpm-lock.yaml → use pnpmyarn.lock → use yarnbun.lockb → use bunpackage-lock.json or default → use npmDetect dev script (in order of preference):
dev script → {pm} run devstart script → {pm} run startserve script → {pm} run serveIf frontend detected:
For background tasks:
npm run dev # or appropriate command
Run in background mode.
For external terminal: "In another terminal window, run:
npm run dev
This will start your frontend dev server."
If no frontend detected: "I didn't find a frontend dev script in package.json. If you have a frontend, let me know the command to start it."
Common frontend ports to check:
http://localhost:5173http://localhost:3000http://localhost:3000curl -s -o /dev/null -w "%{http_code}" http://localhost:5173 || curl -s -o /dev/null -w "%{http_code}" http://localhost:3000
This step is critical for effective development and debugging. Without browser console access, Claude cannot see client-side errors, warnings, or React issues that occur in the browser.
Use the AskUserQuestion tool to ask the user which method they'd like to use for giving Claude visibility into the browser console:
| Option | Description |
|---|---|
| Chrome DevTools MCP (Recommended) | Use the mcp__plugin_stacks_chrome-devtools tool bundled with this plugin. Open Chrome DevTools in your browser and Claude gains visibility into console logs, network requests, and runtime errors. |
| Built-in Browser | Use Claude Code's built-in browser connection (check status with /browser command) |
| Manual | User will manually copy/paste console output when needed |
If the user selects Chrome DevTools MCP:
plugin.json)If the user selects Manual:
Provide a summary: "Development environment is ready!
Services running:
Useful commands:
clarinet devnet stopnpm run testclarinet checkclarinet consoleTips:
clarinet console for interactive contract testing"contracts/ directory are automatically deployed to devnet.devnet/ between sessions