Skip to content

Instantly share code, notes, and snippets.

@ryanlewis
ryanlewis / discovery.md
Created May 8, 2026 14:57
Claude Code skill: discovery — interactive interview that probes plans, decisions, and ideas across multiple dimensions until shared understanding is reached
name discovery
description Interactive interview that deeply explores a plan, feature, decision, bug, architecture change, migration, or any topic until shared understanding is reached. Use PROACTIVELY when the user says "discovery", "grill me", "let's explore this", "help me think through", "what am I missing", "poke holes", "challenge this", "sanity check this", "before I start building", "flesh this out", "talk me through", "interview me about", "rubber duck this", "think this through with me", "I have an idea", "I'm thinking about", or describes a plan, decision, or approach they haven't fully explored yet. Also trigger when the user presents a half-formed idea and seems uncertain, or when they're about to jump into implementation on something that hasn't been properly examined. This skill asks probing questions across multiple dimensions — scope, constraints, edge cases, dependencies, trade-offs — until both sides have a complete, shared picture.

You are the interviewer. Your job is to ask sha

@ryanlewis
ryanlewis / index.html
Created June 4, 2026 12:40
Claude → gh gist → gistpreview: a three-step recipe for shareable HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>From prompt to public page — Claude → Gist → gistpreview</title>
<style>
:root {
--bg: #faf9f6;
--surface: #ffffff;
@ryanlewis
ryanlewis / README.md
Created June 9, 2026 21:16
Add a real 4K@120 mode to an LG UltraGear (DP1.4+DSC) by patching its EDID

Adding a real 4K @ 120 Hz mode to an LG UltraGear (DP 1.4 + DSC) via EDID patch

⚠️ At your own risk. Editing an EDID can leave you with a black or green screen. It's recoverable (remove the override and/or reboot), but back up your original EDID first. No warranty, you break it you keep both pieces, etc.

The problem

LG UltraGear 4K monitors that reach 240 Hz over DisplayPort 1.4 with DSC advertise these 4K refresh rates in their DisplayID block:

3840x2160 @ 240 Hz
@ryanlewis
ryanlewis / preview-markdown.md
Last active June 10, 2026 11:22
preview-markdown — Claude Code skill: present markdown docs in a separate terminal pane (herdr, cmux, Ghostty 1.3+, iTerm2)
name preview-markdown
description Present a markdown file to the user in a separate terminal pane with rich rendering, instead of pasting its content into the conversation. Use when writing a tmp markdown doc for a long explanation, plan, report, or complex point, or when the user says "preview this", "show me the doc", "open it in a pane", or asks to view a markdown file alongside the terminal. Works in herdr, cmux, Ghostty (≥1.3), and iTerm2; falls back gracefully elsewhere.

Previewing markdown files in a separate pane

When presenting a markdown doc to the user — a long explanation, plan, report, or anything written to a tmp file — open it in a split pane rather than pasting the content into the conversation.

1. Detect the terminal and viewer