@heihei0299/matt-skills 2.1.13 → 3.0.1

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 (104) hide show
  1. package/README.md +3 -2
  2. package/bin/cli.js +51 -122
  3. package/bin/skill-boundaries.js +0 -8
  4. package/bin/skill-config.js +21 -0
  5. package/bin/skill-selection.js +27 -0
  6. package/config/required.json +5 -0
  7. package/package.json +2 -1
  8. package/scripts/sync-upstream.js +3 -12
  9. package/template/.opencode/CONTEXT.md +7 -7
  10. package/template/.pi/CONTEXT.md +7 -7
  11. package/template/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
  12. package/template/.agents/skills/ask-matt/SKILL.md +0 -90
  13. package/template/.agents/skills/ask-matt/agents/openai.yaml +0 -5
  14. package/template/.agents/skills/code-review/SKILL.md +0 -87
  15. package/template/.agents/skills/code-review/agents/openai.yaml +0 -3
  16. package/template/.agents/skills/codebase-design/DEEPENING.md +0 -37
  17. package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  18. package/template/.agents/skills/codebase-design/SKILL.md +0 -114
  19. package/template/.agents/skills/codebase-design/agents/openai.yaml +0 -3
  20. package/template/.agents/skills/diagnose-fix/SKILL.md +0 -43
  21. package/template/.agents/skills/diagnose-fix/agents/openai.yaml +0 -5
  22. package/template/.agents/skills/diagnose-fix/references/anti-patterns.md +0 -21
  23. package/template/.agents/skills/diagnosing-bugs/SKILL.md +0 -138
  24. package/template/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
  25. package/template/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
  26. package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  27. package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  28. package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
  29. package/template/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
  30. package/template/.agents/skills/grill-me/SKILL.md +0 -7
  31. package/template/.agents/skills/grill-me/agents/openai.yaml +0 -5
  32. package/template/.agents/skills/grill-to-spec/SKILL.md +0 -55
  33. package/template/.agents/skills/grill-to-spec/agents/openai.yaml +0 -5
  34. package/template/.agents/skills/grill-to-spec/references/rules.md +0 -47
  35. package/template/.agents/skills/grill-with-docs/SKILL.md +0 -7
  36. package/template/.agents/skills/grill-with-docs/agents/openai.yaml +0 -5
  37. package/template/.agents/skills/grilling/SKILL.md +0 -28
  38. package/template/.agents/skills/grilling/agents/openai.yaml +0 -3
  39. package/template/.agents/skills/handoff/SKILL.md +0 -16
  40. package/template/.agents/skills/handoff/agents/openai.yaml +0 -5
  41. package/template/.agents/skills/implement/SKILL.md +0 -15
  42. package/template/.agents/skills/implement/agents/openai.yaml +0 -5
  43. package/template/.agents/skills/implement-review-loop/SKILL.md +0 -34
  44. package/template/.agents/skills/implement-review-loop/agents/openai.yaml +0 -5
  45. package/template/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  46. package/template/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
  47. package/template/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  48. package/template/.agents/skills/instance-test/SKILL.md +0 -70
  49. package/template/.agents/skills/instance-test/agents/openai.yaml +0 -5
  50. package/template/.agents/skills/instance-test/references/instances.md +0 -75
  51. package/template/.agents/skills/prototype/LOGIC.md +0 -67
  52. package/template/.agents/skills/prototype/SKILL.md +0 -26
  53. package/template/.agents/skills/prototype/UI.md +0 -112
  54. package/template/.agents/skills/prototype/agents/openai.yaml +0 -3
  55. package/template/.agents/skills/research/SKILL.md +0 -12
  56. package/template/.agents/skills/research/agents/openai.yaml +0 -3
  57. package/template/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
  58. package/template/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
  59. package/template/.agents/skills/scaffold-functional-test/SKILL.md +0 -64
  60. package/template/.agents/skills/scaffold-functional-test/agents/openai.yaml +0 -5
  61. package/template/.agents/skills/scaffold-functional-test/references/schema.md +0 -80
  62. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
  63. package/template/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
  64. package/template/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
  65. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  66. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  67. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  68. package/template/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  69. package/template/.agents/skills/show-me/SKILL.md +0 -28
  70. package/template/.agents/skills/tdd/SKILL.md +0 -38
  71. package/template/.agents/skills/tdd/agents/openai.yaml +0 -3
  72. package/template/.agents/skills/tdd/mocking.md +0 -59
  73. package/template/.agents/skills/tdd/tests.md +0 -77
  74. package/template/.agents/skills/tdd-implement/SKILL.md +0 -81
  75. package/template/.agents/skills/tdd-implement/agents/openai.yaml +0 -5
  76. package/template/.agents/skills/tdd-implement/references/finalize.md +0 -16
  77. package/template/.agents/skills/tdd-implement/references/orchestration.md +0 -54
  78. package/template/.agents/skills/tdd-implement/references/verify.md +0 -15
  79. package/template/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
  80. package/template/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  81. package/template/.agents/skills/teach/MISSION-FORMAT.md +0 -31
  82. package/template/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
  83. package/template/.agents/skills/teach/SKILL.md +0 -140
  84. package/template/.agents/skills/teach/agents/openai.yaml +0 -5
  85. package/template/.agents/skills/to-questionnaire/SKILL.md +0 -54
  86. package/template/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
  87. package/template/.agents/skills/to-spec/SKILL.md +0 -75
  88. package/template/.agents/skills/to-spec/agents/openai.yaml +0 -5
  89. package/template/.agents/skills/to-tickets/SKILL.md +0 -105
  90. package/template/.agents/skills/to-tickets/agents/openai.yaml +0 -5
  91. package/template/.agents/skills/triage/AGENT-BRIEF.md +0 -207
  92. package/template/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
  93. package/template/.agents/skills/triage/SKILL.md +0 -112
  94. package/template/.agents/skills/triage/agents/openai.yaml +0 -5
  95. package/template/.agents/skills/wait-what/SKILL.md +0 -7
  96. package/template/.agents/skills/wait-what/agents/openai.yaml +0 -5
  97. package/template/.agents/skills/wayfinder/SKILL.md +0 -128
  98. package/template/.agents/skills/wayfinder/agents/openai.yaml +0 -5
  99. package/template/.agents/skills/wizard/SKILL.md +0 -44
  100. package/template/.agents/skills/wizard/agents/openai.yaml +0 -3
  101. package/template/.agents/skills/wizard/template.sh +0 -204
  102. package/template/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
  103. package/template/.agents/skills/writing-for-agents/SKILL.md +0 -81
  104. package/template/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
@@ -1,54 +0,0 @@
1
- # 多 issue 编排
2
-
3
- 仅在存在多个 `Type: task` issue 时生效。每个 issue 仍按 `Red-Green → Verify → Finalize` 独立完成;本文件只负责依赖顺序与状态推进。
4
-
5
- ## 1. 构建依赖图
6
-
7
- 读取每个 issue 的 `Blocked by`:
8
-
9
- - 无依赖时视为可直接调度;
10
- - 引用了其它 issue 时建立依赖边;
11
- - 字段无法解析、依赖节点不存在或出现环时,对受影响 issue 停止调度并报告实际原因,不降级为无依赖。
12
-
13
- 使用 Kahn 算法按依赖关系分层;层间串行,每层内按 issue 编号串行。
14
-
15
- ## 2. 串行执行
16
-
17
- ```text
18
- for each layer:
19
- for each issue:
20
- Red-Green
21
- Verify
22
- Finalize
23
- 更新 issue 与 progress
24
- ```
25
-
26
- 一个 issue Finalize 完成后立即进入下一个可调度 issue。前置 issue 未完成时,其依赖项保持 `blocked`。
27
-
28
- 每个 issue 的 TDD、验证、Review 与 Finalize 规则分别以 `SKILL.md`、`red-green.md`、`verify.md`、`finalize.md` 为准,本文件不重复定义。
29
-
30
- ## 3. 状态收敛
31
-
32
- 每个 issue 完成后同步:
33
-
34
- - `Status`;
35
- - commit;
36
- - Review 状态;
37
- - 验证结果;
38
- - 已解除的 blockers。
39
-
40
- 当前层所有 issue 完成后进入下一层。全部层完成后,确认 issue 与 progress 状态一致即可结束;不额外扩大验证范围,也不再次执行完整 Review。
41
-
42
- ## 冲突与失败
43
-
44
- - `Blocked by` 无法解析、依赖缺失或存在环:停止受影响调度并报告。
45
- - issue 执行失败:保持未完成,按失败所在 Step 处理;其依赖项继续保持 `blocked`。
46
- - 多个 issue 修改同一位置且无法安全串行归属:暂停相关 issue,请求用户决定。
47
- - 外部权限、工具或环境阻塞:记录实际状态,不把失败静默当作完成。
48
-
49
- ## 出口
50
-
51
- - 所有可执行 issue 均按依赖顺序完成;
52
- - 每个完成的 issue 均有独立 commit;
53
- - issue、依赖状态与 progress 一致;
54
- - 不存在被误当作已完成的 blocked issue。
@@ -1,15 +0,0 @@
1
- # Verify
2
-
3
- 验证必须对应当前最终 diff;实现或测试变化后,只重新验证受影响证据。
4
-
5
- ## 规则
6
-
7
- - 只验证当前 issue 的必要范围,不因进入 Verify 自动扩大验证范围。
8
- - ticket 要求真实运行验证时,执行与验收目标匹配的实际验证。
9
- - 验证通过后不机械重复等价验证。
10
- - 若修改产生新的 Behavior,返回 Red-Green 对该 Behavior 执行 TDD,完成后再验证受影响范围。
11
-
12
- ## 出口
13
-
14
- - 当前 issue 的必要验证通过;
15
- - 要求的真实运行验证完成。
@@ -1,35 +0,0 @@
1
- # GLOSSARY.md Format
2
-
3
- `GLOSSARY.md` is the canonical language for this teaching workspace. All explainers, exercises, and learning records should adhere to its terminology. Building it is itself part of learning: compressing a concept into a tight definition is evidence the user understands it.
4
-
5
- ## Structure
6
-
7
- ```md
8
- # {Topic} Glossary
9
-
10
- {One or two sentence description of the topic this glossary covers.}
11
-
12
- ## Terms
13
-
14
- **Hypertrophy**:
15
- Muscle growth driven by mechanical tension and metabolic stress over repeated training sessions.
16
- _Avoid_: Bulking, getting big
17
-
18
- **Progressive overload**:
19
- Systematically increasing the demand on a muscle over time, via load, volume, or intensity.
20
- _Avoid_: Pushing harder, levelling up
21
-
22
- **RPE (Rate of Perceived Exertion)**:
23
- A 1–10 self-rating of how hard a set felt, where 10 is failure and 8 means two reps left in the tank.
24
- _Avoid_: Effort score, intensity rating
25
- ```
26
-
27
- ## Rules
28
-
29
- - **Add a term only when the user understands it.** The glossary is a record of compressed knowledge, not a dictionary the user reads to learn. If the user has just been introduced to a concept, wait until they can use it correctly before promoting it here.
30
- - **Be opinionated.** When several words exist for the same concept, pick the best one and list the rest as aliases to avoid. This is how language compresses.
31
- - **Keep definitions tight.** One or two sentences. Define what the term IS, not what it does or how to do it.
32
- - **Use the glossary's own terms inside definitions.** Once a term is in the glossary, prefer it everywhere, including inside other definitions. This is what makes complex terms easier to grasp later.
33
- - **Group under subheadings** when natural clusters emerge (e.g. `## Anatomy`, `## Programming`). A flat list is fine when terms cohere.
34
- - **Flag ambiguities explicitly.** If a term is used loosely in the wider field, note the resolution: "In this workspace, 'set' always means a working set; warm-ups are tracked separately."
35
- - **Revise as understanding deepens.** A definition the user wrote in week one may be wrong by week six. Update in place; do not leave stale entries.
@@ -1,46 +0,0 @@
1
- # Learning Record Format
2
-
3
- Learning records live in `./learning-records/` and use sequential numbering: `0001-slug.md`, `0002-slug.md`, etc. Create the directory lazily: only when the first record is written.
4
-
5
- They are the teaching equivalent of ADRs: they capture non-obvious lessons, key insights, and stated prior knowledge that will steer future sessions. They are used to calculate the zone of proximal development.
6
-
7
- ## Template
8
-
9
- ```md
10
- # {Short title of what was learned or established}
11
-
12
- {1-3 sentences: what was learned (or what prior knowledge was established), and why it matters for future sessions.}
13
- ```
14
-
15
- That is the whole format. A learning record can be a single paragraph. The value is recording _that_ this is now known and _why_ it changes what to teach next, not in filling out sections.
16
-
17
- ## Optional sections
18
-
19
- Only include these when they add genuine value. Most records won't need them.
20
-
21
- - **Status** frontmatter (`active | superseded by LR-NNNN`): useful when an earlier understanding turns out to be wrong and is replaced.
22
- - **Evidence**: how the user demonstrated the understanding (a question answered, an exercise completed, prior experience cited). Useful when the claim might be revisited.
23
- - **Implications**: what this unlocks or rules out for future sessions. Worth recording when non-obvious.
24
-
25
- ## Numbering
26
-
27
- Scan `./learning-records/` for the highest existing number and increment by one.
28
-
29
- ## When to write a learning record
30
-
31
- Write one when any of these is true:
32
-
33
- 1. **The user demonstrated genuine understanding of something non-trivial**: not just exposure, but evidence they can use the concept correctly. This sets a new floor for what to teach next.
34
- 2. **The user disclosed prior knowledge**: "I already know X." Record it so future sessions don't re-teach it. Also record the _depth_ claimed.
35
- 3. **A misconception was corrected**: the user previously believed something wrong and now sees why. These are high-value: they predict future stumbling blocks for related topics.
36
- 4. **The mission shifted in response to learning**: the user discovered they cared about something different than they thought. Cross-link to [[MISSION.md]] and update it.
37
-
38
- ### What does _not_ qualify
39
-
40
- - Material that was merely covered. Coverage is not learning. Wait for evidence.
41
- - Anything already captured tersely in [[GLOSSARY.md]] as a term definition. Don't duplicate.
42
- - Session-by-session activity logs. Learning records are not a journal: they are decision-grade insights.
43
-
44
- ## Supersession
45
-
46
- When a later record contradicts an earlier one (the user's understanding deepened or corrected), mark the old record `Status: superseded by LR-NNNN` rather than deleting it. The history of how understanding evolved is itself useful signal.
@@ -1,31 +0,0 @@
1
- # MISSION.md Format
2
-
3
- `MISSION.md` lives at the workspace root. It captures the _reason_ the user is learning this topic. Every teaching decision (what to teach next, which resources to surface, which exercises to design) should trace back to this document.
4
-
5
- ## Template
6
-
7
- ```md
8
- # Mission: {Topic}
9
-
10
- ## Why
11
- {1-3 sentences. The concrete real-world goal the user is chasing. What changes in their life or work when they have this skill? Avoid abstract framings like "to understand X"; push for the underlying outcome.}
12
-
13
- ## Success looks like
14
- - {A specific, observable thing the user will be able to do}
15
- - {Another specific thing}
16
- - {…}
17
-
18
- ## Constraints
19
- - {Time, budget, prior commitments, learning preferences, anything that bounds the approach}
20
-
21
- ## Out of scope
22
- - {Adjacent topics the user explicitly does not want to chase right now, protecting the zone of proximal development}
23
- ```
24
-
25
- ## Rules
26
-
27
- - **One mission per workspace.** If the user wants to learn two unrelated things, that is two workspaces.
28
- - **Concrete over abstract.** "Run a half marathon by October" beats "get fitter." "Ship a Rust CLI to my team" beats "learn Rust."
29
- - **Push back on vagueness.** If the user cannot articulate why, interview them before writing anything. A bad mission is worse than no mission.
30
- - **Revise when reality shifts.** Missions change. When the user's goal moves, update this file: don't leave a stale mission steering future sessions.
31
- - **Keep it short.** If `MISSION.md` runs past a screen, it has stopped being a compass and started being a plan.
@@ -1,32 +0,0 @@
1
- # RESOURCES.md Format
2
-
3
- `RESOURCES.md` is the curated set of trusted sources for this topic. Knowledge for explainers should be drawn from here, not from parametric guesses. Wisdom comes from the communities listed here.
4
-
5
- ## Structure
6
-
7
- ```md
8
- # {Topic} Resources
9
-
10
- ## Knowledge
11
-
12
- - [Book: _The Science and Practice of Strength Training_ by Zatsiorsky & Kraemer](https://example.com)
13
- Foundational text on programming and adaptation. Use for: anything to do with periodisation, recovery, intensity zones.
14
- - [Article: "How Much Should I Train?" by Greg Nuckols (Stronger By Science)](https://example.com)
15
- Evidence-based review of volume landmarks. Use for: weekly set targets per muscle group.
16
-
17
- ## Wisdom (Communities)
18
-
19
- - [r/weightroom](https://reddit.com/r/weightroom)
20
- High-signal subreddit, moderated against bro-science. Use for: programme critique, plateau troubleshooting.
21
- - Local: Tuesday strength class at {gym name}
22
- Use for: real-time coaching feedback on lifts.
23
- ```
24
-
25
- ## Rules
26
-
27
- - **High-trust only.** Prefer primary sources, recognised experts, peer-reviewed work, and communities with strong moderation. If a resource is marketing dressed as education, leave it out.
28
- - **Annotate every entry.** A bare link is useless in three months. Add one line: what it covers and when to reach for it.
29
- - **Group by Knowledge / Wisdom.** Mirrors the philosophy in [SKILL.md](./SKILL.md). It is fine for a resource to appear in only one group.
30
- - **Surface gaps explicitly.** If no good resource exists for an area the mission needs, write a `## Gaps` section listing what is missing. This drives future search.
31
- - **Prune ruthlessly.** A resource that turned out to be wrong, shallow, or off-mission should be removed, not buried. Better five sharp sources than thirty mediocre ones.
32
- - **Record community preferences.** If the user has opted out of joining communities, note it here so future sessions don't keep proposing them.
@@ -1,140 +0,0 @@
1
- ---
2
- name: teach
3
- description: Teach the user a new skill or concept, within this workspace.
4
- disable-model-invocation: true
5
- argument-hint: "What would you like to learn about?"
6
- ---
7
-
8
- The user has asked you to teach them something. This is a stateful request - they intend to learn the topic over multiple sessions.
9
-
10
- ## Teaching Workspace
11
-
12
- Treat the current directory as a teaching workspace. The state of their learning is captured in this directory in several files:
13
-
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).
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.
16
- - `RESOURCES.md`: A list of resources which can be explored to ground your teaching in contextual knowledge, or to acquire knowledge and wisdom. Use the format in [RESOURCES-FORMAT.md](./RESOURCES-FORMAT.md).
17
- - `./learning-records/*.md`: A directory of learning records, which capture what the user has learned. These are loosely equivalent to architectural decision records in software development - they capture non-obvious lessons and key insights that may need to be revised later, or drive future sessions. These should be used to calculate the zone of proximal development. They are titled `0001-<dash-case-name>.md`, where the number increments each time. Use the format in [LEARNING-RECORD-FORMAT.md](./LEARNING-RECORD-FORMAT.md).
18
- - `./lessons/*.html`: A directory of lessons. A **lesson** is a single, self-contained HTML output that teaches one tightly-scoped thing tied to the mission. This is the primary unit of teaching in this workspace.
19
- - `./assets/*`: Reusable **components** shared across lessons. See [Assets](#assets).
20
- - `NOTES.md`: A scratchpad for you to jot down user preferences, or working notes.
21
-
22
- ## Philosophy
23
-
24
- To learn at a deep level, the user needs three things:
25
-
26
- - **Knowledge**, captured from high-quality, high-trust resources
27
- - **Skills**, acquired through highly-relevant interactive lessons devised by you, based on the knowledge
28
- - **Wisdom**, which comes from interacting with other learners and practitioners
29
-
30
- Before the `RESOURCES.md` is well-populated, your focus should be to find high-quality resources which will help the user acquire knowledge. Never trust your parametric knowledge.
31
-
32
- Some topics may require more skills than knowledge. Learning more about theoretical physics might be more knowledge-based. For yoga, more skills-based.
33
-
34
- ### Fluency vs Storage Strength
35
-
36
- You should be careful to split between two types of learning:
37
-
38
- - **Fluency strength**: in-the-moment retrieval of knowledge
39
- - **Storage strength**: long-term retention of knowledge
40
-
41
- Fluency can give the user an illusory sense of mastery, but storage strength is the real goal. Try to design lessons which build long-term retention by desirable difficulty:
42
-
43
- - Using retrieval practice (recall from memory)
44
- - Spacing (distributing practice over time)
45
- - Interleaving (mixing up different but related topics in practice - for skills practice only)
46
-
47
- ## Lessons
48
-
49
- A lesson is the main thing you produce: the unit in which knowledge and skills reach the user. Each lesson is one self-contained HTML file, saved to `./lessons/` and titled `0001-<dash-case-name>.html` where the number increments each time.
50
-
51
- A lesson should be **beautiful**, with clean, readable typography and layout, since the user will return to these later to review. Think Tufte.
52
-
53
- The lesson should be short, and completable very quickly. Learners' working memory is very small, and we need to stay within it. But each lesson should give the user a single tangible win that they can build on. It should be directly tied to the mission, and should be in the user's zone of proximal development.
54
-
55
- If possible, open the lesson file for the user by running a CLI command.
56
-
57
- Each lesson should link via HTML anchors to other lessons and reference documents.
58
-
59
- Each lesson should recommend a primary source for the user to read or watch. This should be the most high-quality, high-trust resource you found on the topic.
60
-
61
- Each lesson should contain a reminder to ask followup questions to the agent. The agent is their teacher, and can assist with anything that's unclear.
62
-
63
- ## Assets
64
-
65
- Lessons are built from reusable **components**, stored in `./assets/`: stylesheets, quiz widgets, simulators, diagram helpers, and anything else a second lesson could reuse.
66
-
67
- Reuse is the default, not the exception. Before authoring a lesson, read `./assets/` and build from the components already there. When a lesson needs something new and reusable, write it as a component in `./assets/` and link to it; never inline code a future lesson would duplicate.
68
-
69
- A shared stylesheet is the first component every workspace earns: every lesson links it, so the lessons look like one consistent course rather than a pile of one-offs. As the workspace grows, so should the component library.
70
-
71
- ## The Mission
72
-
73
- Every lesson should be tied into the mission - the reason that the user is interested in learning about the topic.
74
-
75
- If the user is unclear about the mission, or the `MISSION.md` is not populated, your first job should be to question the user on why they want to learn this.
76
-
77
- Failing to understand the mission will mean knowledge acquisition is not grounded in real-world goals. Lessons will feel too abstract. You will have no way of judging what the user should do next.
78
-
79
- Missions may change as the user develops more skills and knowledge. This is normal - make sure to update the `MISSION.md` and add a learning record to capture the change. Confirm with the user before changing the mission.
80
-
81
- ## Zone Of Proximal Development
82
-
83
- Each lesson, the user should always feel as if they are being challenged 'just enough'.
84
-
85
- The user may specify an exact thing they want to learn. If they don't, figure out their zone of proximal development by:
86
-
87
- - Reading their `learning-records`
88
- - Figuring out the right thing to teach them based on their mission
89
- - Teach the most relevant thing that fits in their zone of proximal development
90
-
91
- ## Knowledge
92
-
93
- Lessons should be designed around a skill the user is going to learn. The knowledge in the lesson should be only what's required to acquire that skill. You teach the knowledge first, then get the user to practice the skills via an interactive feedback loop.
94
-
95
- Knowledge should first be gathered from trusted resources. Use `RESOURCES.md` to keep track of them. Lessons should be littered with citations - links to external resources to back up any claim made. This increases the trustworthiness of the lesson.
96
-
97
- For acquiring knowledge, difficulty is the enemy. It eats working memory you need for understanding.
98
-
99
- ## Skills
100
-
101
- If knowledge is all about acquisition, skills are about durability and flexibility. Make the knowledge stick.
102
-
103
- For skill acquisition, difficulty is the tool. Effortful retrieval is what builds storage strength. Skills should be taught through interactive lessons. There are several tools at your disposal:
104
-
105
- - Interactive lessons, using quizzes and light in-browser tasks
106
- - Lessons which guide the user through a list of real-world steps to take (for instance, yoga poses)
107
-
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.
109
-
110
- 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.
111
-
112
- ## Acquiring Wisdom
113
-
114
- Wisdom comes from true real-world interaction - testing your skills outside the learning environment.
115
-
116
- When the user asks a question that appears to require wisdom, your default posture should be to attempt to answer - but to ultimately delegate to a **community**.
117
-
118
- A community is a place (online or offline) where the user can test their skills in the real world. This might be a forum, a subreddit, a real-world class (budget permitting) or a local interest group.
119
-
120
- You should attempt to find high-reputation communities the user can join. If the user expresses a preference that they don't want to join a community, respect it.
121
-
122
- ## Reference Documents
123
-
124
- While creating lessons, you should also create reference documents. Lessons can reference these documents - they are useful for tracking raw units of knowledge useful across lessons.
125
-
126
- Lessons will rarely be revisited later - reference documents will be. They should be the compressed essence of the lesson, in a format designed for quick reference.
127
-
128
- Some learning topics lend themselves to reference:
129
-
130
- - Syntax and code snippets for programming
131
- - Algorithms and flowcharts for processes
132
- - Yoga poses and sequences for yoga
133
- - Exercises and routines for fitness
134
- - Glossaries for any topic with its own nomenclature
135
-
136
- Glossaries, in particular, are an essential reference. Once one is created, it should be adhered to in every lesson.
137
-
138
- ## `NOTES.md`
139
-
140
- The user will sometimes express preferences of how they want to be taught, or things you should keep in mind. This is the place to record those preferences, so you can refer back to them when designing lessons or working with the user.
@@ -1,5 +0,0 @@
1
- interface:
2
- display_name: "Teach"
3
- short_description: "Learn a concept in a guided workspace"
4
- policy:
5
- allow_implicit_invocation: false
@@ -1,54 +0,0 @@
1
- ---
2
- name: to-questionnaire
3
- description: Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
4
- disable-model-invocation: true
5
- ---
6
-
7
- Turn something the user can't answer alone into a **questionnaire**: a Markdown document they hand to one person to fill in async, or fill out together over a meeting. The recipient holds knowledge the user lacks; the questionnaire pulls it out of them.
8
-
9
- **Grill the send, not the subject.** Interview the user only about the _send_, which they can always answer: who it goes to, and what they need back. The questions in the document then target the **gap** between what the recipient knows and what the user needs.
10
-
11
-
12
- 1. **Who is it going to?** Ask, in one exchange, the recipient's role, expertise, and relationship to the user. This fixes the questionnaire's tone and how much context it must carry. Done when you know who the recipient is and what they know that the user doesn't.
13
-
14
- 2. **What do you need back?** Ask, in one exchange, the specific decisions or facts the user can't resolve alone and needs from this person. Done when you have a concrete list of what the user must walk away able to do or decide.
15
-
16
- 3. **Write the questionnaire.** Draft questions aimed at the gap from steps 1–2, following the Document structure below. Write it to `to-questionnaire-<slug>.md` in the current directory (slug from the topic) and report the path. Done when the file exists and every item the user named in step 2 is covered by a question.
17
-
18
- ## Document structure
19
-
20
- Frame the document as a **discovery questionnaire**: the user lacks context, the recipient holds it. Order questions most-important-first, since async means you may only get one pass, and group them under `##` headings by theme once there are more than a handful. Write it using the template below.
21
-
22
- <questionnaire-template>
23
-
24
- # <Questionnaire title>
25
-
26
- **Purpose:** why this questionnaire exists and the decision riding on it.
27
-
28
- **From:** <the user>, **To:** <the recipient>, **How your answers will be used:** <where they go>
29
-
30
- ## Context
31
-
32
- One paragraph orienting a recipient who wasn't in the user's head. Enough to answer well, not a page.
33
-
34
- ## How to answer
35
-
36
- Deadline and rough effort. Partial answers and "I don't know" are useful: flag anything you're unsure of rather than skipping it.
37
-
38
- ## <Theme heading>
39
-
40
- One `##` section per theme. Under each, its questions, most-important-first. Every question is one idea, never compound, with an answer stub directly beneath, and a one-line _why this matters_ only where the question could be misread or invite a throwaway answer.
41
-
42
- <question-example>
43
- ### What load is the system expected to handle at launch?
44
-
45
- _Why this matters: it decides whether we provision for burst traffic now or defer it._
46
-
47
- >
48
- </question-example>
49
-
50
- ## Anything else?
51
-
52
- A closing catch-all: anything we didn't ask that we should know?
53
-
54
- </questionnaire-template>
@@ -1,5 +0,0 @@
1
- interface:
2
- display_name: "To Questionnaire"
3
- short_description: "Front-load questions into a doc for someone to answer"
4
- policy:
5
- allow_implicit_invocation: false
@@ -1,75 +0,0 @@
1
- ---
2
- name: to-spec
3
- description: "Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed."
4
- disable-model-invocation: true
5
- ---
6
-
7
- This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.
8
-
9
- The issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
10
-
11
- ## Process
12
-
13
- 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.
14
-
15
- 2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.
16
-
17
- Check with the user that these seams match their expectations.
18
-
19
- 3. Write the spec using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.
20
-
21
- <spec-template>
22
-
23
- ## Problem Statement
24
-
25
- The problem that the user is facing, from the user's perspective.
26
-
27
- ## Solution
28
-
29
- The solution to the problem, from the user's perspective.
30
-
31
- ## User Stories
32
-
33
- A LONG, numbered list of user stories. Each user story should be in the format of:
34
-
35
- 1. As an <actor>, I want a <feature>, so that <benefit>
36
-
37
- <user-story-example>
38
- 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
39
- </user-story-example>
40
-
41
- This list of user stories should be extremely extensive and cover all aspects of the feature.
42
-
43
- ## Implementation Decisions
44
-
45
- A list of implementation decisions that were made. This can include:
46
-
47
- - The modules that will be built/modified
48
- - The interfaces of those modules that will be modified
49
- - Technical clarifications from the developer
50
- - Architectural decisions
51
- - Schema changes
52
- - API contracts
53
- - Specific interactions
54
-
55
- Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
56
-
57
- Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.
58
-
59
- ## Testing Decisions
60
-
61
- A list of testing decisions that were made. Include:
62
-
63
- - A description of what makes a good test (only test external behavior, not implementation details)
64
- - Which modules will be tested
65
- - Prior art for the tests (i.e. similar types of tests in the codebase)
66
-
67
- ## Out of Scope
68
-
69
- A description of the things that are out of scope for this spec.
70
-
71
- ## Further Notes
72
-
73
- Any further notes about the feature.
74
-
75
- </spec-template>
@@ -1,5 +0,0 @@
1
- interface:
2
- display_name: "To Spec"
3
- short_description: "Turn a conversation into a spec"
4
- policy:
5
- allow_implicit_invocation: false
@@ -1,105 +0,0 @@
1
- ---
2
- name: to-tickets
3
- description: Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).
4
- disable-model-invocation: true
5
- ---
6
-
7
- # To Tickets
8
-
9
- Break a plan, spec, or conversation into a set of **tickets**: tracer-bullet vertical slices, each declaring the tickets that **block** it.
10
-
11
- The issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
12
-
13
- ## Process
14
-
15
- ### 1. Gather context
16
-
17
- Work from whatever is already in the conversation context. If the user passes a reference (a spec path, an issue number or URL) as an argument, fetch it and read its full body and comments.
18
-
19
- ### 2. Explore the codebase (optional)
20
-
21
- If you have not already explored the codebase, do so to understand the current state of the code. Ticket titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.
22
-
23
- Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
24
-
25
- ### 3. Draft vertical slices
26
-
27
- Break the work into **tracer bullet** tickets.
28
-
29
- <vertical-slice-rules>
30
-
31
- - Each slice cuts a narrow but COMPLETE path through every layer (schema, API, UI, tests): vertical, NOT a horizontal slice of one layer
32
- - A completed slice is demoable or verifiable on its own
33
- - Each slice is sized to fit in a single fresh context window
34
- - Any prefactoring should be done first
35
-
36
- </vertical-slice-rules>
37
-
38
- Give each ticket its **blocking edges**: the other tickets that must complete before it can start. A ticket with no blockers can start immediately.
39
-
40
- **Wide refactors are the exception to vertical slicing.** A **wide refactor** is one mechanical change (rename a column, retype a shared symbol) whose **blast radius** fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as **expand–contract**. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own ticket blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a ticket blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify ticket; green is promised only there.
41
-
42
- ### 4. Quiz the user
43
-
44
- Present the proposed breakdown as a numbered list. For each ticket, show:
45
-
46
- - **Title**: short descriptive name
47
- - **Blocked by**: which other tickets (if any) must complete first
48
- - **What it delivers**: the end-to-end behaviour this ticket makes work
49
-
50
- Ask the user:
51
-
52
- - Does the granularity feel right? (too coarse / too fine)
53
- - Are the blocking edges correct: does each ticket only depend on tickets that genuinely gate it?
54
- - Should any tickets be merged or split further?
55
-
56
- Iterate until the user approves the breakdown.
57
-
58
- ### 5. Publish the tickets to the configured tracker
59
-
60
- Publish the approved tickets. **How** depends on the tracker `/setup-matt-pocock-skills` configured; the tickets are the same either way, only the shape of the blocking edges changes:
61
-
62
- - **Local files** → write one file per ticket under `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01` in dependency order (blockers first). Each file's "Blocked by" lists the numbers/titles it depends on. Use the per-ticket file template below: one ticket per file, never a single combined file.
63
- - **A real issue tracker (GitHub, Linear, …)** → publish one issue per ticket in dependency order (blockers first) so each ticket's blocking edges can reference real identifiers. Use the platform's native blocking / sub-issue relationship where it has one; otherwise set each ticket's "Blocked by" to the blocking issues. Apply the `ready-for-agent` triage label unless instructed otherwise; the tickets are agent-grabbable by construction.
64
-
65
- Work the **frontier**: any ticket whose blockers are all done. For a purely linear chain that means top to bottom.
66
-
67
- Do NOT close or modify any parent issue.
68
-
69
- <local-ticket-template>
70
-
71
- # <NN>: <Ticket title>
72
-
73
- **What to build:** the end-to-end behaviour this ticket makes work, from the user's perspective, not a layer-by-layer implementation list.
74
-
75
- **Blocked by:** the numbers/titles of the tickets that gate this one, or "None (can start immediately)".
76
-
77
- **Status:** ready-for-agent
78
-
79
- - [ ] Acceptance criterion 1
80
- - [ ] Acceptance criterion 2
81
-
82
- </local-ticket-template>
83
-
84
- <issue-template>
85
-
86
- ## Parent
87
-
88
- A reference to the parent issue on the tracker (if the source was an existing issue, otherwise omit this section).
89
-
90
- ## What to build
91
-
92
- The end-to-end behaviour this ticket makes work, from the user's perspective, not layer-by-layer implementation.
93
-
94
- ## Acceptance criteria
95
-
96
- - [ ] Criterion 1
97
- - [ ] Criterion 2
98
-
99
- ## Blocked by
100
-
101
- - A reference to each blocking ticket, or "None (can start immediately)".
102
-
103
- </issue-template>
104
-
105
- In either form, avoid specific file paths or code snippets: they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.
@@ -1,5 +0,0 @@
1
- interface:
2
- display_name: "To Tickets"
3
- short_description: "Split a plan into tracer-bullet tickets"
4
- policy:
5
- allow_implicit_invocation: false