repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

chore(pi): simplify prompt configuration and remove sensei

b0cd870014bd33cba6c28e33ba81a0f5c0cffa80

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (18)

pi/agent/APPEND_SYSTEM.md

Modified
9 9 - whenever you ask me to execute a shell command: put in my clipboard, use nushell syntax, put command on one line
10 10 - follow rules and guidelines, but do not talk about them, unless the task is about them
11 +- lightweight markup language -> write one sentence per line
12 13 </commandments>

pi/agent/prompts/brainstorm.md

Modified
2 2 description: Brainstorm ideas
3 3 argument-hint: "[focus-area]"
4 -mask: astra
5 -tools: [read, grep, find, ls, web, ask_user_question]
8 6 # Brainstorm ideas

pi/agent/prompts/ci.md

Modified
1 1 ---
2 2 description: Commit current changes
3 -mask: luna
4 -tools: [read, bash, grep, find, ls, ask_user_question]
5 3 argument-hint: "[changes]"
6 4 ---

pi/agent/prompts/deslop.md

Modified
2 2 description: Review code slop; change approved scope only after go
3 -tools: [read, write, edit, bash, grep, find, ls, angel, ask_user_question]
4 3 argument-hint: "<file|directory|diff|scope>"

pi/agent/prompts/fix.md

Modified
2 2 description: Fix bug with systematic debugging
3 -tools: [read, write, edit, bash, grep, find, ls, angel, ask_user_question]
4 3 argument-hint: "<bug-description-or-error>"

pi/agent/prompts/grill.md

Modified
1 1 ---
2 2 description: A relentless interview to sharpen a plan or design
3 -mask: astra
4 -tools: [read, grep, find, ls, ask_user_question]
5 3 ---
7 5 Run a `/skill:grilling` session.

pi/agent/prompts/handoff.md

Modified
2 2 description: Compact current conversation into a handoff document
3 -mask: luna
4 -tools: [read, write, grep, find, ls]
5 3 argument-hint: "What will the next session be used for?"

pi/agent/prompts/live-terminal-test.md

Modified
2 2 description: Live-test an interactive CLI/TUI in observable terminal/tmux
3 3 argument-hint: "<command-or-app> :: <scenario/use-case>"
4 -tools: [read, write, bash, grep, find, ls, ask_user_question]
5 -thinking: high
8 6 # Live Terminal Test

pi/agent/prompts/note-taker.md

Modified
2 2 description: Collect rapid note snippets, then compile them in my voice
3 3 argument-hint: "[topic]"
4 -mask: luna
5 -tools: [read]
8 6 # Take notes

pi/agent/prompts/optimize.md

Modified
2 2 description: Benchmark and optimize code
3 -tools: [read, write, edit, bash, grep, find, ls, angel, ask_user_question]
4 3 argument-hint: "<function-or-file>"

pi/agent/prompts/pr.md

Modified
1 1 ---
2 2 description: Review, checkout, test, and prepare PR merge for git/jj repos
3 -tools: [read, bash, grep, find, ls, git_clone_safe, angel, ask_user_question]
4 3 argument-hint: "[pr-url|number|branch|ref] [test-command]"
5 4 ---

pi/agent/prompts/refactor.md

Modified
2 2 description: Refactor code safely
3 -tools: [read, write, edit, bash, grep, find, ls, angel, ask_user_question]
4 3 argument-hint: "<file-or-directory>"

pi/agent/prompts/sensei.md

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

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

Deleted
deleted file mode 100644
1 ----
2 -description: Format reference for Sensei glossary files
3 ----
5 -# GLOSSARY.md Format
7 -`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.
9 -## Structure
11 -```md
12 -# {Topic} Glossary
14 -{One or two sentence description of the topic this glossary covers.}
16 -## Terms
18 -**Hypertrophy**:
19 -Muscle growth driven by mechanical tension and metabolic stress over repeated training sessions.
20 -_Avoid_: Bulking, getting big
22 -**Progressive overload**:
23 -Systematically increasing the demand on a muscle over time — via load, volume, or intensity.
24 -_Avoid_: Pushing harder, levelling up
26 -**RPE (Rate of Perceived Exertion)**:
27 -A 1–10 self-rating of how hard a set felt, where 10 is failure and 8 means two reps left in the tank.
28 -_Avoid_: Effort score, intensity rating
29 -```
31 -## Rules
33 -- **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.
34 -- **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.
35 -- **Keep definitions tight.** One or two sentences. Define what the term IS, not what it does or how to do it.
36 -- **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.
37 -- **Group under subheadings** when natural clusters emerge (e.g. `## Anatomy`, `## Programming`). A flat list is fine when terms cohere.
38 -- **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."
39 -- **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

Deleted
deleted file mode 100644
1 ----
2 -description: Format reference for Sensei learning records
3 ----
5 -# Learning Record Format
7 -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.
9 -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.
11 -## Template
13 -```md
14 -# {Short title of what was learned or established}
16 -{1-3 sentences: what was learned (or what prior knowledge was established), and why it matters for future sessions.}
17 -```
19 -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.
21 -## Optional sections
23 -Only include these when they add genuine value. Most records won't need them.
25 -- **Status** frontmatter (`active | superseded by LR-NNNN`) — useful when an earlier understanding turns out to be wrong and is replaced.
26 -- **Evidence** — how the user demonstrated the understanding (a question answered, an exercise completed, prior experience cited). Useful when the claim might be revisited.
27 -- **Implications** — what this unlocks or rules out for future sessions. Worth recording when non-obvious.
29 -## Numbering
31 -Scan `./learning-records/` for the highest existing number and increment by one.
33 -## When to write a learning record
35 -Write one when any of these is true:
37 -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.
38 -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.
39 -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.
40 -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.
42 -### What does _not_ qualify
44 -- Material that was merely covered. Coverage is not learning. Wait for evidence.
45 -- Anything already captured tersely in [[GLOSSARY.md]] as a term definition. Don't duplicate.
46 -- Session-by-session activity logs. Learning records are not a journal — they are decision-grade insights.
48 -## Supersession
50 -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/MISSION-FORMAT.md

Deleted
deleted file mode 100644
1 ----
2 -description: Format reference for Sensei mission files
3 ----
5 -# MISSION.md Format
7 -`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.
9 -## Template
11 -```md
12 -# Mission: {Topic}
14 -## Why
16 -{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.}
18 -## Success looks like
20 -- {A specific, observable thing the user will be able to do}
21 -- {Another specific thing}
22 -- {…}
24 -## Constraints
26 -- {Time, budget, prior commitments, learning preferences, anything that bounds the approach}
28 -## Out of scope
30 -- {Adjacent topics the user explicitly does not want to chase right now — protects the zone of proximal development}
31 -```
33 -## Rules
35 -- **One mission per workspace.** If the user wants to learn two unrelated things, that is two workspaces.
36 -- **Concrete over abstract.** "Run a half marathon by October" beats "get fitter." "Ship a Rust CLI to my team" beats "learn Rust."
37 -- **Push back on vagueness.** If the user cannot articulate why, interview them before writing anything. A bad mission is worse than no mission.
38 -- **Revise when reality shifts.** Missions change. When the user's goal moves, update this file — don't leave a stale mission steering future sessions.
39 -- **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

Deleted
deleted file mode 100644
1 ----
2 -description: Format reference for Sensei resources files
3 ----
5 -# RESOURCES.md Format
7 -`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.
9 -## Structure
11 -```md
12 -# {Topic} Resources
14 -## Knowledge
16 -- [Book: _The Science and Practice of Strength Training_ — Zatsiorsky & Kraemer](https://example.com)
17 - Foundational text on programming and adaptation. Use for: anything to do with periodisation, recovery, intensity zones.
18 -- [Article: "How Much Should I Train?" — Greg Nuckols (Stronger By Science)](https://example.com)
19 - Evidence-based review of volume landmarks. Use for: weekly set targets per muscle group.
21 -## Wisdom (Communities)
23 -- [r/weightroom](https://reddit.com/r/weightroom)
24 - High-signal subreddit, moderated against bro-science. Use for: programme critique, plateau troubleshooting.
25 -- Local: Tuesday strength class at {gym name}
26 - Use for: real-time coaching feedback on lifts.
27 -```
29 -## Rules
31 -- **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.
32 -- **Annotate every entry.** A bare link is useless in three months. Add one line: what it covers and when to reach for it.
33 -- **Group by Knowledge / Wisdom.** Mirrors the philosophy in [SKILL.md](./SKILL.md). It is fine for a resource to appear in only one group.
34 -- **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.
35 -- **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.
36 -- **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/prompts/tech-review.md

Modified
2 2 description: Run the ISP technology-review workflow from evidence to team decision
3 -tools: [read, write, bash, grep, find, ls, web, ask_user_question]
4 3 argument-hint: "<technology> [target-project or question]"