Langsung ke konten
Skillpedia
Pemrograman umum280k · #422

terminal-opener

Fungsinya

Program ini membuka sebuah program atau perintah di komputer Anda dalam jendela terpisah. Caranya aman, tanpa mencampur perintah, dan Anda tetap bisa melihat apa yang sedang terjadi.

Kapan dipakai

  • ✓Saat Anda perlu menjalankan program yang interaktif.
  • ✓Untuk memulai koneksi aman (SSH).
  • ✓Untuk menguji atau men-debug perintah tanpa benar-benar menjalankannya.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/skills/terminal-opener/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Buka program 'my_app' dengan argumen '--config' dan 'config.json' di jendela baru.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini mengambil nama program dan semua argumennya secara terpisah. Lalu, ia membuka jendela baru untuk menjalankan program tersebut, memastikan semuanya dilakukan secara terisolasi dan aman.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa maksud 'tanpa mencampur perintah'?

Artinya alat ini tidak menggabungkan beberapa perintah menjadi satu teks. Dengan begitu, kesalahan bisa dicegah dan keamanan meningkat.

Apa itu 'dry-run mode'?

Ini adalah mode yang menampilkan bagaimana program akan dibuka, tetapi tidak benar-benar membukanya. Berguna untuk memeriksa apakah semuanya sudah benar sebelum dijalankan.

Bisakah saya melihat informasinya sebelum dibuka?

Bisa. Dengan opsi '--json', Anda dapat melihat semua detail tentang cara program akan dibuka, tanpa menjalankannya.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
280k
Peringkat
#422
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa