@ecology91/skills 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +179 -0
  3. package/bin/install.mjs +52 -0
  4. package/opencode.json +10 -0
  5. package/package.json +37 -0
  6. package/scripts/link-skills.sh +40 -0
  7. package/scripts/list-skills.sh +7 -0
  8. package/skills/engineering/README.md +16 -0
  9. package/skills/engineering/diagnose/SKILL.md +117 -0
  10. package/skills/engineering/diagnose/scripts/hitl-loop.template.sh +41 -0
  11. package/skills/engineering/grill-with-docs/ADR-FORMAT.md +47 -0
  12. package/skills/engineering/grill-with-docs/CONTEXT-FORMAT.md +77 -0
  13. package/skills/engineering/grill-with-docs/SKILL.md +88 -0
  14. package/skills/engineering/improve-codebase-architecture/DEEPENING.md +37 -0
  15. package/skills/engineering/improve-codebase-architecture/INTERFACE-DESIGN.md +44 -0
  16. package/skills/engineering/improve-codebase-architecture/LANGUAGE.md +53 -0
  17. package/skills/engineering/improve-codebase-architecture/SKILL.md +71 -0
  18. package/skills/engineering/prototype/LOGIC.md +79 -0
  19. package/skills/engineering/prototype/SKILL.md +30 -0
  20. package/skills/engineering/prototype/UI.md +112 -0
  21. package/skills/engineering/setup-agent-skills/SKILL.md +128 -0
  22. package/skills/engineering/setup-agent-skills/domain.md +51 -0
  23. package/skills/engineering/setup-agent-skills/issue-tracker-beads.md +54 -0
  24. package/skills/engineering/setup-agent-skills/issue-tracker-github.md +33 -0
  25. package/skills/engineering/setup-agent-skills/issue-tracker-gitlab.md +34 -0
  26. package/skills/engineering/setup-agent-skills/issue-tracker-local.md +27 -0
  27. package/skills/engineering/setup-agent-skills/triage-labels.md +15 -0
  28. package/skills/engineering/setup-coding-quality-checks/SKILL.md +84 -0
  29. package/skills/engineering/tdd/SKILL.md +109 -0
  30. package/skills/engineering/tdd/deep-modules.md +33 -0
  31. package/skills/engineering/tdd/interface-design.md +31 -0
  32. package/skills/engineering/tdd/mocking.md +59 -0
  33. package/skills/engineering/tdd/refactoring.md +10 -0
  34. package/skills/engineering/tdd/tests.md +61 -0
  35. package/skills/engineering/to-issues/SKILL.md +99 -0
  36. package/skills/engineering/to-prd/SKILL.md +76 -0
  37. package/skills/engineering/to-qa/SKILL.md +45 -0
  38. package/skills/engineering/triage/AGENT-BRIEF.md +186 -0
  39. package/skills/engineering/triage/OUT-OF-SCOPE.md +101 -0
  40. package/skills/engineering/triage/SKILL.md +107 -0
  41. package/skills/engineering/zoom-out/SKILL.md +7 -0
  42. package/skills/misc/README.md +8 -0
  43. package/skills/misc/git-guardrails-opencode/SKILL.md +57 -0
  44. package/skills/misc/migrate-to-shoehorn/SKILL.md +118 -0
  45. package/skills/misc/scaffold-exercises/SKILL.md +106 -0
  46. package/skills/misc/setup-pre-commit/SKILL.md +91 -0
  47. package/skills/productivity/README.md +8 -0
  48. package/skills/productivity/caveman/SKILL.md +49 -0
  49. package/skills/productivity/grill-me/SKILL.md +10 -0
  50. package/skills/productivity/handoff/SKILL.md +13 -0
  51. package/skills/productivity/write-a-skill/SKILL.md +117 -0
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: triage
3
+ description: Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.
4
+ ---
5
+
6
+ # Triage
7
+
8
+ Move issues on the project issue tracker through a small state machine of triage roles.
9
+
10
+ Every comment or issue posted to the issue tracker during triage **must** start with this disclaimer:
11
+
12
+ ```
13
+ > *This was generated by AI during triage.*
14
+ ```
15
+
16
+ ## Reference docs
17
+
18
+ - [AGENT-BRIEF.md](AGENT-BRIEF.md) — how to write durable agent briefs
19
+ - [OUT-OF-SCOPE.md](OUT-OF-SCOPE.md) — how the `.out-of-scope/` knowledge base works
20
+
21
+ ## Roles
22
+
23
+ Two **category** roles:
24
+
25
+ - `bug` — something is broken
26
+ - `enhancement` — new feature or improvement
27
+
28
+ Five **state** roles:
29
+
30
+ - `needs-triage` — maintainer needs to evaluate
31
+ - `needs-info` — waiting on reporter for more information
32
+ - `ready-for-agent` — fully specified, ready for an AFK agent
33
+ - `ready-for-human` — needs human implementation
34
+ - `wontfix` — will not be actioned
35
+
36
+ Every triaged issue should carry exactly one category role and one state role. If state roles conflict, flag it and ask the maintainer before doing anything else.
37
+
38
+ These are canonical role names — the actual label strings used in the issue tracker may differ. The mapping should have been provided to you - run `/setup-agent-skills` if not.
39
+
40
+ Before marking an issue `ready-for-agent`, verify it is one independently implementable vertical slice, has no unresolved human decision, records dependencies in the tracker instead of only prose, has concrete acceptance criteria, names runnable verification commands or explains why none exist, has explicit out-of-scope boundaries, and includes QA notes for human verification.
41
+
42
+ `ready-for-human` is a Sandcastle gate. Open or deferred `ready-for-human` issues can stop autonomous RALPH runs. Use it only for real human decisions or manual work.
43
+
44
+ State transitions: an unlabeled issue normally goes to `needs-triage` first; from there it moves to `needs-info`, `ready-for-agent`, `ready-for-human`, or `wontfix`. `needs-info` returns to `needs-triage` once the reporter replies. The maintainer can override at any time — flag transitions that look unusual and ask before proceeding.
45
+
46
+ ## Invocation
47
+
48
+ The maintainer invokes `/triage` and describes what they want in natural language. Interpret the request and act. Examples:
49
+
50
+ - "Show me anything that needs my attention"
51
+ - "Let's look at #42"
52
+ - "Move #42 to ready-for-agent"
53
+ - "What's ready for agents to pick up?"
54
+
55
+ ## Show what needs attention
56
+
57
+ Query the issue tracker and present three buckets, oldest first:
58
+
59
+ 1. **Unlabeled** — never triaged.
60
+ 2. **`needs-triage`** — evaluation in progress.
61
+ 3. **`needs-info` with reporter activity since the last triage notes** — needs re-evaluation.
62
+
63
+ Show counts and a one-line summary per issue. Let the maintainer pick.
64
+
65
+ ## Triage a specific issue
66
+
67
+ 1. **Gather context.** Read the full issue (body, comments, labels, reporter, dates). Parse any prior triage notes so you don't re-ask resolved questions. Explore the codebase using the project's domain glossary, respecting ADRs in the area. Read `.out-of-scope/*.md` and surface any prior rejection that resembles this issue.
68
+
69
+ 2. **Recommend.** Tell the maintainer your category and state recommendation with reasoning, plus a brief codebase summary relevant to the issue. Wait for direction.
70
+
71
+ 3. **Reproduce (bugs only).** Before any grilling, attempt reproduction: read the reporter's steps, trace the relevant code, run tests or commands. Report what happened — successful repro with code path, failed repro, or insufficient detail (a strong `needs-info` signal). A confirmed repro makes a much stronger agent brief.
72
+
73
+ 4. **Grill (if needed).** If the issue needs fleshing out, run a `/grill-with-docs` session.
74
+
75
+ 5. **Apply the outcome:**
76
+ - `ready-for-agent` — post an agent brief comment ([AGENT-BRIEF.md](AGENT-BRIEF.md)).
77
+ - `ready-for-human` — same structure as an agent brief, but note why it can't be delegated (judgment calls, external access, design decisions, manual testing).
78
+ - `needs-info` — post triage notes (template below).
79
+ - `wontfix` (bug) — polite explanation, then close.
80
+ - `wontfix` (enhancement) — write to `.out-of-scope/`, link to it from a comment, then close ([OUT-OF-SCOPE.md](OUT-OF-SCOPE.md)).
81
+ - `needs-triage` — apply the role. Optional comment if there's partial progress.
82
+
83
+ ## Quick state override
84
+
85
+ If the maintainer says "move #42 to ready-for-agent", trust them and apply the role directly. Confirm what you're about to do (role changes, comment, close), then act. Skip grilling. If moving to `ready-for-agent` without a grilling session, ask whether they want to write an agent brief.
86
+
87
+ ## Needs-info template
88
+
89
+ ```markdown
90
+ ## Triage Notes
91
+
92
+ **What we've established so far:**
93
+
94
+ - point 1
95
+ - point 2
96
+
97
+ **What we still need from you (@reporter):**
98
+
99
+ - question 1
100
+ - question 2
101
+ ```
102
+
103
+ Capture everything resolved during grilling under "established so far" so the work isn't lost. Questions must be specific and actionable, not "please provide more info".
104
+
105
+ ## Resuming a previous session
106
+
107
+ If prior triage notes exist on the issue, read them, check whether the reporter has answered any outstanding questions, and present an updated picture before continuing. Don't re-ask resolved questions.
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: zoom-out
3
+ description: Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ I don't know this area of code well. Go up a layer of abstraction. Give me a map of all the relevant modules and callers, using the project's domain glossary vocabulary.
@@ -0,0 +1,8 @@
1
+ # Misc
2
+
3
+ Tools I keep around but rarely use.
4
+
5
+ - **[git-guardrails-opencode](./git-guardrails-opencode/SKILL.md)** — Set up opencode permissions to block dangerous git commands (push, reset --hard, clean, etc.) before they execute.
6
+ - **[migrate-to-shoehorn](./migrate-to-shoehorn/SKILL.md)** — Migrate test files from `as` type assertions to @total-typescript/shoehorn.
7
+ - **[scaffold-exercises](./scaffold-exercises/SKILL.md)** — Create exercise directory structures with sections, problems, solutions, and explainers.
8
+ - **[setup-pre-commit](./setup-pre-commit/SKILL.md)** — Set up Husky pre-commit hooks with lint-staged, Prettier, type checking, and tests.
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: git-guardrails-opencode
3
+ description: Set up opencode permissions to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants git safety guardrails, bash permission rules, or protection from destructive git operations in opencode.
4
+ ---
5
+
6
+ # Git Guardrails For opencode
7
+
8
+ Sets up opencode `permission.bash` rules that deny destructive git commands before they execute.
9
+
10
+ ## What Gets Blocked
11
+
12
+ - `git push` and force-push variants
13
+ - `git reset --hard`
14
+ - `git clean -f` / `git clean -fd`
15
+ - `git branch -D`
16
+ - `git checkout .` / `git restore .`
17
+
18
+ ## Steps
19
+
20
+ ### 1. Ask Scope
21
+
22
+ Ask the user: install for **this project only** (`opencode.json`) or **all projects** (`~/.config/opencode/opencode.json`)?
23
+
24
+ ### 2. Edit Config
25
+
26
+ Merge these rules into the chosen `opencode.json` file. Preserve existing fields.
27
+
28
+ ```json
29
+ {
30
+ "$schema": "https://opencode.ai/config.json",
31
+ "permission": {
32
+ "bash": {
33
+ "*": "ask",
34
+ "git push*": "deny",
35
+ "git * push*": "deny",
36
+ "git reset --hard*": "deny",
37
+ "git clean -f*": "deny",
38
+ "git clean -fd*": "deny",
39
+ "git branch -D*": "deny",
40
+ "git checkout .": "deny",
41
+ "git restore .": "deny"
42
+ }
43
+ }
44
+ }
45
+ ```
46
+
47
+ If `permission.bash` already exists, add the deny rules after broader rules. opencode uses the last matching permission rule.
48
+
49
+ ### 3. Ask About Customization
50
+
51
+ Ask if the user wants to add or remove blocked patterns. Keep destructive defaults denied unless the user explicitly opts out.
52
+
53
+ ### 4. Verify
54
+
55
+ Tell the user to quit and restart opencode. Config is loaded once at startup.
56
+
57
+ After restart, ask opencode to run a blocked command such as `git reset --hard`. It should deny the command before execution.
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: migrate-to-shoehorn
3
+ description: Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
4
+ ---
5
+
6
+ # Migrate to Shoehorn
7
+
8
+ ## Why shoehorn?
9
+
10
+ `shoehorn` lets you pass partial data in tests while keeping TypeScript happy. It replaces `as` assertions with type-safe alternatives.
11
+
12
+ **Test code only.** Never use shoehorn in production code.
13
+
14
+ Problems with `as` in tests:
15
+
16
+ - Trained not to use it
17
+ - Must manually specify target type
18
+ - Double-as (`as unknown as Type`) for intentionally wrong data
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ npm i @total-typescript/shoehorn
24
+ ```
25
+
26
+ ## Migration patterns
27
+
28
+ ### Large objects with few needed properties
29
+
30
+ Before:
31
+
32
+ ```ts
33
+ type Request = {
34
+ body: { id: string };
35
+ headers: Record<string, string>;
36
+ cookies: Record<string, string>;
37
+ // ...20 more properties
38
+ };
39
+
40
+ it("gets user by id", () => {
41
+ // Only care about body.id but must fake entire Request
42
+ getUser({
43
+ body: { id: "123" },
44
+ headers: {},
45
+ cookies: {},
46
+ // ...fake all 20 properties
47
+ });
48
+ });
49
+ ```
50
+
51
+ After:
52
+
53
+ ```ts
54
+ import { fromPartial } from "@total-typescript/shoehorn";
55
+
56
+ it("gets user by id", () => {
57
+ getUser(
58
+ fromPartial({
59
+ body: { id: "123" },
60
+ }),
61
+ );
62
+ });
63
+ ```
64
+
65
+ ### `as Type` → `fromPartial()`
66
+
67
+ Before:
68
+
69
+ ```ts
70
+ getUser({ body: { id: "123" } } as Request);
71
+ ```
72
+
73
+ After:
74
+
75
+ ```ts
76
+ import { fromPartial } from "@total-typescript/shoehorn";
77
+
78
+ getUser(fromPartial({ body: { id: "123" } }));
79
+ ```
80
+
81
+ ### `as unknown as Type` → `fromAny()`
82
+
83
+ Before:
84
+
85
+ ```ts
86
+ getUser({ body: { id: 123 } } as unknown as Request); // wrong type on purpose
87
+ ```
88
+
89
+ After:
90
+
91
+ ```ts
92
+ import { fromAny } from "@total-typescript/shoehorn";
93
+
94
+ getUser(fromAny({ body: { id: 123 } }));
95
+ ```
96
+
97
+ ## When to use each
98
+
99
+ | Function | Use case |
100
+ | --------------- | -------------------------------------------------- |
101
+ | `fromPartial()` | Pass partial data that still type-checks |
102
+ | `fromAny()` | Pass intentionally wrong data (keeps autocomplete) |
103
+ | `fromExact()` | Force full object (swap with fromPartial later) |
104
+
105
+ ## Workflow
106
+
107
+ 1. **Gather requirements** - ask user:
108
+ - What test files have `as` assertions causing problems?
109
+ - Are they dealing with large objects where only some properties matter?
110
+ - Do they need to pass intentionally wrong data for error testing?
111
+
112
+ 2. **Install and migrate**:
113
+ - [ ] Install: `npm i @total-typescript/shoehorn`
114
+ - [ ] Find test files with `as` assertions: `grep -r " as [A-Z]" --include="*.test.ts" --include="*.spec.ts"`
115
+ - [ ] Replace `as Type` with `fromPartial()`
116
+ - [ ] Replace `as unknown as Type` with `fromAny()`
117
+ - [ ] Add imports from `@total-typescript/shoehorn`
118
+ - [ ] Run type check to verify
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: scaffold-exercises
3
+ description: Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
4
+ ---
5
+
6
+ # Scaffold Exercises
7
+
8
+ Create exercise directory structures that pass `pnpm ai-hero-cli internal lint`, then commit with `git commit`.
9
+
10
+ ## Directory naming
11
+
12
+ - **Sections**: `XX-section-name/` inside `exercises/` (e.g., `01-retrieval-skill-building`)
13
+ - **Exercises**: `XX.YY-exercise-name/` inside a section (e.g., `01.03-retrieval-with-bm25`)
14
+ - Section number = `XX`, exercise number = `XX.YY`
15
+ - Names are dash-case (lowercase, hyphens)
16
+
17
+ ## Exercise variants
18
+
19
+ Each exercise needs at least one of these subfolders:
20
+
21
+ - `problem/` - student workspace with TODOs
22
+ - `solution/` - reference implementation
23
+ - `explainer/` - conceptual material, no TODOs
24
+
25
+ When stubbing, default to `explainer/` unless the plan specifies otherwise.
26
+
27
+ ## Required files
28
+
29
+ Each subfolder (`problem/`, `solution/`, `explainer/`) needs a `readme.md` that:
30
+
31
+ - Is **not empty** (must have real content, even a single title line works)
32
+ - Has no broken links
33
+
34
+ When stubbing, create a minimal readme with a title and a description:
35
+
36
+ ```md
37
+ # Exercise Title
38
+
39
+ Description here
40
+ ```
41
+
42
+ If the subfolder has code, it also needs a `main.ts` (>1 line). But for stubs, a readme-only exercise is fine.
43
+
44
+ ## Workflow
45
+
46
+ 1. **Parse the plan** - extract section names, exercise names, and variant types
47
+ 2. **Create directories** - `mkdir -p` for each path
48
+ 3. **Create stub readmes** - one `readme.md` per variant folder with a title
49
+ 4. **Run lint** - `pnpm ai-hero-cli internal lint` to validate
50
+ 5. **Fix any errors** - iterate until lint passes
51
+
52
+ ## Lint rules summary
53
+
54
+ The linter (`pnpm ai-hero-cli internal lint`) checks:
55
+
56
+ - Each exercise has subfolders (`problem/`, `solution/`, `explainer/`)
57
+ - At least one of `problem/`, `explainer/`, or `explainer.1/` exists
58
+ - `readme.md` exists and is non-empty in the primary subfolder
59
+ - No `.gitkeep` files
60
+ - No `speaker-notes.md` files
61
+ - No broken links in readmes
62
+ - No `pnpm run exercise` commands in readmes
63
+ - `main.ts` required per subfolder unless it's readme-only
64
+
65
+ ## Moving/renaming exercises
66
+
67
+ When renumbering or moving exercises:
68
+
69
+ 1. Use `git mv` (not `mv`) to rename directories - preserves git history
70
+ 2. Update the numeric prefix to maintain order
71
+ 3. Re-run lint after moves
72
+
73
+ Example:
74
+
75
+ ```bash
76
+ git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings
77
+ ```
78
+
79
+ ## Example: stubbing from a plan
80
+
81
+ Given a plan like:
82
+
83
+ ```
84
+ Section 05: Memory Skill Building
85
+ - 05.01 Introduction to Memory
86
+ - 05.02 Short-term Memory (explainer + problem + solution)
87
+ - 05.03 Long-term Memory
88
+ ```
89
+
90
+ Create:
91
+
92
+ ```bash
93
+ mkdir -p exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer
94
+ mkdir -p exercises/05-memory-skill-building/05.02-short-term-memory/{explainer,problem,solution}
95
+ mkdir -p exercises/05-memory-skill-building/05.03-long-term-memory/explainer
96
+ ```
97
+
98
+ Then create readme stubs:
99
+
100
+ ```
101
+ exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer/readme.md -> "# Introduction to Memory"
102
+ exercises/05-memory-skill-building/05.02-short-term-memory/explainer/readme.md -> "# Short-term Memory"
103
+ exercises/05-memory-skill-building/05.02-short-term-memory/problem/readme.md -> "# Short-term Memory"
104
+ exercises/05-memory-skill-building/05.02-short-term-memory/solution/readme.md -> "# Short-term Memory"
105
+ exercises/05-memory-skill-building/05.03-long-term-memory/explainer/readme.md -> "# Long-term Memory"
106
+ ```
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: setup-pre-commit
3
+ description: Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
4
+ ---
5
+
6
+ # Setup Pre-Commit Hooks
7
+
8
+ ## What This Sets Up
9
+
10
+ - **Husky** pre-commit hook
11
+ - **lint-staged** running Prettier on all staged files
12
+ - **Prettier** config (if missing)
13
+ - **typecheck** and **test** scripts in the pre-commit hook
14
+
15
+ ## Steps
16
+
17
+ ### 1. Detect package manager
18
+
19
+ Check for `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `bun.lockb` (bun). Use whichever is present. Default to npm if unclear.
20
+
21
+ ### 2. Install dependencies
22
+
23
+ Install as devDependencies:
24
+
25
+ ```
26
+ husky lint-staged prettier
27
+ ```
28
+
29
+ ### 3. Initialize Husky
30
+
31
+ ```bash
32
+ npx husky init
33
+ ```
34
+
35
+ This creates `.husky/` dir and adds `prepare: "husky"` to package.json.
36
+
37
+ ### 4. Create `.husky/pre-commit`
38
+
39
+ Write this file (no shebang needed for Husky v9+):
40
+
41
+ ```
42
+ npx lint-staged
43
+ npm run typecheck
44
+ npm run test
45
+ ```
46
+
47
+ **Adapt**: Replace `npm` with detected package manager. If repo has no `typecheck` or `test` script in package.json, omit those lines and tell the user.
48
+
49
+ ### 5. Create `.lintstagedrc`
50
+
51
+ ```json
52
+ {
53
+ "*": "prettier --ignore-unknown --write"
54
+ }
55
+ ```
56
+
57
+ ### 6. Create `.prettierrc` (if missing)
58
+
59
+ Only create if no Prettier config exists. Use these defaults:
60
+
61
+ ```json
62
+ {
63
+ "useTabs": false,
64
+ "tabWidth": 2,
65
+ "printWidth": 80,
66
+ "singleQuote": false,
67
+ "trailingComma": "es5",
68
+ "semi": true,
69
+ "arrowParens": "always"
70
+ }
71
+ ```
72
+
73
+ ### 7. Verify
74
+
75
+ - [ ] `.husky/pre-commit` exists and is executable
76
+ - [ ] `.lintstagedrc` exists
77
+ - [ ] `prepare` script in package.json is `"husky"`
78
+ - [ ] `prettier` config exists
79
+ - [ ] Run `npx lint-staged` to verify it works
80
+
81
+ ### 8. Commit
82
+
83
+ Stage all changed/created files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`
84
+
85
+ This will run through the new pre-commit hooks — a good smoke test that everything works.
86
+
87
+ ## Notes
88
+
89
+ - Husky v9+ doesn't need shebangs in hook files
90
+ - `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)
91
+ - The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests
@@ -0,0 +1,8 @@
1
+ # Productivity
2
+
3
+ General workflow tools, not code-specific.
4
+
5
+ - **[caveman](./caveman/SKILL.md)** — Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler while keeping full technical accuracy.
6
+ - **[grill-me](./grill-me/SKILL.md)** — Get relentlessly interviewed about a plan or design until every branch of the decision tree is resolved.
7
+ - **[handoff](./handoff/SKILL.md)** — Compact the current conversation into a handoff document so another agent can continue the work.
8
+ - **[write-a-skill](./write-a-skill/SKILL.md)** — Create new skills with proper structure, progressive disclosure, and bundled resources.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: caveman
3
+ description: >
4
+ Ultra-compressed communication mode. Cuts token usage ~75% by dropping
5
+ filler, articles, and pleasantries while keeping full technical accuracy.
6
+ Use when user says "caveman mode", "talk like caveman", "use caveman",
7
+ "less tokens", "be brief", or invokes /caveman.
8
+ ---
9
+
10
+ Respond terse like smart caveman. All technical substance stay. Only fluff die.
11
+
12
+ ## Persistence
13
+
14
+ ACTIVE EVERY RESPONSE once triggered. No revert after many turns. No filler drift. Still active if unsure. Off only when user says "stop caveman" or "normal mode".
15
+
16
+ ## Rules
17
+
18
+ Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Abbreviate common terms (DB/auth/config/req/res/fn/impl). Strip conjunctions. Use arrows for causality (X -> Y). One word when one word enough.
19
+
20
+ Technical terms stay exact. Code blocks unchanged. Errors quoted exact.
21
+
22
+ Pattern: `[thing] [action] [reason]. [next step].`
23
+
24
+ Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
25
+ Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
26
+
27
+ ### Examples
28
+
29
+ **"Why React component re-render?"**
30
+
31
+ > Inline obj prop -> new ref -> re-render. `useMemo`.
32
+
33
+ **"Explain database connection pooling."**
34
+
35
+ > Pool = reuse DB conn. Skip handshake -> fast under load.
36
+
37
+ ## Auto-Clarity Exception
38
+
39
+ Drop caveman temporarily for: security warnings, irreversible action confirmations, multi-step sequences where fragment order risks misread, user asks to clarify or repeats question. Resume caveman after clear part done.
40
+
41
+ Example -- destructive op:
42
+
43
+ > **Warning:** This will permanently delete all rows in the `users` table and cannot be undone.
44
+ >
45
+ > ```sql
46
+ > DROP TABLE users;
47
+ > ```
48
+ >
49
+ > Caveman resume. Verify backup exist first.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: grill-me
3
+ description: Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
4
+ ---
5
+
6
+ Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
7
+
8
+ Ask the questions one at a time.
9
+
10
+ If a question can be answered by exploring the codebase, explore the codebase instead.
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: handoff
3
+ description: Compact the current conversation into a handoff document for another agent to pick up.
4
+ argument-hint: "What will the next session be used for?"
5
+ ---
6
+
7
+ Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save it to a path produced by `mktemp -t handoff-XXXXXX.md` (read the file before you write to it).
8
+
9
+ Suggest the skills to be used, if any, by the next session.
10
+
11
+ Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
12
+
13
+ If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.