diff options
| -rw-r--r-- | about/resources.md | 208 | ||||
| -rw-r--r-- | gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.md | 221 | ||||
| -rw-r--r-- | gemfeed/index.md | 1 | ||||
| -rw-r--r-- | index.md | 3 | ||||
| -rw-r--r-- | uptime-stats.md | 46 |
5 files changed, 351 insertions, 128 deletions
diff --git a/about/resources.md b/about/resources.md index fe8937f1..5abd0b35 100644 --- a/about/resources.md +++ b/about/resources.md @@ -35,110 +35,110 @@ You won't find any links on this site because, over time, the links will break. In random order: -* 100 Go Mistakes and How to Avoid Them; Teiva Harsanyi; Manning Publications -* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner -* Site Reliability Engineering; How Google runs production systems; O'Reilly -* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications -* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton -* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly -* DNS and BIND; Cricket Liu; O'Reilly -* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress -* Ultimate Go Notebook; Bill Kennedy -* Concurrency in Go; Katherine Cox-Buday; O'Reilly -* Terraform Cookbook; Mikael Krief; Packt Publishing -* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible -* Effective Java; Joshua Bloch; Addison-Wesley Professional -* Go Brain Teasers - Exercise Your Mind; Miki Tebeka; The Pragmatic Programmers -* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson -* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly -* Effective awk programming; Arnold Robbins; O'Reilly * Funktionale Programmierung; Peter Pepper; Springer -* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly +* Terraform Cookbook; Mikael Krief; Packt Publishing +* Raku Recipes; J.J. Merelo; Apress +* Pro Puppet; James Turnbull, Jeffrey McCune; Apress +* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt +* Raku Fundamentals; Moritz Lenz; Apress +* 97 things every SRE should know; Emil Stolarsky, Jaime Woo; O'Reilly * Chaos Engineering - System Resiliency in Practice; Casey Rosenthal and Nora Jones; eBook +* Go Brain Teasers - Exercise Your Mind; Miki Tebeka; The Pragmatic Programmers * Learn You Some Erlang for Great Good; Fred Herbert; No Starch Press +* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook +* Ultimate Go Notebook; Bill Kennedy +* Concurrency in Go; Katherine Cox-Buday; O'Reilly +* Effective awk programming; Arnold Robbins; O'Reilly +* 21st Century C: C Tips from the New School; Ben Klemens; O'Reilly +* Developing Games in Java; David Brackeen and others...; New Riders +* Systems Performance Tuning; Gian-Paolo D. Musumeci and others...; O'Reilly +* Seeking SRE: Conversations About Running Production Systems at Scale; David N. Blank-Edelman; eBook +* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner +* Higher Order Perl; Mark Dominus; Morgan Kaufmann * Systemprogrammierung in Go; Frank Müller; dpunkt -* Programming Ruby 3.3 (5th Edition); Noel Rappin, with Dave Thomas; The Pragmatic Bookshelf -* C++ Programming Language; Bjarne Stroustrup; +* Perl New Features; Joshua McAdams, brian d foy; Perl School +* The Pragmatic Programmer; David Thomas; Addison-Wesley * Tmux 2: Productive Mouse-free Development; Brain P. Hogan; The Pragmatic Programmers -* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt -* The Docker Book; James Turnbull; Kindle -* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly -* Seeking SRE: Conversations About Running Production Systems at Scale; David N. Blank-Edelman; eBook -* Polished Ruby Programming; Jeremy Evans; Packt Publishing -* Systems Performance Tuning; Gian-Paolo D. Musumeci and others...; O'Reilly +* Effective Java; Joshua Bloch; Addison-Wesley Professional +* C++ Programming Language; Bjarne Stroustrup; +* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton +* DNS and BIND; Cricket Liu; O'Reilly * The Go Programming Language; Alan A. A. Donovan; Addison-Wesley Professional -* The DevOps Handbook; Gene Kim, Jez Humble, Patrick Debois, John Willis; Audible -* Developing Games in Java; David Brackeen and others...; New Riders -* Higher Order Perl; Mark Dominus; Morgan Kaufmann -* Java ist auch eine Insel; Christian Ullenboom; -* Modern Perl; Chromatic ; Onyx Neon Press -* 97 things every SRE should know; Emil Stolarsky, Jaime Woo; O'Reilly -* Raku Fundamentals; Moritz Lenz; Apress +* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications +* Polished Ruby Programming; Jeremy Evans; Packt Publishing +* Programming Ruby 3.3 (5th Edition); Noel Rappin, with Dave Thomas; The Pragmatic Bookshelf +* 100 Go Mistakes and How to Avoid Them; Teiva Harsanyi; Manning Publications * Data Science at the Command Line; Jeroen Janssens; O'Reilly -* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook +* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly +* The DevOps Handbook; Gene Kim, Jez Humble, Patrick Debois, John Willis; Audible * Leanring eBPF; Liz Rice; O'Reilly +* The Docker Book; James Turnbull; Kindle +* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly +* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible +* Java ist auch eine Insel; Christian Ullenboom; +* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress +* Site Reliability Engineering; How Google runs production systems; O'Reilly * Learn You a Haskell for Great Good!; Miran Lipovaca; No Starch Press -* Raku Recipes; J.J. Merelo; Apress -* The Pragmatic Programmer; David Thomas; Addison-Wesley -* Perl New Features; Joshua McAdams, brian d foy; Perl School -* Pro Puppet; James Turnbull, Jeffrey McCune; Apress -* 21st Century C: C Tips from the New School; Ben Klemens; O'Reilly +* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly +* Modern Perl; Chromatic ; Onyx Neon Press +* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly +* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson ## Technical references I didn't read them from the beginning to the end, but I am using them to look up things. The books are in random order: -* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley -* Algorithms; Robert Sedgewick, Kevin Wayne; Addison Wesley * Relayd and Httpd Mastery; Michael W Lucas -* Understanding the Linux Kernel; Daniel P. Bovet, Marco Cesati; O'Reilly -* Implementing Service Level Objectives; Alex Hidalgo; O'Reilly * Go: Design Patterns for Real-World Projects; Mat Ryer; Packt +* Understanding the Linux Kernel; Daniel P. Bovet, Marco Cesati; O'Reilly * Groovy Kurz & Gut; Joerg Staudemeier; O'Reilly * The Linux Programming Interface; Michael Kerrisk; No Starch Press +* Algorithms; Robert Sedgewick, Kevin Wayne; Addison Wesley +* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley +* Implementing Service Level Objectives; Alex Hidalgo; O'Reilly ## Self-development and soft-skills books In random order: -* Digital Minimalism; Cal Newport; Portofolio Penguin -* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd -* So Good They Can't Ignore You; Cal Newport; Business Plus -* The Good Enough Job; Simone Stolzoff; Ebury Edge -* Who Moved My Cheese?; Dr. Spencer Johnson; Vermilion -* Eat That Frog; Brian Tracy -* Ultralearning; Scott Young; Thorsons -* Coders at Work - Reflections on the craft of programming, Peter Seibel and Mitchell Dorian et al., Audiobook -* The Software Engineer's Guidebook: Navigating senior, tech lead, and staff engineer positions at tech companies and startups; Gergely Orosz; Audiobook -* 97 Things Every Engineering Manager Should Know; Camille Fournier; Audiobook -* Atomic Habits; James Clear; Random House Business -* Time Management for System Administrators; Thomas A. Limoncelli; O'Reilly -* The Daily Stoic; Ryan Holiday, Stephen Hanselman; Profile Books -* The Off Switch; Mark Cropley; Virgin Books (RE-READ 1ST TIME) -* 101 Essays that change the way you think; Brianna Wiest; Audiobook +* Solve for Happy; Mo Gawdat (RE-READ 1ST TIME) * The Power of Now; Eckhard Tolle; Yellow Kite +* Ultralearning; Anna Laurent; Self-published via Amazon +* Influence without Authority; A. Cohen, D. Bradford; Wiley * The 7 Habits Of Highly Effective People; Stephen R. Covey; Simon & Schuster UK +* Eat That Frog; Brian Tracy * Getting Things Done; David Allen +* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne +* Slow Productivity; Cal Newport; Penguin Random House +* 97 Things Every Engineering Manager Should Know; Camille Fournier; Audiobook +* Digital Minimalism; Cal Newport; Portofolio Penguin +* Who Moved My Cheese?; Dr. Spencer Johnson; Vermilion +* The Off Switch; Mark Cropley; Virgin Books (RE-READ 1ST TIME) * The Phoenix Project - A Novel About IT, DevOps, and Helping your Business Win; Gene Kim and Kevin Behr; Trade Select -* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press -* Soft Skills; John Sommez; Manning Publications -* The Bullet Journal Method; Ryder Carroll; Fourth Estate -* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business +* The Joy of Missing Out; Christina Crook; New Society Publishers +* The Complete Software Developer's Career Guide; John Sonmez; Unabridged Audiobook * Stop starting, start finishing; Arne Roock; Lean-Kanban University -* Influence without Authority; A. Cohen, D. Bradford; Wiley +* Staff Engineer: Leadership beyond the management track; Will Larson; Audiobook +* Buddah and Einstein walk into a Bar; Guy Joseph Ale, Claire Bloom; Blackstone Publishing +* Eat That Frog!; Brian Tracy; Hodder Paperbacks * Meditation for Mortals, Oliver Burkeman, Audiobook +* The Daily Stoic; Ryan Holiday, Stephen Hanselman; Profile Books +* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd * Deep Work; Cal Newport; Piatkus -* The Complete Software Developer's Career Guide; John Sonmez; Unabridged Audiobook -* Buddah and Einstein walk into a Bar; Guy Joseph Ale, Claire Bloom; Blackstone Publishing -* The Joy of Missing Out; Christina Crook; New Society Publishers +* 101 Essays that change the way you think; Brianna Wiest; Audiobook +* The Software Engineer's Guidebook: Navigating senior, tech lead, and staff engineer positions at tech companies and startups; Gergely Orosz; Audiobook +* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business * The Courage to Be Disliked; Ichiro Kishimi and Fumitake Koga; Audiobook -* Eat That Frog!; Brian Tracy; Hodder Paperbacks -* Slow Productivity; Cal Newport; Penguin Random House +* The Bullet Journal Method; Ryder Carroll; Fourth Estate * Psycho-Cybernetics; Maxwell Maltz; Perigee Books -* Solve for Happy; Mo Gawdat (RE-READ 1ST TIME) -* Ultralearning; Anna Laurent; Self-published via Amazon -* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne -* Staff Engineer: Leadership beyond the management track; Will Larson; Audiobook +* Ultralearning; Scott Young; Thorsons +* The Good Enough Job; Simone Stolzoff; Ebury Edge +* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press +* So Good They Can't Ignore You; Cal Newport; Business Plus +* Soft Skills; John Sommez; Manning Publications +* Atomic Habits; James Clear; Random House Business +* Coders at Work - Reflections on the craft of programming, Peter Seibel and Mitchell Dorian et al., Audiobook +* Time Management for System Administrators; Thomas A. Limoncelli; O'Reilly [Here are notes of mine for some of the books](../notes/index.md) @@ -146,29 +146,29 @@ In random order: Some of these were in-person with exams; others were online learning lectures only. In random order: -* Apache Tomcat Best Practises; 3-day on-site training -* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training -* Red Hat Certified System Administrator; Course + certification (Although I had the option, I decided not to take the next course as it is more effective to self learn what I need) -* MySQL Deep Dive Workshop; 2-day on-site training +* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online * Structure and Interpretation of Computer Programs; Harold Abelson and more...; -* Functional programming lecture; Remote University of Hagen * Cloud Operations on AWS - Learn how to configure, deploy, maintain, and troubleshoot your AWS environments; 3-day online live training with labs; Amazon -* The Ultimate Kubernetes Bootcamp; School of Devops; O'Reilly Online -* Protocol buffers; O'Reilly Online -* AWS Immersion Day; Amazon; 1-day interactive online training -* Ultimate Go Programming; Bill Kennedy; O'Reilly Online +* Functional programming lecture; Remote University of Hagen * Scripting Vim; Damian Conway; O'Reilly Online -* The Well-Grounded Rubyist Video Edition; David. A. Black; O'Reilly Online * Developing IaC with Terraform (with Live Lessons); O'Reilly Online -* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online +* Ultimate Go Programming; Bill Kennedy; O'Reilly Online +* Apache Tomcat Best Practises; 3-day on-site training +* Protocol buffers; O'Reilly Online +* The Well-Grounded Rubyist Video Edition; David. A. Black; O'Reilly Online +* Red Hat Certified System Administrator; Course + certification (Although I had the option, I decided not to take the next course as it is more effective to self learn what I need) +* The Ultimate Kubernetes Bootcamp; School of Devops; O'Reilly Online * F5 Loadbalancers Training; 2-day on-site training; F5, Inc. +* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training +* MySQL Deep Dive Workshop; 2-day on-site training +* AWS Immersion Day; Amazon; 1-day interactive online training ## Technical guides These are not whole books, but guides (smaller or larger) which I found very useful. in random order: -* Raku Guide at https://raku.guide * How CPUs work at https://cpu.land +* Raku Guide at https://raku.guide * Advanced Bash-Scripting Guide ## Podcasts @@ -177,20 +177,20 @@ These are not whole books, but guides (smaller or larger) which I found very use In random order: +* Modern Mentor +* Deep Questions with Cal Newport * The Pragmatic Engineer Podcast +* The Changelog Podcast(s) +* Fallthrough [Golang] +* The ProdCast (Google SRE Podcast) * BSD Now [BSD] +* Cup o' Go [Golang] +* Wednesday Wisdom +* Fork Around And Find Out * Pratical AI * Backend Banter -* Fallthrough [Golang] -* Cup o' Go [Golang] -* Dev Interrupted -* The Changelog Podcast(s) -* Modern Mentor -* The ProdCast (Google SRE Podcast) * Hidden Brain -* Fork Around And Find Out -* Wednesday Wisdom -* Deep Questions with Cal Newport +* Dev Interrupted * Maintainable ### Podcasts I liked @@ -198,9 +198,9 @@ In random order: I liked them but am not listening to them anymore. The podcasts have either "finished" (no more episodes) or I stopped listening to them due to time constraints or a shift in my interests. * CRE: Chaosradio Express [german] +* Modern Mentor * Ship It (predecessor of Fork Around And Find Out) * Java Pub House -* Modern Mentor * FLOSS weekly * Go Time (predecessor of fallthrough) @@ -208,27 +208,27 @@ I liked them but am not listening to them anymore. The podcasts have either "fin This is a mix of tech and non-tech newsletters I am subscribed to. In random order: -* Monospace Mentor -* Applied Go Weekly Newsletter -* The Pragmatic Engineer * Ruby Weekly -* VK Newsletter -* Changelog News -* The Imperfectionist +* Applied Go Weekly Newsletter +* Andreas Brandhorst Newsletter (Sci-Fi author) * The Valuable Dev +* Changelog News +* VK Newsletter +* The Pragmatic Engineer +* Monospace Mentor +* Golang Weekly * Register Spill * byteSizeGo -* Golang Weekly -* Andreas Brandhorst Newsletter (Sci-Fi author) +* The Imperfectionist ## Magazines I like(d) This is a mix of tech I like(d). I may not be a current subscriber, but now and then, I buy an issue. In random order: -* Linux Magazine * LWN (online only) -* Linux User +* Linux Magazine * freeX (not published anymore) +* Linux User # Formal education diff --git a/gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.md b/gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.md new file mode 100644 index 00000000..bca04e72 --- /dev/null +++ b/gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.md @@ -0,0 +1,221 @@ +# Meta slash-commands to manage prompts and context for coding agents + +> Published at 2026-02-14T13:44:45+02:00 + +I work on many small, repeatable tasks. Instead of retyping the same instructions every time, I want to turn successful prompts into reusable slash-commands and keep background knowledge in loadable context files. This post describes a set of *meta* slash-commands: commands that create, update, and delete other commands and context files. They live as markdown in a dotfiles repo and work with any coding agent that supports slash-commands—Claude Code CLI, Cursor Agent, OpenCode, Ampcode, and others. + +``` + ┌─────────────────────────────────────────────────────────────┐ + │ Cursor Agent [~][□][X] │ + ├─────────────────────────────────────────────────────────────┤ + │ │ + │ → /load-context api-guidelines │ + │ │ + │ Context loaded: api-guidelines.md │ + │ Ready. Ask me to implement something. │ + │ │ + │ → /create-command review-pr │ + │ │ + │ Analyzing "review-pr"... │ + │ Generated: description + prompt. Save to commands/ ? [Y] │ + │ │ + │ ✓ Saved. Use /review-pr anytime. │ + │ │ + └─────────────────────────────────────────────────────────────┘ + │ + │ slash-commands + ▼ + ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ + │ /load- │ │ /create- │ │ /update- │ │ /review- │ + │ context │ │ command │ │ command │ │ pr │ + └──────────┘ └──────────┘ └──────────┘ └──────────┘ + │ │ │ │ + └──────────────┴──────────────┴──────────────┘ + │ + coding agent executes + your prompt library +``` + +## Table of Contents + +* [⇢ Meta slash-commands to manage prompts and context for coding agents](#meta-slash-commands-to-manage-prompts-and-context-for-coding-agents) +* [⇢ ⇢ Motivation: collecting prompts for later re-use](#motivation-collecting-prompts-for-later-re-use) +* [⇢ ⇢ Loading whole context before asking the agent to do something](#loading-whole-context-before-asking-the-agent-to-do-something) +* [⇢ ⇢ Works with any coding agent that supports slash-commands](#works-with-any-coding-agent-that-supports-slash-commands) +* [⇢ ⇢ Commands that manage slash-commands](#commands-that-manage-slash-commands) +* [⇢ ⇢ ⇢ `/create-command`](#create-command) +* [⇢ ⇢ ⇢ `/update-command`](#update-command) +* [⇢ ⇢ ⇢ `/delete-command`](#delete-command) +* [⇢ ⇢ Commands that manage context files](#commands-that-manage-context-files) +* [⇢ ⇢ ⇢ `/create-context`](#create-context) +* [⇢ ⇢ ⇢ `/update-context`](#update-context) +* [⇢ ⇢ ⇢ `/delete-context`](#delete-context) +* [⇢ ⇢ ⇢ `/load-context`](#load-context) +* [⇢ ⇢ Summary](#summary) + +## Motivation: collecting prompts for later re-use + +When I use a coding agent, I often find myself repeating the same kind of request: "review this function," "explain this error," "add tests for this module," "format this as a blog post" and may other cases. Typing long prompts from scratch is tedious, and ad-hoc prompts are easy to forget. I'd rather capture what works and reuse it. + +The solution is to treat prompts as first-class artefacts: store them as markdown files (one file per slash-command or per context), and use a small set of *meta* commands to manage them. The agent then creates, updates, or deletes these files through conversation—no hand-editing of markdowns. I can say `/create-command review-code we just did a code review` and the agent generates the command file based on the current agent's context, shows a preview, and saves it. Later I run `/review-code` and get a consistent workflow every time. + +Because everything is just markdown in a directory (e.g. `~/Notes/Prompts/commands/` for commands and `~/Notes/Prompts/context/` for context), I can version it in git, sync it across machines, and gradually build a library of prompts. If the number of commands grows too large, I might later split them into skills or expose them via a searchable MCP server—but for now, a flat directory of `.md` files is enough. + +## Loading whole context before asking the agent to do something + +A separate but related need is *context*: background information the agent should have before I ask it to do anything. For example, I might have a document describing our Kubernetes setup, API conventions, or the architecture of a specific service. If I ask "add a new endpoint for X" without that context, the agent guesses and without having a reference to an existing project with an `AGENTS.md`. If I first load the relevant context file, the agent knows the naming conventions, the existing patterns, and the infrastructure—and its edits are more accurate. + +So I keep two kinds of artefacts: + +* Commands — Reusable workflows (e.g. "review code", "explain error"). They live as `.md` files in a `commands/` directory. Meta-commands create, update, and delete them. +* Context — Reusable background (project rules, API notes, infrastructure docs, personas). They live as `.md` files in a `context/` directory. I can create, update, delete, and—importantly—*load* them. Loading a context file injects that content into the conversation so the agent has it in mind for subsequent requests. + +The use case is: start a session, run `/load-context api-guidelines` (or whatever context name), then ask the agent to implement a feature or fix a bug. The agent already knows the guidelines. No need to paste a wall of text every time; the context is on demand (not implicit like with skills). + +## Works with any coding agent that supports slash-commands + +I use different agents depending on the task: Claude Code CLI, Cursor Agent (CLI), OpenCode, Ampcode and others. What they have in common is support for custom slash-commands (or the ability to read prompt files). My meta-commands and context files are just markdown; there is no lock-in. Point your agent at the same directories and you get the same prompts and context. I don't need an MCP server returning prompts right now—the files on disk are enough. If slash-commands ever become too many to manage in a flat list, I may later introduce an MCP server to expose them as skills or searchable prompts. + +## Commands that manage slash-commands + +These meta-commands create, update, and delete other slash-commands. The target files live in `~/Notes/Prompts/commands/` (or your chosen path). Each command is one `.md` file. You can see the commands (and the context files) here: + +[https://codeberg.org/snonux/dotfiles/src/branch/master/prompts/commands](https://codeberg.org/snonux/dotfiles/src/branch/master/prompts/commands) +[https://codeberg.org/snonux/dotfiles/src/branch/master/prompts/context](https://codeberg.org/snonux/dotfiles/src/branch/master/prompts/context) + +### `/create-command` + +Creates a new slash-command by inferring its purpose from the name you give. + +* Parameter: `command_name` (e.g. `review-code`, `explain-error`, `optimize-function`) +* What it does: The agent analyses the name, infers intent and parameters, writes a description and prompt, shows a preview, and saves `{{command_name}}.md` to the commands directory. +* Good for: Turning the current task or a recurring need into a reusable command without editing files by hand. + +Example usage: + +``` +/create-command review-code +/create-command explain-error +``` + +### `/update-command` + +Updates an existing slash-command step by step. + +* Parameter: `command_name` (e.g. `create-command`, `review-code`) +* What it does: Reads the existing `.md` file, shows the current content, asks what to change (description, parameters, prompt text), applies edits, shows a preview, and saves. +* Good for: Refining a command after you've used it a few times or when requirements change. + +Example usage: + +``` +/update-command create-command +/update-command review-code +``` + +### `/delete-command` + +Removes a slash-command by deleting its definition file. + +* Parameter: `command_name` (e.g. `testing`, `review-code`) +* What it does: Verifies the file exists, shows what will be deleted, asks for confirmation, then deletes the file. +* Good for: Cleaning up experiments or commands you no longer use. + +Example usage: + +``` +/delete-command testing +/delete-command review-code +``` + +## Commands that manage context files + +These meta-commands create, update, delete, and *load* context files. Context files live in `~/Notes/Prompts/context/`. Loading a context injects its content into the conversation so the agent can use it for subsequent requests. + +### `/create-context` + +Creates a new context file. + +* Parameter: `context_name` (without `.md`), e.g. `epimetheus`, `api-guidelines` +* What it does: Checks if the context already exists, asks what the context should contain (background, structure, sections), then writes `{{context_name}}.md` to the context directory. +* Good for: Capturing project rules, API conventions, or infrastructure notes once and reusing them via `/load-context`. + +Example usage: + +``` +/create-context epimetheus +/create-context api-guidelines +``` + +### `/update-context` + +Updates an existing context file by adding, modifying, or removing content. + +* Parameter: `context_name` (e.g. `epimetheus`, `api-guidelines`). If omitted, lists available context files. +* What it does: Reads the existing file, asks what to change (add section, modify section, remove section, rewrite, or full overhaul), applies changes, and saves. +* Good for: Keeping context up to date as the project or infrastructure evolves. + +Example usage: + +``` +/update-context epimetheus +/update-context api-guidelines +/update-context +``` + +### `/delete-context` + +Deletes a context file after confirmation. + +* Parameter: `context_name` (e.g. `epimetheus`, `old-api-guidelines`). If omitted, lists available context files. +* What it does: Verifies the file exists, shows a preview or summary, asks for confirmation, then deletes the file. +* Good for: Removing outdated or unused context. + +Example usage: + +``` +/delete-context epimetheus +/delete-context old-api-guidelines +/delete-context +``` + +### `/load-context` + +Loads a context file into the conversation so the agent has that background for subsequent requests. + +* Parameter: `context_name` (e.g. `epimetheus`, `api-guidelines`). If omitted, lists available context files. +* What it does: Reads the context file, displays its content, and confirms it is loaded. From then on, the agent can use that information when you ask it to implement features, fix bugs, or answer questions. +* Good for: Starting a session with "load our API guidelines" or "load our Kubernetes runbook" so the agent knows the infrastructure and conventions before you ask it to do something. + +Example usage: + +``` +/load-context epimetheus +/load-context api-guidelines +/load-context +``` + +## Summary + +``` +| Meta-command | Purpose | Good for | +|--------------------|----------------------------------------------|---------------------------------------------------| +| /create-command | Create new slash-command from name | Turning current or recurring tasks into commands | +| /update-command | Edit existing slash-command | Refining commands over time | +| /delete-command | Remove slash-command file | Cleaning up unused commands | +| /create-context | Create new context file | Capturing project/infra knowledge once | +| /update-context | Edit existing context file | Keeping context up to date | +| /delete-context | Remove context file | Removing outdated context | +| /load-context | Load context into conversation | Giving the agent background before tasks | +``` + +Context is what the agent *knows*; commands are what the agent *does*. Both are markdown files you can create, update, and delete on the fly through the same coding agent—Claude Code CLI, Cursor Agent, OpenCode, Ampcode, or any other that supports slash-commands or prompt files. That's why these meta-commands are useful for ad-hoc creation, updating, and deleting of prompts and context without leaving the conversation. + +Other related posts: + +[2026-02-14 Meta slash-commands to manage prompts and context (You are currently reading this)](./2026-02-14-meta-slash-commands-for-prompts-and-context.md) +[2026-02-02 A tmux popup editor for Cursor Agent CLI prompts](./2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md) + +E-Mail your comments to `paul@nospam.buetow.org` :-) + +[Back to the main site](../) diff --git a/gemfeed/index.md b/gemfeed/index.md index ab2ff088..33803e05 100644 --- a/gemfeed/index.md +++ b/gemfeed/index.md @@ -2,6 +2,7 @@ ## To be in the .zone! +[2026-02-14 - Meta slash-commands to manage prompts and context for coding agents](./2026-02-14-meta-slash-commands-for-prompts-and-context.md) [2026-02-02 - A tmux popup editor for Cursor Agent CLI prompts](./2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md) [2026-01-01 - Using Supernote Nomad offline](./2026-01-01-using-supernote-nomad-offline.md) [2026-01-01 - Posts from July to December 2025](./2026-01-01-posts-from-july-to-december-2025.md) @@ -1,6 +1,6 @@ # Hello! -> This site was generated at 2026-02-08T22:37:47+02:00 by `Gemtexter` +> This site was generated at 2026-02-14T13:44:46+02:00 by `Gemtexter` Welcome to the foo.zone! @@ -30,6 +30,7 @@ Everything you read on this site is my personal opinion and experience. You can ### Posts +[2026-02-14 - Meta slash-commands to manage prompts and context for coding agents](./gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.md) [2026-02-02 - A tmux popup editor for Cursor Agent CLI prompts](./gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md) [2026-01-01 - Using Supernote Nomad offline](./gemfeed/2026-01-01-using-supernote-nomad-offline.md) [2026-01-01 - Posts from July to December 2025](./gemfeed/2026-01-01-posts-from-july-to-december-2025.md) diff --git a/uptime-stats.md b/uptime-stats.md index eae7e351..3b3ef40c 100644 --- a/uptime-stats.md +++ b/uptime-stats.md @@ -1,6 +1,6 @@ # My machine uptime stats -> This site was last updated at 2026-02-08T22:37:47+02:00 +> This site was last updated at 2026-02-14T13:44:46+02:00 The following stats were collected via `uptimed` on all of my personal computers over many years and the output was generated by `guprecords`, the global uptime records stats analyser of mine. @@ -22,7 +22,7 @@ Uptime is the total uptime of a host over the entire lifespan. | Pos | Host | Uptime | Last Kernel | +-----+----------------+-----------------------------+-----------------------------------+ | 1. | vulcan | 4 years, 5 months, 6 days | Linux 3.10.0-1160.81.1.el7.x86_64 | -| 2. | *earth | 4 years, 1 months, 15 days | Linux 6.18.8-200.fc43.x86_64 | +| 2. | *earth | 4 years, 1 months, 19 days | Linux 6.18.8-200.fc43.x86_64 | | 3. | *blowfish | 4 years, 1 months, 6 days | OpenBSD 7.7 | | 4. | sun | 3 years, 9 months, 26 days | FreeBSD 10.3-RELEASE-p24 | | 5. | uranus | 3 years, 9 months, 5 days | NetBSD 10.1 | @@ -33,7 +33,7 @@ Uptime is the total uptime of a host over the entire lifespan. | 10. | tauceti | 2 years, 3 months, 19 days | Linux 3.2.0-4-amd64 | | 11. | mega15289 | 1 years, 12 months, 17 days | Darwin 23.4.0 | | 12. | tauceti-f | 1 years, 9 months, 18 days | Linux 3.2.0-3-amd64 | -| 13. | *mega-m3-pro | 1 years, 8 months, 14 days | Darwin 24.6.0 | +| 13. | *mega-m3-pro | 1 years, 8 months, 18 days | Darwin 24.6.0 | | 14. | *t450 | 1 years, 7 months, 26 days | FreeBSD 14.2-RELEASE | | 15. | mega8477 | 1 years, 3 months, 25 days | Darwin 13.4.0 | | 16. | host0 | 1 years, 3 months, 9 days | FreeBSD 6.2-RELEASE-p5 | @@ -56,7 +56,7 @@ Lifespan is the total uptime + the total downtime of a host. | 2. | dionysus | 8 years, 6 months, 17 days | FreeBSD 13.0-RELEASE-p11 | | 3. | alphacentauri | 6 years, 9 months, 13 days | FreeBSD 11.4-RELEASE-p7 | | 4. | makemake | 4 years, 10 months, 16 days | Linux 6.9.9-200.fc40.x86_64 | -| 5. | *earth | 4 years, 7 months, 15 days | Linux 6.18.8-200.fc43.x86_64 | +| 5. | *earth | 4 years, 7 months, 20 days | Linux 6.18.8-200.fc43.x86_64 | | 6. | vulcan | 4 years, 5 months, 6 days | Linux 3.10.0-1160.81.1.el7.x86_64 | | 7. | *blowfish | 4 years, 1 months, 7 days | OpenBSD 7.7 | | 8. | sun | 3 years, 10 months, 2 days | FreeBSD 10.3-RELEASE-p24 | @@ -71,7 +71,7 @@ Lifespan is the total uptime + the total downtime of a host. | 17. | callisto | 2 years, 3 months, 13 days | Linux 4.0.4-303.fc22.x86_64 | | 18. | tauceti-e | 2 years, 1 months, 29 days | Linux 3.2.0-4-amd64 | | 19. | tauceti-f | 1 years, 9 months, 20 days | Linux 3.2.0-3-amd64 | -| 20. | *mega-m3-pro | 1 years, 9 months, 10 days | Darwin 24.6.0 | +| 20. | *mega-m3-pro | 1 years, 9 months, 14 days | Darwin 24.6.0 | +-----+----------------+-----------------------------+-----------------------------------+ ``` @@ -97,7 +97,7 @@ Downtime is the total downtime of a host over the entire lifespan. | 12. | *f2 | 0 years, 8 months, 22 days | FreeBSD 14.3-RELEASE-p7 | | 13. | *f1 | 0 years, 8 months, 22 days | FreeBSD 14.3-RELEASE-p7 | | 14. | sirius | 0 years, 8 months, 20 days | Linux 2.6.32-042stab111.12 | -| 15. | *earth | 0 years, 6 months, 30 days | Linux 6.18.8-200.fc43.x86_64 | +| 15. | *earth | 0 years, 7 months, 1 days | Linux 6.18.8-200.fc43.x86_64 | | 16. | deimos | 0 years, 5 months, 15 days | Linux 4.4.5-300.fc23.x86_64 | | 17. | joghurt | 0 years, 2 months, 9 days | FreeBSD 7.0-PRERELEASE | | 18. | host0 | 0 years, 2 months, 1 days | FreeBSD 6.2-RELEASE-p5 | @@ -115,7 +115,7 @@ Boots is the total number of host boots over the entire lifespan. | Pos | Host | Boots | Last Kernel | +-----+----------------+-------+------------------------------+ | 1. | alphacentauri | 671 | FreeBSD 11.4-RELEASE-p7 | -| 2. | *earth | 228 | Linux 6.18.8-200.fc43.x86_64 | +| 2. | *earth | 230 | Linux 6.18.8-200.fc43.x86_64 | | 3. | mars | 207 | Linux 3.2.0-4-amd64 | | 4. | callisto | 153 | Linux 4.0.4-303.fc22.x86_64 | | 5. | dionysus | 136 | FreeBSD 13.0-RELEASE-p11 | @@ -126,8 +126,8 @@ Boots is the total number of host boots over the entire lifespan. | 10. | makemake | 81 | Linux 6.9.9-200.fc40.x86_64 | | 11. | uranus | 59 | NetBSD 10.1 | | 12. | pluto | 51 | Linux 3.2.0-4-amd64 | -| 13. | mega15289 | 50 | Darwin 23.4.0 | -| 14. | *mega-m3-pro | 50 | Darwin 24.6.0 | +| 13. | *mega-m3-pro | 50 | Darwin 24.6.0 | +| 14. | mega15289 | 50 | Darwin 23.4.0 | | 15. | *fishfinger | 50 | OpenBSD 7.7 | | 16. | *t450 | 46 | FreeBSD 14.2-RELEASE | | 17. | *blowfish | 45 | OpenBSD 7.7 | @@ -146,7 +146,7 @@ Score is calculated by combining all other metrics. | Pos | Host | Score | Last Kernel | +-----+----------------+-------+-----------------------------------+ | 1. | uranus | 340 | NetBSD 10.1 | -| 2. | *earth | 284 | Linux 6.18.8-200.fc43.x86_64 | +| 2. | *earth | 285 | Linux 6.18.8-200.fc43.x86_64 | | 3. | vulcan | 275 | Linux 3.10.0-1160.81.1.el7.x86_64 | | 4. | *blowfish | 259 | OpenBSD 7.7 | | 5. | sun | 238 | FreeBSD 10.3-RELEASE-p24 | @@ -160,7 +160,7 @@ Score is calculated by combining all other metrics. | 13. | tauceti | 141 | Linux 3.2.0-4-amd64 | | 14. | makemake | 137 | Linux 6.9.9-200.fc40.x86_64 | | 15. | *t450 | 128 | FreeBSD 14.2-RELEASE | -| 16. | *mega-m3-pro | 109 | Darwin 24.6.0 | +| 16. | *mega-m3-pro | 110 | Darwin 24.6.0 | | 17. | tauceti-f | 108 | Linux 3.2.0-3-amd64 | | 18. | tauceti-e | 96 | Linux 3.2.0-4-amd64 | | 19. | callisto | 86 | Linux 4.0.4-303.fc22.x86_64 | @@ -179,7 +179,7 @@ Boots is the total number of host boots over the entire lifespan. | 1. | FreeBSD 10... | 551 | | 2. | Linux 3... | 550 | | 3. | *FreeBSD 14... | 339 | -| 4. | *Linux 6... | 213 | +| 4. | *Linux 6... | 215 | | 5. | Linux 5... | 162 | | 6. | Linux 4... | 161 | | 7. | FreeBSD 11... | 153 | @@ -195,7 +195,7 @@ Boots is the total number of host boots over the entire lifespan. | 17. | Darwin 22... | 12 | | 18. | Darwin 18... | 11 | | 19. | FreeBSD 6... | 10 | -| 20. | FreeBSD 7... | 10 | +| 20. | OpenBSD 4... | 10 | +-----+----------------+-------+ ``` @@ -211,14 +211,14 @@ Uptime is the total uptime of a host over the entire lifespan. | 2. | *OpenBSD 7... | 8 years, 1 months, 7 days | | 3. | FreeBSD 10... | 5 years, 9 months, 9 days | | 4. | Linux 5... | 4 years, 10 months, 21 days | -| 5. | *Linux 6... | 3 years, 4 months, 15 days | +| 5. | *Linux 6... | 3 years, 4 months, 20 days | | 6. | *FreeBSD 14... | 2 years, 11 months, 5 days | | 7. | Linux 4... | 2 years, 7 months, 22 days | | 8. | FreeBSD 11... | 2 years, 4 months, 28 days | | 9. | Linux 2... | 1 years, 11 months, 21 days | | 10. | Darwin 13... | 1 years, 3 months, 25 days | | 11. | FreeBSD 6... | 1 years, 3 months, 9 days | -| 12. | *Darwin 24... | 0 years, 12 months, 21 days | +| 12. | *Darwin 24... | 0 years, 12 months, 25 days | | 13. | Darwin 23... | 0 years, 11 months, 3 days | | 14. | OpenBSD 4... | 0 years, 8 months, 12 days | | 15. | Darwin 21... | 0 years, 8 months, 2 days | @@ -242,7 +242,7 @@ Score is calculated by combining all other metrics. | 2. | *OpenBSD 7... | 517 | | 3. | FreeBSD 10... | 406 | | 4. | Linux 5... | 317 | -| 5. | *Linux 6... | 228 | +| 5. | *Linux 6... | 229 | | 6. | *FreeBSD 14... | 211 | | 7. | Linux 4... | 175 | | 8. | FreeBSD 11... | 159 | @@ -256,8 +256,8 @@ Score is calculated by combining all other metrics. | 16. | Darwin 18... | 32 | | 17. | Darwin 22... | 30 | | 18. | Darwin 15... | 29 | -| 19. | FreeBSD 5... | 25 | -| 20. | FreeBSD 13... | 25 | +| 19. | FreeBSD 13... | 25 | +| 20. | FreeBSD 5... | 25 | +-----+----------------+-------+ ``` @@ -270,7 +270,7 @@ Boots is the total number of host boots over the entire lifespan. | Pos | KernelName | Boots | +-----+------------+-------+ | 1. | *FreeBSD | 1204 | -| 2. | *Linux | 1108 | +| 2. | *Linux | 1110 | | 3. | *Darwin | 155 | | 4. | *OpenBSD | 115 | | 5. | NetBSD | 1 | @@ -285,10 +285,10 @@ Uptime is the total uptime of a host over the entire lifespan. +-----+------------+-----------------------------+ | Pos | KernelName | Uptime | +-----+------------+-----------------------------+ -| 1. | *Linux | 28 years, 5 months, 8 days | +| 1. | *Linux | 28 years, 5 months, 13 days | | 2. | *FreeBSD | 12 years, 10 months, 8 days | | 3. | *OpenBSD | 8 years, 8 months, 18 days | -| 4. | *Darwin | 5 years, 4 months, 4 days | +| 4. | *Darwin | 5 years, 4 months, 8 days | | 5. | NetBSD | 0 years, 1 months, 1 days | +-----+------------+-----------------------------+ ``` @@ -301,10 +301,10 @@ Score is calculated by combining all other metrics. +-----+------------+-------+ | Pos | KernelName | Score | +-----+------------+-------+ -| 1. | *Linux | 1887 | +| 1. | *Linux | 1888 | | 2. | *FreeBSD | 912 | | 3. | *OpenBSD | 557 | -| 4. | *Darwin | 347 | +| 4. | *Darwin | 348 | | 5. | NetBSD | 0 | +-----+------------+-------+ ``` |
