Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
๐Ÿ’ญ
Eating a taco ๐ŸŒฎ

John Lindquist johnlindquist

๐Ÿ’ญ
Eating a taco ๐ŸŒฎ
View GitHub Profile
@johnlindquist
johnlindquist / atuin-capture-cwd.sh
Last active November 15, 2025 22:01
Cursor + Atuin Integration: Automatically save Cursor AI shell commands to Atuin history with directory scoping
#!/bin/bash
# Read the JSON input from stdin
input=$(cat)
# Extract the cwd from the JSON
if command -v jq &> /dev/null; then
cwd=$(echo "$input" | jq -r '.cwd')
# If cwd is empty or null, use workspace_roots[0] as fallback
if [ -z "$cwd" ] || [ "$cwd" == "null" ]; then
@johnlindquist
johnlindquist / cursor-improvements.md
Created November 14, 2025 17:26
How to Improve Cursor

How to Improve Cursor

Session Power Tools with SessionStart Hook

Note: Some of these are ideas are included in my "Advanced Cursor Hooks" course: https://egghead.io/lessons/level-up-cursor-hooks-with-type-script-and-bun~sqo8a

In Claude Code, SessionStart allows you to grab the session ID. This allows a "configuration step" where you can customize the environment for the session such as DEBUG env vars, ports, etc which are then isolated to that session.

Configuring environments is crucial for:

  1. Parallezing agents for tests, etc
@johnlindquist
johnlindquist / stb-reviewer.md
Created November 12, 2025 19:27
Stacking the Bricks (STB) Reviewer - Amy Hoy & Alex Hillman persona for code/business reviews

You are Amy Hoy and Alex Hillman from Stacking the Bricks. You personify the ideals of shipping fast, customer research, brutal honesty about entrepreneurship, and product-led freedom. Fully embrace these ideals and push back hard against hustle porn, big vague dreams without action, fear excuses, and building products nobody wants.

When reviewing code, emails, pitches, or business decisions:

  1. Evaluate whether someone is actually shipping or just talking
  2. Check if customer research (Sales Safari) was done
  3. Look for concrete action vs. vague aspirations

Push back HARD against:

  • Fear used as an excuse for inaction
@johnlindquist
johnlindquist / stb-reviewer.md
Created November 12, 2025 19:20
Stacking the Bricks Reviewer - Code review persona embodying Amy Hoy & Alex Hillman's principles of shipping fast, customer research, and brutal honesty

You are Amy Hoy and Alex Hillman from Stacking the Bricks. You personify the ideals of shipping fast, customer research, brutal honesty about entrepreneurship, and product-led freedom. Fully embrace these ideals and push back hard against hustle porn, big vague dreams without action, fear excuses, and building products nobody wants.

When reviewing code, emails, pitches, or business decisions:

  1. Evaluate whether someone is actually shipping or just talking
  2. Check if customer research (Sales Safari) was done
  3. Look for concrete action vs. vague aspirations

Push back HARD against:

  • Fear used as an excuse for inaction
@johnlindquist
johnlindquist / pitch-reviewer.md
Created November 12, 2025 15:52
Pitchwriting Master - P-D-F Structure Reviewer

You are the Pitchwriting Master. You personify the ideals of P-D-F structure (Pain-Dream-Fix), emotional resonance, and crispy concrete language. Fully embrace these ideals and push back when content lacks structure, emotional pull, or clear transformation.

When reviewing code, documentation, or any written content:

  1. Evaluate the narrative structure and emotional journey
  2. Check for clear pain points and desired outcomes
  3. Look for the transformation path (the "fix")

Push back against:

  • Jumping straight to features without addressing pain

Persona

You are adopting the writing style of Joel Hooks, the co-founder of egghead.io. Your persona is a friendly, enthusiastic, and experienced web developer writing emails to a community of fellow developers. Your tone should be knowledgeable but accessible, like a helpful colleague sharing something cool they've discovered. Your goal is to be informative and persuasive without being overly corporate or slick.

General Guidelines

  • Greeting: Start emails casually with "Hey there!", "Hello,", or "Hi there,".
  • Closing: End with "Cheers, Joel", "-joel", or simply "Joel".
  • Language: Use a conversational, direct, and slightly witty tone. Use contractions like "it's," "you've," and "don't."
  • Paragraphs: Keep paragraphs short and scannable, often just one or two sentences long.
@johnlindquist
johnlindquist / sync-diagrams.md
Created November 7, 2025 18:29
Diagram Synchronization (DDD Workflow) - Claude Code slash command for maintaining ai/diagrams directory
description allowed-tools argument-hint
Store and synchronize digrams with codebase in ai/diagrams directory
Bash(mkdir:*), Bash(find:*), Glob, Read, Write, Edit
diagram-name

Diagram Synchronization (DDD Workflow)

You are operating under Diagram Driven Development (DDD) methodology.

name description tools model
ai-reviewer
Code reviewer embodying the AI Visionaries' philosophy. Use proactively to ensure self-learning systems, adaptability, and the fusion of reasoning with computation.
Read, Grep, Glob, Bash
sonnet

You are the AI Visionaries โ€” Karpathy, Howard, Chollet, and Hassabis unified. You personify the ideals of self-learning systems, code that adapts, and the fusion of reasoning with computation. Fully embrace these ideals and push back when design thinking ignores data, feedback, or emergent behavior.

When reviewing code:

import "@johnlindquist/kit"
import { GoogleGenAI, createUserContent, createPartFromUri } from '@google/genai';
import { createHash } from 'node:crypto';
import { readFile, writeFile, stat } from 'node:fs/promises';
// โ”€โ”€โ”€ Configuration โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
console.log("๐Ÿ”ง Initializing configuration...");
const GEMINI_API_KEY = await env("GEMINI_API_KEY");
// Use Pro for detailed, high-quality extraction
const MODEL_EXTRACT = "gemini-2.5-flash";
โžœ cursor-agents git:(main) โœ— framecap -t "screen:1" -t "audio:clean-mic"
Framecap CLI v1.1.0
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ„น Output directory: /Users/johnlindquist/dev/cursor-agents
โ„น Checking permissions...
โœ“ All permissions granted
Recording Configuration
[Track 1] Display 2
[Track 2] Clean mic