kojiromike

open-link

0
0
# Install this skill:
npx skills add kojiromike/dot-claude --skill "open-link"

Install specific skill from multi-skill repository

# Description

This skill should be used when the user says "open that", "open the link", "open it", "open that link", "open in browser", "browser", or wants to open a recently mentioned URL in their browser.

# SKILL.md


name: open-link
description: This skill should be used when the user says "open that", "open the link", "open it", "open that link", "open in browser", "browser", or wants to open a recently mentioned URL in their browser.
version: 1.0.0


Open Link in Browser

Open the most recent relevant URL from the conversation in the user's default browser using macOS open command.

What to Open

Look back through the conversation for the most recent relevant reference. This could be:

  1. A full URL - documentation page, PR link, web page
  2. A URL from a tool result - e.g., gh pr create output
  3. A GitHub reference - PR number, issue number, repo name (not a full URL)
  4. A URL the user pasted earlier - that they now want to revisit

The user may want to open multiple references at once (e.g., "open all those PRs"). This is fine — open them all. However, if there are more than 6, confirm with the user before opening them.

Workflow

1. Identify the reference

Find the most recent URL or GitHub reference from the conversation.

2. Open it

For full URLs, use open:

open "<url>"

For GitHub references, use gh with the -w flag to open in the browser:

# PR (number or org/repo#number)
gh pr view -w <number>
gh pr view -w <number> --repo <owner/repo>

# Issue
gh issue view -w <number>
gh issue view -w <number> --repo <owner/repo>

# Repository
gh repo view -w <owner/repo>

Use --repo when the reference is to a different repo than the current working directory.

3. Confirm

Tell the user what was opened, e.g.:
- "Opened PR #142 in your browser."
- "Opened opencoreemr/openemr-internal in your browser."

# 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.