Skip to content

Commit 2d7ed1b

Browse files
Gregg CochranCopilot
andcommitted
Add one-command quickstart: install CLI + skill + launch
New users paste a single curl command. The script: - Installs Copilot CLI if not present (brew or curl fallback) - Downloads SKILL.md directly to ~/.copilot/skills/ - Launches copilot with skill pre-loaded (stdin via /dev/tty) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c79dafc commit 2d7ed1b

2 files changed

Lines changed: 74 additions & 3 deletions

File tree

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,26 @@
66
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
77
[![Security Policy](https://img.shields.io/badge/Security-Policy-brightgreen?logo=github)](SECURITY.md)
88

9-
> **Get started fast!** Copy this right into the [Copilot CLI](https://github.com/github/copilot-cli):
10-
> ```
11-
> /skills add DUBSOpenHub/havoc-hackathon
9+
> ### ⚡ One Command. That's It.
10+
>
11+
> **Never used the CLI before? No problem.** Follow these 3 steps:
12+
>
13+
> **1. Open your terminal**
14+
> - 🍎 **Mac:** Press `⌘ + Space`, type **Terminal**, hit Enter
15+
> - 🪟 **Windows:** Press `Win + X`, choose **Terminal** or **PowerShell**
16+
> - 🐧 **Linux:** Press `Ctrl + Alt + T`
17+
>
18+
> **2. Paste this line and press Enter:**
19+
> ```bash
20+
> curl -fsSL https://raw.githubusercontent.com/DUBSOpenHub/havoc-hackathon/main/quickstart.sh | bash
1221
> ```
22+
> *Already have the CLI? No worries — this detects it and skips straight to adding the skill.*
23+
>
24+
> **3. When Copilot opens, type:** `run hackathon`
25+
>
26+
> That's it — let the models compete! 🏟️
27+
>
28+
> *Requires an active [Copilot subscription](https://github.com/features/copilot/plans). [Get one here →](https://github.com/features/copilot/plans)*
1329
1430
---
1531

quickstart.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
SKILL_REPO="DUBSOpenHub/havoc-hackathon"
5+
SKILL_NAME="havoc-hackathon"
6+
SKILL_DIR="$HOME/.copilot/skills/$SKILL_NAME"
7+
SKILL_URL="https://raw.githubusercontent.com/$SKILL_REPO/main/skills/$SKILL_NAME/SKILL.md"
8+
9+
echo ""
10+
echo "🏟️ Havoc Hackathon"
11+
echo "─────────────────────────────────────────"
12+
13+
if command -v copilot >/dev/null 2>&1; then
14+
echo "✅ Copilot CLI already installed ($(copilot --version 2>/dev/null || echo 'installed'))"
15+
else
16+
echo "📦 Installing GitHub Copilot CLI..."
17+
if [[ "$(uname)" == "Darwin" ]] || [[ "$(uname)" == "Linux" ]]; then
18+
if command -v brew >/dev/null 2>&1; then
19+
brew install copilot-cli
20+
else
21+
curl -fsSL https://gh.io/copilot-install | bash
22+
fi
23+
else
24+
echo "⚠️ Windows detected — please install manually:"
25+
echo " winget install GitHub.Copilot"
26+
echo " Then re-run this script."
27+
exit 1
28+
fi
29+
if ! command -v copilot >/dev/null 2>&1; then
30+
export PATH="$HOME/.local/bin:$PATH"
31+
if ! command -v copilot >/dev/null 2>&1; then
32+
echo "❌ Installation failed. Try manually: brew install copilot-cli"
33+
exit 1
34+
fi
35+
fi
36+
echo "✅ Copilot CLI installed!"
37+
fi
38+
39+
echo "📥 Adding Havoc Hackathon skill..."
40+
mkdir -p "$SKILL_DIR"
41+
if curl -fsSL "$SKILL_URL" -o "$SKILL_DIR/SKILL.md"; then
42+
echo "✅ Skill installed to $SKILL_DIR"
43+
else
44+
echo "❌ Failed to download skill. Check your internet connection."
45+
exit 1
46+
fi
47+
48+
echo ""
49+
echo "─────────────────────────────────────────"
50+
echo "🏟️ Launching Copilot CLI..."
51+
echo " Just type: run hackathon"
52+
echo "─────────────────────────────────────────"
53+
echo ""
54+
55+
exec copilot < /dev/tty

0 commit comments

Comments
 (0)