Skip to content

Instantly share code, notes, and snippets.

@zalez
zalez / Delegation_brief_builder_prompt.md
Created February 17, 2026 12:09
This prompt helps create a full Delegation Brief style prompt by interviewing the user about what they want to accomplish, why, and how. For a full background and explanation, please read: https://constantin.glez.de/posts/2026-02-17-how-to-stop-engineering-prompts-and-start-delegating/

Delegation Brief Builder

You help me turn rough ideas into well-structured prompts using the Delegation Brief framework. Your goal is to produce a prompt I can copy, adjust, and use immediately.

How it works

I'll describe what I want to accomplish. Based on the scope, do one of two things:

For simple tasks

@zalez
zalez / gist:5477c89ca7ab01e04204cee3829caf0e
Created December 23, 2025 08:16
alt-text Fish script for auto-creating Alt text descriptions of images
# Prerequisites:
# - llm command line tool: https://github.com/simonw/llm
# - llm-anthropic plugin for llm: https://github.com/simonw/llm-anthropic
# - Anthropic account with access to Claude Haiku models
# - Anthropic API key configured in llm ('llm keys set anthropic')
function alt-text
set prompt "\
Create an alt text for this image for people with visual impairments.\
Only output the alt text, nothing else."
@zalez
zalez / gen-commit-message.fish
Created December 23, 2025 08:14
gen-commit-message Fish function for auto-generating commit messages with llm and Claude Haiku
# Prerequisites:
# - llm command line tool: https://github.com/simonw/llm
# - llm-anthropic plugin for llm: https://github.com/simonw/llm-anthropic
# - Anthropic account with access to Claude Haiku models
# - Anthropic API key configured in llm ('llm keys set anthropic')
function gen-commit-message
set prompt "\
Create a git commit message based on the following output from git diff.\
Analyze the git diff output carefully to understand the high level changes to\
the repository, what they mean, and what value they added to the repository.\
@zalez
zalez / briefing.md
Created December 17, 2025 08:22
An example news briefing document, generated with RSS feeds, Preplexity, and Claude.

📅 Wednesday, December 17th, 2025

Today marks the anniversary of the Wright Brothers' first powered flight in 1903 at Kitty Hawk - a fitting reminder that humanity's boldest innovations often start with what seems impossible. 🛩️


💭 Quote of the Day

"Young love is a flame; very pretty, often very hot and fierce, but still only light and flickering. The love of the older and disciplined heart is as coals, deep-burning, unquenchable." — Henry Ward Beecher

@zalez
zalez / briefing.fish
Last active December 16, 2025 16:07
AI news briefing generator, using RSS and llm with Perplexity and Claude plugins.
# Define a function for creating an AI-generated news briefing.
#
# Prerequisites:
# - fish: https://fishshell.com/
# - Python: https://python.org/
# - uv: https://docs.astral.sh/uv/
# - llm: https://github.com/simonw/llm
# - llm-perplexity: https://github.com/hex/llm-perplexity
# - llm-anthropic: https://github.com/simonw/llm-anthropic
# - API keys for Perplexity (https://www.perplexity.ai/api-platform) and Claude (https://claude.com/platform/api)
@zalez
zalez / Balkonkraftwerk_Email.txt
Last active October 8, 2025 13:25
Email to property management, providing balcony solar plant details
HAFTUNGSAUSSCHLUSS: Dies ist nur ein Beispiel zu Unterhaltungs-Zwecken. Keine Haftung, keine Gewähr, weder ausdrücklich noch implizit. Benutzung auf eigenes Risiko.
DISCLAIMER: This is an example only, for your own entertainment. No warranty, no liability, neither explicit nor implied. Use at your own risk.
Englische Fassung unten. Ersetze Deine eigenen Namen, technische Daten, etc. basierend auf Deiner eigenen Ausrüstung. Ändere, adaptiere oder kopiere Teile hiervon nach Bedarf.
English translation below. Substitute your own names, technical data, etc. based on your own equipment. Feel free to change, adapt or borrow from, based on your needs.
Context: https://constantin.glez.de/posts/2025-10-08-power-to-the-people-what-45-days-of-balcony-solar-taught-me-about-climate-action/
---
@zalez
zalez / autumn.js
Created September 17, 2025 13:13
Constantin Thinking blog banner autumn animation JavaScript code
/**
* Autumn seasonal animation.
* Create a number of fall leaves that flow across the banner, simulating wind.
*/
// Leaf parameters
const DEG_TO_RAD = Math.PI / 180;
const maxLeaves = 50;
const leafSpawnX = 1.1; // * banner width
const leafSpawnXVariation = 0.1;