Advanced Claude Code techniques: context loading, mermaid diagrams, stop hooks, and more | John Lindquist
How I AI26 Jan

Advanced Claude Code techniques: context loading, mermaid diagrams, stop hooks, and more | John Lindquist

John Lindquist is the co-founder of egghead.io and an expert in leveraging AI tools for professional software development. In this episode, John shares advanced techniques for using AI coding tools like Claude Code and Cursor that go far beyond basic prompting. He demonstrates how senior engineers can use mermaid diagrams for context loading, create custom hooks for automated code quality checks, and build efficient command-line tools that streamline AI workflows.


What you’ll learn:

  1. How to use mermaid diagrams to preload context into Claude Code for faster, more accurate coding assistance
  2. Creating custom hooks in Claude Code to automatically check for TypeScript errors and commit working code
  3. Building efficient command-line aliases and tools to streamline your AI workflows
  4. Techniques for using AI to generate documentation that works for both humans and machines
  5. How to leverage AI for code investigation and orientation when tackling unfamiliar codebases
  6. Strategies for resetting AI conversations when they go off track

Brought to you by:

WorkOS—Make your app enterprise-ready today

Tines—Start building intelligent workflows today

In this episode, we cover:

(00:00) Introduction to John Lindquist

(03:15) Using context and diagrams to provide context to AI tools

(05:38) Demo: Mermaid diagrams

(06:48) Preloading context with system prompts in Claude Code

(10:30) The rise of specialized file formats for AI consumption

(13:23) Mermaid diagram use cases

(19:01) Demo: Creating aliases for common AI commands

(21:05) Building custom command-line tools for AI workflows

(26:39) Demo: Setting up stop hooks for automated code quality checks

(35:16) Investing in quality outputs

(36:40) Additional use cases for hooks beyond code quality

(39:19) Quick review

(41:14) Terminal UI vs. IDE

(45:35) Selling AI to skeptical teams

(51:57) Prompting reset tricks

Tools referenced:

• Claude Code: https://claude.ai/

• Cursor: https://cursor.sh/

• Gemini: https://gemini.google.com/

Other references:

• Zsh: https://www.zsh.org/

• GitHub: https://github.com/

• TypeScript: https://www.typescriptlang.org/

• Bun: https://bun.sh/

• Claude hooks: https://code.claude.com/docs/en/hooks

Where to find John Lindquist:

Website: https://egghead.io

Newsletter: https://egghead.io/newsletters/ai-dev-essentials

LinkedIn: linkedin.com/in/john-lindquist-84230766

X: https://x.com/johnlindquist

Where to find Claire Vo:

ChatPRD: https://www.chatprd.ai/

Website: https://clairevo.com/

LinkedIn: https://www.linkedin.com/in/clairevo/

X: https://x.com/clairevo

Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.

Avsnitt(65)

I built a custom Slack inbox. It was easier than you’d think. | Yash Tekriwal (Clay)

I built a custom Slack inbox. It was easier than you’d think. | Yash Tekriwal (Clay)

Yash Tekriwal is the head of education at Clay. A self-described hyper-optimizer, Yash has built multiple custom productivity applications using Perplexity Computer and OpenClaw to manage his overwhel...

8 Apr 44min

I gave Claude Code our entire codebase. Our customers noticed. | Al Chen (Galileo)

I gave Claude Code our entire codebase. Our customers noticed. | Al Chen (Galileo)

Al Chen is a field engineer at Galileo, an observability platform for AI applications, where he works on the front lines with enterprise customers asking highly technical questions. Despite never havi...

6 Apr 45min

How to turn Claude Code into your personal life operating system | Hilary Gridley

How to turn Claude Code into your personal life operating system | Hilary Gridley

Hilary Gridley is an entrepreneur, former product leader, and new mom who previously appeared on the podcast discussing AI for managers. She returns to share how she's transformed her approach to pers...

30 Mars 51min

How Stripe built “minions”—AI coding agents that ship 1,300 PRs weekly from Slack reactions | Steve Kaliski (Stripe engineer)

How Stripe built “minions”—AI coding agents that ship 1,300 PRs weekly from Slack reactions | Steve Kaliski (Stripe engineer)

Steve Kaliski is a software engineer at Stripe who has spent the past six and a half years building developer tools and payment infrastructure. He’s part of the team that created “minions”—Stripe’s in...

25 Mars 41min

How Microsoft's AI VP automates everything with Warp | Marco Casalaina

How Microsoft's AI VP automates everything with Warp | Marco Casalaina

Marco Casalaina, VP of Core AI Products and AI Futurist at Microsoft, demonstrates how he uses AI tools to automate administrative tasks that typically consume valuable time. Rather than using Warp as...

23 Mars 34min

From journalist to iOS developer: How LinkedIn’s editor builds with Claude Code | Daniel Roth

From journalist to iOS developer: How LinkedIn’s editor builds with Claude Code | Daniel Roth

Daniel Roth, editor in chief at LinkedIn, went from business writer to iOS app developer, without ever learning how to code. Using Claude Code, Daniel built and shipped multiple production-ready iOS a...

16 Mars 38min

From Figma to Claude Code and back | Gui Seiz & Alex Kern (Figma)

From Figma to Claude Code and back | Gui Seiz & Alex Kern (Figma)

Most teams are still passing static design files back and forth, and most Figma files are already out of date by the time they reach engineering. Gui Seiz (designer) and Alex Kern (engineer) from Figm...

11 Mars 40min

Mastering Midjourney: How to create consistent, beautiful brand imagery without complex prompts | Jamey Gannon

Mastering Midjourney: How to create consistent, beautiful brand imagery without complex prompts | Jamey Gannon

Jamey Gannon is an AI creative director who specializes in creating consistent, beautiful brand imagery using AI tools. In this episode, Jamey demonstrates her streamlined workflow for generating cohe...

9 Mars 49min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
bilar-med-sladd
rss-technokratin
market-makers
skogsforum-podcast
natets-morka-sida
rss-elektrikerpodden
rss-en-ai-till-kaffet
har-vi-akt-till-mars-an
bli-saker-podden
rss-laddstationen-med-elbilen-i-sverige
dom-kallar-oss-krypto
developers-mer-an-bara-kod
hej-bruksbil
rss-snacka-om-ai
rss-upplyst-entreprenordirektor
rss-fabriken-2
rss-veckans-ai
rss-milpodden