본문으로 건너뛰기
Skillpedia
일반 코딩280k · #422

terminal-opener

하는 일

이 프로그램은 컴퓨터의 프로그램이나 명령을 별도의 창에서 엽니다. 명령을 섞지 않고 안전하게 하며, 무슨 일이 일어나는지 볼 수 있게 합니다.

사용하는 경우

  • ✓대화형 프로그램을 실행해야 할 때.
  • ✓보안 연결(SSH)을 시작할 때.
  • ✓명령을 실제로 실행하지 않고 테스트하거나 디버그할 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/skills/terminal-opener/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/terminal-opener/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'--config'와 'config.json' 인수를 붙여 'my_app' 프로그램을 새 창에서 열어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

프로그램 이름과 모든 인수를 따로 받습니다. 그다음 이 프로그램을 실행할 새 창을 열어, 모든 것이 격리되고 안전한 방식으로 이루어지도록 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Terminal Opener

Use scripts/open-terminal.js to preserve an executable and every argument as separate process entries. Never interpolate a shell command string. Keep every spawn on shell: false. Default to a non-launching plan. Use --launch only after the user explicitly requests a real window and the argv has been reviewed. The launched process inherits the full environment of the calling process, including secret-bearing variables. The launcher does not filter the environment. Run it from a shell whose environment is safe to expose to the target command.

Launch a command

Pass launcher options before --, then pass exactly one executable followed by its argument array:

node skills/terminal-opener/scripts/open-terminal.js \
  --launch \
  --cwd /absolute/host/path \
  -- ssh -t example.test command-with-arguments

Run normal mode first. Let WezTerm try its mux with a new window, then let the launcher fall back to a detached wezterm start process if the mux is not available. When fallback is used, read muxFailure from JSON output (or the human-readable failure line) to diagnose why the mux path failed.

Recover from terminal configuration

Add --recover or --standalone when user configuration or mux state may interfere with the requested command. Start a detached WezTerm process with:

--skip-config start --always-new-process

Expect recovery mode to skip all user terminal configuration intentionally.

Inspect before launch

Omit --launch (or add --dry-run) and add --json to inspect the exact executable, argv, working directory, terminal adapter, primary launch, and fallback without opening a window. Treat the JSON plan as the composition boundary for callers.

Run --detect --json without a command to probe terminal availability. Follow the returned action when the adapter is missing or unsupported. Use WezTerm for the current adapter; treat other requested terminals as unsupported plans, not as commands to execute.

자주 묻는 질문

'without mixing commands'는 무엇을 뜻하나요?

여러 명령을 하나의 텍스트로 합치지 않는다는 뜻입니다. 이렇게 하면 오류를 막고 보안을 높입니다.

'dry-run mode'란 무엇인가요?

프로그램이 어떻게 열릴지 보여 주지만 실제로 열지는 않는 모드입니다. 실행하기 전에 모든 것이 올바른지 확인하는 데 유용합니다.

열기 전에 정보를 볼 수 있나요?

네. '--json' 옵션을 쓰면, 실행하지 않고도 프로그램이 어떻게 열릴지에 대한 모든 세부 정보를 볼 수 있습니다.

상세 정보

작성자의 원본 설명

Open an executable and its argument array in a visible terminal window through a reusable, shell-free launch plan with dry-run, JSON, capability detection, detached fallback, and standalone recovery modes. Use when Codex needs to open an interactive CLI, SSH session, local development process, sandbox, or other argv-based command in a new host terminal; diagnose whether a supported terminal is ava

repo: affaan-m/ECC

인기도

GitHub 스타
280k
순위
#422
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬