Skip to main content

cross-platform-timeout

Run a command with a time limit in a cross-platform way. Do not rely on GNU timeout (coreutils)—it is not default on macOS. Use when agents may run on macOS or when timeout 10s npm run dev fails.

소스 정보

저장소
pmarashian/cursor-agent-skills
최근 소스 활동
2026년 2월 13일 19:51
감지된 SKILL.md 언어
영어
스타
2
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cross-platform-timeout
description
Run a command with a time limit in a cross-platform way. Do not rely on GNU timeout (coreutils)—it is not default on macOS. Use when agents may run on macOS or when timeout 10s npm run dev fails.
# Cross-Platform "Run with Timeout" **Do not use `timeout`** (GNU coreutils) when agents may run on macOS—it is not installed by default. ## Options - **macOS / BSD**: `(cmd &); sleep N; kill $!` — run command in background, sleep N seconds, then kill the background job. - **Alternative**: Small Node script that spawns the command and kills it after N seconds. ## When to Use - When a task uses something like `timeout 10s npm run dev` and it fails on macOS. - Prefer documenting one cross-platform pattern rather than retrying with `timeout` repeatedly. ## Keep It Short This skill should stay a few lines; the main point is "do not use `timeout` unless the environment is known to provide it."
GitHub에서 보기