@agentshouse/kit 0.2.1-c903d1429e34a → 0.2.1-c9a26041e119a

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 (83) hide show
  1. package/README.md +16 -15
  2. package/dist/agents.js +58 -4
  3. package/dist/api.js +5 -1
  4. package/dist/bootstrap.json +4 -4
  5. package/dist/chatgpt.js +26 -0
  6. package/dist/clis.js +42 -9
  7. package/dist/conversations.js +6 -5
  8. package/dist/copies.js +18 -8
  9. package/dist/end.js +4 -0
  10. package/dist/files.js +7 -1
  11. package/dist/git.js +11 -8
  12. package/dist/home.js +41 -4
  13. package/dist/house-main.js +165 -65
  14. package/dist/instructions.js +4 -29
  15. package/dist/kit-main.js +53 -8
  16. package/dist/login.js +39 -13
  17. package/dist/parts.js +34 -16
  18. package/dist/placement.js +48 -0
  19. package/dist/relay.js +1 -1
  20. package/dist/resident.js +8 -4
  21. package/dist/skills.js +81 -12
  22. package/dist/stream.js +62 -13
  23. package/dist/transcription.js +3 -3
  24. package/dist/update.js +28 -6
  25. package/dist/wire.js +6 -0
  26. package/how-we-work.md +13 -3
  27. package/package.json +2 -1
  28. package/skills/ask-matt/SKILL.md +17 -11
  29. package/skills/ask-matt/agents/openai.yaml +1 -0
  30. package/skills/code-review/SKILL.md +5 -5
  31. package/skills/codebase-design/DESIGN-IT-TWICE.md +1 -1
  32. package/skills/codebase-design/SKILL.md +0 -2
  33. package/skills/diagnosing-bugs/SKILL.md +2 -4
  34. package/skills/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +10 -10
  35. package/skills/domain-modeling/SKILL.md +12 -14
  36. package/skills/grill-me/SKILL.md +1 -2
  37. package/skills/grill-me/agents/openai.yaml +1 -0
  38. package/skills/grill-with-docs/SKILL.md +1 -2
  39. package/skills/grill-with-docs/agents/openai.yaml +1 -0
  40. package/skills/grilling/SKILL.md +2 -2
  41. package/skills/handoff/SKILL.md +2 -3
  42. package/skills/handoff/agents/openai.yaml +1 -0
  43. package/skills/implement/SKILL.md +5 -4
  44. package/skills/implement/agents/openai.yaml +1 -0
  45. package/skills/implement-spec/SKILL.md +40 -0
  46. package/skills/implement-spec/agents/openai.yaml +5 -0
  47. package/skills/improve-codebase-architecture/SKILL.md +6 -7
  48. package/skills/improve-codebase-architecture/agents/openai.yaml +1 -0
  49. package/skills/pr/CREDITS.md +3 -0
  50. package/skills/pr/LICENSE +21 -0
  51. package/skills/pr/SKILL.md +170 -0
  52. package/skills/pr/agents/openai.yaml +3 -0
  53. package/skills/prototype/SKILL.md +0 -2
  54. package/skills/research/SKILL.md +0 -2
  55. package/skills/retro/LICENSE +21 -0
  56. package/skills/retro/SKILL.md +44 -0
  57. package/skills/retro/agents/openai.yaml +5 -0
  58. package/skills/tdd/SKILL.md +2 -4
  59. package/skills/teach/SKILL.md +3 -4
  60. package/skills/teach/agents/openai.yaml +1 -0
  61. package/skills/to-questionnaire/SKILL.md +1 -2
  62. package/skills/to-questionnaire/agents/openai.yaml +1 -0
  63. package/skills/to-spec/SKILL.md +1 -2
  64. package/skills/to-spec/agents/openai.yaml +1 -0
  65. package/skills/to-tickets/SKILL.md +3 -4
  66. package/skills/to-tickets/agents/openai.yaml +1 -0
  67. package/skills/triage/AGENT-BRIEF.md +207 -0
  68. package/skills/triage/LICENSE +21 -0
  69. package/skills/triage/OUT-OF-SCOPE.md +105 -0
  70. package/skills/triage/SKILL.md +112 -0
  71. package/skills/triage/agents/openai.yaml +5 -0
  72. package/skills/wait-what/SKILL.md +2 -3
  73. package/skills/wait-what/agents/openai.yaml +1 -0
  74. package/skills/wayfinder/SKILL.md +5 -6
  75. package/skills/wayfinder/agents/openai.yaml +1 -0
  76. package/skills/wizard/LICENSE +21 -0
  77. package/skills/wizard/SKILL.md +44 -0
  78. package/skills/wizard/agents/openai.yaml +3 -0
  79. package/skills/wizard/template.sh +223 -0
  80. package/skills/writing-for-agents/SKILL.md +0 -2
  81. package/skills/resolving-merge-conflicts/SKILL.md +0 -16
  82. package/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
  83. /package/skills/{resolving-merge-conflicts → implement-spec}/LICENSE +0 -0
@@ -3,8 +3,6 @@ name: codebase-design
3
3
  description: Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
4
4
  ---
5
5
 
6
- <!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/codebase-design). MIT licensed — see LICENSE in this directory. -->
7
-
8
6
  # Codebase Design
9
7
 
10
8
  Design **deep modules**: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. Use this language and these principles wherever code is being designed or restructured. The aim is leverage for callers, locality for maintainers, and testability for everyone.
@@ -3,13 +3,11 @@ name: diagnosing-bugs
3
3
  description: Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
4
4
  ---
5
5
 
6
- <!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/diagnosing-bugs). MIT licensed — see LICENSE in this directory. -->
7
-
8
6
  # Diagnosing Bugs
9
7
 
10
8
  A discipline for hard bugs. Skip phases only when explicitly justified.
11
9
 
12
- When exploring the codebase, read `CONTEXT.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.
10
+ When exploring the codebase, read `GLOSSARY.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.
13
11
 
14
12
  ## Redact
15
13
 
@@ -124,7 +122,7 @@ A correct seam is one where the test exercises the **real bug pattern** as it oc
124
122
  If a correct seam exists:
125
123
 
126
124
  1. Turn the minimised repro into a failing test at that seam.
127
- 2. Watch it fail.
125
+ 2. Watch it fail. If you forced the red by mutating code or a fixture, `diff` against a pristine copy to prove the mutation landed before you trust it.
128
126
  3. Apply the fix.
129
127
  4. Watch it pass.
130
128
  5. Re-run the Phase 1 feedback loop against the original (un-minimised) scenario.
@@ -1,4 +1,4 @@
1
- # CONTEXT.md Format
1
+ # GLOSSARY.md Format
2
2
 
3
3
  ## Structure
4
4
 
@@ -31,18 +31,18 @@ _Avoid_: Client, buyer, account
31
31
 
32
32
  ## Single vs multi-context repos
33
33
 
34
- **Single context (most repos):** One `CONTEXT.md` at the repo root.
34
+ **Single context (most repos):** One `GLOSSARY.md` at the repo root.
35
35
 
36
- **Multiple contexts:** A `CONTEXT-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
36
+ **Multiple contexts:** A `GLOSSARY-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
37
37
 
38
38
  ```md
39
- # Context Map
39
+ # Glossary Map
40
40
 
41
41
  ## Contexts
42
42
 
43
- - [Ordering](./src/ordering/CONTEXT.md): receives and tracks customer orders
44
- - [Billing](./src/billing/CONTEXT.md): generates invoices and processes payments
45
- - [Fulfillment](./src/fulfillment/CONTEXT.md): manages warehouse picking and shipping
43
+ - [Ordering](./src/ordering/GLOSSARY.md): receives and tracks customer orders
44
+ - [Billing](./src/billing/GLOSSARY.md): generates invoices and processes payments
45
+ - [Fulfillment](./src/fulfillment/GLOSSARY.md): manages warehouse picking and shipping
46
46
 
47
47
  ## Relationships
48
48
 
@@ -53,8 +53,8 @@ _Avoid_: Client, buyer, account
53
53
 
54
54
  The skill infers which structure applies:
55
55
 
56
- - If `CONTEXT-MAP.md` exists, read it to find contexts
57
- - If only a root `CONTEXT.md` exists, single context
58
- - If neither exists, create a root `CONTEXT.md` lazily when the first term is resolved
56
+ - If `GLOSSARY-MAP.md` exists, read it to find contexts
57
+ - If only a root `GLOSSARY.md` exists, single context
58
+ - If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved
59
59
 
60
60
  When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.
@@ -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 CONTEXT.md, or recording or editing an ADR.
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* `CONTEXT.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.)
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
- ├── CONTEXT.md
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 `CONTEXT-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
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
- ├── CONTEXT-MAP.md
28
+ ├── GLOSSARY-MAP.md
31
29
  ├── docs/
32
30
  │ └── adr/ ← system-wide decisions
33
31
  ├── src/
34
32
  │ ├── ordering/
35
- │ │ ├── CONTEXT.md
33
+ │ │ ├── GLOSSARY.md
36
34
  │ │ └── docs/adr/ ← context-specific decisions
37
35
  │ └── billing/
38
- │ ├── CONTEXT.md
36
+ │ ├── GLOSSARY.md
39
37
  │ └── docs/adr/
40
38
  ```
41
39
 
42
- Create files lazily: only when you have something to write. If no `CONTEXT.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
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 `CONTEXT.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"
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 CONTEXT.md inline
60
+ ### Update GLOSSARY.md inline
63
61
 
64
- When a term is resolved, update `CONTEXT.md` right there. Don't batch these up: capture them as they happen. Use the format in [CONTEXT-FORMAT.md](./CONTEXT-FORMAT.md).
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
- `CONTEXT.md` should be totally devoid of implementation details. Do not treat `CONTEXT.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
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
 
@@ -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".
@@ -2,3 +2,4 @@ interface:
2
2
  display_name: "Grill Me"
3
3
  short_description: "Sharpen a plan through interview"
4
4
  policy:
5
+ allow_implicit_invocation: false
@@ -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".
@@ -2,3 +2,4 @@ interface:
2
2
  display_name: "Grill with Docs"
3
3
  short_description: "Grill a design and write its docs"
4
4
  policy:
5
+ allow_implicit_invocation: false
@@ -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.
@@ -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
- <!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/productivity/handoff). MIT licensed — see LICENSE in this directory. -->
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
 
@@ -2,3 +2,4 @@ interface:
2
2
  display_name: "Handoff"
3
3
  short_description: "Compact a conversation into a handoff"
4
4
  policy:
5
+ allow_implicit_invocation: false
@@ -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
- Use /tdd where possible, at pre-agreed seams.
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, use /code-review to review the work.
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.
@@ -2,3 +2,4 @@ interface:
2
2
  display_name: "Implement"
3
3
  short_description: "Build work from a spec or tickets"
4
4
  policy:
5
+ allow_implicit_invocation: false
@@ -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.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Implement Spec"
3
+ short_description: "Implement the result of /to-spec and /to-tickets in code."
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -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 `CONTEXT.md` gives names to good seams; ADRs in `docs/adr/` record decisions this command should not re-litigate.
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 (`CONTEXT.md`) and any ADRs in the area you're touching first.
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 CONTEXT.md vocabulary for the domain, and the `/codebase-design` vocabulary for the architecture.** If `CONTEXT.md` defines "Order," talk about "the Order intake module," not "the FooBarHandler," and not "the Order service."
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 `CONTEXT.md`?** Add the term to `CONTEXT.md`. Create the file lazily if it doesn't exist.
70
- - **Sharpening a fuzzy term during the conversation?** Update `CONTEXT.md` right there.
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.
@@ -2,3 +2,4 @@ interface:
2
2
  display_name: "Improve Codebase Architecture"
3
3
  short_description: "Find and grill architecture improvements"
4
4
  policy:
5
+ allow_implicit_invocation: false
@@ -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.
@@ -0,0 +1,3 @@
1
+ interface:
2
+ display_name: "PR"
3
+ short_description: "Write a PR body that's fast to review"
@@ -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.
@@ -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.