Skip to content

Instantly share code, notes, and snippets.

@etr
etr / enforcer.py
Created April 7, 2026 17:13
figura.ink code review enforcer.py
#!/usr/bin/env python3
"""
Enforcer script for validating project constraints via AST-based analysis.
Enforces:
1. requirements-auto-generated: requirements.txt under app/ must have auto-generated header
2. lambda-module-isolation: Lambda modules can only import from app.shared.*, not each other
3. shared-init-py: All app/shared/ submodules must have __init__.py
4. shared-pyproject-toml: All app/shared/ submodules must have pyproject.toml with correct format
5. import-style: Local imports use bare names; shared imports use app.shared.*
@etr
etr / minion-guide.md
Created April 7, 2026 17:02
Uses the following prompt to describe etr/minion plugin: "Your objective is to create a single-page markdown document describing how to use this plugin, how this plugin works and any potential gotcha. Also add a tutorial at the bottom of the document describing how to set up Pi for access to at least (a) an openrouter provider and model; (b) an …

Minion Plugin — Complete User Guide

Plugin: minion v0.3.0 Author: Sebastiano Merlino License: MIT Source: github.com/etr/minion (distributed via the groundwork-marketplace) What it does: Lets Claude Code delegate any task to any AI model that the Pi coding agent supports — without leaving your Claude Code session.


@etr
etr / http_response_ptr.hpp
Created January 3, 2016 19:32
http_response_ptr
/*
This file is part of libhttpserver
Copyright (C) 2011, 2012, 2013, 2014, 2015 Sebastiano Merlino
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,