Skip to content

Instantly share code, notes, and snippets.

View lmmx's full-sized avatar
💡
lights, camera, action

Louis Maddox lmmx

💡
lights, camera, action
View GitHub Profile
@lmmx
lmmx / precis-prompt.md
Created November 1, 2026 12:40
Prompt to produce a precis in 'progressive disclosure' style (used with Claude Code Opus 5.5 Medium)

I want you to build a chapter summary of [AUTHOR]'s work [TITLE] at varying degrees of detail, from the specific up to the high level overview, structured for the ability to deepen understanding like progressive disclosure. I have started reading it and have thoughts on what to make from its ideas, but I need a companion repo with an objective account of it. I have provided you a private repo to work in. Do not use code. Begin by looking for third party summaries of the work (store them locally in a simple text form like md or rst as appropriate, ideally md) and try to evaluate these accounts. You are allowed to consult original copies of the full work but do not need to put it in the repo. Note the repo is private and I wish to consult it only insofar as fair use. Work autonomously. Answer by formulating my request as a /goal command i will then send to you. Give it so i can copy it directly. Note there is a limit of 4000 characters on /goal

@lmmx
lmmx / prompt.md
Last active October 18, 2026 09:22
Coding agent guardian chat template. Fill in the code block with the last response from the coding agent

Can you help me oversee a Claude Code agent I am running? It is producing a lot of output and I am not sure if I am best off using a chat alongside to keep track with a clear separation of oversight vs. execution. Here is how it started:


Can you help me keep an overall watch on what I am doing here? Help guide me, and remember you are not supposed to jump into doing the changes, you are the guardian of the coding agent

@lmmx
lmmx / README.md
Last active October 15, 2026 17:43
`ghprsm` — atomically squash-merge the entire active GitHub PR stack, then sync and clean up branches.

ghprsm — atomically squash-merge the entire active GitHub PR stack, then sync and clean up branches.

Checks working tree is clean and no stack PR is already queued. Identifies all open, unmerged PRs in the active stack, then invokes gh stack merge --yes --squash to merge the whole stack atomically. Verifies every PR merged before syncing and pruning local branches and deleting any remaining remote branches. Stops on errors and avoids branch cleanup if the merge has not been confirmed. Requires git, gh with the gh stack extension and jq. Intended to run from a repository directory with an active stack.

@lmmx
lmmx / SKILL.md
Last active September 15, 2026 10:40
Session Goal Replay — a Skill for Claude Code
name session-goal-replay
description Replays a prior Claude Code session's turn sequence toward a newly-determined goal by resuming the actual session and live-synthesizing each prompt from the agent's real response. Falls back to a lower-fidelity subagent-based mode when isolation from the live session/environment is required. Use when you have a historical session transcript and want to redirect its procedural pattern toward a different objective than the one it originally pursued.
Resistance curvature computed for stations over the TfL network 🚂
The peripheral stations are high curvature/effective resistance, junctions where lines merge are low effective resistance (many alternative paths, high connectivity: Stratford, King's X, Canning Town, Paddington)
@lmmx
lmmx / lattice_data.json
Last active April 28, 2026 13:32
HavelockAI Rhetorical Lattice
{
"nodes": [
{
"id": 0,
"x": 26.0,
"y": -5.0,
"reduced_objects": [],
"reduced_attributes": [],
"extent_size": 403,
"intent_size": 0,
@lmmx
lmmx / README.md
Last active April 4, 2026 13:39
Calculate change in rank for PyPI dependencies since 2020 to 2026, and from 2024 to 2026

Calculate change in rank for PyPI dependencies since 2020 to 2026, and from 2024 to 2026

Uses rankings of direct dependencies for all PyPI packages that were first released in each year range which are pre-computed in the gists (see get_gists.sh to download)