Skip to content

Instantly share code, notes, and snippets.

@vimulatus
vimulatus / clean-room-planning.md
Last active July 8, 2026 11:59
A skill to force agents to think alternative solutions
name clean-room-planning
description Break anchoring on a proposed approach before planning. Use whenever the user proposes a solution, architecture, or plan and asks you to plan, design, or build around it - even if they don't ask for alternatives. Also use when they ask to think outside the box or for a second opinion on a direction, or when you notice every option you're generating lives inside the user's framing.

A proposal in context anchors everything generated after it — the plan gets drafted inside the proposal instead of against the problem. This skill breaks the anchor with a clean room: alternatives generated by agents that have never seen the proposal, the way clean-room engineering rebuilds from a spec without seeing the original code.

1. Gate

If the user marked the approach as decided ("execute this", "the approach is settled"), stop here and execute their spec — challenging a decided approach is noise. If the mode is ambiguous and the decision is hard to reverse (archi

@RichardHightower
RichardHightower / artcile.md
Last active July 25, 2026 09:09
Claude Code Agents to OpenCode Agents

Migrating AI Agents: A Systematic Approach to Cross-Platform Architecture

How systematic methodology and architectural understanding enabled the successful migration of 12 specialized AI agents between platforms, creating reusable patterns for future migrations


The Migration Challenge

Migrating AI agents between platforms isn't just a technical exercise—it's an architectural transformation. When you port agents from one system to another, you're not simply copying code; you're translating between different philosophies of agent interaction, tool management, and capability expression.

@tonsky
tonsky / youtube.css
Last active April 10, 2025 14:22
Youtube Userstyle
:root {
--grey50: #A0A0A0;
--grey75: #C0C0C0;
--grey90: #E0E0E0;
--opacity: 1;
}
.ytp-gradient-bottom { display: none; }
.ytp-cairo-refresh-signature-moments .ytp-play-progress { background: #F00; }
.ytp-button[data-tooltip-target-id=ytp-autonav-toggle-button],
@NightMachinery
NightMachinery / battery_limit.zsh
Last active February 22, 2026 17:29
A guide on limiting macOS battery charging to at most 80%.
# Apple Silicon laptops with firmware > 13.0 have a native charge threshold that does not required any userspace daemon running.
# This native limit works even when the laptop is sleeping or powered off therefore it is preferable to the userspace daemon.
# Nonetheless, it only works with fixed thresholds (80% as upper limit and 70% as lower limit).
# CHWA key is the one used to enable/disable the native limit. 01 = 80% limit, 00 = no limit
##
typeset -g smc_command="/usr/local/bin/smc"
typeset -g smc_charge_limit_key="CHWA"
typeset -g smc_charge_limit_status_on="01"
typeset -g smc_charge_limit_status_off="00"
import Foundation
/// Provides NSRegularExpression pattern matching
/// against strings in `switch` and `~=` statements
public struct Regex {
public let regexPattern: String
public let options: NSRegularExpression.Options
/// Initialize a `Regex` instance that
/// defaults to no options. Update as needed for
@fmedery
fmedery / tmux-iterm2.md
Created September 11, 2017 17:34 — forked from royling/tmux-iterm2.md
tmux in iTerm2 cheatsheet
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active July 1, 2026 11:03
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@monkut
monkut / Ubuntu1604py36Dockerfile
Last active June 14, 2023 20:31
Base Docker image for ubuntu-16.04 & Python3.6
# docker build -t ubuntu1604py36
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN apt-get install -y git
@chretm
chretm / gist:fdcefce520ddfa1b66af3c730d4928c0
Created April 13, 2017 09:16
semantic-similarity-for-short-sentence_python3
#author : Sujit Pal
#Note: this is a python3 updated version of http://sujitpal.blogspot.fr/2014/12/semantic-similarity-for-short-sentences.html
# by mathieu Chrétien (mchretien.pro@mail.com)
#contributor : Mathieu Chrétien
from __future__ import division
import nltk
from nltk.corpus import wordnet as wn
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)