brunovskyoliver 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +50 -0
  2. package/bin/install-skills.mjs +191 -0
  3. package/package.json +18 -0
  4. package/skills/deprecated/README.md +8 -0
  5. package/skills/deprecated/design-an-interface/SKILL.md +94 -0
  6. package/skills/deprecated/qa/SKILL.md +130 -0
  7. package/skills/deprecated/request-refactor-plan/SKILL.md +68 -0
  8. package/skills/deprecated/ubiquitous-language/SKILL.md +93 -0
  9. package/skills/design/frontend-design/LICENSE.txt +177 -0
  10. package/skills/design/frontend-design/SKILL.md +42 -0
  11. package/skills/design/ui-ux-pro-max/SKILL.md +674 -0
  12. package/skills/design/ui-ux-pro-max/data/_sync_all.py +414 -0
  13. package/skills/design/ui-ux-pro-max/data/app-interface.csv +31 -0
  14. package/skills/design/ui-ux-pro-max/data/charts.csv +26 -0
  15. package/skills/design/ui-ux-pro-max/data/colors.csv +162 -0
  16. package/skills/design/ui-ux-pro-max/data/design.csv +1776 -0
  17. package/skills/design/ui-ux-pro-max/data/draft.csv +1779 -0
  18. package/skills/design/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  19. package/skills/design/ui-ux-pro-max/data/icons.csv +106 -0
  20. package/skills/design/ui-ux-pro-max/data/landing.csv +35 -0
  21. package/skills/design/ui-ux-pro-max/data/products.csv +162 -0
  22. package/skills/design/ui-ux-pro-max/data/react-performance.csv +45 -0
  23. package/skills/design/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  24. package/skills/design/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  25. package/skills/design/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  26. package/skills/design/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  27. package/skills/design/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  28. package/skills/design/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  29. package/skills/design/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  30. package/skills/design/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  31. package/skills/design/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  32. package/skills/design/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  33. package/skills/design/ui-ux-pro-max/data/stacks/react.csv +54 -0
  34. package/skills/design/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  35. package/skills/design/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  36. package/skills/design/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  37. package/skills/design/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  38. package/skills/design/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  39. package/skills/design/ui-ux-pro-max/data/styles.csv +85 -0
  40. package/skills/design/ui-ux-pro-max/data/typography.csv +74 -0
  41. package/skills/design/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  42. package/skills/design/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  43. package/skills/design/ui-ux-pro-max/scripts/core.py +262 -0
  44. package/skills/design/ui-ux-pro-max/scripts/design_system.py +1148 -0
  45. package/skills/design/ui-ux-pro-max/scripts/search.py +114 -0
  46. package/skills/engineering/README.md +25 -0
  47. package/skills/engineering/ask-matt/SKILL.md +61 -0
  48. package/skills/engineering/codebase-design/DEEPENING.md +37 -0
  49. package/skills/engineering/codebase-design/DESIGN-IT-TWICE.md +44 -0
  50. package/skills/engineering/codebase-design/SKILL.md +114 -0
  51. package/skills/engineering/diagnosing-bugs/SKILL.md +134 -0
  52. package/skills/engineering/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
  53. package/skills/engineering/domain-modeling/ADR-FORMAT.md +47 -0
  54. package/skills/engineering/domain-modeling/CONTEXT-FORMAT.md +60 -0
  55. package/skills/engineering/domain-modeling/SKILL.md +74 -0
  56. package/skills/engineering/grill-with-docs/SKILL.md +7 -0
  57. package/skills/engineering/implement/SKILL.md +15 -0
  58. package/skills/engineering/improve-codebase-architecture/HTML-REPORT.md +123 -0
  59. package/skills/engineering/improve-codebase-architecture/SKILL.md +66 -0
  60. package/skills/engineering/prototype/LOGIC.md +79 -0
  61. package/skills/engineering/prototype/SKILL.md +31 -0
  62. package/skills/engineering/prototype/UI.md +112 -0
  63. package/skills/engineering/resolving-merge-conflicts/SKILL.md +14 -0
  64. package/skills/engineering/setup-matt-pocock-skills/SKILL.md +127 -0
  65. package/skills/engineering/setup-matt-pocock-skills/domain.md +51 -0
  66. package/skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md +34 -0
  67. package/skills/engineering/setup-matt-pocock-skills/issue-tracker-gitlab.md +35 -0
  68. package/skills/engineering/setup-matt-pocock-skills/issue-tracker-local.md +21 -0
  69. package/skills/engineering/setup-matt-pocock-skills/triage-labels.md +15 -0
  70. package/skills/engineering/tdd/SKILL.md +108 -0
  71. package/skills/engineering/tdd/mocking.md +59 -0
  72. package/skills/engineering/tdd/refactoring.md +10 -0
  73. package/skills/engineering/tdd/tests.md +61 -0
  74. package/skills/engineering/to-issues/SKILL.md +98 -0
  75. package/skills/engineering/to-prd/SKILL.md +75 -0
  76. package/skills/engineering/triage/AGENT-BRIEF.md +207 -0
  77. package/skills/engineering/triage/OUT-OF-SCOPE.md +105 -0
  78. package/skills/engineering/triage/SKILL.md +112 -0
  79. package/skills/in-progress/README.md +10 -0
  80. package/skills/in-progress/decision-mapping/SKILL.md +84 -0
  81. package/skills/in-progress/loop-me/SKILL.md +32 -0
  82. package/skills/in-progress/review/SKILL.md +69 -0
  83. package/skills/in-progress/writing-beats/SKILL.md +67 -0
  84. package/skills/in-progress/writing-fragments/SKILL.md +79 -0
  85. package/skills/in-progress/writing-shape/SKILL.md +79 -0
  86. package/skills/misc/README.md +8 -0
  87. package/skills/misc/git-guardrails-claude-code/SKILL.md +95 -0
  88. package/skills/misc/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
  89. package/skills/misc/migrate-to-shoehorn/SKILL.md +118 -0
  90. package/skills/misc/ralph/SKILL.md +83 -0
  91. package/skills/misc/ralph/references/default-prompt.md +22 -0
  92. package/skills/misc/ralph/scripts/afk.sh +41 -0
  93. package/skills/misc/scaffold-exercises/SKILL.md +106 -0
  94. package/skills/misc/setup-pre-commit/SKILL.md +91 -0
  95. package/skills/personal/README.md +6 -0
  96. package/skills/personal/edit-article/SKILL.md +15 -0
  97. package/skills/personal/obsidian-vault/SKILL.md +59 -0
  98. package/skills/productivity/README.md +18 -0
  99. package/skills/productivity/grill-me/SKILL.md +7 -0
  100. package/skills/productivity/grilling/SKILL.md +10 -0
  101. package/skills/productivity/handoff/SKILL.md +16 -0
  102. package/skills/productivity/teach/GLOSSARY-FORMAT.md +35 -0
  103. package/skills/productivity/teach/LEARNING-RECORD-FORMAT.md +46 -0
  104. package/skills/productivity/teach/MISSION-FORMAT.md +31 -0
  105. package/skills/productivity/teach/RESOURCES-FORMAT.md +32 -0
  106. package/skills/productivity/teach/SKILL.md +140 -0
  107. package/skills/productivity/writing-great-skills/GLOSSARY.md +195 -0
  108. package/skills/productivity/writing-great-skills/SKILL.md +82 -0
@@ -0,0 +1,140 @@
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** — 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 — anything 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.
@@ -0,0 +1,195 @@
1
+ # Glossary — Building Great Skills
2
+
3
+ The domain model for what makes a skill great. A skill exists to wrangle determinism out of a stochastic system; the root virtue is **Predictability**, and every term below is a lever on it. This is the disclosed reference for [`writing-great-skills`](SKILL.md).
4
+
5
+ The terms are grouped by axis: **Invocation** (how a skill is reached), **Information Hierarchy** (how its content is arranged), **Steering** (how the agent's runtime behaviour is shaped), and **Pruning** (how it is kept lean). Each **failure mode** lives beside the lever that cures it, tagged _failure mode_.
6
+
7
+ **Bold terms** in any definition are themselves defined in this glossary; find them by their heading.
8
+
9
+ ## Predictability
10
+
11
+ The degree to which a skill makes the agent behave the same _way_ on every run — the same process, not the same output (a brainstorming skill should _predictably_ diverge; its tokens vary, its behaviour doesn't). The root virtue every other term serves — cost and maintainability are symptoms of it, not rivals.
12
+
13
+ _Avoid_: consistency, reliability, robustness, output-determinism
14
+
15
+ ## Invocation
16
+
17
+ How a skill is reached — and the two loads you pay for the choice.
18
+
19
+ ### Model-Invoked
20
+
21
+ A skill that keeps its **description** field, so the agent can see it and fire it autonomously — and the human can still type its name, so model-invocation always _includes_ user reach. There is no model-only state: a description only ever _adds_ agent discovery, never removes the human's. Pays a permanent **context load** on every turn in exchange for that discoverability. Reachable by other skills, because the description that makes it agent-discoverable makes it invocable. A model-invoked skill whose content is all **reference** is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Pick model-invocation only when the agent must reach the skill on its own; if it never fires except by hand, drop the description and pay no context load.
22
+
23
+ _Avoid_: ability, tool, capability
24
+
25
+ ### User-Invoked
26
+
27
+ A skill with its **description** stripped — invisible to the agent and reachable only by the human typing its name (user-_only_, where **model-invoked** is user-_and-agent_). Trades agent-discoverability for zero **context load**. Because it has no description, nothing but the human can reach it: no other skill can fire it.
28
+
29
+ _Avoid_: procedure, workflow, command
30
+
31
+ ### Description
32
+
33
+ The skill's machine-readable trigger, and the one **context pointer** a **model-invoked** skill is forced to keep loaded at all times. Its mere presence _is_ the invocation axis: keep it and the skill is model-invoked (and reachable by other skills); delete it and the skill is **user-invoked**, reachable only by the human. The source of a model-invoked skill's **context load**.
34
+
35
+ _Avoid_: frontmatter, summary
36
+
37
+ ### Context Pointer
38
+
39
+ A reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. The **description** is the top-level context pointer (context window → skill); pointers to disclosed files are the same object one level down. Its wording, not the target, decides _when_ the agent reaches — and _how reliably_. A must-have target behind a weakly worded pointer is a variance bug: fix the wording first, and inline the material only if sharpening fails.
40
+
41
+ _Avoid_: link, reference, import
42
+
43
+ ### Context Load
44
+
45
+ The cost a **model-invoked** skill imposes on the agent's context window — its **description**, always loaded, spending both tokens and attention. What **user-invoked** skills escape by having no description, and the brake on splitting into more model-invoked skills.
46
+
47
+ _Avoid_: token cost, context bloat
48
+
49
+ ### Cognitive Load
50
+
51
+ The cost a **user-invoked** skill imposes on the human — what they must hold in their head: which skills exist and when to reach for each (the human is the index). What **model-invocation** removes by being agent-discoverable, and the brake on splitting into more user-invoked skills. Not a cost to minimise: it is the price of human agency, the reason some skills stay user-invoked. Spend it where human judgement matters; remove it where it does not.
52
+
53
+ _Avoid_: human index, burden, overhead
54
+
55
+ ### Router Skill
56
+
57
+ A **user-invoked** skill whose job is to point at your other user-invoked skills — naming each and when to reach for it — so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no **description**, so nothing but the human can reach them. The cure for **cognitive load** when user-invoked skills multiply.
58
+
59
+ _Avoid_: dispatcher, menu, registry, index, router procedure
60
+
61
+ ### Granularity
62
+
63
+ How finely you divide skills. Finer division spends one of the two loads: more **model-invoked** skills spend **context load** (more descriptions crowding the window and competing for attention); more **user-invoked** skills spend **cognitive load** (more for the human to remember and reach for). Two cuts guide the division. By **invocation**, split off a model-invoked skill where you have a distinct **leading word** to trigger it — a trigger word you actually use in your prompts. By **sequence**, split a run of **steps** where a step's **post-completion steps** need hiding, since isolating it in its own context clears what follows. Beware the reverse: merging sequences exposes each step's post-completion steps to what follows, inviting premature completion.
64
+
65
+ _Avoid_: chunking, modularity
66
+
67
+ ## Information Hierarchy
68
+
69
+ How a skill's content is arranged, and how far down the ladder each piece sits.
70
+
71
+ ### Information Hierarchy
72
+
73
+ A skill's content ranked by how immediately the agent needs it — a single ladder, produced by two cuts: in-file or behind a pointer, and step or reference. The rungs:
74
+
75
+ - **Steps** — in-file, primary
76
+ - **Reference**, in-file — secondary
77
+ - **Reference**, disclosed — behind a **context pointer**
78
+
79
+ A skill with no **steps** uses just the bottom two rungs — often a legitimately flat peer-set (e.g. every rule of a review on one rung), which is a fine arrangement, not a smell. The hierarchy is independent of invocation: a skill can be model- or user-invoked whether it is all steps, all reference, or both. When a skill has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip — a variance lever, not just a legibility one. Keep the top of the ladder legible; push down it whatever you can.
80
+
81
+ _Avoid_: structure, organization, layout
82
+
83
+ ### Steps
84
+
85
+ The ordered actions the agent performs — when a skill has them, the primary tier of its content, and the part that earns its place in SKILL.md. Not every skill has steps: a skill can be all steps (`tdd`), all **reference** (a review), or both, independent of invocation. Every step ends on a **completion criterion**, clear or vague.
86
+
87
+ _Avoid_: workflow, instructions, choreography
88
+
89
+ ### Reference
90
+
91
+ Material the agent refers to on demand — definitions, facts, parameters, examples, conditional instructions. When a skill has **steps** it is secondary to them; when a skill has none it is the entire content; or it lives outside any skill entirely — see **External Reference**. Reached via **context pointers**, and the prime candidate for **progressive disclosure**.
92
+
93
+ _Avoid_: supporting material, docs, background
94
+
95
+ ### External Reference
96
+
97
+ **Reference** that lives outside the skill system — a plain file, no **description**, no **steps**, not invocable — that any skill can point at. The home for shared reference that needn't fire on its own, and the only shared home two **user-invoked** skills can use, since neither has a description and so neither can fire the other.
98
+
99
+ _Avoid_: doc, resource, knowledge base
100
+
101
+ ### Progressive Disclosure
102
+
103
+ Moving **reference** down the ladder — out of SKILL.md and behind a **context pointer** — so the top stays legible. Not primarily a token optimisation; it is how the **information hierarchy** is protected. Licensed by **branching**: disclose what only some branches need, inline what every path needs, and if a pointer fires unreliably on must-have material, sharpen its wording, and pull it back inline only if that fails.
104
+
105
+ _Avoid_: lazy loading, chunking
106
+
107
+ ### Co-location
108
+
109
+ Keeping the material an agent needs at once in one place — a concept's definition, rules, and caveats under a single heading, not scattered across the file — so reading one part brings its neighbours with it. The within-file companion to the **Information Hierarchy**: the hierarchy ranks _how far down_ a piece sits; co-location decides _what sits beside it_ once there. There is no formula for the right format of a body of **reference**; the test is that a skill should read like documentation written for the agent, and grouped material reads that way where scattered material does not. Distinct from **Duplication**: that repeats one meaning in two places, where scattering fragments a single meaning across many.
110
+
111
+ _Avoid_: grouping, clustering, cohesion
112
+
113
+ ### Sprawl
114
+
115
+ _Failure mode._ A skill that is simply too long — too many lines in SKILL.md — independent of whether they are stale or repeated. Even an all-live, all-unique skill can sprawl. It costs readability (the agent wades through more before it can act, and attention thins across the excess), maintainability (every extra line is one more to keep **relevant**), and tokens. The cure is the **information hierarchy**: push **reference** down behind **context pointers**, and split by **branch** or sequence so each path carries only what it needs. Distinct from **sediment** (length from stale accumulation) and **duplication** (length from repeated meaning) — sprawl is length itself, whatever its cause.
116
+
117
+ _Avoid_: bloat, length, size, verbosity
118
+
119
+ ## Steering
120
+
121
+ The levers that shape the agent's runtime behaviour toward **Predictability**.
122
+
123
+ ### Branch
124
+
125
+ A distinct way a skill can be invoked — a case the skill handles — so different runs take different paths through it. A skill with many steps may carry many branches; a linear one has none.
126
+
127
+ _Avoid_: path, case, fork
128
+
129
+ ### Leading Word
130
+
131
+ A compact concept — also called a _Leitwort_ — already living in the model's pretraining, that the agent thinks with while running the skill. It encodes a behavioural principle in the fewest possible tokens by invoking priors the model already holds (e.g. _lesson_, _proximal zone of development_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition across the skill and anchors a whole region of behaviour. Coining your own works if you define it clearly, but a made-up word recruits no priors — you pay in definition tokens what a pretrained word gives free. Reach for an existing word first.
132
+
133
+ A leading word serves **predictability** twice. In the body it anchors **execution** — the agent reaches for the same behaviour every time the concept appears, and inside flat reference it focuses attention on a class of thing to look for, recruiting the right checks each run. In the **description** it anchors **invocation** — and not only within the skill: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the skill and fires it more reliably. Word a description with the leading words you actually use when you want the skill.
134
+
135
+ _Avoid_: keyword, term, motif
136
+
137
+ ### Completion Criterion
138
+
139
+ The condition that tells the agent a unit of work is done — the target it judges against. Two properties make it a lever, not just a quality. Its **clarity** (can the agent tell done from not-done?) resists **premature completion** — a vague bound ("understanding reached") lets the agent declare done and slip to the next step; this axis needs _steps_ to bite, since premature completion is a between-steps failure. Its **demand** (how much it requires) sets **legwork** — "every modified model accounted for" forces thorough work where "produce a change list" does not — and this axis is _not_ step-bound: it can bind a body of flat reference too, which is how a skill with no steps still carries an exhaustiveness bar ("every rule applied"). The strongest criteria are both checkable and exhaustive.
140
+
141
+ _Avoid_: done condition, exit condition, stopping rule
142
+
143
+ ### Legwork
144
+
145
+ The work an agent does behind the scenes within a single step — reading files, exploring the codebase, making changes, digging up what it needs rather than offloading to the user. It lives below the step structure: never written as its own step, latent in the wording, controlled by the agent rather than the skill. The within-step counterpart to **post-completion steps**' across-step pull. Raised by a **leading word** (_comprehensive_, _thorough_) or a **completion criterion** that demands the work be exhaustive — including the demand axis applied to flat reference, which is what drives a skill of flat reference to cover all its rungs. Goes thin either when that demand is missing or when **premature completion** cuts the step short.
146
+
147
+ _Avoid_: scope, effort, diligence, coverage
148
+
149
+ ### Post-Completion Steps
150
+
151
+ The **steps** that follow the current step. Visible, they pull the agent forward into **premature completion** — the more it sees, the stronger the tug; the defence is to hide them by splitting the sequence of steps into two.
152
+
153
+ _Avoid_: horizon, fog of war, lookahead
154
+
155
+ ### Premature Completion
156
+
157
+ _Failure mode._ Ending the current step before it is genuinely done, because the agent's attention slips to being done rather than to the work. A between-steps failure: it needs **steps** to occur — a skill with no steps that quits early isn't premature completion but thin **legwork** under an unmet demand. A tug-of-war between two forces: visible **post-completion steps** (the pull forward) and the **completion criterion**'s clarity (the resistance — a sharp, checkable bar holds; a vague one gives way). Fuzziness is the necessary condition: a sharp bound resists the pull no matter how many later steps are visible, so a step that never rushes needs no defending. Two levers hold a step that does, but reach for them in order: **sharpen the bound first** — it is local and cheap. Only when the criterion is irreducibly fuzzy _and_ you actually observe the rush do you **hide the later steps** — and hiding only works across a real context boundary (a user-invoked hand-off or a subagent dispatch; an inline model-invoked call leaves the later steps in context and clears nothing). One cause of thin legwork, but distinct from it: legwork can be thin even when a step runs to full completion.
158
+
159
+ _Avoid_: premature closure, the rush, rushing, shortcutting
160
+
161
+ ## Pruning
162
+
163
+ Keeping a skill lean — each remedy paired with the failure it cures.
164
+
165
+ ### Single Source of Truth
166
+
167
+ The desired state where each meaning lives in exactly one authoritative place, so a change to the skill's behaviour is a change in one place. **Duplication** is its violation.
168
+
169
+ _Avoid_: home, canonical location
170
+
171
+ ### Duplication
172
+
173
+ _Failure mode._ The same meaning given more than one **single source of truth**. It costs maintenance (change one place, you must change the others), costs tokens, and inflates prominence — repeating a meaning weights it on the ladder past its real rank. The accidental inverse of a **leading word**, which raises attention on purpose by repeating a token, never the meaning.
174
+
175
+ _Avoid_: repetition, redundancy
176
+
177
+ ### Relevance
178
+
179
+ Whether a line still bears on what the skill does — the lens for what to keep. A line loses relevance either by never bearing on the task (mere exposition, or a **branch** that should be disclosed) or by going stale: drifting out of date as the behaviour or world it describes changes. Shorter skills are easier to keep relevant, because each line is cheaper to check. Distinct from **no-op**: relevance asks whether a line bears on the task, not whether it changes behaviour.
180
+
181
+ _Avoid_: load-bearing, staleness, freshness
182
+
183
+ ### Sediment
184
+
185
+ _Failure mode._ Layers of old content that settle in a skill and are never cleared, because adding feels safe and removing feels risky — so stale and irrelevant lines accumulate and you must core down through them to find what is still live. The default fate of any skill without a pruning discipline; the slow erosion of **relevance**, as opposed to **duplication**'s repeated meaning.
186
+
187
+ _Avoid_: accretion, bloat, cruft, rot
188
+
189
+ ### No-Op
190
+
191
+ _Failure mode._ An instruction that changes nothing because the model already does it by default — you pay load to tell the agent what it would do anyway. The test: does a line change behaviour versus the default? A line can be perfectly **relevant** and still be a no-op. The same priors that make a **leading word** free make a no-op worthless.
192
+
193
+ A leading word is a _technique_; No-Op is a _verdict_ on a line — and they cross. A leading word too weak to beat the default is a no-op (_be thorough_ when the agent is already thorough-ish), and the fix is a stronger word that passes the verdict (_relentless_), not a different technique. So the No-Op test — does it change behaviour versus the default? — is also how you grade whether a leading word is earning its repetitions. This is model-relative, not reader-relative: two people disagreeing over whether a line is a no-op disagree about the default, and settle it by running the skill, not by debate.
194
+
195
+ _Avoid_: redundant instruction, restating the obvious, belaboring
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: writing-great-skills
3
+ description: Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ A skill exists to wrangle determinism out of a stochastic system. **Predictability** — the agent taking the same _process_ every run, not producing the same output — is the root virtue; every lever below serves it.
8
+
9
+ **Bold terms** are defined in [`GLOSSARY.md`](GLOSSARY.md); look them up there for the full meaning.
10
+
11
+ ## Invocation
12
+
13
+ Two choices, trading different costs:
14
+
15
+ - A **model-invoked** skill keeps a **description**, so the agent can fire it autonomously _and_ other skills can reach it (you can still type its name too). It contributes to **context load** — the description sits in the window every turn. Mechanics: omit `disable-model-invocation`, and write a model-facing description with rich trigger phrasing ("Use when the user wants…, mentions…").
16
+ - A **user-invoked** skill strips the description from the agent's reach: only you, typing its name, can invoke it — and no other skill can. Zero context load, but it spends **cognitive load**: _you_ are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing — a one-line summary, trigger lists stripped.
17
+
18
+ Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
19
+
20
+ When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each.
21
+
22
+ ## Writing the description
23
+
24
+ A model-invoked **description** does two jobs — state what the skill is, and list the **branches** that should trigger it. Every word increases **context load**, so a description earns even harder pruning than the body:
25
+
26
+ - **Front-load the skill's leading word** — the description is where it does its invocation work.
27
+ - **One trigger per branch.** Synonyms that rename a single branch are **duplication** — "build features using TDD … asks for test-first development" is one branch written twice. Collapse them; keep only genuinely distinct branches.
28
+ - **Cut identity that's already in the body.** Keep the description to triggers, plus any "when another skill needs…" reach clause.
29
+
30
+ ## Information hierarchy
31
+
32
+ A skill is built from two content types — **steps** and **reference** — that mix freely: a skill can be all steps, all reference, or both. The core decision is which to use and where each sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
33
+
34
+ 1. **In-skill step** — an ordered action in `SKILL.md`, the primary tier: what the agent does, in order. Each step ends on a **completion criterion**, the condition that tells the agent the work is done. Make it _checkable_ (can the agent tell done from not-done?) and, where it matters, _exhaustive_ ("every modified model accounted for", not "produce a change list") — a vague criterion invites **premature completion**.
35
+ 2. **In-skill reference** — a definition, rule, or fact in `SKILL.md`, consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung) — a fine arrangement, not a smell. _This skill is all reference._
36
+ 3. **External reference** — reference pushed out of `SKILL.md` into a separate file, reached by a **context pointer**, loaded only when the pointer fires. (Spans _disclosed_ reference — a sibling file like `GLOSSARY.md`, still part of the skill — through fully **external reference** that lives outside the skill system and any skill can point at.)
37
+
38
+ A demanding completion criterion drives thorough **legwork** — the digging the agent does within the work — whether the skill has steps or not, since "every rule applied" binds flat reference just as "every step done" binds a sequence.
39
+
40
+ Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
41
+
42
+ **Progressive disclosure** is the move down the ladder — out of `SKILL.md` into a linked file — so the top stays legible. Mechanics: a linked `.md` file in the skill folder, named for what it holds (this skill discloses its full definitions to `GLOSSARY.md`). Some skills are used in more than one way, and each distinct way is a **branch** — different runs taking different paths through the skill. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. A **context pointer**'s _wording_, not its target, decides when and how reliably the agent reaches the material.
43
+
44
+ Where the ladder decides _how far down_ a piece sits, **co-location** decides _what sits beside it_ once there: keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it.
45
+
46
+ ## When to split
47
+
48
+ **Granularity** is how finely you divide skills, and each cut spends one of the two loads, so split only when the cut earns it. Two cuts:
49
+
50
+ - **By invocation** — split off a **model-invoked** skill when you have a distinct **leading word** that should trigger it on its own, or another skill must reach it. You pay **context load** for the new always-loaded **description**, so that independent reach has to be worth it.
51
+ - **By sequence** — split a run of **steps** when the steps still ahead (a step's **post-completion steps**) tempt the agent to rush the one in front of it (**premature completion**). Keeping them out of view encourages the agent to do more **legwork** on the current task.
52
+
53
+ ## Pruning
54
+
55
+ Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit.
56
+
57
+ Check every line for **relevance**: does it still bear on what the skill does?
58
+
59
+ Then hunt **no-ops** sentence by sentence, not just line by line: run the no-op test on each sentence in isolation, and when one fails, delete the whole sentence rather than trim words from it. Be aggressive — most prose that fails should go, not be rewritten.
60
+
61
+ ## Leading words
62
+
63
+ A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the skill (e.g. _lesson_, _fog of war_, _tracer bullets_). Repeated throughout the text (though not necessarily - a strong leading word might only be needed once), it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds.
64
+
65
+ It serves predictability twice. In the body it anchors _execution_: the agent reaches for the same behaviour every time the word appears. In the description it anchors _invocation_: when the same word lives in your prompts, docs, and code, the agent links that shared language to the skill and fires it more reliably.
66
+
67
+ Hunt for opportunities to refactor skills to use leading words. A triad spelled out at three sites (**duplication**), a description spending a sentence to gesture at one idea — each is a passage begging to **collapse** into a single token. Examples include:
68
+
69
+ - "fast, deterministic, low-overhead" -> _tight_ — one quality restated across a phase — into a single pretrained word (a _tight_ loop).
70
+ - "a loop you believe in" -> _red_ — converts a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
71
+
72
+ You win twice over: fewer tokens, _and_ a sharper hook for the agent to hang its thinking on. Assume every skill is carrying restatements that leading words retire — go find them.
73
+
74
+ ## Failure modes
75
+
76
+ Use these to diagnose issues the user may be having with the skill.
77
+
78
+ - **Premature completion** — ending a step before it's genuinely done, attention slipping to _being done_. Defence, in order: sharpen the completion criterion first (cheap, local); only if it is irreducibly fuzzy _and_ you observe the rush, hide the post-completion steps by splitting (the sequence cut).
79
+ - **Duplication** — the same meaning in more than one place. Costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank.
80
+ - **Sediment** — stale layers that settle because adding feels safe and removing feels risky. The default fate of any skill without a pruning discipline.
81
+ - **Sprawl** — a skill simply too long, even when every line is live and unique. Hurts readability and maintainability and wastes tokens. The cure is the ladder: disclose **reference** behind pointers, and split by **branch** or sequence so each path carries only what it needs.
82
+ - **No-op** — a line the model already obeys by default, so you pay load to say nothing. The test: does it change behaviour versus the default? A weak leading word (_be thorough_ when the agent is already thorough-ish) is a no-op; the fix is a stronger word (_relentless_), not a different technique.