Communitygithub.com

터미널 오프너

재사용 가능한 셸 없는 실행 계획을 통해 실행 파일과 인수 배열을 보이는 터미널 창에서 열 수 있습니다. 드라이런(dry-run), JSON, 기능 감지, 분리형 폴백(detached fallback) 및 독립 실행 복구 모드를 지원합니다. Codex가 대화형 CLI, SSH 세션, 로컬 개발 프로세스, 샌드박스 또는 기타 argv 기반 명령을 새 호스트 터미널에서 열어야 할 때 사용하거나, 지원되는 터미널이 있는지 진단하거나, 요청한 터미널이 지원되지 않을 때 실행 가능한 계획을 제공하는 데 사용합니다.

터미널 오프너란 무엇인가요?

터미널 오프너(terminal-opener)는 셸을 사용하지 않고 실행 파일과 그 인수를 직접 터미널 창에서 실행할 수 있는 AI 에이전트 스킬입니다. 이 스킬은 `shell: false` 설정을 기본으로 하여 모든 프로세스를 생성하므로, 셸 주입 위험을 방지하고 인수를 명확히 보존합니다. 기본적으로 실행 계획만 생성하며, 사용자가 명시적으로 요청한 경우에만 `--launch` 플래그로 실제 창을 엽니다. JSON 출력을 통해 실행 계획을 검사하고, `--detect --json`으로 터미널 지원 여부를 진단할 수 있습니다. WezTerm을 기본 터미널로 사용하며, mux가 없을 경우 분리형 프로세스로 폴백하고, `--recover` 또는 `--standalone` 모드로 사용자 설정 문제를 우회할 수 있습니다. 이 스킬은 주로 Claude Code, Cursor, Codex 같은 AI 코딩 도구에서 사용되며, 호스트 터미널 환경을 안전하게 상속받아 동작합니다.

지원 대상~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/terminal-opener

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

터미널 오프너은(는) 무엇을 하나요?

scripts/open-terminal.js를 사용하여 실행 파일과 모든 인수를 별도의 프로세스 항목으로 보존합니다. 셸 명령 문자열을 절대 보간하지 마세요. 모든 spawn은 shell: false로 유지하세요. 기본적으로 실행하지 않는 계획을 사용하세요. 사용자가 명시적으로 실제 창을 요청하고 argv를 검토한 후에만 --launch를 사용하세요. 실행된 프로세스는 호출 프로세스의 전체 환경(비밀 변수 포함)을 상속받습니다. 실행 프로그램은 환경을 필터링하지 않습니다. 대상 명령에 노출해도 안전한 환경의 셸에서 실행하세요.

명령 실행

실행기 옵션을 -- 앞에 전달하고, 정확히 하나의 실행 파일과 그 뒤에 인수 배열을 전달하세요:

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

먼저 일반 모드로 실행하세요. WezTerm이 새로운 창으로 mux를 시도하게 하고, mux를 사용할 수 없는 경우 실행기가 분리된 wezterm start 프로세스로 폴백하게 하세요. 폴백이 사용될 때는 JSON 출력(또는 사람이 읽을 수 있는 실패 줄)에서 muxFailure를 읽어 mux 경로가 실패한 이유를 진단하세요.

터미널 설정에서 복구

사용자 설정이나 mux 상태가 요청된 명령을 방해할 수 있는 경우 --recover 또는 --standalone을 추가하세요. 다음 명령으로 분리된 WezTerm 프로세스를 시작하세요:

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

복구 모드는 의도적으로 모든 사용자 터미널 설정을 건너뛸 것으로 예상하세요.

실행 전 검사

--launch를 생략하거나 --dry-run을 추가하고 --json을 추가하면 실행 파일, argv, 작업 디렉터리, 터미널 어댑터, 기본 실행 및 폴백을 창을 열지 않고 검사할 수 있습니다. JSON 계획을 호출자의 구성 경계로 취급하세요.

명령 없이 --detect --json을 실행하여 터미널 지원 여부를 확인하세요. 어댑터가 없거나 지원되지 않는 경우 반환된 action을 따르세요. 현재 어댑터에는 WezTerm을 사용하세요. 다른 요청된 터미널은 실행할 명령이 아닌 지원되지 않는 계획으로 처리하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

관련 스킬