From 89a29e8bd4e31a422809a547917f8f2ac84f13ec Mon Sep 17 00:00:00 2001 From: artvandelay Date: Wed, 27 May 2026 01:08:06 +0530 Subject: [PATCH] README: hand-holding per-harness install (Claude / Cursor / Codex) Replace one-liner clone with collapsible install sections for each harness. Each section walks a first-time skill user through: mkdir, clone, restart, verify. Includes harness-specific quirks: - Claude Code: Cmd-Q to fully quit, top-level dirs need restart - Cursor: Settings -> Rules to confirm, avoid symlink installers - Codex: ~/.agents/skills (not ~/.codex), /skills to verify Power users skip; first-timers don't get stuck. --- README.md | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 060168e..dd3606d 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,92 @@ ## Install +A skill is just a folder with a `SKILL.md` file inside it. Your agent watches a specific directory and picks up skills it finds there. Pick your agent below. + +
+Claude Code + +1. **Make sure the skills directory exists.** Run this in your terminal once: + ```bash + mkdir -p ~/.claude/skills + ``` +2. **Clone the skill into it:** + ```bash + git clone https://github.com/artvandelay/api-vs-selfhost-skill \ + ~/.claude/skills/api-vs-selfhost-skill + ``` +3. **Restart Claude Code** (fully quit with `Cmd-Q` on macOS — closing the window isn't enough). New top-level skill directories need a restart; edits to existing ones don't. +4. **Verify:** in a Claude Code session, ask `what skills do you have?` — `api-vs-selfhost-skill` should appear. + +Update later with `cd ~/.claude/skills/api-vs-selfhost-skill && git pull`. + +
+ +
+Cursor + +1. **Make sure the skills directory exists:** + ```bash + mkdir -p ~/.cursor/skills + ``` +2. **Clone the skill into it:** + ```bash + git clone https://github.com/artvandelay/api-vs-selfhost-skill \ + ~/.cursor/skills/api-vs-selfhost-skill + ``` +3. **Restart Cursor.** +4. **Verify:** open Settings (`Cmd-Shift-J`) → **Rules**. You should see `api-vs-selfhost-skill` listed under *Agent Decides*. + +Notes: +- Don't use `npx skills add ...` for this skill — at the time of writing Cursor's skill discovery is flaky with symlinks. A plain `git clone` is the reliable path. +- Project-only install: clone into `.cursor/skills/api-vs-selfhost-skill` inside your repo instead. + +Update later with `cd ~/.cursor/skills/api-vs-selfhost-skill && git pull`. + +
+ +
+Codex CLI + +Codex uses `~/.agents/skills/` (note: `.agents`, not `.codex`). + +1. **Make sure the skills directory exists:** + ```bash + mkdir -p ~/.agents/skills + ``` +2. **Clone the skill into it:** + ```bash + git clone https://github.com/artvandelay/api-vs-selfhost-skill \ + ~/.agents/skills/api-vs-selfhost-skill + ``` +3. **Restart Codex.** +4. **Verify:** type `/skills` in a Codex session — `api-vs-selfhost-skill` should appear. You can also invoke it explicitly with `$api-vs-selfhost-skill`. + +Project-only install: clone into `.agents/skills/api-vs-selfhost-skill` inside your repo. + +Update later with `cd ~/.agents/skills/api-vs-selfhost-skill && git pull`. + +
+ +
+Other agents (Gemini CLI, Antigravity, custom harness) + +Any harness that supports the `SKILL.md` convention will work. Clone the repo somewhere, then point your harness at the folder containing `SKILL.md`. Check your tool's docs for its skills directory. + ```bash -# Claude Code: ~/.claude/skills/ | Cursor: ~/.cursor/skills/ | anywhere else: just clone -git clone https://github.com/artvandelay/api-vs-selfhost-skill ~/.claude/skills/api-vs-selfhost-skill +git clone https://github.com/artvandelay/api-vs-selfhost-skill ``` -Update with `git pull` in that directory. Then ask your agent: +
+ +### Try it + +In a fresh agent session, paste: > "Our OpenAI bill is killing us. We do ~1M queries/week at ~1.5k tokens each on GPT-5.4. Should we self-host?" +The agent should fetch live GPU prices, run `scripts/calc.py`, and return a short report with cited sources. + ## What you get The agent reads your code / PRDs / billing screenshots, fetches live GPU and API prices, runs deterministic VRAM and dollar math via `scripts/calc.py`, and writes a short markdown report with cited sources.