Using Xpolink with GitHub Copilot

Add the Xpolink skill file to your Copilot instructions so Copilot Chat can create and manage branded short links from VS Code.

Prerequisites

  • A Xpolink API key (generate one from your dashboard under Settings → API Keys)
  • VS Code with GitHub Copilot and Copilot Chat extensions

Quick Setup

Two steps to get started:

  1. Download the skill file and save it as .github/copilot-instructions.md in your project
  2. Set your API key: export XPOLINK_API_KEY="xpo_your_key"

If you already have a .github/copilot-instructions.md, append the contents of the downloaded file to it instead.

Terminal Setup (Alternative)

mkdir -p .github
curl -o .github/copilot-instructions.md https://xpolink.app/xpolink-skill.md
echo 'export XPOLINK_API_KEY="xpo_your_key_here"' >> ~/.zshenv
source ~/.zshenv

Usage

Open Copilot Chat in VS Code and use the @terminal agent to run API calls. Copilot will generate the curl commands and execute them in your terminal:

@terminal Create a Xpolink short link for https://example.com/docs

@terminal List my Xpolink short links

@terminal Show click stats for Xpolink link abc123

Example Workflow

You: @terminal Shorten https://example.com/release with slug "v2"
     using the Xpolink API (Bearer $XPOLINK_API_KEY)

Copilot runs:
curl -s -X POST https://xpolink.app/api/v1/links   -H "Authorization: Bearer $XPOLINK_API_KEY"   -H "Content-Type: application/json"   -d '{"url":"https://example.com/release","shortCode":"v2"}'

Result: https://xpol.app/v2

For the full API reference, see the API documentation. Questions? Contact us.