repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

feat(pi): add productivity prompts and grilling skill

3c843087d3e137f354a9d41892fd140082c4a3cd

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (12)

+316 / −0 text lines

pi/agent/prompts/LICENSE.mattpocock-skills

Added
new file mode 100644

+21 / −0 text lines

1 +MIT License
3 +Copyright (c) 2026 Matt Pocock
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:
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
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.

pi/agent/prompts/gr.md

Added
new file mode 100644

+5 / −0 text lines

1 +---
2 +description: A relentless interview to sharpen a plan or design
3 +---
5 +Run a `/skill:grilling` session.

pi/agent/prompts/handoff.md

Added
new file mode 100644

+17 / −0 text lines

1 +---
2 +description: Compact current conversation into a handoff document
3 +argument-hint: "What will the next session be used for?"
4 +---
6 +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 +Include a "suggested skills" section in the document, which suggests skills that the agent should invoke.
10 +Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
12 +Redact any sensitive information, such as API keys, passwords, or personally identifiable information.
14 +If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
16 +**Next-session focus**:
17 +$ARGUMENTS

pi/agent/prompts/sensei.md

Added
new file mode 100644

+70 / −0 text lines

1 +---
2 +description: Stateful teaching workspace for learning a skill or concept
3 +argument-hint: "<topic-or-goal>"
4 +---
6 +# Sensei
8 +Teach me a skill or concept over multiple sessions.
9 +Do not compress explanations to my normal terse preference; teaching needs room.
10 +Prefer clear, concrete explanation, examples, practice, and feedback.
11 +Use HTML lessons because they are better for review, layout, print, and interaction.
13 +**Topic / goal**:
14 +$ARGUMENTS
16 +## Workspace
18 +Use the current directory as a teaching workspace.
19 +Create files only when needed.
21 +- `MISSION.md` — why I care, what success looks like, constraints, out of scope.
22 + Format: `sensei/MISSION-FORMAT.md`.
23 +- `RESOURCES.md` — trusted sources and communities.
24 + Format: `sensei/RESOURCES-FORMAT.md`.
25 +- `GLOSSARY.md` — terms I can already use correctly.
26 + Format: `sensei/GLOSSARY-FORMAT.md`.
27 +- `learning-records/0001-slug.md` — durable learning evidence.
28 + Format: `sensei/LEARNING-RECORD-FORMAT.md`.
29 +- `lessons/0001-slug.html` — one focused lesson per file.
30 +- `reference/*.html` — printable cheatsheets, summaries, diagrams.
31 +- `assets/*` — shared CSS, quiz widgets, diagrams, simulators.
32 +- `NOTES.md` — teaching preferences and working notes.
34 +## First move
36 +If `MISSION.md` is missing or vague, interview me until the mission is concrete.
37 +Ask one question at a time.
38 +Prefer multiple choice when useful.
39 +Do not write lessons before the mission is usable.
41 +## Teaching loop
43 +1. Read mission, notes, glossary, learning records, resources, and existing assets.
44 +2. Identify my zone of proximal development.
45 +3. Pick one tight lesson objective tied to the mission.
46 +4. Ground claims in trusted resources; search/fetch if resources are thin.
47 +5. Write one self-contained HTML lesson in `lessons/`.
48 +6. Reuse `assets/`; create shared CSS before the first lesson if missing.
49 +7. Include explanation, worked examples, retrieval practice, and immediate feedback.
50 +8. Add/update glossary only for terms I can use correctly.
51 +9. Add a learning record only when there is evidence of understanding.
52 +10. Recommend exactly one next primary source or exercise.
54 +## Lesson standard
56 +Each HTML lesson should be beautiful, readable, and printable.
57 +Use calm typography, strong hierarchy, examples, callouts, and small interactive checks where useful.
58 +Keep each lesson focused enough to finish quickly.
59 +End with: recap, practice prompt, and invitation to ask follow-up questions.
61 +## Rules
63 +- Explanation over brevity.
64 +- One concept per lesson.
65 +- Retrieval beats rereading.
66 +- Storage strength beats fluency illusion.
67 +- Knowledge comes from sources; wisdom comes from practice and community.
68 +- Do not log coverage as learning.
69 +- Do not create giant courses upfront.
70 +- Do not duplicate reference material across lessons; link it.

pi/agent/prompts/sensei/GLOSSARY-FORMAT.md

Added
new file mode 100644

+35 / −0 text lines

1 +# GLOSSARY.md Format
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.
5 +## Structure
7 +```md
8 +# {Topic} Glossary
10 +{One or two sentence description of the topic this glossary covers.}
12 +## Terms
14 +**Hypertrophy**:
15 +Muscle growth driven by mechanical tension and metabolic stress over repeated training sessions.
16 +_Avoid_: Bulking, getting big
18 +**Progressive overload**:
19 +Systematically increasing the demand on a muscle over time — via load, volume, or intensity.
20 +_Avoid_: Pushing harder, levelling up
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 +```
27 +## Rules
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.

pi/agent/prompts/sensei/LEARNING-RECORD-FORMAT.md

Added
new file mode 100644

+46 / −0 text lines

1 +# Learning Record Format
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.
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.
7 +## Template
9 +```md
10 +# {Short title of what was learned or established}
12 +{1-3 sentences: what was learned (or what prior knowledge was established), and why it matters for future sessions.}
13 +```
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.
17 +## Optional sections
19 +Only include these when they add genuine value. Most records won't need them.
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.
25 +## Numbering
27 +Scan `./learning-records/` for the highest existing number and increment by one.
29 +## When to write a learning record
31 +Write one when any of these is true:
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.
38 +### What does _not_ qualify
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.
44 +## Supersession
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.

pi/agent/prompts/sensei/LICENSE.mattpocock-skills

Added
new file mode 100644

+21 / −0 text lines

1 +MIT License
3 +Copyright (c) 2026 Matt Pocock
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:
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
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.

pi/agent/prompts/sensei/MISSION-FORMAT.md

Added
new file mode 100644

+31 / −0 text lines

1 +# MISSION.md Format
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.
5 +## Template
7 +```md
8 +# Mission: {Topic}
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.}
13 +## Success looks like
14 +- {A specific, observable thing the user will be able to do}
15 +- {Another specific thing}
16 +- {…}
18 +## Constraints
19 +- {Time, budget, prior commitments, learning preferences, anything that bounds the approach}
21 +## Out of scope
22 +- {Adjacent topics the user explicitly does not want to chase right now — protects the zone of proximal development}
23 +```
25 +## Rules
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.

pi/agent/prompts/sensei/RESOURCES-FORMAT.md

Added
new file mode 100644

+32 / −0 text lines

1 +# RESOURCES.md Format
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.
5 +## Structure
7 +```md
8 +# {Topic} Resources
10 +## Knowledge
12 +- [Book: _The Science and Practice of Strength Training_ — 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?" — Greg Nuckols (Stronger By Science)](https://example.com)
15 + Evidence-based review of volume landmarks. Use for: weekly set targets per muscle group.
17 +## Wisdom (Communities)
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 +```
25 +## Rules
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.

pi/agent/skills/grilling/LICENSE.mattpocock-skills

Added
new file mode 100644

+21 / −0 text lines

1 +MIT License
3 +Copyright (c) 2026 Matt Pocock
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:
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
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.

pi/agent/skills/grilling/SKILL.md

Added
new file mode 100644

+10 / −0 text lines

1 +---
2 +name: grilling
3 +description: Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.
4 +---
6 +Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
8 +Ask the questions one at a time, waiting for feedback on each question before continuing. Asking multiple questions at once is bewildering.
10 +If a question can be answered by exploring the codebase, explore the codebase instead.

pi/agent/skills/pi/SKILL.md

Modified

+7 / −0 text lines

59 59 ## Key Concepts
61 +- **Skill authoring** — make skills predictable.
62 + Model-invoked skills pay context load with their description; user-invoked prompts pay human memory.
63 + Use model invocation only when the agent must discover the workflow itself.
64 + Keep `SKILL.md` as ordered steps plus essential reference; push branch-only reference into sibling files.
65 + Split skills by invocation trigger or when later steps cause premature completion.
66 + Prune duplication, sediment, no-ops, and vague completion criteria.
67 + Prefer one strong leading word over repeated explanation.
61 68 - **Extensions** — TypeScript modules with full system access.
62 69 Hook into Pi's lifecycle to register tools, intercept calls, add commands,
63 70 build UI.