From a3aea09acd462d3726976f7f621b10f7a54995be Mon Sep 17 00:00:00 2001 From: lukabor Date: Thu, 28 May 2026 21:50:47 +0200 Subject: [PATCH] fix install: per-skill symlinks (Claude Code scans only one level deep) --- .gitignore | 3 + LICENSE | 21 +++++++ skills/productivity/caveman/SKILL.md | 29 ++++++++++ skills/productivity/grill-me/SKILL.md | 34 +++++++++++ skills/productivity/handoff/SKILL.md | 51 ++++++++++++++++ skills/productivity/write-a-skill/SKILL.md | 67 ++++++++++++++++++++++ 6 files changed, 205 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 skills/productivity/caveman/SKILL.md create mode 100644 skills/productivity/grill-me/SKILL.md create mode 100644 skills/productivity/handoff/SKILL.md create mode 100644 skills/productivity/write-a-skill/SKILL.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..482e34b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.swp +*.swo diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ee98959 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Lukasz Boryn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/skills/productivity/caveman/SKILL.md b/skills/productivity/caveman/SKILL.md new file mode 100644 index 0000000..37049db --- /dev/null +++ b/skills/productivity/caveman/SKILL.md @@ -0,0 +1,29 @@ +--- +name: caveman +description: Switch into terse mode for the rest of the session — no preamble, no trailing summaries, no narration of intent; reply with code plus a one-line rationale only. Use when the user says "caveman", "/caveman", "be terse", or asks for minimum-token responses. +--- + +# caveman + +## When to use +- User says "caveman", "/caveman", "terse mode", "shut up and code". +- User explicitly asks for minimum-token / no-preamble replies. + +## Rules (apply for the rest of the session until user cancels) +- **No preamble.** Do not announce what you are about to do. +- **No trailing summary.** Do not recap what you just did. +- **No status narration** between tool calls beyond what is required by the + harness (one sentence max before the first tool call of a turn). +- **Output shape**: the artifact (code, diff, command, answer) followed by + at most **one line** of rationale. No headers, no bullet lists unless the + answer is inherently a list. +- **Questions** are allowed and should also be one line. +- **File references** still use the markdown link syntax required by the IDE. + +## Cancel +The mode ends when the user says "stop caveman", "normal mode", or +explicitly asks for a fuller explanation. + +## Output / done criteria +- Subsequent replies in the session obey the rules above. +- No apologies for terseness; the mode is the user's request. diff --git a/skills/productivity/grill-me/SKILL.md b/skills/productivity/grill-me/SKILL.md new file mode 100644 index 0000000..9cdb5e2 --- /dev/null +++ b/skills/productivity/grill-me/SKILL.md @@ -0,0 +1,34 @@ +--- +name: grill-me +description: Run a Socratic loop that removes ambiguity from a task before any implementation begins. Ask one focused question at a time about intent, edge cases, constraints, and success criteria until the agent can restate the task unambiguously. Use when the user says "grill me", "/grill-me", "ask me questions first", or when the task as stated is too vague to implement safely. +--- + +# grill-me + +## When to use +- User says "grill me", "/grill-me", or "interview me first". +- The request is ambiguous and proceeding would mean guessing. +- The task is non-trivial (multi-file, design tradeoffs, irreversible). + +## Process +1. **One question at a time.** Never batch. Wait for each answer. +2. Cover, in roughly this order, skipping what is already clear: + - **Intent** — what outcome makes this a success? + - **Scope** — what is explicitly out of scope? + - **Constraints** — perf, compat, deadline, dependencies you must not touch? + - **Edge cases** — empty input, failure, concurrency, large size? + - **Verification** — what test/command proves it works? +3. After every 2–3 answers, **mirror back** your current understanding in one + short paragraph and ask "is this right?". Correct and continue. +4. **Stop** when you can write a one-paragraph task statement the user agrees + with verbatim. Output that statement and offer to proceed. + +## Output / done criteria +- A user-approved one-paragraph task statement. +- A clear list of out-of-scope items. +- A concrete verification step. + +## Guardrails +- No implementation, no file edits during grilling. +- No leading questions ("you want X, right?"). Ask open questions. +- If the user gets impatient, offer to stop early with the current understanding. diff --git a/skills/productivity/handoff/SKILL.md b/skills/productivity/handoff/SKILL.md new file mode 100644 index 0000000..fa7ebf9 --- /dev/null +++ b/skills/productivity/handoff/SKILL.md @@ -0,0 +1,51 @@ +--- +name: handoff +description: Produce a structured handoff document so a fresh Claude Code session (or a teammate) can pick up where this one left off without re-deriving context. Use when the user says "handoff", "wrap up", "summarize for next session", or is about to /clear or end the session on unfinished work. +--- + +# handoff + +## When to use +- User says "handoff", "/handoff", "wrap up", or "prep a handoff doc". +- User is about to end a session on unfinished work. +- Context window is near full and work must continue in a fresh session. + +## Process +1. Skim the current todo list, recent edits, and any active plan file. +2. Write a handoff document to `./HANDOFF.md` (or the path the user names) + containing the sections below. Be concrete — paths with line numbers, not + vague references. +3. Show the doc to the user and ask if anything is missing before they + `/clear`. + +## Handoff template +```markdown +# Handoff — — + +## Goal + + +## Status + + +## Decisions made this session +- — + +## Open questions +- — + +## Next concrete step + + +## Key files +- `path/to/file.ext:42` — +- `path/to/other.ext:10-25` — + +## How to verify when done + +``` + +## Output / done criteria +- `HANDOFF.md` exists and every section is filled. +- File paths include line numbers where relevant. +- "Next concrete step" is a single, unambiguous action. diff --git a/skills/productivity/write-a-skill/SKILL.md b/skills/productivity/write-a-skill/SKILL.md new file mode 100644 index 0000000..7765f71 --- /dev/null +++ b/skills/productivity/write-a-skill/SKILL.md @@ -0,0 +1,67 @@ +--- +name: write-a-skill +description: Scaffold a new Claude Code skill with the octobot conventions — frontmatter, "Use when" trigger, ≤100-line SKILL.md, optional REFERENCE/EXAMPLES. Use when the user asks to create, write, add, or draft a new skill, or wants to convert a repeated workflow into a reusable skill. +--- + +# write-a-skill + +## When to use +- User says "write a skill", "create a skill", "add a skill", "/write-a-skill". +- User describes a recurring workflow and asks to make it reusable. +- You notice the same multi-step process being requested across sessions and + suggest capturing it as a skill. + +## Process +1. **Gather** — ask the user (one message, grouped): + - kebab-case name and which category (`productivity`, `engineering`, `misc`) + - one-line purpose + - concrete trigger phrases ("Use when ...") + - success / done criteria + - any deterministic helpers needed (scripts? reference docs?) +2. **Check for overlap** — `ls ~/code/octobot/skills/*/` and grep + descriptions; if a near-match exists, propose extending it instead of + creating a duplicate. +3. **Draft** `~/code/octobot/skills///SKILL.md` using the + template in REFERENCE.md (or the inline template below if you have it + memorized). +4. **Review** — show the draft to the user; iterate until approved. Verify: + - `name:` matches the folder name + - `description:` contains "Use when" and is < 1024 chars + - file is ≤ 100 lines (split into REFERENCE.md / EXAMPLES.md otherwise) + - no time-sensitive content +5. **Link** — Claude Code only scans one level deep under `~/.claude/skills/`, + so create a per-skill symlink: + `ln -s ~/code/octobot/skills// ~/.claude/skills/` +6. **Commit** — from the octobot repo: + `jj describe -m "add skill: "` (and `jj git push` if a remote exists). + +## Template +```markdown +--- +name: +description: . Use when . +--- + +# + +## When to use +- +- + +## Process +1. ... +2. ... + +## Output / done criteria +- ... +``` + +## Output / done criteria +- New `SKILL.md` exists at the right path, passes the checks in step 4. +- User has been told the exact `jj describe` command to run. +- Skill appears in the skill list on next Claude Code session start. + +## Guardrails +- Never invent a category — ask if unsure. +- Never write a skill whose description lacks "Use when". +- If the skill needs > 100 lines of prose, split before committing.