@agentshouse/kit 0.2.1-ce145e9aadbf6 → 0.2.1-cf6326dfa5c3e
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.
- package/README.md +32 -31
- package/dist/acp.js +46 -103
- package/dist/agents.js +151 -41
- package/dist/api.js +34 -2
- package/dist/app-git.js +48 -0
- package/dist/bootstrap.json +4 -4
- package/dist/bridge.js +36 -57
- package/dist/chatgpt.js +32 -0
- package/dist/clis.js +126 -69
- package/dist/codex-main.js +58 -0
- package/dist/conversations.js +457 -277
- package/dist/copies.js +198 -124
- package/dist/end.js +23 -0
- package/dist/enrol-main.js +7 -1
- package/dist/events.js +525 -0
- package/dist/files.js +22 -2
- package/dist/git.js +10 -8
- package/dist/home.js +96 -7
- package/dist/house-cli.js +291 -0
- package/dist/house-main.js +7 -159
- package/dist/inputs.js +63 -0
- package/dist/instructions.js +10 -32
- package/dist/kit-cli.js +68 -0
- package/dist/kit-main.js +8 -19
- package/dist/login.js +118 -103
- package/dist/logout.js +14 -13
- package/dist/parts.js +82 -0
- package/dist/placement.js +30 -0
- package/dist/refusals.js +12 -0
- package/dist/relay.js +12 -2
- package/dist/resident.js +91 -35
- package/dist/scope.js +203 -0
- package/dist/secret-input.js +3 -2
- package/dist/service-main.js +9 -0
- package/dist/service.js +55 -0
- package/dist/shell.js +3 -0
- package/dist/sign-in.js +34 -28
- package/dist/skills.js +81 -12
- package/dist/stream.js +87 -11
- package/dist/transcription.js +57 -9
- package/dist/translate.js +2 -8
- package/dist/update.js +50 -29
- package/dist/wire.js +6 -0
- package/dist/work.js +346 -0
- package/how-we-work.md +13 -3
- package/package.json +3 -2
- package/skills/ask-matt/SKILL.md +17 -11
- package/skills/ask-matt/agents/openai.yaml +1 -0
- package/skills/code-review/SKILL.md +5 -5
- package/skills/codebase-design/DESIGN-IT-TWICE.md +1 -1
- package/skills/codebase-design/SKILL.md +0 -2
- package/skills/diagnosing-bugs/SKILL.md +2 -4
- package/skills/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +10 -10
- package/skills/domain-modeling/SKILL.md +12 -14
- package/skills/grill-me/SKILL.md +1 -2
- package/skills/grill-me/agents/openai.yaml +1 -0
- package/skills/grill-with-docs/SKILL.md +1 -2
- package/skills/grill-with-docs/agents/openai.yaml +1 -0
- package/skills/grilling/SKILL.md +2 -2
- package/skills/handoff/SKILL.md +2 -3
- package/skills/handoff/agents/openai.yaml +1 -0
- package/skills/implement/SKILL.md +5 -4
- package/skills/implement/agents/openai.yaml +1 -0
- package/skills/implement-spec/SKILL.md +40 -0
- package/skills/implement-spec/agents/openai.yaml +5 -0
- package/skills/improve-codebase-architecture/SKILL.md +6 -7
- package/skills/improve-codebase-architecture/agents/openai.yaml +1 -0
- package/skills/pr/CREDITS.md +3 -0
- package/skills/pr/LICENSE +21 -0
- package/skills/pr/SKILL.md +170 -0
- package/skills/pr/agents/openai.yaml +3 -0
- package/skills/prototype/SKILL.md +0 -2
- package/skills/research/SKILL.md +0 -2
- package/skills/retro/LICENSE +21 -0
- package/skills/retro/SKILL.md +44 -0
- package/skills/retro/agents/openai.yaml +5 -0
- package/skills/tdd/SKILL.md +2 -4
- package/skills/teach/SKILL.md +3 -4
- package/skills/teach/agents/openai.yaml +1 -0
- package/skills/to-questionnaire/SKILL.md +1 -2
- package/skills/to-questionnaire/agents/openai.yaml +1 -0
- package/skills/to-spec/SKILL.md +1 -2
- package/skills/to-spec/agents/openai.yaml +1 -0
- package/skills/to-tickets/SKILL.md +3 -4
- package/skills/to-tickets/agents/openai.yaml +1 -0
- package/skills/triage/AGENT-BRIEF.md +207 -0
- package/skills/triage/LICENSE +21 -0
- package/skills/triage/OUT-OF-SCOPE.md +105 -0
- package/skills/triage/SKILL.md +112 -0
- package/skills/triage/agents/openai.yaml +5 -0
- package/skills/wait-what/SKILL.md +2 -3
- package/skills/wait-what/agents/openai.yaml +1 -0
- package/skills/wayfinder/SKILL.md +5 -6
- package/skills/wayfinder/agents/openai.yaml +1 -0
- package/skills/wizard/LICENSE +21 -0
- package/skills/wizard/SKILL.md +44 -0
- package/skills/wizard/agents/openai.yaml +3 -0
- package/skills/wizard/template.sh +223 -0
- package/skills/writing-for-agents/SKILL.md +0 -2
- package/dist/blocks.js +0 -51
- package/skills/resolving-merge-conflicts/SKILL.md +0 -16
- package/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- /package/skills/{resolving-merge-conflicts → implement-spec}/LICENSE +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: domain-modeling
|
|
3
|
-
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a
|
|
3
|
+
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/domain-modeling). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
6
|
# Domain Modeling
|
|
9
7
|
|
|
10
|
-
Actively build and sharpen the project's domain model as you design. This is the *active* discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely *reading* `
|
|
8
|
+
Actively build and sharpen the project's domain model as you design. This is the *active* discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely *reading* `GLOSSARY.md` for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
|
|
11
9
|
|
|
12
10
|
## File structure
|
|
13
11
|
|
|
@@ -15,7 +13,7 @@ Most repos have a single context:
|
|
|
15
13
|
|
|
16
14
|
```
|
|
17
15
|
/
|
|
18
|
-
├──
|
|
16
|
+
├── GLOSSARY.md
|
|
19
17
|
├── docs/
|
|
20
18
|
│ └── adr/
|
|
21
19
|
│ ├── 0001-event-sourced-orders.md
|
|
@@ -23,29 +21,29 @@ Most repos have a single context:
|
|
|
23
21
|
└── src/
|
|
24
22
|
```
|
|
25
23
|
|
|
26
|
-
If a `
|
|
24
|
+
If a `GLOSSARY-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
|
|
27
25
|
|
|
28
26
|
```
|
|
29
27
|
/
|
|
30
|
-
├──
|
|
28
|
+
├── GLOSSARY-MAP.md
|
|
31
29
|
├── docs/
|
|
32
30
|
│ └── adr/ ← system-wide decisions
|
|
33
31
|
├── src/
|
|
34
32
|
│ ├── ordering/
|
|
35
|
-
│ │ ├──
|
|
33
|
+
│ │ ├── GLOSSARY.md
|
|
36
34
|
│ │ └── docs/adr/ ← context-specific decisions
|
|
37
35
|
│ └── billing/
|
|
38
|
-
│ ├──
|
|
36
|
+
│ ├── GLOSSARY.md
|
|
39
37
|
│ └── docs/adr/
|
|
40
38
|
```
|
|
41
39
|
|
|
42
|
-
Create files lazily: only when you have something to write. If no `
|
|
40
|
+
Create files lazily: only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
|
|
43
41
|
|
|
44
42
|
## During the session
|
|
45
43
|
|
|
46
44
|
### Challenge against the glossary
|
|
47
45
|
|
|
48
|
-
When the user uses a term that conflicts with the existing language in `
|
|
46
|
+
When the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"
|
|
49
47
|
|
|
50
48
|
### Sharpen fuzzy language
|
|
51
49
|
|
|
@@ -59,11 +57,11 @@ When domain relationships are being discussed, stress-test them with specific sc
|
|
|
59
57
|
|
|
60
58
|
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?"
|
|
61
59
|
|
|
62
|
-
### Update
|
|
60
|
+
### Update GLOSSARY.md inline
|
|
63
61
|
|
|
64
|
-
When a term is resolved, update `
|
|
62
|
+
When a term is resolved, update `GLOSSARY.md` right there. Don't batch these up: capture them as they happen. Use the format in [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md).
|
|
65
63
|
|
|
66
|
-
`
|
|
64
|
+
`GLOSSARY.md` should be totally devoid of implementation details. Do not treat `GLOSSARY.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
|
|
67
65
|
|
|
68
66
|
### Offer ADRs sparingly
|
|
69
67
|
|
package/skills/grill-me/SKILL.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill-me
|
|
3
3
|
description: A relentless interview to sharpen a plan or design.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/productivity/grill-me). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
7
|
Call the Skill tool with "grilling".
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill-with-docs
|
|
3
3
|
description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/grill-with-docs). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
7
|
Call the Skill tool twice, for "grilling" and "domain-modeling".
|
package/skills/grilling/SKILL.md
CHANGED
|
@@ -3,8 +3,6 @@ name: grilling
|
|
|
3
3
|
description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/productivity/grilling). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
6
|
Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
|
|
9
7
|
|
|
10
8
|
Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled: the questions you can ask _now_ without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
|
|
@@ -23,6 +21,8 @@ Format a round like so:
|
|
|
23
21
|
➡️ <your recommended answer>
|
|
24
22
|
```
|
|
25
23
|
|
|
24
|
+
Word each question so "yes" accepts your recommended answer.
|
|
25
|
+
|
|
26
26
|
Each round the user answers reshapes the tree: settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
|
|
27
27
|
|
|
28
28
|
Finding _facts_ is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it; don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report; ask the rest of the frontier now. The _decisions_ are the user's: put each to them and wait.
|
package/skills/handoff/SKILL.md
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
name: handoff
|
|
3
3
|
description: Compact the current conversation into a handoff document for another agent to pick up.
|
|
4
4
|
argument-hint: "What will the next session be used for?"
|
|
5
|
+
disable-model-invocation: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS - not the current workspace.
|
|
8
|
+
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS (`$TMPDIR`, else `/tmp`; `%TEMP%` on Windows) - not the current workspace.
|
|
10
9
|
|
|
11
10
|
Include a "suggested skills" section in the document, naming which skills the next agent should call the Skill tool for.
|
|
12
11
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implement
|
|
3
3
|
description: "Implement a piece of work based on a spec or set of tickets."
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/implement). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
7
|
Implement the work described by the user in the spec or tickets.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
If the user passes a ticket reference, fetch it from the issue tracker and state its title before starting. If the reference is ambiguous, ask.
|
|
10
|
+
|
|
11
|
+
Call the Skill tool with "tdd" where possible, at pre-agreed seams.
|
|
11
12
|
|
|
12
13
|
Run typechecking regularly, single test files regularly, and the full test suite once at the end.
|
|
13
14
|
|
|
14
|
-
Once done,
|
|
15
|
+
Once done, call the Skill tool with "code-review" to review the work.
|
|
15
16
|
|
|
16
17
|
Commit your work to the current branch.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-spec
|
|
3
|
+
description: "Implement the result of /to-spec and /to-tickets in code."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You have been provided a spec. This spec should have tickets associated with it, describing how to implement the spec.
|
|
8
|
+
|
|
9
|
+
The issue tracker should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
|
|
10
|
+
|
|
11
|
+
The goal is the entire spec implemented on a single **integration branch**, with every ticket resolved the way the issue tracker closes work.
|
|
12
|
+
|
|
13
|
+
The tickets are not a list of steps. They are a **task graph** with blocking relationships between them. This means there is always a **frontier** of tickets which are ready to be grabbed.
|
|
14
|
+
|
|
15
|
+
Communication to and from subagents should be sparse. Communicate primarily through **context pointers**: to the spec, tickets, research notes, and previous commits. Don't duplicate information already available via pointers.
|
|
16
|
+
|
|
17
|
+
**Implementer subagents** should be run in the background where possible for maximum concurrency.
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
1. Read the spec and tickets to understand the task graph.
|
|
22
|
+
|
|
23
|
+
2. (optional) Use an **exploration subagent** to conduct any exploration required by the tickets - relevant codebase files or external documentation. Ensure the exploration subagent can save files - it should save its markdown notes in a directory outside the repo, accessible by all future subagents. This lets **implementer subagents** focus on implementation rather than exploration.
|
|
24
|
+
|
|
25
|
+
3. Create the integration branch. If the issue tracker closes work through PRs, or the user asks for one, open a draft PR after the first merge in step 5 (a branch with no commits ahead of main can't open one), marked as closing the spec and tickets.
|
|
26
|
+
|
|
27
|
+
4. Use **implementer subagents** to implement each ticket, each in its own worktree on its own branch. Each implementer subagent:
|
|
28
|
+
- confirms its worktree is based on the integration branch before starting, and resets onto it if not;
|
|
29
|
+
- calls the Skill tool with `tdd` to build the ticket;
|
|
30
|
+
- merges the integration branch tip into its own branch before reporting done
|
|
31
|
+
|
|
32
|
+
5. Once an **implementer subagent** completes, merge its work to the integration branch with a **merger subagent**.
|
|
33
|
+
|
|
34
|
+
6. If this changes the **frontier** of available tickets, kick off more **implementer subagents** to work on the new tickets. This allows for maximum concurrency.
|
|
35
|
+
|
|
36
|
+
7. Once all tickets are complete, call the Skill tool with `code-review` on the integration branch. Fix all issues raised by the code review in a single **implementer subagent**.
|
|
37
|
+
|
|
38
|
+
8. If a draft PR exists, mark it ready for review. Otherwise, resolve each ticket the way the issue tracker closes work, and report the integration branch.
|
|
39
|
+
|
|
40
|
+
9. Clean up all **implementer subagent** worktrees.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: improve-codebase-architecture
|
|
3
3
|
description: Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/improve-codebase-architecture). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
7
|
# Improve Codebase Architecture
|
|
9
8
|
|
|
10
9
|
Surface architectural friction and propose **deepening opportunities**: refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
|
|
@@ -12,7 +11,7 @@ Surface architectural friction and propose **deepening opportunities**: refactor
|
|
|
12
11
|
This command is _informed_ by the project's domain model and built on a shared design vocabulary:
|
|
13
12
|
|
|
14
13
|
- Call the Skill tool with "codebase-design" for the architecture vocabulary (**module**, **interface**, **depth**, **seam**, **adapter**, **leverage**, **locality**) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use these terms exactly in every suggestion, and don't drift into "component," "service," "API," or "boundary."
|
|
15
|
-
- The domain language in `
|
|
14
|
+
- The domain language in `GLOSSARY.md` gives names to good seams; ADRs in `docs/adr/` record decisions this command should not re-litigate.
|
|
16
15
|
|
|
17
16
|
## Process
|
|
18
17
|
|
|
@@ -23,7 +22,7 @@ This command is _informed_ by the project's domain model and built on a shared d
|
|
|
23
22
|
- If the user named a direction (a module, a subsystem, a pain point), take it, and skip the inference below.
|
|
24
23
|
- Otherwise, walk back a good stretch of the commit history (`git log --oneline`) to find the codebase's hot spots, the files and areas that keep coming up, and let those paths pull your attention first. If the changes are scattered with no clear hot spot, widen the net.
|
|
25
24
|
|
|
26
|
-
Read the project's domain glossary (`
|
|
25
|
+
Read the project's domain glossary (`GLOSSARY.md`) and any ADRs in the area you're touching first.
|
|
27
26
|
|
|
28
27
|
Then spawn a sub-agent to walk the codebase. Don't follow rigid heuristics; explore organically and note where you experience friction:
|
|
29
28
|
|
|
@@ -52,7 +51,7 @@ For each candidate, render a card with:
|
|
|
52
51
|
|
|
53
52
|
End the report with a **Top recommendation** section: which candidate you'd tackle first and why.
|
|
54
53
|
|
|
55
|
-
**Use
|
|
54
|
+
**Use GLOSSARY.md vocabulary for the domain, and the `/codebase-design` vocabulary for the architecture.** If `GLOSSARY.md` defines "Order," talk about "the Order intake module," not "the FooBarHandler," and not "the Order service."
|
|
56
55
|
|
|
57
56
|
**ADR conflicts**: if a candidate contradicts an existing ADR, only surface it when the friction is real enough to warrant revisiting the ADR. Mark it clearly in the card (e.g. a warning callout: _"contradicts ADR-0007, but worth reopening because…"_). Don't list every theoretical refactor an ADR forbids.
|
|
58
57
|
|
|
@@ -66,7 +65,7 @@ Once the user picks a candidate, call the Skill tool with "grilling" to walk the
|
|
|
66
65
|
|
|
67
66
|
Side effects happen inline as decisions crystallize; call the Skill tool with "domain-modeling" to keep the domain model current as you go:
|
|
68
67
|
|
|
69
|
-
- **Naming a deepened module after a concept not in `
|
|
70
|
-
- **Sharpening a fuzzy term during the conversation?** Update `
|
|
68
|
+
- **Naming a deepened module after a concept not in `GLOSSARY.md`?** Add the term to `GLOSSARY.md`. Create the file lazily if it doesn't exist.
|
|
69
|
+
- **Sharpening a fuzzy term during the conversation?** Update `GLOSSARY.md` right there.
|
|
71
70
|
- **User rejects the candidate with a load-bearing reason?** Offer an ADR, framed as: _"Want me to record this as an ADR so future architecture reviews don't re-suggest it?"_ Only offer when the reason would actually be needed by a future explorer to avoid re-suggesting the same thing; skip ephemeral reasons ("not worth it right now") and self-evident ones.
|
|
72
71
|
- **Want to explore alternative interfaces for the deepened module?** Call the Skill tool with "codebase-design" and use its design-it-twice parallel sub-agent pattern.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Credits
|
|
2
|
+
|
|
3
|
+
The **Summary** section's menu of visuals (pseudocode, call trees, component trees, file trees, Mermaid, diffs) and its placement guidance come from [Dex Horthy](https://github.com/dexhorthy)'s [`show-me`](https://github.com/humanlayer/humanlayer) skill, reproduced almost word for word and aimed at a diff instead of a live conversation. `pr` does not depend on `show-me` as a skill (it isn't part of this repo, and a hard dependency would break standalone installs), so the content is copied in rather than pointed at; this file is the attribution a dependency would otherwise have carried.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr
|
|
3
|
+
description: "Use when writing a PR body."
|
|
4
|
+
metadata:
|
|
5
|
+
credits:
|
|
6
|
+
skill: show-me
|
|
7
|
+
author: Dex Horthy
|
|
8
|
+
organisation: Humanlayer
|
|
9
|
+
url: "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Use this template for writing the PR body:
|
|
13
|
+
|
|
14
|
+
```markdown
|
|
15
|
+
## Summary
|
|
16
|
+
|
|
17
|
+
<diagram, diff-sketch, or tree>
|
|
18
|
+
|
|
19
|
+
## Evidence
|
|
20
|
+
|
|
21
|
+
- **Before:** <screenshot/output/failing test run>
|
|
22
|
+
**After:** <screenshot/output/passing test run>
|
|
23
|
+
|
|
24
|
+
## Merge Danger
|
|
25
|
+
|
|
26
|
+
**Door:** <one-way or two-way>
|
|
27
|
+
|
|
28
|
+
<optional: description>
|
|
29
|
+
|
|
30
|
+
**Blast Radius:** <one-word description>
|
|
31
|
+
|
|
32
|
+
<optional: potential ramifications of merge>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Sections
|
|
36
|
+
|
|
37
|
+
Skip all preambles and keep prose brief. Use the user's domain language from `GLOSSARY.md`.
|
|
38
|
+
|
|
39
|
+
### Summary
|
|
40
|
+
|
|
41
|
+
Pick the smallest view that makes the key point clear.
|
|
42
|
+
|
|
43
|
+
- Show logic or an algorithm as pseudocode:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
on(save)
|
|
47
|
+
if content is unchanged
|
|
48
|
+
return cached result
|
|
49
|
+
write new content
|
|
50
|
+
return fresh result
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Show runtime control flow as a call tree:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
submitForm
|
|
57
|
+
createSession
|
|
58
|
+
persistPrompt
|
|
59
|
+
launchAgent
|
|
60
|
+
navigateToSession
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- Show UI structure as a component tree, including state and module boundaries that matter:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
<SessionPage> (apps/example/src/routes/session.tsx)
|
|
67
|
+
useSessionEvents()
|
|
68
|
+
<SessionToolbar>
|
|
69
|
+
<RunSkillButton> (packages/ui)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
- Show file responsibility or a broad refactor as a shallow file tree:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
src/
|
|
76
|
+
├── commands/ # parses user actions
|
|
77
|
+
├── sessions/ # owns session state
|
|
78
|
+
└── transport/ # sends API requests
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
- Show component interaction, control flow, or data flow with Mermaid:
|
|
82
|
+
|
|
83
|
+
```mermaid
|
|
84
|
+
sequenceDiagram
|
|
85
|
+
participant User
|
|
86
|
+
participant UI
|
|
87
|
+
participant Daemon
|
|
88
|
+
User->>UI: choose command
|
|
89
|
+
UI->>Daemon: send expanded prompt
|
|
90
|
+
Daemon-->>UI: stream result
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- Use `diff` when the point is what changes and the surrounding shape already exists. Match the diff shape to the topic.
|
|
94
|
+
|
|
95
|
+
For a component change:
|
|
96
|
+
|
|
97
|
+
```diff
|
|
98
|
+
<SessionPage>
|
|
99
|
+
useSessionEvents()
|
|
100
|
+
<SessionToolbar>
|
|
101
|
+
+ <RunSkillButton />
|
|
102
|
+
<SessionTimeline>
|
|
103
|
+
+ <SkillResultCard />
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
For a file-layout change:
|
|
107
|
+
|
|
108
|
+
```diff
|
|
109
|
+
src/
|
|
110
|
+
├── commands/
|
|
111
|
+
+│ └── show-me.ts # expands the slash command
|
|
112
|
+
├── sessions/
|
|
113
|
+
-└── transport.ts
|
|
114
|
+
+└── transport/
|
|
115
|
+
+ ├── client.ts
|
|
116
|
+
+ └── stream.ts
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
For a call-tree or call-stack change:
|
|
120
|
+
|
|
121
|
+
```diff
|
|
122
|
+
submitForm
|
|
123
|
+
createSession
|
|
124
|
+
persistPrompt
|
|
125
|
+
+ expandSkillMention
|
|
126
|
+
launchAgent
|
|
127
|
+
- navigateToSession
|
|
128
|
+
+ navigateToSession
|
|
129
|
+
+ subscribeToEvents
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
For a state or control-flow change:
|
|
133
|
+
|
|
134
|
+
```diff
|
|
135
|
+
on(save)
|
|
136
|
+
- write content
|
|
137
|
+
+ if content is unchanged
|
|
138
|
+
+ return cached result
|
|
139
|
+
+ write new content
|
|
140
|
+
+ invalidate cache
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- Show the whole block when most of it is new, when omitted context would hide ownership or order, or when the user needs a copyable target shape:
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
function expandSkill(command: string): string {
|
|
147
|
+
const skillName = command.slice(1);
|
|
148
|
+
return `use the ${skillName} skill`;
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
#### Guidance
|
|
153
|
+
|
|
154
|
+
Place each visual next to the short text it supports. Keep only the calls, files, props, states, and boundaries needed to answer the user's current question or the options to resolve the current discussion point.
|
|
155
|
+
|
|
156
|
+
You may use one of these, you may use several, it is unlikely you will use all of them. Use your judgement and don't overwhelm the user.
|
|
157
|
+
|
|
158
|
+
### Evidence
|
|
159
|
+
|
|
160
|
+
Concrete evidence that the change works. Show a before and after.
|
|
161
|
+
|
|
162
|
+
Screenshots are S-tier - when the environment is set up for it and the change is visual.
|
|
163
|
+
|
|
164
|
+
Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode.
|
|
165
|
+
|
|
166
|
+
### Merge Danger
|
|
167
|
+
|
|
168
|
+
Describe whether it's a one-way or two-way door. You can walk back through two-way doors, but not one-way doors. A PR that is cheap to roll back is lower risk. Changes that involve destructive actions or hard-to-reverse decisions are one-way doors.
|
|
169
|
+
|
|
170
|
+
The blast radius is the potential impact or scope of the changes introduced by this PR. Consider all possibilities. Examples are layout shift, breakages for consumers, mobile responsiveness, etc.
|
|
@@ -3,8 +3,6 @@ name: prototype
|
|
|
3
3
|
description: Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/prototype). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
6
|
# Prototype
|
|
9
7
|
|
|
10
8
|
A prototype is **throwaway code that answers a question**. The question decides the shape.
|
package/skills/research/SKILL.md
CHANGED
|
@@ -3,8 +3,6 @@ name: research
|
|
|
3
3
|
description: Investigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, docs or API facts gathered, or reading legwork delegated to a background agent.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/research). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
6
|
Spin up a **background agent** to do the research, so you keep working while it reads.
|
|
9
7
|
|
|
10
8
|
Its job:
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: retro
|
|
3
|
+
description: "Conduct a retrospective on a coding session."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user has asked for a **retrospective**. You are suggesting improvements to the coding agent's **environment** to improve future runs.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. Call the Skill tool with `writing-for-agents` for the writing style guide.
|
|
12
|
+
|
|
13
|
+
2. Read the primary sources for the session the user specifies. This may mean searching through session logs on this machine. If the user doesn't specify a session, default to the current one.
|
|
14
|
+
|
|
15
|
+
3. Look for candidates for improvement in these categories.
|
|
16
|
+
|
|
17
|
+
- **Navigation**: how easy was it for the agent to find the right files? Are there hidden dependencies between files? Would a **navigation pointer** make it easier? _Use when_ the session took a long time to find a piece of information.
|
|
18
|
+
- **Automated checks**: are there automated checks that could catch errors the agent made? Linting, typing, tests, filesystem linters? Read the repo's own check command first (its `package.json`/build-tool `lint`/`check` scripts, its CI workflow), so a check that already exists but sits unwired or silently broken is the finding, not a reinvention. A repo with no **guardrail** (no pre-commit hook and no CI job running its lint/typecheck/test command) is itself a finding: an un-linted repo is a standing missed opportunity, not a neutral default. _Use when_ the agent made a mistake an automated check could have caught, or the repo has no guardrail at all.
|
|
19
|
+
- **Coding standards**: should the **reviewer agent** be given a new rule to enforce? Should an existing rule be removed or clarified? Classify the violation first: a **mechanical** one (a fixed syntactic pattern, a banned API, an import shape, a file-location rule) gets a deterministic check, full stop: a custom rule in the repo's own linter, a new pre-commit hook, or a new CI job, whichever the repo's language and existing guardrail make cheapest. Default to building the check over writing the rule. Reserve `CODING_STANDARDS.md` for genuine **judgement calls** (cross-file consistency, "matches the surrounding style," anything no guardrail could ever substitute for). _Use when_ the reviewer agent failed to catch a mistake.
|
|
20
|
+
- **Global AGENTS.md**: are there any steering instructions that should be moved to coding standards (or automated checks) instead? _Use when_ the AGENTS.md file is particularly large - in the repo OR the user's global scope.
|
|
21
|
+
- **Tool economy**: did the agent make expensive tool calls that could be streamlined? Is there any custom tooling (CLI's, MCP's) that is particularly token-inefficient? _Use when_ the agent made an expensive tool call.
|
|
22
|
+
- **No-ops**: look for instructions in steering files that don't modify the agent's behavior. _Use when_ the steering files are large and unwieldy.
|
|
23
|
+
- **Information access**: look for opportunities to increase the agent's access to information. Teeing dev server logs, readonly access to third-party services. _Use when_ a crucial piece of information was not available to the agent.
|
|
24
|
+
|
|
25
|
+
4. Present these candidates to the user, in order of severity.
|
|
26
|
+
|
|
27
|
+
## Reference
|
|
28
|
+
|
|
29
|
+
### Implementation vs Review
|
|
30
|
+
|
|
31
|
+
Remember that all work goes through two stages: implementation and review. The implementation agent has the most **context pressure**. They are responsible for exploration, writing code, and debugging failures.
|
|
32
|
+
|
|
33
|
+
The review agent has the least context pressure - it receives a diff, so no exploration needed. It often does not need to write code or debug.
|
|
34
|
+
|
|
35
|
+
This means that the review agent should be responsible for imposing coding standards, not the implementation agent.
|
|
36
|
+
|
|
37
|
+
### Files
|
|
38
|
+
|
|
39
|
+
You have access to several files in the repo:
|
|
40
|
+
|
|
41
|
+
- `CLAUDE.md`/`AGENTS.md`: these files are pushed to the context window of any agent working in this repo. They should be used incredibly sparingly, usually only for **navigation pointers** to other files.
|
|
42
|
+
- `CODING_STANDARDS.md`: this file is read during review, not implementation. Add **navigation pointers** to docs folders if the standards file gets more than 1,000 lines long.
|
|
43
|
+
- Docs: use docs as references files, pointed to by other files. Look for existing docs before writing new ones.
|
|
44
|
+
- Skills: use skills for docs (since their description goes into the agent's context window), or for user-invoked commands. Follow the advice in the `writing-for-agents` skill.
|
package/skills/tdd/SKILL.md
CHANGED
|
@@ -3,13 +3,11 @@ name: tdd
|
|
|
3
3
|
description: Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/tdd). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
6
|
# Test-Driven Development
|
|
9
7
|
|
|
10
8
|
TDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle: consult them before and during the loop, not after.
|
|
11
9
|
|
|
12
|
-
When exploring the codebase, read `
|
|
10
|
+
When exploring the codebase, read `GLOSSARY.md` (if it exists) so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.
|
|
13
11
|
|
|
14
12
|
## What a good test is
|
|
15
13
|
|
|
@@ -23,7 +21,7 @@ A **seam** is the public boundary you test at: the interface where you observe b
|
|
|
23
21
|
|
|
24
22
|
**Test only at pre-agreed seams.** Before writing any test, write down the seams under test and confirm them with the user. No test is written at an unconfirmed seam. You can't test everything, so agreeing the seams up front is how testing effort lands on the critical paths and complex logic instead of every edge case.
|
|
25
23
|
|
|
26
|
-
Ask: "What's the public interface, and which seams should we test?"
|
|
24
|
+
Ask: "What's the public interface, and which seams should we test?" Give each proposed seam a one-line note on what it catches and what it misses.
|
|
27
25
|
|
|
28
26
|
When the shape of that interface is itself in question (how deep the module is, where the seam belongs, what the interface should expose), call the Skill tool with "codebase-design" for the vocabulary. It is the shared source of the module, interface, depth, seam, adapter, leverage and locality terms, and it is a reference to consult, not a session to run.
|
|
29
27
|
|
package/skills/teach/SKILL.md
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: teach
|
|
3
3
|
description: Teach the user a new skill or concept, within this workspace.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
argument-hint: "What would you like to learn about?"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/productivity/teach). MIT licensed — see LICENSE in this directory. -->
|
|
8
|
-
|
|
9
8
|
The user has asked you to teach them something. This is a stateful request - they intend to learn the topic over multiple sessions.
|
|
10
9
|
|
|
11
10
|
## Teaching Workspace
|
|
12
11
|
|
|
13
|
-
Treat the current directory as a teaching workspace. The state of their learning is captured in this directory in several files:
|
|
12
|
+
Treat the current directory as a teaching workspace. Workspace paths (`./lessons/` and the rest) resolve from the directory `/teach` was run in; only the `*-FORMAT.md` links resolve from this skill's folder. The state of their learning is captured in this directory in several files:
|
|
14
13
|
|
|
15
14
|
- `MISSION.md`: A document capturing the _reason_ the user is interested in the topic. This should be used to ground all teaching. Use the format in [MISSION-FORMAT.md](./MISSION-FORMAT.md).
|
|
16
15
|
- `./reference/*.html`: A directory of reference materials. These are the compressed learnings from the lessons - cheat sheets, reference algorithms, syntax, yoga poses, glossaries. They are the raw units of learning. They should be beautiful documents which print out well, and are designed for quick reference.
|
|
@@ -108,7 +107,7 @@ For skill acquisition, difficulty is the tool. Effortful retrieval is what build
|
|
|
108
107
|
|
|
109
108
|
Each of these should be based on a **feedback loop**, where the user receives feedback on their performance. This feedback loop should be as tight as possible, giving feedback immediately - and ideally automatically.
|
|
110
109
|
|
|
111
|
-
For quizzes, each answer should be exactly the same number of words (and characters, if possible). Don't give the user any clues about the answer through formatting.
|
|
110
|
+
For quizzes, each answer should be exactly the same number of words (and characters, if possible). Vary which position holds the correct answer across questions. Don't give the user any clues about the answer through formatting or order.
|
|
112
111
|
|
|
113
112
|
## Acquiring Wisdom
|
|
114
113
|
|