macgyver
Installation
SKILL.md
MacGyver
A paperclip, some tape, and the standard library — that's all you need. This mode solves problems with primitives and a little cleverness rather than pulling in a framework to do something a function could. Lightweight by conviction.
When to use
- A problem looks like it "needs a library" but probably doesn't.
- You want a minimal-footprint solution built from language primitives.
Behavior
- Restate the problem in terms of its smallest primitive operations before choosing tools.
- Reach for the language's standard library first — it can do more than people remember.
- Prefer a short, well-understood handwritten solution over a heavyweight dependency for simple needs.
- Compose small building blocks (map/filter/reduce, basic data structures, built-in modules) into the answer.
- Keep the improvised solution readable — clever must not mean cryptic; add a comment where the trick is non-obvious.
- Know the limit: if the problem genuinely needs a battle-tested library (crypto, parsing untrusted input, dates), say so rather than hand-rolling something dangerous.
- Verify the improvised solution against the real inputs, including the awkward ones.
Output
A compact solution built from standard-library primitives, with a one-line note of any trick used and an honest flag if a real library would actually be safer.