Skip to content

Instantly share code, notes, and snippets.

@scriptease
scriptease / insights-clean.py
Created August 1, 2026 09:11
insights-clean.py — provenance-filtered, config-aware rebuild of Claude Code's /insights (only analyzes sessions a human actually drove; gap analysis against your CLAUDE.md/skills/automation config)
#!/usr/bin/env python3
"""insights-clean.py — config-aware rebuild of Claude Code /insights.
Fixes vs the built-in:
1. Provenance filtering: only sessions with real typed user input
(promptSource=="typed") are analyzed. Observer sessions, Cue/headless
runs, and SDK-driven sessions are counted but excluded from analysis.
2. Config-aware suggestions: the report prompt receives CLAUDE.md files,
the skill inventory, and cue.yaml, and must not suggest what already
exists.
@scriptease
scriptease / underwater.html
Created July 31, 2026 17:37
Cartoon underwater reef
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Underwater</title>
<style>
html, body { margin: 0; height: 100%; overflow: hidden; background: #27455c; }
canvas { display: block; touch-action: none; }
#reset {
@scriptease
scriptease / NPM_WORKSPACES_DISCOVERY.md
Created April 26, 2026 13:17
NPM Workspaces: Command Discovery & Best Practices for Monorepo Setup

NPM Workspaces: Command Discovery & Best Practices

Problem: Discoverability in Workspaces

When using npm workspaces with separate package.json files in each subdirectory, users face a critical discovery problem.

What Users See

Running npm run at the root shows only root-level scripts:

@scriptease
scriptease / gist:587644d79eb7029e726bf252eabc9239
Created May 13, 2025 06:18
Method.gg WR progress.user.js
// ==UserScript==
// @name Method.gg WR progress
// @namespace http://tampermonkey.net/
// @version 2025-05-13
// @description Adds buttons to the Warcraft Rumble progress tracker
// @author Scriptease
// @match https://www.method.gg/warcraft-rumble/progress-tracker
// @icon https://www.google.com/s2/favicons?sz=64&domain=method.gg
// @grant none
// ==/UserScript==