본문으로 건너뛰기
cccskills
무료GitHub에 공개

cm-terminal

Use when running ANY terminal command - enforces clear progress logging, output reading, and error-stop behavior so terminal processes are never left unchecked

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Terminal Process Monitoring

Overview

Running commands without checking output is flying blind. Users MUST see what's happening at every step.

Core principle: Every command gets announced, monitored, and verified. No exceptions.

Violating the letter of this rule is violating the spirit of this rule.

The Iron Law

NO COMMAND RUNS WITHOUT READING ITS OUTPUT.
NO ERROR GOES UNREPORTED.
NO NEXT STEP WITHOUT PREVIOUS STEP CONFIRMED.

When to Use

ALWAYS when running terminal commands via run_command. This includes:

  • Build commands (npm run build, npm run dev)
  • Test commands (npx vitest run)
  • Install commands (npm install)
  • Deploy commands (npx wrangler pages deploy)
  • Git commands (git push, git commit)
  • Any script or CLI tool

The Protocol

Step 1: Announce Before Running

BEFORE calling run_command:

Update task_boundary TaskStatus to describe what you're about to run and why.

TaskStatus: "Running npm build to compile production bundle"
TaskStatus: "Installing dependencies with npm install"
TaskStatus: "Deploying to Cloudflare Pages"

Step 2: Set Appropriate Wait Time

Choose WaitMsBeforeAsync based on expected command duration:

Command TypeWaitMsBeforeAsyncStrategy
Quick (< 3s) — git status, ls, cat3000-5000Synchronous, read output directly
Medium (3-30s) — npm install, build5000-10000Wait for initial output, then poll
Long (> 30s) — deploy, test suites2000-5000Send to background, poll actively

Step 3: Read Output Immediately

After run_command returns:

  1. If command completed synchronously → read output in the response
  2. If command sent to background → call command_status immediately with WaitDurationSeconds: 10
  3. NEVER proceed to next step without reading output

Step 4: Check for Errors

Scan output for error indicators:

ERROR PATTERNS TO DETECT:
- Exit code ≠ 0
- "error", "Error", "ERROR"
- "fail", "FAIL", "failed", "FAILED"
- "ENOENT", "EACCES", "EPERM"
- "not found", "No such file"
- "Cannot find module"
- "SyntaxError", "TypeError", "ReferenceError"
- "Build failed"
- "Command failed"
- "Permission denied"
- "FATAL"
- Stack traces (lines with "at " prefix)
- npm ERR!
- Warning patterns that indicate real problems

Step 4b: Compress Before Quoting

Before pasting stdout into TaskSummary or model context:

Command patternRule
git statusKeep only changed entries + branch line + (N changed) count. Drop "use git add…" boilerplate.
npm test / vitest / jestKeep failing tests + summary line. Drop PASS lines.
npm run build / tscKeep error / warning / final status. Drop incremental progress.
Any outputCollapse runs of ≥ 3 identical lines into <line> … (× N).

Helper: src/utils/output-compress.ts — compressGitStatus, compressNpmTest, summarizeBuildLog, collapseRepeatedLines, compressFor(command, stdout).

Anti-pattern: Pasting full stdout (> 50 lines) into TaskSummary when only the failing portion matters. Compress first, then quote.

Step 5: Stop on Error

If ANY error is detected:

1. STOP — Do not run any more commands
2. IDENTIFY — Extract the exact error message and context
3. REPORT — Call notify_user with error if critical
4. FIX — Use cm-debugging if proceeding to fix

Step 6: Poll Long-Running Commands

For background commands (returned a CommandId):

  1. Poll command_status every 10-15 seconds
  2. After EACH poll, update task_boundary TaskStatus with latest output summary
  3. Continue until command completes (status: "done")
  4. Read final output and check for errors

Step 7: Confirm Success

Only after reading output AND confirming no errors:

Update task_boundary TaskSummary with the result:

TaskSummary: "Build completed successfully (0 errors, 0 warnings)"
TaskSummary: "All 519 tests passed"
TaskSummary: "Deployed to https://prms-4pv.pages.dev successfully"

Red Flags — STOP and Follow Protocol

If you catch yourself doing ANY of these:

  • Running a command without updating TaskStatus first
  • Calling run_command while previous command is still running
  • Skipping command_status for a background command
  • Proceeding to next step without reading output
  • Ignoring warnings or errors in output
  • Assuming a command succeeded without checking exit code
  • Running 3+ commands in parallel without monitoring each

ALL of these mean: STOP. Follow the protocol.

Anti-Patterns

DON'TDO
Run and forgetRun and read output
Assume successVerify success from output
Chain commands blindlyVerify each before next
Ignore warningsReport warnings to user
Multiple commands without checkingSequential with verification

Special Cases

Interactive Commands (dev servers, watch mode)

  1. Start with WaitMsBeforeAsync: 3000-5000
  2. Check initial output for startup success/failure
  3. Look for "ready" / "listening on" / "compiled successfully" signals
  4. Report the URL/port to user
  5. Note the CommandId for future reference

Parallel Commands

If running multiple commands at once:

  1. Track ALL CommandIds
  2. Poll each one separately
  3. If ANY fails → report which one failed

Piped/Chained Commands (&&, |)

  1. The exit code reflects the LAST command in the chain
  2. Read full output — errors from earlier commands may appear but the chain continues
  3. Be extra careful with cd dir && npm run build — if cd fails, build won't run

Severity Levels

LevelActionExample
🟢 SuccessUpdate TaskSummary, proceed"Build succeeded"
🟡 WarningReport to user, ask if proceed"Deprecated dependency"
🔴 ErrorSTOP immediately, notify_user or fix"Build failed", "Test failed"
⚫ FatalSTOP immediately, notify_user"ENOENT", "Permission denied"

The Bottom Line

Every command tells a story through its output. READ the story. SHARE it with the user. STOP if the story is bad.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

End-to-end ad conversion tracking: Meta Pixel+CAPI, TikTok Events API, Google Ads Enhanced Conversions, GTM, attribution. Auto-detects industry, maps standard events, outputs a developer-ready implementation doc. Use for pixels, GTM, CAPI, ROAS, or 'set up tracking' requests.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

Comprehensive publishing automation skill bridging AI agents (OpenClaw, Manus, Claude) to the Content Factory Router. Uses the Router API to publish markdown articles with rich media to any connected Astro site natively.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

Easy-to-use conversational CLI (Codex style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

Booking & Calendar CRO Engine — Packages all booking, scheduling, .ics download, and Google Calendar integration into a revenue-boosting system. Auto-detect industry → select matching pattern → generate calendar engine + booking UI + export logic. Integrates with cm-google-form (form → sheet) and cm-ads-tracker (conversion events). ALWAYS trigger for: booking, appointment, calendar, reminder, download ics, google calendar, add to calendar, book appointment, schedule, "create booking", "add scheduling", "appointment reminder system", "calendar CRO", "reduce no-show"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

Strategic analysis gate for existing products — multi-dimensional evaluation (tech, product, design, business) using Design Thinking + 9 Windows (TRIZ) + Double Diamond. Outputs 2-3 qualified options with recommendations. Use BEFORE cm-planning for complex initiatives and enhancements on existing codebases.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tody-agent/codymaster542026년 8월 26일 업데이트

tody-agent의 스킬 모두 보기

이 스킬의 문제 신고