This skill should be used when executing shell commands, "running terminal commands", "starting a dev server", "running build or test commands", or any Bash tool invocation. Prevents blind retries and ensures proper error analysis before reattempting.
When executing any shell command, follow these rules to avoid wasting resources on blind retries and creating confusion.
Execute once -> Check the result -> Analyze the cause -> Then decide next steps
Never re-run the same command without confirming the result of the previous execution.
Before running a command, verify the current working directory is correct:
app/, packages/web/)nuxt dev requires the directory containing nuxt.config.ts)--cwd flags to avoid directory mistakesBad example:
# Running from project root, but nuxt.config.ts is in app/
npx nuxt dev --port 3333
Good example:
# Explicitly specify the correct directory
cd /project/app && npx nuxt dev --port 3333
# Or use the cwd flag
npx nuxt dev --cwd /project/app --port 3333
node_modules exist?)After every command execution, always confirm the result:
Correct flow for starting a background process:
# 1. Start
some-server > /tmp/server.log 2>&1 &
# 2. Wait for startup
sleep 3
# 3. Check logs to confirm success
cat /tmp/server.log
# 4. Or use a health check
curl -s -o /dev/null -w "%{http_code}" http://localhost:3333/
When a command fails, follow this order:
Prohibited behaviors:
--force or sudo to bypass errors without understanding the causeBefore starting a background process, check if an identical process is already running:
# Check if nuxt dev is already running
ps aux | grep "nuxt dev" | grep -v grep
# If so, stop it first then restart
pkill -f "nuxt dev --port 3333"
sleep 1
Record the PID after starting a process, and clean up when the work is done.
Before every Bash tool invocation, answer these questions:
npx skills add MattAtAIEra/command-execution下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer