raine

open

0
0
# Install this skill:
npx skills add raine/skills --skill "open"

Install specific skill from multi-skill repository

# Description

Find dev servers running in tmux panes and open them in the browser. Accepts optional path or port arguments. Use when the user wants to open a dev server, find running servers, or open localhost.

# SKILL.md


name: open
description: Find dev servers running in tmux panes and open them in the browser. Accepts optional path or port arguments. Use when the user wants to open a dev server, find running servers, or open localhost.
allowed-tools: Bash


Open dev server

Find dev servers running in tmux panes and open in browser.

Usage

/open - list servers, open if only one found
/open /api/docs - open with path appended
/open 3000 - open specific port
/open 3000/api/docs - open specific port with path

Steps

  1. Run the discovery script:
./find-servers.sh
  1. Parse the tab-separated output: PANE\tPORT\tCOMMAND

  2. Decide what to open:

  3. If $ARGUMENTS is a number or starts with a number followed by /, treat the number as the target port and the rest as the path
  4. If $ARGUMENTS starts with /, it's a path - append to the chosen server
  5. If one server found, use it
  6. If multiple servers found, show a table and ask the user to pick
  7. If no servers found, tell the user

  8. Open in browser:

open "http://localhost:$PORT$PATH"

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.