fix install: per-skill symlinks (Claude Code scans only one level deep)
This commit is contained in:
parent
2fda1d06d4
commit
a3aea09acd
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.DS_Store
|
||||
*.swp
|
||||
*.swo
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -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.
|
||||
29
skills/productivity/caveman/SKILL.md
Normal file
29
skills/productivity/caveman/SKILL.md
Normal file
@ -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.
|
||||
34
skills/productivity/grill-me/SKILL.md
Normal file
34
skills/productivity/grill-me/SKILL.md
Normal file
@ -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.
|
||||
51
skills/productivity/handoff/SKILL.md
Normal file
51
skills/productivity/handoff/SKILL.md
Normal file
@ -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 — <YYYY-MM-DD> — <one-line topic>
|
||||
|
||||
## Goal
|
||||
<what we are ultimately trying to achieve>
|
||||
|
||||
## Status
|
||||
<what is done; what is in progress; what is blocked>
|
||||
|
||||
## Decisions made this session
|
||||
- <decision> — <one-line reason>
|
||||
|
||||
## Open questions
|
||||
- <question> — <who/what would answer it>
|
||||
|
||||
## Next concrete step
|
||||
<the very first action the next session should take>
|
||||
|
||||
## Key files
|
||||
- `path/to/file.ext:42` — <why it matters>
|
||||
- `path/to/other.ext:10-25` — <why>
|
||||
|
||||
## How to verify when done
|
||||
<command or check that proves the work landed>
|
||||
```
|
||||
|
||||
## 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.
|
||||
67
skills/productivity/write-a-skill/SKILL.md
Normal file
67
skills/productivity/write-a-skill/SKILL.md
Normal file
@ -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/<category>/<name>/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/<category>/<name> ~/.claude/skills/<name>`
|
||||
6. **Commit** — from the octobot repo:
|
||||
`jj describe -m "add skill: <name>"` (and `jj git push` if a remote exists).
|
||||
|
||||
## Template
|
||||
```markdown
|
||||
---
|
||||
name: <kebab-name>
|
||||
description: <what it does>. Use when <concrete trigger>.
|
||||
---
|
||||
|
||||
# <kebab-name>
|
||||
|
||||
## When to use
|
||||
- <trigger 1>
|
||||
- <trigger 2>
|
||||
|
||||
## 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.
|
||||
Loading…
x
Reference in New Issue
Block a user