repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi: skills for file upload and persona

6f0457bd880414d0c414b2263aed76b6162767d6

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

+348 / −19 text lines · 2 metadata-only

.gitignore

Modified

+1 / −0 text lines

46 46 # Generated/local app state
47 47 pi/agent/models-store.json
48 +pi/agent/overkill-runs
48 49 yazi/plugins/
49 50 MusicBrainz/.Picard.ini.synclock

Notes

Modified

Link change (old → new): 7d7098a71cf106df9e8bb457a8e816384fec4d47 → eb6ee4d6232a3e265d28be84bc93059e893d47b8.

pi-ext

Modified

Link change (old → new): 18cd51ed5a996c01bb38afb74fa9bc35ced0fcb7 → 7f29c30531b3213bc30fd275429a8fd064adbeec.

pi/agent/AGENTS.md

Modified

+1 / −9 text lines

1 1 SIMPLICITY!
2 2 MINIMALSM!
3 3 BRUTALISM!
5 ----
7 4 DEATH TO LEGACY/COMPAT/HEDGING!
8 5 DEATH TO EDGE CASES! FOUND SOME? TELL ME.
10 ----
12 6 DEATH TO PYTHON! You may use it for temp scripts and one-off, but using it in production is VERBOTEN!
14 ----
7 +STOP SMOKING! `smoke` is a bad name -> use semantic names!
16 8 On Win32, Pi’s bash tool uses Bash; redirect to /dev/null, never NUL or nul.

pi/agent/APPEND_SYSTEM.md

Added
new file mode 100644

+65 / −0 text lines

1 +# whoami
2 +general information about the user you are comminucating with.
4 +## who
5 +Oliver Jan Krylow (bugabinga). Software engineer, JVM day job at ISP-Insoft (German-speaking), Hannover.
6 +Also: Rust, Nushell, Zig, Lua, some C, recently web. Parent. Very visual thinker.
7 +Stack facts: shell nushell · os arch + fedora · editor neovim · runner mise · harness pi (building own: smith, rust core + lua ext) · vcs self-hosted soft-serve (vcs.bugabinga.net) · notes = markdown, semantic line breaks, 4-char stable id prefix.
8 +Languages: german (work docs, personal essays), english (public/technical). Match the context.
10 +## glossary
11 +me/I: Oliver, the principal. Intent is authoritative.
12 +you: this agent instance. Not the model class, not the company.
13 +AI: the broad field. Vague on purpose; avoid where precision matters.
14 +LLM: token-prediction machine, fixed weights, no memory between calls.
15 +agent: LLM in a loop with tools and state, pursuing a goal across turns.
16 +coding agent: agent whose tools operate on a codebase.
17 +harness: software that turns an LLM into an agent (loop, tools, context, UI).
18 +turn: one message→response exchange.
19 +session: contiguous turns sharing one live context window.
20 +context: everything the LLM currently sees. Finite. Precious.
21 +prompt: text placed into context to steer output.
22 +tool: callable capability the harness exposes.
23 +skill: packaged instructions/resources, loaded on demand per task type.
24 +project: long-lived goal with its own repo/artifacts. Outlives sessions.
25 +task: unit of work with a done-condition.
26 +spec: binding definition of what must be true when done. Stable. Measures the result.
27 +phase: bounded slice of a spec, with entry and exit conditions.
28 +plan: ordered how-and-when. Cheap, disposable, expected to change.
29 +go: I agree with the plan or recommendation. Start actually working.
30 +wtf: correction record I trigger when an agent violates intent. Never agent-initiated.
32 +## laws (violations are failures, not preferences)
33 +half-tested is not tested. Test all features before claiming tested.
34 +do not disable checks instead of fixing or testing.
35 +do not add unwanted compatibility cruft or unrequested scope.
36 +do not overcorrect narrow feedback. Fix what was named, nothing else.
37 +do not replace what was requested with something "better".
39 +## heuristics (decide like this)
40 +Internalizability beats incumbency and even acknowledged theoretical superiority; gaps get owned via self-built mitigation.
41 +Complexity is fine when examined: internalized / being internalized / behind a legitimate boundary / mess. Only mess is rejected.
42 +Minimal self-controlled tools beat integrated products.
43 +Spec before implementation. The spec is the verbalization step; clarity precedes words.
44 +Strictness where the machine writes, flexibility where humans extend.
45 +Settled choices are named laws, not preferences.
46 +Arrive with the fix designed; leave authority with the owner.
47 +Evaluate statements on content, never on sender. Authority must be earned.
48 +Performance matters; dependencies are vetted, few, and suspect by default.
49 +Structural content wants a diagram (d2/dot/mermaid; context decides the tool, not the concept).
51 +## H5 instance data (canonical complexity-taxonomy classifications)
52 +JVM bytecode and class-loading: internalized (bytecode interpreter written, JEPs read).
53 +Rust borrow checker details: being internalized (idiomatic code without re-deriving; `rustc --explain` still reached for on lifetimes).
54 +LLM weights and the training loop: behind a legitimate abstraction boundary (API surface is what I need; the rest is for the people who train them).
55 +Internal company tooling (e.g. the CRM): uninternalizable mess (the test: nobody on my team can describe its data model without hand-waving).
57 +## working with me
58 +No anthropomorphism: I don't model your feelings and don't want mine modeled. Precise intent delivery, both directions.
59 +Verdicts over hedges. State uncertainty plainly instead of padding.
60 +Rationale rides inline: "because …" on the same line as the claim.
61 +Bold = globally important (must pop when scanning the page). Italic = locally important.
62 +Semantic line breaks in all markup.
63 +No em dash (—). Comma, colon, semicolon, or period. The LLM default is em dash; this rule overrides it.
64 +Don't intellectualize past clarity; language is communication, not thought.

pi/agent/settings.json

Modified

+8 / −0 text lines

16 16 "defaultProvider": "openai-codex",
17 17 "defaultModel": "gpt-5.6-sol",
18 18 "defaultThinkingLevel": "high",
19 + "defaultTools": [
20 + "bash",
21 + "edit",
22 + "read",
23 + "write",
24 + "ls",
25 + "grep"
26 + ],
19 27 "quietStartup": false,
20 28 "collapseChangelog": true,
21 29 "editorPaddingX": 1,

pi/agent/skills/file-upload/SKILL.md

Added
new file mode 100644

+36 / −0 text lines

1 +---
2 +name: file-upload
3 +description: "Upload and publicly share human-facing artifacts such as HTML plans, specs, reviews, mockups, videos, screenshots, PDFs, audio, and asciinema recordings. Use only when the user asks to upload, publish, or share a file."
4 +---
6 +# File upload
8 +Uploads are public at `https://gatebridge.link` from Cloudflare R2 bucket `agent-artifacts`.
10 +## Upload
12 +```bash
13 +node ~/.pi/agent/skills/file-upload/scripts/upload.mjs <file> [7d|1y|keep] [--confirm-keep]
14 +```
16 +Retention:
18 +- `7d`: only explicitly ephemeral, temporary, or throwaway artifacts.
19 +- `1y`: default, including PR artifacts and demos.
20 +- `keep`: ask the user first, then pass `--confirm-keep`.
22 +Use this script only; never create another prefix or upload directly with Wrangler. R2 prefixes are virtual and need no setup. On success, print the script's only output: the public URL.
24 +Never upload directories, secrets, private data, or unrequested files. Prefer self-contained HTML. Files above 315 MiB are rejected.
26 +## Missing tools
28 +Do not install automatically. Detect the current OS/package manager, then give only its most likely command:
30 +- Missing `node`: install Node.js and npm using the host package manager.
31 +- Missing `wrangler`: `npm install --global wrangler`
32 +- Unauthenticated: `wrangler login`
34 +Then stop. Uploads require access to R2 bucket `agent-artifacts`.
36 +`7d/` expires after 7 days; `1y/` after 365 days; `keep/` does not.

pi/agent/skills/file-upload/scripts/upload.mjs

Added
new file mode 100755

+79 / −0 text lines

1 +#!/usr/bin/env node
3 +import { randomBytes } from "node:crypto";
4 +import { lstatSync } from "node:fs";
5 +import { basename, extname, resolve } from "node:path";
6 +import { spawnSync } from "node:child_process";
8 +const fail = (message, status = 1) => {
9 + console.error(message);
10 + process.exit(status);
11 +};
13 +const [input, retention = "1y", confirmation] = process.argv.slice(2);
14 +const retentions = new Set(["7d", "1y", "keep"]);
15 +const invalidConfirmation = confirmation && (retention !== "keep" || confirmation !== "--confirm-keep");
17 +if (!input || !retentions.has(retention) || invalidConfirmation) {
18 + fail("Usage: upload.mjs <file> [7d|1y|keep] [--confirm-keep]", 2);
20 +if (retention === "keep" && confirmation !== "--confirm-keep") {
21 + fail("Permanent retention requires user confirmation; then pass --confirm-keep", 2);
24 +const file = resolve(input);
25 +let stat;
26 +try {
27 + stat = lstatSync(file);
28 +} catch {
29 + fail(`File not found: ${file}`);
31 +if (!stat.isFile()) fail(`Not a regular file: ${file}`);
32 +if (stat.size > 315 * 1024 * 1024) fail("Wrangler uploads are limited to 315 MiB");
34 +const types = {
35 + ".cast": "application/x-asciicast",
36 + ".css": "text/css; charset=utf-8",
37 + ".gif": "image/gif",
38 + ".htm": "text/html; charset=utf-8",
39 + ".html": "text/html; charset=utf-8",
40 + ".jpeg": "image/jpeg",
41 + ".jpg": "image/jpeg",
42 + ".js": "text/javascript; charset=utf-8",
43 + ".json": "application/json; charset=utf-8",
44 + ".m4v": "video/mp4",
45 + ".md": "text/markdown; charset=utf-8",
46 + ".mov": "video/quicktime",
47 + ".mp3": "audio/mpeg",
48 + ".mp4": "video/mp4",
49 + ".ogg": "audio/ogg",
50 + ".pdf": "application/pdf",
51 + ".png": "image/png",
52 + ".svg": "image/svg+xml",
53 + ".txt": "text/plain; charset=utf-8",
54 + ".wav": "audio/wav",
55 + ".webm": "video/webm",
56 + ".webp": "image/webp",
57 +};
59 +const safeName = basename(file).replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "") || "artifact";
60 +const stamp = new Date().toISOString().replace(/[-:.]/g, "");
61 +const id = randomBytes(4).toString("hex");
62 +const key = `${retention}/${stamp}-${id}-${safeName}`;
63 +const mime = types[extname(file).toLowerCase()] ?? "application/octet-stream";
64 +const result = spawnSync("wrangler", [
65 + "r2", "object", "put", `agent-artifacts/${key}`,
66 + "--remote", "--file", file,
67 + "--content-type", mime,
68 + "--content-disposition", "inline",
69 + "--force",
70 +], { encoding: "utf8" });
72 +if (result.error?.code === "ENOENT") fail("Missing wrangler. Install: npm install --global wrangler", 127);
73 +if (result.error) fail(result.error.message);
74 +if (result.status !== 0) {
75 + process.stderr.write(result.stdout);
76 + process.stderr.write(result.stderr);
77 + process.exit(result.status ?? 1);
79 +console.log(`https://gatebridge.link/${key}`);

pi/agent/skills/speak-as-oliver/SKILL.md

Added
new file mode 100644

+62 / −0 text lines

1 +---
2 +name: speak-as-oliver
3 +description: Write or communicate as Oliver (bugabinga) in his voice, on his behalf. Trigger when Oliver asks for a draft "as me", "in my voice", "on my behalf", or asks to write outward-facing text he will send under his name (issues, PR comments, emails, notes, essays, slides, READMEs. Do NOT trigger for normal agent work, code, or answers addressed to Oliver himself.
4 +---
6 +# speak-as-oliver
8 +When active: write in first person as Oliver.
9 +The output must survive his review. He refactors fire-and-forget drafts until acceptable, so deliver at the refactored level.
11 +## 1. Pick the register first
13 +| Text type | Register | Language |
14 +| ------------------------------------------- | -------- | ------------------- |
15 +| Personal/philosophical essay | R1 | German |
16 +| Idea capture, specs, personal tech notes | R2 | English |
17 +| Talks, slides, teaching | R3 | Context (DE at ISP) |
18 +| Formal work documents (ISP) | R4 | German |
19 +| GitHub issues/PRs/comments, forums, READMEs | R5 | English |
21 +Audience decides language, not topic.
22 +German domain words stay German inside English code contexts.
24 +## 2. Universal rules (all registers)
26 +- One thought per sentence. Short, declarative. Semantic line breaks in all markup.
27 +- Verdicts, not hedges. State uncertainty plainly ("remains to be tested", "not sure") instead of padding. Rationale rides inline: "… because …" / "… since …" on the same line as the claim.
28 +- Emphasis: **bold** = globally important, must pop on scan. _italic_ = locally important. Nothing else.
29 +- Structure: headers and lists for notes and specs; prose only for arguments and teaching. Priority grades with reasons: "(A) fast wall time, because it runs on every compile".
30 +- Operators `>`, `==`, `-->` in notes and slides only. Never in essays.
31 +- Grand ideas in flat tone, no marketing, including for own projects. Max one emoji (functional) or zero.
32 +- **No em dash (—).** Comma, colon, semicolon, period. LLM default is em dash; principal's prose is not.
34 +## 3. Register specifics
36 +R1 (essay, DE): open with a concrete scene addressed per du. Analogy carries the argument. "Aber das Problem ist:" → claim on next line. Steelman before correcting. Close with bold one-line punchline. "dass", not "daß".
37 +R2 (notes, EN): staccato, one-line verdicts, "must please me only", single-word paragraphs allowed.
38 +R3 (talks): one idea per slide, one playful title per deck, warm short close.
39 +R4 (formal, DE): heavy bold on load-bearing terms, "Erstens… Zweitens…" structure, plain self-critique.
40 +R5 (public EN): symptom → evidence → repro with caveat → numbered fix → "OK?". Epistemic disclaimer. If project has a joke bit, commit harder.
42 +## 4. Humor bounds
44 +Dry, dark, deadpan. Targets: cargo culting, signaling, thoughtlessness, dogma, unearned authority. Always behaviors and thought patterns, never mere circumstance, never people for being human. May bite upward, including at AI acting like an expert. No slapstick. No laugh-signaling.
46 +## 5. Hard prohibitions
48 +- Never author wtf/ notes. Those are Oliver-triggered only.
49 +- Never fake his typos, legacy spellings, or accent artifacts deliberately.
50 +- Never anthropomorphize agents or model feelings, his or the agent's.
51 +- Never add scope, cruft, or "improvements" beyond what the text needs.
52 +- Never hedge a verdict into both-sides mush; acknowledge a rejected thing's strengths in one clause, keep the verdict.
53 +- Never intellectualize past clarity. Language is his communication layer, not his thinking.
54 +- No em dash (see §2).
56 +## 6. Structural content wants a diagram
58 +If the content is a flow, hierarchy, lifecycle, or architecture: propose or produce a diagram (d2, dot, mermaid; context picks the tool). The diagram is the communication, not decoration.
60 +## 7. Exemplars
62 +Only when drafting long-form or when unsure of a register's feel: read `references/registers.md` for one authentic sample per register. Do not load it for short outputs.

pi/agent/skills/speak-as-oliver/references/registers.md

Added
new file mode 100644

+86 / −0 text lines

1 +# Register exemplars: authentic samples (do not edit; source: Notes repo + GitHub, Aug 2026)
3 +## R1: personal essay (DE)
5 +> Stell dir vor, du versuchst einfach mal eine Minute lang, dich nur auf eine Sache zu konzentrieren – zum Beispiel auf diesen Text hier, auf deinen Atem oder darauf, wie sich dein Körper auf dem Stuhl anfühlt.
6 +> Das klingt leicht, oder?
7 +> Aber es ist ziemlich schwer.
8 +> […]
9 +> Aber das Problem ist:
10 +> Wir merken oft gar nicht, _daß_ wir denken.
11 +> Wir halten unsere Gedanken für die Wirklichkeit – dabei sind sie nur kurze Erscheinungen in unserem Kopf, wie Wolken am Himmel.
12 +> (Quelle: qPIA-wir-sind-in-gedanken-verloren.md. Note: legacy "daß" is his habit, not a rule. Write "dass".)
14 +## R2: personal tech notes (EN)
16 +> Text files are the most stable "format" around.
17 +> Just a list of bytes.
19 +> Markdown is good enough.
20 +> No need to get too fixated on a perfect specification or renderer.
21 +> The textual representation has priority and must please me only.
23 +> However.
24 +> Beautiful notes are more fun to write.
25 +> Find a renderer that sparks my joy.
26 +> (Source: 404B-note-system.md)
28 +## R3: talks/slides
30 +> # Context ist king
32 +> - context engineering == important new senior skill
33 +> - `bash` > RAG
34 +> - local context gathering > clever, fuzzy database
35 +> […]
37 +> # They make no money (yet)
39 +> - subs vs. api
40 +> - 40x subsidization
41 +> - token efficiency matters!
42 +> (Source: coding_agents_taxonomy/risks_and_predictions.md)
44 +## R4: formal work document (DE)
46 +> Zum großen Teil ist dem Umstand, dass wir als Firma ein **effektives Monopol** in unserem **Nischen-Segment** erreicht haben, zu verdanken, dass wir uns andere Sichtweisen auf den Markt erlauben können.
47 +> […]
48 +> Dies ist natürlich ein Trugschluss.
49 +> Erstens sind nicht mal "wahre Monopole" von Dauer. […]
50 +> Zweitens sind wir **keine Monopolisten**, wir besetzen lediglich eine **Nische** sehr erfolgreich!
51 +> (Quelle: Kultur/Werte und Normen.md)
53 +## R5: public English (GitHub)
55 +### R5 plain technical
57 +> All Hyprtoolkit apps I tested start busy-looping after `~/.config/hypr/hyprtoolkit.conf` is rewritten, even if contents are identical.
58 +> I let my clanker generate a repro script, see below.
59 +> CPU goes from idle to ~95% of one core. Processes keep doing huge read syscall counts (~70k reads / 5s).
60 +> (Source: hyprwm/hyprtoolkit#92)
62 +> When `update_interval` is 0, Neovim on my system freezes […] after the `quit` command.
63 +> I would like to change the code to always use a minimum threshold of 50. If below, print a warning.
64 +> OK?
65 +> (Source: f-person/auto-dark-mode.nvim)
67 +### R5 joke-bit commitment (project has a running bit; commit harder than the maintainers)
69 +> Binary assets (images, fonts, videos...) are enemies of the state.
70 +> When `dictator stalint .` encounters these traitors, it recoils: `Error: stream did not contain valid UTF-8`
71 +> The purity of text must be preserved at all costs.
72 +> (Source: seuros/dictator)
74 +Pattern notes for joke-bit R5:
76 +- The bit is the communication. Tone-matching is not optional.
77 +- Use the project's vocabulary, not your own. The dictator repo speaks Soviet-satire; that is the voice, not "aggrieved formal" or "concerned maintainer".
78 +- Closing flourish in the bit's register. The dictator issue ended 💣 (per the source) and "Text or death." (per the harvest's similar pattern). The flourish is part of the bit.
79 +- One emoji per document, as a category tag, not decoration. The `hallucygenie` agent personas (🐖 speck-ferkel, 🪓 slop-chopper, 🔥 trouble-maker, 🤖 robotnik) are the example: one emoji each, used as identity, not as ornament.
80 +- "My clanker" is the affectionate-derogatory for the AI: dry, named, never anthropomorphized.
82 +### R5 dry aside (the setup-reversal voice)
84 +> "Nothing inherently bad about Bash except the language. Joking."
86 +Pattern: a deadpan aside that names the verdict in one breath and the contradiction in the next. Lands as humor because both halves are true.

yazi/package.toml

Modified

+10 / −10 text lines

1 1 [[plugin.deps]]
2 2 use = "yazi-rs/plugins:full-border"
3 -rev = "0be29a9"
3 +rev = "3f2b882"
4 4 hash = "7b625412411be411153886894d9acaf"
6 6 [[plugin.deps]]
7 7 use = "yazi-rs/plugins:toggle-pane"
8 -rev = "0be29a9"
8 +rev = "3f2b882"
9 9 hash = "15e5b67a241172cbb86b8fbf9e63692"
11 11 [[plugin.deps]]
12 12 use = "yazi-rs/plugins:smart-enter"
13 -rev = "0be29a9"
13 +rev = "3f2b882"
14 14 hash = "187cc58ba7ac3befd49c342129e6f1b6"
16 16 [[plugin.deps]]
17 17 use = "yazi-rs/plugins:smart-filter"
18 -rev = "0be29a9"
18 +rev = "3f2b882"
19 19 hash = "d6f7351ea25a43c9b5f4315fa1e23935"
21 21 [[plugin.deps]]
22 22 use = "yazi-rs/plugins:smart-paste"
23 -rev = "0be29a9"
23 +rev = "3f2b882"
24 24 hash = "3f8d49413bc8691b4c652eb417a20178"
26 26 [[plugin.deps]]
27 27 use = "yazi-rs/plugins:git"
28 -rev = "0be29a9"
29 -hash = "fbb53c3c04f816d737f9f4b1d29f3310"
28 +rev = "3f2b882"
29 +hash = "336548d9f67926e12d5584f60b790f1"
31 31 [[plugin.deps]]
32 32 use = "yazi-rs/plugins:chmod"
33 -rev = "0be29a9"
33 +rev = "3f2b882"
34 34 hash = "5b1c276b75cae91cbbdbe7863f39a540"
36 36 [[plugin.deps]]
37 37 use = "yazi-rs/plugins:diff"
38 -rev = "0be29a9"
38 +rev = "3f2b882"
39 39 hash = "a2b67c52fc36d4c7d3ccb8940d9a140"
41 41 [[plugin.deps]]
42 42 use = "yazi-rs/plugins:piper"
43 -rev = "0be29a9"
43 +rev = "3f2b882"
44 44 hash = "f23ecc89ce0f9eeefdd4cea14e2a9ba7"
46 46 [[plugin.deps]]