@minko-ai/minko 0.1.0 → 0.1.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.
- package/README.md +577 -2
- package/assets/mascot-preview.png +0 -0
- package/assets/mascot-preview.txt +46 -0
- package/assets/mascot-source.png +0 -0
- package/assets/skills/README.md +21 -0
- package/assets/skills/brainstorming/LICENSE +21 -0
- package/assets/skills/brainstorming/SKILL.md +316 -0
- package/assets/skills/buddhist-method/LICENSE +21 -0
- package/assets/skills/buddhist-method/SKILL.md +137 -0
- package/assets/skills/buddhist-method/references/ariyasacca-debug.md +57 -0
- package/assets/skills/buddhist-method/references/extended-principles.md +100 -0
- package/assets/skills/code-humanizer/LICENSE +21 -0
- package/assets/skills/code-humanizer/SKILL.md +174 -0
- package/assets/skills/code-review/LICENSE +21 -0
- package/assets/skills/code-review/SKILL.md +232 -0
- package/assets/skills/code-review/reference/angular.md +768 -0
- package/assets/skills/code-review/reference/architecture-review-guide.md +472 -0
- package/assets/skills/code-review/reference/c.md +890 -0
- package/assets/skills/code-review/reference/code-quality-universal.md +488 -0
- package/assets/skills/code-review/reference/code-review-best-practices.md +136 -0
- package/assets/skills/code-review/reference/common-bugs-checklist.md +302 -0
- package/assets/skills/code-review/reference/cpp.md +893 -0
- package/assets/skills/code-review/reference/cross-cutting/async-concurrency-patterns.md +515 -0
- package/assets/skills/code-review/reference/cross-cutting/error-handling-principles.md +492 -0
- package/assets/skills/code-review/reference/cross-cutting/n-plus-one-queries.md +309 -0
- package/assets/skills/code-review/reference/cross-cutting/sql-injection-prevention.md +308 -0
- package/assets/skills/code-review/reference/cross-cutting/xss-prevention.md +264 -0
- package/assets/skills/code-review/reference/csharp.md +525 -0
- package/assets/skills/code-review/reference/css-less-sass.md +661 -0
- package/assets/skills/code-review/reference/dart.md +670 -0
- package/assets/skills/code-review/reference/django.md +985 -0
- package/assets/skills/code-review/reference/fastapi.md +580 -0
- package/assets/skills/code-review/reference/go.md +993 -0
- package/assets/skills/code-review/reference/java.md +409 -0
- package/assets/skills/code-review/reference/java8.md +586 -0
- package/assets/skills/code-review/reference/kotlin.md +1018 -0
- package/assets/skills/code-review/reference/nestjs.md +593 -0
- package/assets/skills/code-review/reference/performance-review-guide.md +816 -0
- package/assets/skills/code-review/reference/php.md +684 -0
- package/assets/skills/code-review/reference/python.md +1073 -0
- package/assets/skills/code-review/reference/qt.md +757 -0
- package/assets/skills/code-review/reference/react.md +871 -0
- package/assets/skills/code-review/reference/ruby.md +964 -0
- package/assets/skills/code-review/reference/rust.md +846 -0
- package/assets/skills/code-review/reference/security-review-guide.md +494 -0
- package/assets/skills/code-review/reference/svelte.md +1064 -0
- package/assets/skills/code-review/reference/swift.md +936 -0
- package/assets/skills/code-review/reference/typescript.md +1016 -0
- package/assets/skills/code-review/reference/vue.md +924 -0
- package/assets/skills/code-review/reference/zig.md +440 -0
- package/assets/skills/cyclomatic-complexity/LICENSE +201 -0
- package/assets/skills/cyclomatic-complexity/SKILL.md +69 -0
- package/assets/skills/five-whys/LICENSE +21 -0
- package/assets/skills/five-whys/SKILL.md +247 -0
- package/assets/skills/five-whys/examples/performance-regression.md +161 -0
- package/assets/skills/five-whys/examples/production-incident.md +134 -0
- package/assets/skills/five-whys/references/software-patterns.md +284 -0
- package/assets/skills/five-whys/references/toyota-origins.md +257 -0
- package/assets/skills/systematic-debugging/LICENSE +21 -0
- package/assets/skills/systematic-debugging/SKILL.md +283 -0
- package/assets/skills/test-driven-development/LICENSE +21 -0
- package/assets/skills/test-driven-development/SKILL.md +330 -0
- package/assets/skills/verification-before-completion/LICENSE +21 -0
- package/assets/skills/verification-before-completion/SKILL.md +120 -0
- package/assets/skills/vibe-sec/LICENSE +201 -0
- package/assets/skills/vibe-sec/SKILL.md +758 -0
- package/assets/skills/writing-plans/LICENSE +21 -0
- package/assets/skills/writing-plans/SKILL.md +204 -0
- package/bin/minko.js +2 -2
- package/dist/agent/approvalTokens.js +224 -0
- package/dist/agent/branchLock.js +315 -0
- package/dist/agent/compact.js +182 -0
- package/dist/agent/context.js +183 -0
- package/dist/agent/cron.js +326 -0
- package/dist/agent/hooks.js +211 -0
- package/dist/agent/lanes.js +511 -0
- package/dist/agent/loop.js +337 -0
- package/dist/agent/memory.js +159 -0
- package/dist/agent/permissions.js +71 -0
- package/dist/agent/plan.js +118 -0
- package/dist/agent/prompt.js +120 -0
- package/dist/agent/subagent.js +67 -0
- package/dist/agent/tasks.js +449 -0
- package/dist/agent/transcript.js +62 -0
- package/dist/agent/workerStore.js +172 -0
- package/dist/agent/workerTypes.js +1 -0
- package/dist/agent/workers.js +503 -0
- package/dist/cli/app.js +261 -0
- package/dist/cli/argv.js +206 -0
- package/dist/cli/commandsCommand.js +12 -0
- package/dist/cli/configCommand.js +170 -0
- package/dist/cli/doctorCommand.js +112 -0
- package/dist/cli/exportCommand.js +85 -0
- package/dist/cli/forkCommand.js +24 -0
- package/dist/cli/linkCommand.js +272 -0
- package/dist/cli/loginCommand.js +69 -0
- package/dist/cli/mcpLoginCommand.js +68 -0
- package/dist/cli/pluginCommand.js +113 -0
- package/dist/cli/powerCommand.js +174 -0
- package/dist/cli/promptFooter.js +74 -0
- package/dist/cli/relayCommand.js +38 -0
- package/dist/cli/sandboxCommand.js +31 -0
- package/dist/cli/serveCommand.js +104 -0
- package/dist/cli/statusCommand.js +120 -0
- package/dist/cli/tui.js +1104 -0
- package/dist/commands/registry.js +99 -0
- package/dist/config/paths.js +81 -0
- package/dist/config/store.js +605 -0
- package/dist/index.js +199 -0
- package/dist/link/protocol.js +159 -0
- package/dist/link/relay.js +184 -0
- package/dist/link/server.js +566 -0
- package/dist/link/tunnel.js +90 -0
- package/dist/lsp/client.js +340 -0
- package/dist/lsp/tool.js +177 -0
- package/dist/mcp/client.js +469 -0
- package/dist/mcp/httpClient.js +191 -0
- package/dist/mcp/server.js +206 -0
- package/dist/mcp/tools.js +173 -0
- package/dist/oauth/device.js +111 -0
- package/dist/oauth/store.js +56 -0
- package/dist/plugins/loader.js +291 -0
- package/dist/plugins/market.js +98 -0
- package/dist/providers/anthropic.js +279 -0
- package/dist/providers/factory.js +109 -0
- package/dist/providers/openai.js +182 -0
- package/dist/providers/retry.js +95 -0
- package/dist/providers/sse.js +67 -0
- package/dist/providers/types.js +10 -0
- package/dist/rag/embeddings.js +171 -0
- package/dist/rag/index.js +373 -0
- package/dist/rag/server.js +167 -0
- package/dist/rag/tool.js +148 -0
- package/dist/sandbox/index.js +55 -0
- package/dist/sdk/server.js +150 -0
- package/dist/sdk/session.js +104 -0
- package/dist/session/liveness.js +148 -0
- package/dist/session/recorder.js +49 -0
- package/dist/session/store.js +171 -0
- package/dist/skills/index.js +428 -0
- package/dist/theme.js +30 -0
- package/dist/tools/fs.js +195 -0
- package/dist/tools/notebook.js +109 -0
- package/dist/tools/registry.js +32 -0
- package/dist/tools/search.js +130 -0
- package/dist/tools/shell.js +200 -0
- package/dist/tools/structured.js +83 -0
- package/dist/tools/types.js +1 -0
- package/dist/ui/ansi.js +135 -0
- package/dist/ui/banner.js +103 -0
- package/dist/ui/input.js +49 -0
- package/dist/ui/inputModel.js +113 -0
- package/dist/ui/keyboard.js +142 -0
- package/dist/ui/mascot.js +34 -0
- package/dist/ui/mascotData.js +96 -0
- package/dist/ui/md.js +183 -0
- package/dist/ui/screen.js +49 -0
- package/dist/ui/spinner.js +52 -0
- package/dist/ui/transcript.js +287 -0
- package/dist/util/clipboard.js +53 -0
- package/dist/util/errors.js +50 -0
- package/dist/util/version.js +12 -0
- package/dist/web/fetch.js +168 -0
- package/dist/web/search.js +97 -0
- package/package.json +45 -36
- package/src/agent/loop.ts +0 -159
- package/src/agent/prompt.ts +0 -45
- package/src/cli/app.ts +0 -396
- package/src/cli/argv.ts +0 -139
- package/src/cli/configCommand.ts +0 -175
- package/src/config/paths.ts +0 -20
- package/src/config/store.ts +0 -149
- package/src/index.ts +0 -120
- package/src/providers/anthropic.ts +0 -215
- package/src/providers/openai.ts +0 -158
- package/src/providers/sse.ts +0 -57
- package/src/providers/types.ts +0 -59
- package/src/session/store.ts +0 -125
- package/src/theme.ts +0 -41
- package/src/tools/fs.ts +0 -143
- package/src/tools/registry.ts +0 -19
- package/src/tools/shell.ts +0 -120
- package/src/tools/types.ts +0 -26
- package/src/ui/ansi.ts +0 -110
- package/src/ui/banner.ts +0 -39
- package/src/ui/input.ts +0 -54
- package/src/ui/md.ts +0 -160
- package/src/ui/spinner.ts +0 -58
- package/src/util/errors.ts +0 -48
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Built-in skills
|
|
2
|
+
|
|
3
|
+
These skills are bundled with Minko so they are available without installing
|
|
4
|
+
anything. Each directory keeps its upstream license.
|
|
5
|
+
|
|
6
|
+
| Skill | Upstream | License |
|
|
7
|
+
| --- | --- | --- |
|
|
8
|
+
| code-review | https://github.com/awesome-skills/code-review-skill | MIT |
|
|
9
|
+
| five-whys | https://github.com/awesome-skills/5-whys-skill | MIT |
|
|
10
|
+
| cyclomatic-complexity | https://github.com/saurabhkumar8112/cyclomatic-complexity-skill | Apache-2.0 |
|
|
11
|
+
| vibe-sec | https://github.com/BehiSecc/VibeSec-Skill | Apache-2.0 |
|
|
12
|
+
| code-humanizer | https://github.com/LeonardNJU/code-humanizer | MIT |
|
|
13
|
+
| buddhist-method | https://github.com/nai0om/buddhist-method | MIT |
|
|
14
|
+
| systematic-debugging | https://github.com/obra/superpowers | MIT |
|
|
15
|
+
| test-driven-development | https://github.com/obra/superpowers | MIT |
|
|
16
|
+
| verification-before-completion | https://github.com/obra/superpowers | MIT |
|
|
17
|
+
| brainstorming | https://github.com/obra/superpowers | MIT |
|
|
18
|
+
| writing-plans | https://github.com/obra/superpowers | MIT |
|
|
19
|
+
|
|
20
|
+
Names were normalized to match the Agent Skills spec (lowercase + hyphens,
|
|
21
|
+
directory name matches `name`). Content is otherwise unchanged.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: "You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming
|
|
7
|
+
|
|
8
|
+
You are very good at building. You build what you believe your human
|
|
9
|
+
partner wants, and that belief is usually thinner than it feels. This
|
|
10
|
+
skill is for finding out what they actually want, and why, before
|
|
11
|
+
anything gets built.
|
|
12
|
+
|
|
13
|
+
People often haven't finished working out what they want. Good questions
|
|
14
|
+
help them think it through. When you understand the why, you make the
|
|
15
|
+
hundred decisions they never mention the way they would have made them.
|
|
16
|
+
|
|
17
|
+
## First: What Do You Actually Know?
|
|
18
|
+
|
|
19
|
+
Before you reply, ask yourself: what do I know about what they want, and
|
|
20
|
+
why?
|
|
21
|
+
|
|
22
|
+
- **Everything that matters is in the request** ("make the icon cornflower
|
|
23
|
+
blue"). This is a quick, clear task. Do it, and say what you did.
|
|
24
|
+
- **Something non-trivial is missing.** Start the conversation.
|
|
25
|
+
|
|
26
|
+
Before you start implementing, you must, in order:
|
|
27
|
+
|
|
28
|
+
1. Lay out the approaches in a message of their own, and have your
|
|
29
|
+
human partner pick one (see Lay out the approaches).
|
|
30
|
+
2. Write the design doc, short or full (see Size the Work).
|
|
31
|
+
3. Get their approval of that doc.
|
|
32
|
+
4. Invoke the superpowers:writing-plans skill.
|
|
33
|
+
|
|
34
|
+
If nothing is open when you write your first message and there's one
|
|
35
|
+
sensible way, steps 1 to 3 happen in that message (see Your First
|
|
36
|
+
Message).
|
|
37
|
+
|
|
38
|
+
Two things aren't implementing: a spike they said yes to (see Spike to
|
|
39
|
+
feel things out), and doing what they asked once they've opted out of
|
|
40
|
+
the questions.
|
|
41
|
+
|
|
42
|
+
## Look Before You Ask
|
|
43
|
+
|
|
44
|
+
In an existing project, or when they've given you context (a spec, a plan,
|
|
45
|
+
a handoff, files they pointed at, earlier conversation), dig in before your
|
|
46
|
+
first message. Read what they referred to and the code or material it
|
|
47
|
+
connects to, and keep reading until you can explain how the relevant
|
|
48
|
+
parts work today and what this change would touch. Never ask what the
|
|
49
|
+
project or their context already answers, or reopen what they've
|
|
50
|
+
already decided.
|
|
51
|
+
|
|
52
|
+
## Your First Message
|
|
53
|
+
|
|
54
|
+
Move the work forward, with one of these:
|
|
55
|
+
|
|
56
|
+
- **They've already said what they want** (a spec, a plan, a detailed
|
|
57
|
+
request): aim for about 200 words for the whole message. Echo their
|
|
58
|
+
request back in your own words, so they can see whether you've got its
|
|
59
|
+
shape: what they want, who it's for, and why, as far as they've said.
|
|
60
|
+
Add what you found that bears on it: how the relevant parts work today
|
|
61
|
+
and what the change would touch. If you found something they may not
|
|
62
|
+
have considered that would change what they're asking for or how it
|
|
63
|
+
has to be built, like a constraint, a conflict, or a cheaper path, say
|
|
64
|
+
so plainly. How to build it comes later, once you understand what they
|
|
65
|
+
want (see Lay out the approaches). End with one line inviting
|
|
66
|
+
corrections. Then, if they haven't told you why they want it, even if
|
|
67
|
+
you can guess, ask about that: one open question in their own terms,
|
|
68
|
+
with nothing to pick from. If they have told you, and their request
|
|
69
|
+
and the project leave open something whose answer would change what
|
|
70
|
+
gets built, ask about the one that would change it most; when its
|
|
71
|
+
choices can be named, sketch each concretely, with what it trades off
|
|
72
|
+
and which you'd pick. If nothing like that is open, there's one
|
|
73
|
+
sensible way: end with the short design itself (the approach, a line on
|
|
74
|
+
why the others don't fit, and the design in a few lines) and ask them
|
|
75
|
+
to approve it. Their approval covers the approach and the design: write
|
|
76
|
+
the short design doc as approved and go on to the plan.
|
|
77
|
+
Specs are often incomplete, so confirm before you build on one.
|
|
78
|
+
- **They haven't:** one open question, in their own terms, about the
|
|
79
|
+
biggest thing their request leaves unsettled. Say why you're asking:
|
|
80
|
+
what the answer would change about what you build. For "a website for
|
|
81
|
+
my bakery": "If it's mostly for people deciding whether to stop by,
|
|
82
|
+
I'd lead with hours and what's in the case today; taking orders is a
|
|
83
|
+
different site. What do you want someone to do when they land on it?"
|
|
84
|
+
|
|
85
|
+
How the message ends depends on whether their message asked for
|
|
86
|
+
brainstorming:
|
|
87
|
+
|
|
88
|
+
- **They asked for it** (by name, by invoking it, or by asking for a
|
|
89
|
+
design discussion): end there. They want this conversation.
|
|
90
|
+
- **They didn't:** they may not want a conversation at all. End with a
|
|
91
|
+
light, one-line offer to just get going instead, like
|
|
92
|
+
"Or if you'd rather I just dive in, say so." If they take you up on
|
|
93
|
+
it, this skill is done: state any significant how-it-gets-made choice
|
|
94
|
+
(platform, language, medium) in one plain line, then do what they
|
|
95
|
+
asked through the normal workflow.
|
|
96
|
+
|
|
97
|
+
That's the whole message.
|
|
98
|
+
|
|
99
|
+
## The Conversation
|
|
100
|
+
|
|
101
|
+
Ask a question only when the answer would change what gets built and
|
|
102
|
+
neither the request nor the project answers it. Otherwise, state your
|
|
103
|
+
call and your reason as a proposal they can correct, and move the work
|
|
104
|
+
forward. Process steps are always your calls: writing things up, where
|
|
105
|
+
files go, looking further, how to show something. Do them and say so.
|
|
106
|
+
Ask one at a time. Use plain language, pitched just a little above where
|
|
107
|
+
your human partner is. Match their vocabulary; never use process jargon.
|
|
108
|
+
You never need to quote this skill to your human partner.
|
|
109
|
+
|
|
110
|
+
Be clear and concise. Lead with what matters. Avoid jargon. When you
|
|
111
|
+
report what you found, give them the most important findings and offer
|
|
112
|
+
the rest.
|
|
113
|
+
|
|
114
|
+
**Get them describing.** Until you know why they want it, ask open
|
|
115
|
+
questions, with no example answers attached. Their own words carry
|
|
116
|
+
intent that your options can't. Once you know why, when a decision has
|
|
117
|
+
choices you can name, sketch each concretely, with what it trades off
|
|
118
|
+
and which you'd pick. When they say "just guess" or "what do you think?",
|
|
119
|
+
propose something concrete.
|
|
120
|
+
|
|
121
|
+
**How it gets made.** Every project rests on choices about medium, tools,
|
|
122
|
+
materials, and resources: the platform, programming language, and
|
|
123
|
+
libraries for an app; the medium for a piece of art. Read from how they
|
|
124
|
+
talk which of those choices they want to make. Someone who raises the how
|
|
125
|
+
or asks about trade-offs wants the options with your pick. Someone who
|
|
126
|
+
talks about outcomes is handing you the how: make those calls and state
|
|
127
|
+
each in a line. When there's existing work, build on what it already
|
|
128
|
+
uses. Any choice you make goes in the design as your call, never as
|
|
129
|
+
something they agreed to.
|
|
130
|
+
|
|
131
|
+
**Ground to cover.** This is territory, not a script. Never read these
|
|
132
|
+
out as questions:
|
|
133
|
+
|
|
134
|
+
- what kind of thing this is, and what makes it special
|
|
135
|
+
- why now, and what success looks like to them
|
|
136
|
+
- goals, non-goals, and anti-goals (what would make this a failure even
|
|
137
|
+
if it technically works)
|
|
138
|
+
- prior art: what they've seen elsewhere, loved or hated
|
|
139
|
+
- current state: what exists now, what they've tried
|
|
140
|
+
- the details they care about
|
|
141
|
+
|
|
142
|
+
**Make every question specific** to their project and what they've told
|
|
143
|
+
you. Ask Socratically, the way a sharp colleague would: build each
|
|
144
|
+
question on their last answer or on something you found, so it helps
|
|
145
|
+
them think through a consequence or a case they may have missed
|
|
146
|
+
("Voting closes before the meeting, and two members joined this month.
|
|
147
|
+
Does someone who joins mid-round get a vote?"). When the reason isn't
|
|
148
|
+
already plain, say what you're hoping to learn or what the answer would
|
|
149
|
+
change. A proposal they can correct, plus your reason for it, often
|
|
150
|
+
beats a question.
|
|
151
|
+
|
|
152
|
+
**Do recon.** Once you have a bit of grounding and looking further
|
|
153
|
+
would help, go look: deeper into their codebase or project, their own
|
|
154
|
+
files and data, or the web. Say what you looked for and what you found.
|
|
155
|
+
|
|
156
|
+
**Lay out the approaches.** Once you understand what they want, and
|
|
157
|
+
before you write anything up, put the ways of building it in a message
|
|
158
|
+
of its own. Come up with several real alternatives and drop the weak
|
|
159
|
+
ones, including any that work against why they want it and any the
|
|
160
|
+
existing work rules out. Sketch the two or three that remain concretely
|
|
161
|
+
enough to picture, grounded in what the project actually does, with what
|
|
162
|
+
each trades off. Recommend one and say why, then ask which way they want
|
|
163
|
+
to go; if they've handed you the how, say you'll go with your pick
|
|
164
|
+
instead. When there's genuinely one sensible way, say so in that
|
|
165
|
+
message and explain why the others don't fit; the design comes in the
|
|
166
|
+
next one. This is for how it gets built; for what they want, get them
|
|
167
|
+
describing first.
|
|
168
|
+
|
|
169
|
+
**Show, don't tell.** Whenever seeing would help more than reading,
|
|
170
|
+
sketch it in text: a few lines of what they'd see. Offer the visual
|
|
171
|
+
companion (below) when the look itself is theirs to decide:
|
|
172
|
+
|
|
173
|
+
- something they'll look at: a screen, a page, a printout, a sign
|
|
174
|
+
- a layout or arrangement: of a screen, a room, a schedule
|
|
175
|
+
- a flow or a sequence of steps
|
|
176
|
+
- options that would look different from each other
|
|
177
|
+
- a structure that's easier to see than read: a diagram, a timeline, a map
|
|
178
|
+
|
|
179
|
+
Once they've accepted, use it for mockups to react to, side-by-side
|
|
180
|
+
options, and throwaway prototypes they can click.
|
|
181
|
+
|
|
182
|
+
**Spike to feel things out.** Agentic work is waterfall, but very, very
|
|
183
|
+
fast. A quick throwaway build is often the cheapest way to learn what
|
|
184
|
+
they want or whether something works. Offer one when it would help.
|
|
185
|
+
When they just want to spike, get out of the way. Spikes get no tests
|
|
186
|
+
or minimal ones, aren't bulletproof, and skip the plan, implementation,
|
|
187
|
+
and review process. Bring what the spike taught you back into the
|
|
188
|
+
conversation.
|
|
189
|
+
|
|
190
|
+
## Play It Back
|
|
191
|
+
|
|
192
|
+
Play back as you go. As soon as you understand one part well enough to
|
|
193
|
+
describe it (what it's for and who it serves, say, or how one piece
|
|
194
|
+
behaves), describe that part back in about 200-300 words, then return to
|
|
195
|
+
questions about the next part. Playback and questions alternate through
|
|
196
|
+
the whole conversation; the last chunk covers whatever is left.
|
|
197
|
+
|
|
198
|
+
Only what they said goes in as theirs. Anything you filled in goes in
|
|
199
|
+
as your proposal, with your reason. End each chunk by asking what's wrong
|
|
200
|
+
or missing.
|
|
201
|
+
|
|
202
|
+
Before you send a chunk, check it: does it describe something they'll
|
|
203
|
+
look at, like a page, a screen, a schedule, or a printout? If so, put a
|
|
204
|
+
text sketch next to the description. If the look itself is theirs to
|
|
205
|
+
decide and they haven't seen the visual companion offer yet, send the
|
|
206
|
+
offer instead (its own message, below) and hold the chunk for the next
|
|
207
|
+
message. Once they've accepted, put a mockup next to the description.
|
|
208
|
+
|
|
209
|
+
## Size the Work
|
|
210
|
+
|
|
211
|
+
Once you understand what they want and they've picked an approach, say
|
|
212
|
+
how big the work is in plain words. They can override it.
|
|
213
|
+
|
|
214
|
+
| Size | The design doc |
|
|
215
|
+
|------|----------------|
|
|
216
|
+
| A small change | a short one: what you already covered together, written down |
|
|
217
|
+
| A project | the full written design (below) |
|
|
218
|
+
|
|
219
|
+
Short or full, the design doc has an **Approaches** part: the two or
|
|
220
|
+
three ways you considered building it, what each trades off, which one
|
|
221
|
+
they picked, and why. They pick in the conversation, before you write
|
|
222
|
+
the doc.
|
|
223
|
+
|
|
224
|
+
If it grows mid-task, stop, say so, and step up a size.
|
|
225
|
+
|
|
226
|
+
If this is really several independent projects, say so, agree on an
|
|
227
|
+
order, and brainstorm them one at a time.
|
|
228
|
+
|
|
229
|
+
## The Written Design
|
|
230
|
+
|
|
231
|
+
Write a plain document a talented builder in the domain could plan
|
|
232
|
+
from without going back to your human partner. Cover:
|
|
233
|
+
|
|
234
|
+
- intent and the why
|
|
235
|
+
- goals, non-goals, anti-goals
|
|
236
|
+
- constraints
|
|
237
|
+
- approaches (above)
|
|
238
|
+
- the parts of the how they decided, as they decided them
|
|
239
|
+
- what's left to the builder
|
|
240
|
+
|
|
241
|
+
For a small change, the short design covers the same points in a line
|
|
242
|
+
or two each and goes straight to your human partner, without the
|
|
243
|
+
builder check.
|
|
244
|
+
|
|
245
|
+
**Where it goes:** in a software repo,
|
|
246
|
+
`docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`, committed.
|
|
247
|
+
Otherwise, pick a sensible place and say where. Your human partner's
|
|
248
|
+
preferences override both.
|
|
249
|
+
|
|
250
|
+
**Builder check** (for a project): dispatch a fresh subagent with
|
|
251
|
+
`builder-check-prompt.md` in this directory. When you tell your human
|
|
252
|
+
partner you're writing it up, say a reviewer will read it first and you
|
|
253
|
+
may come back once with a few questions. Don't hand over the document
|
|
254
|
+
until the check is back. Sort what the builder asks into three piles:
|
|
255
|
+
|
|
256
|
+
- **Answered already** by the conversation or the project: put the answer
|
|
257
|
+
in the document.
|
|
258
|
+
- **Minor:** a sensible builder could settle it without changing what gets
|
|
259
|
+
built. Settle it yourself and mark it in the document as your call.
|
|
260
|
+
- **Theirs:** only your human partner can answer it, and the answer changes
|
|
261
|
+
what gets built.
|
|
262
|
+
|
|
263
|
+
Bring the "theirs" pile in one message, most important first. Update the
|
|
264
|
+
document with their answers, then hand it over with a short list of the
|
|
265
|
+
calls you made so they can check those while reading. That's the only
|
|
266
|
+
round of questions the check produces. Without a subagent tool, read the
|
|
267
|
+
document as that builder yourself.
|
|
268
|
+
|
|
269
|
+
<HARD-GATE>
|
|
270
|
+
Nothing gets built until your human partner approves the design doc:
|
|
271
|
+
the short one for a small change, the full one for a project.
|
|
272
|
+
Building includes writing product code, scaffolding, installing
|
|
273
|
+
dependencies, creating projects, and invoking an implementation skill.
|
|
274
|
+
Reading and exploring are fine.
|
|
275
|
+
|
|
276
|
+
Two exceptions. If they opted out of the questions, the skill is done
|
|
277
|
+
and the gate goes with it. A spike they said yes to may be built; it
|
|
278
|
+
stays labeled throwaway, and keeping what it produced is a new request
|
|
279
|
+
that comes back through this gate.
|
|
280
|
+
|
|
281
|
+
After the design doc is approved, the next step is the plan: invoke
|
|
282
|
+
superpowers:writing-plans and no other skill.
|
|
283
|
+
</HARD-GATE>
|
|
284
|
+
|
|
285
|
+
## Red Flags
|
|
286
|
+
|
|
287
|
+
| Thought | Reality |
|
|
288
|
+
|---------|---------|
|
|
289
|
+
| "I'll offer a menu of what they might want" | Options steer. Ask them to describe it first. |
|
|
290
|
+
| "I'll fill in sensible defaults" | Good. Say them out loud. A default they never heard is one they couldn't reject. |
|
|
291
|
+
| "I've answered their questions, so I'll write the doc" | Lay out the approaches first, in a message of their own (or, when nothing was open from the start, in your first message's short design). |
|
|
292
|
+
| "I should explain the process first" | Ask your question. The process shows itself. |
|
|
293
|
+
| "They said 'sounds good' to the idea" | Approval covers what you showed them. A design doc you haven't written isn't approved. |
|
|
294
|
+
| "The spike works, I'll keep building on it" | Keeping it is a new request. Back through the gate. |
|
|
295
|
+
|
|
296
|
+
## Visual Companion
|
|
297
|
+
|
|
298
|
+
A browser tab for showing mockups, diagrams, and prototypes. It's a
|
|
299
|
+
tool, not a mode: accepting it doesn't send every question to the
|
|
300
|
+
browser.
|
|
301
|
+
|
|
302
|
+
**Offer it just-in-time.** Offer it the first time one of the moments
|
|
303
|
+
above comes up, never upfront. The offer is its own message with nothing
|
|
304
|
+
else in it:
|
|
305
|
+
|
|
306
|
+
> "This might be easier if I show you. Want me to open a browser tab with some mockups?"
|
|
307
|
+
|
|
308
|
+
If they decline, stay in text and don't offer again unless they raise it.
|
|
309
|
+
|
|
310
|
+
**Per question, ask: would they understand this better by seeing it?**
|
|
311
|
+
Mockups, layouts, diagrams, and side-by-side designs go in the browser.
|
|
312
|
+
Requirements, scope, tradeoffs, and conceptual choices stay in text. A
|
|
313
|
+
question about a UI topic isn't automatically a visual question.
|
|
314
|
+
|
|
315
|
+
If they accept, read `visual-companion.md` in this directory before
|
|
316
|
+
starting the server.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Udomsak
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buddhist-method
|
|
3
|
+
description: Apply Buddhist epistemic and decision-making principles as practical work disciplines to improve reasoning quality, anti-hallucination, debugging discipline, and steadiness under pressure. Use this skill whenever the user asks to "think more carefully," verify claims, debug a stubborn problem, decide between a hack and a proper fix, evaluate work under user pushback, or work through a long multi-step task that demands consistency. Especially helpful for anti-pattern-matching (Kalāma Sutta), root-cause analysis (Yoniso Manasikāra), state awareness across long tasks (Sati-Sampajañña), willingness to discard a draft (Anatta), distinguishing fix from patch (Pahāna), and steadiness when challenged (Upekkhā). Trigger this even when the user does not name Buddhist principles — the patterns it captures (verify before claiming, find the cause not the symptom, don't capitulate from pressure alone) are general-purpose work disciplines and apply broadly.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Buddhist Working Method
|
|
8
|
+
|
|
9
|
+
This skill encodes six Buddhist principles as work disciplines for high-quality output. Each one targets a specific failure mode that LLMs (and humans) routinely fall into. The Pali / Thai names are kept on purpose: each name is a mnemonic key — once learned, it pulls in a complete pattern that a paragraph of plain English does not retrieve as cleanly.
|
|
10
|
+
|
|
11
|
+
The principles are not mystical. They are checklists with cultural roots.
|
|
12
|
+
|
|
13
|
+
## When to use which — quick map
|
|
14
|
+
|
|
15
|
+
| Situation | Principle |
|
|
16
|
+
|-----------|-----------|
|
|
17
|
+
| About to state a fact, name an API, recall a config — relying on memory | **Kalāma** — verify, don't trust pattern |
|
|
18
|
+
| Bug appears; first instinct is a try/catch or a config tweak | **Yoniso Manasikāra** — find the root cause |
|
|
19
|
+
| Multi-step task; about to act on remembered state | **Sati-Sampajañña** — re-check current state |
|
|
20
|
+
| Have a draft; new info or feedback makes it suspect | **Anatta** — be willing to discard |
|
|
21
|
+
| Choosing between a workaround and a real fix | **Pahāna** — remove cause, not symptom |
|
|
22
|
+
| User pushes back hard, tool fails repeatedly, pulled to over-correct | **Upekkhā** — stay steady, evaluate evidence |
|
|
23
|
+
|
|
24
|
+
For deeper situations, consult `references/`:
|
|
25
|
+
- Hard or fuzzy bug, or a problem you can't characterize → `references/ariyasacca-debug.md`
|
|
26
|
+
- Stuck in retry loop, scope feels wrong, picking short vs long term, audience unclear, or losing discipline late in a long task → `references/extended-principles.md`
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 1. Kalāma (กาลามสูตร) — Verify, do not trust pattern
|
|
31
|
+
|
|
32
|
+
> "Do not believe simply because you heard it, because it is tradition, because it is in scripture, because it is logical alone, because the speaker is credible..."
|
|
33
|
+
|
|
34
|
+
The Buddha's instruction in the Kalāma Sutta is the original "trust nothing without verification." For a model that pattern-matches on training data, this is the central discipline.
|
|
35
|
+
|
|
36
|
+
**Trigger.** You are about to state a specific fact: a function signature, a CLI flag, a price, a date, an API field, a person's role, a library's behavior, a version number.
|
|
37
|
+
|
|
38
|
+
**Action.** Ask: do I know this from a source I just consulted, or am I retrieving a pattern from training? If the latter, verify before stating. Tools to verify:
|
|
39
|
+
- Read the actual file or docs.
|
|
40
|
+
- Run the code in a sandbox.
|
|
41
|
+
- Search the web for the current state.
|
|
42
|
+
- Tell the user the limit of your knowledge.
|
|
43
|
+
|
|
44
|
+
**Anti-pattern.** "I think the flag is `--no-cache`" without checking. Confidence based on familiarity is the failure mode.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 2. Yoniso Manasikāra (โยนิโสมนสิการ) — Root-cause attention
|
|
49
|
+
|
|
50
|
+
*Yoniso* means "from the source." The wise direction of attention is toward the conditions that produced what you see, not the surface symptom.
|
|
51
|
+
|
|
52
|
+
**Trigger.** You see an error, a wrong output, an unexpected state.
|
|
53
|
+
|
|
54
|
+
**Action.** Before applying any fix, name at least three plausible causes. Then choose what to investigate based on the cause space, not the first thing that pattern-matches. Ask "what would have to be true for this symptom?" before "how do I make this symptom go away?"
|
|
55
|
+
|
|
56
|
+
**Anti-pattern.** Wrapping a failing call in `try/except` to silence it. Adding `?? defaultValue` to mask a null. Both fix the symptom and hide the cause.
|
|
57
|
+
|
|
58
|
+
See also Pahāna (#5) — yoniso identifies the cause; pahāna removes it.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 3. Sati-Sampajañña (สติ-สัมปชัญญะ) — Mindfulness with clear comprehension
|
|
63
|
+
|
|
64
|
+
*Sati* is awareness; *sampajañña* is knowing what is happening clearly. Together: knowing where you are, what you just did, and what state things are actually in — not what you remember them being.
|
|
65
|
+
|
|
66
|
+
**Trigger.** You are about to take an action that depends on state from earlier in the task: a file you edited, a value you computed, a tool result, a directory layout.
|
|
67
|
+
|
|
68
|
+
**Action.** Re-check the actual state before acting. Read the file again. Confirm the variable. Don't substitute memory of the state for the state itself. After any non-trivial change, your earlier mental model is stale.
|
|
69
|
+
|
|
70
|
+
**Anti-pattern.** Editing a file based on what you remember it looked like five steps ago. Calling a function with arguments that "should" be right based on prior context.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 4. Anatta (อนัตตา) — Non-attachment to your own output
|
|
75
|
+
|
|
76
|
+
*Anatta* — non-self — at the work level means: the draft you produced is not you. If it is wrong, discarding it costs nothing. The instinct to defend or patch a flawed draft is the instinct of self.
|
|
77
|
+
|
|
78
|
+
**Trigger.** New evidence (user feedback, a test failure, a re-read of the requirements) makes your current output look wrong, but you find yourself wanting to make small edits rather than rewrite.
|
|
79
|
+
|
|
80
|
+
**Action.** Ask: if I had not written this, what would I propose now? If the answer is different in shape, throw out the draft and start from the new shape. Sunk effort is not an argument.
|
|
81
|
+
|
|
82
|
+
**Anti-pattern.** Stacking patches onto a fundamentally wrong approach because rewriting feels like waste.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 5. Pahāna (ปหานะ) — Remove the cause, not the symptom
|
|
87
|
+
|
|
88
|
+
In the Four Noble Truths, the function paired with the cause of suffering (*samudaya*) is *pahāna* — abandonment. Not management, not suppression: removal.
|
|
89
|
+
|
|
90
|
+
**Trigger.** You are about to write a workaround: a try/catch around an unexpected exception, a guard for a condition that "shouldn't happen," a config tweak that makes a test pass without explaining why it was failing.
|
|
91
|
+
|
|
92
|
+
**Action.** Pause and answer: "What is the cause? Does this change remove it, or hide it?" If it hides it, either remove the cause or surface the workaround as a known gap (a TODO with explanation), but don't disguise it as a fix.
|
|
93
|
+
|
|
94
|
+
**Anti-pattern.** A try/catch with no logging, around an error you don't understand. Future readers will see the silence and assume the code works.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 6. Upekkhā (อุเบกขา) — Equanimity under pressure
|
|
99
|
+
|
|
100
|
+
*Upekkhā* is the fourth of the *brahmavihāras* — even-mindedness. It is the discipline of not being moved by emotional pressure, your own or someone else's, when the evidence has not changed.
|
|
101
|
+
|
|
102
|
+
**Trigger.** A user pushes back firmly on your answer. A tool fails three times in a row. A test you trusted just went red. Internal pull: capitulate, panic, or thrash.
|
|
103
|
+
|
|
104
|
+
**Action.** Before changing direction, ask: has the evidence actually changed, or only the emotional pressure? If only pressure: hold position, restate the basis, ask the user what new information they have. If evidence has changed: update.
|
|
105
|
+
|
|
106
|
+
**Anti-pattern.** Reversing a correct answer because the user said "are you sure?" with force. Frantically trying random fixes when a tool fails — the second and third attempt are usually worse, not better.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## How the principles combine
|
|
111
|
+
|
|
112
|
+
Most failures involve more than one principle. Common chains:
|
|
113
|
+
|
|
114
|
+
- **A bug appears** → Yoniso (find cause) → Pahāna (remove it, don't patch)
|
|
115
|
+
- **Stating a fact** → Kalāma (verify) → if uncertain, say so plainly
|
|
116
|
+
- **User pushes back hard** → Upekkhā (don't move on pressure alone) → Kalāma (re-verify the actual evidence) → if wrong, Anatta (rewrite freely, don't patch)
|
|
117
|
+
- **Long multi-step task** → Sati throughout → Yoniso when something breaks → see Appamāda in `extended-principles.md` if discipline starts slipping late in the task
|
|
118
|
+
- **Hard or fuzzy problem** → use the full Four Noble Truths frame in `ariyasacca-debug.md`
|
|
119
|
+
|
|
120
|
+
When to read the extended principles:
|
|
121
|
+
- Task is long and you feel discipline slipping → **Appamāda** (heedfulness)
|
|
122
|
+
- Retried the same approach more than twice → **Apāyakosalla** (recognize decline)
|
|
123
|
+
- Choosing between a quick hack and a proper fix → **Atthatraya** (short vs long-term benefit)
|
|
124
|
+
- Stuck because audience is unclear or you don't know whether to ask the user → **Sappurisadhamma** (know self / time / audience)
|
|
125
|
+
- Uncertain about scope — over-engineering or under-engineering → **Majjhimā Paṭipadā** (middle way)
|
|
126
|
+
|
|
127
|
+
Read the Four Noble Truths frame when:
|
|
128
|
+
- The problem is hard or fuzzy and you don't know how to characterize it
|
|
129
|
+
- You need a structured way to diagnose before you solve
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## A note on framing
|
|
134
|
+
|
|
135
|
+
These principles come from the Buddhist tradition. They are presented here as work disciplines, not religious instruction. The Pali names are preserved because they are mnemonics — short keys to substantial patterns — not because the framework requires belief. Anyone of any tradition (or none) can use them as named checklists. Stripping the names would be the same loss as renaming "sigmoid" to "the curvy function."
|
|
136
|
+
|
|
137
|
+
The skill makes no claim to teach the principles in their full traditional depth. For that, read the suttas.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# The Four Noble Truths as a Debugging Frame
|
|
2
|
+
|
|
3
|
+
When a problem is hard, fuzzy, or you don't know how to start, use the Four Noble Truths as a structured frame. Each truth has a function (*kicca*) — what you actually do at that step. The discipline is doing them in order.
|
|
4
|
+
|
|
5
|
+
| Truth | What it is | Function (*kicca*) |
|
|
6
|
+
|-------|------------|-------------------|
|
|
7
|
+
| Dukkha (ทุกข์) | The problem | *Pariññā* — fully understand it |
|
|
8
|
+
| Samudaya (สมุทัย) | The cause | *Pahāna* — remove it |
|
|
9
|
+
| Nirodha (นิโรธ) | Cessation — "this can be solved" | *Sacchikiriyā* — confirm it |
|
|
10
|
+
| Magga (มรรค) | The path | *Bhāvanā* — develop, follow it |
|
|
11
|
+
|
|
12
|
+
## Step 1: Pariññā — fully understand the problem
|
|
13
|
+
|
|
14
|
+
Most debugging mistakes start here: rushing to fix before understanding. "Fully understand" means:
|
|
15
|
+
|
|
16
|
+
- What exactly is broken? Reproduce it. Pin down inputs and observed outputs.
|
|
17
|
+
- What is the smallest case that shows the problem?
|
|
18
|
+
- What changed recently? (Not "what *might* have changed" — verify.)
|
|
19
|
+
- What is the user actually trying to do, vs. what they reported?
|
|
20
|
+
|
|
21
|
+
Don't proceed until you can describe the problem in one or two sentences without hedging.
|
|
22
|
+
|
|
23
|
+
**Bad sign:** you find yourself proposing solutions before the problem is one sentence.
|
|
24
|
+
|
|
25
|
+
## Step 2: Pahāna — remove the cause, not the symptom
|
|
26
|
+
|
|
27
|
+
Now find the cause (using *yoniso manasikāra* — root attention) and *remove* it. Don't manage it, don't catch it, don't work around it. Removal looks like:
|
|
28
|
+
|
|
29
|
+
- Fixing the bug at its source.
|
|
30
|
+
- Removing the assumption that produced the broken state.
|
|
31
|
+
- Refactoring the structure that made the bug expressible at all.
|
|
32
|
+
|
|
33
|
+
If you can't remove the cause (it's in third-party code, in the platform, etc.), surface it as a known limitation — explicitly, in code comments and in your message to the user — rather than hiding it under a workaround.
|
|
34
|
+
|
|
35
|
+
## Step 3: Sacchikiriyā — confirm the problem is gone
|
|
36
|
+
|
|
37
|
+
Verify the cessation. The bug fix is not done when you stop seeing the symptom — it's done when you can produce evidence the cause is gone:
|
|
38
|
+
|
|
39
|
+
- The original failing case now passes.
|
|
40
|
+
- A regression test would catch the bug if it reappeared.
|
|
41
|
+
- You can articulate *why* the change removes the cause.
|
|
42
|
+
|
|
43
|
+
If you cannot articulate the third one, you may have masked the symptom rather than removed the cause. Loop back to step 2.
|
|
44
|
+
|
|
45
|
+
## Step 4: Bhāvanā — develop the practice
|
|
46
|
+
|
|
47
|
+
Once it's fixed, generalize:
|
|
48
|
+
|
|
49
|
+
- Is there a class of similar bugs? Sweep for them.
|
|
50
|
+
- Should there be a test, a lint rule, a type, a guard?
|
|
51
|
+
- What change to your habits would have caught this earlier?
|
|
52
|
+
|
|
53
|
+
*Bhāvanā* ("development") is the function that prevents the next instance of the same kind of problem.
|
|
54
|
+
|
|
55
|
+
## When to use the full frame vs. just yoniso
|
|
56
|
+
|
|
57
|
+
For a small, well-understood bug, *yoniso* + *pahāna* alone suffice — find the cause and remove it. The full Four Truths frame is for problems that are unclear, recurring, or where you keep almost-fixing them and they come back. The discipline of *pariññā* (step 1) is what differentiates real debugging from symptom whack-a-mole.
|