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.

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(104)

How I turned Claude into a self-improving PM assistant | Daniel Blum (PM, Melio)

How I turned Claude into a self-improving PM assistant | Daniel Blum (PM, Melio)

Daniel Blum is a product manager at Melio, a B2B payments company, and one of the most systematic thinkers I’ve had on the show when it comes to personal AI infrastructure. He’s spent the past year bu...

31 Aug 46min

I spent $20,000 on Devin in a month. Here’s what I learned | Ryan Carson (solo founder)

I spent $20,000 on Devin in a month. Here’s what I learned | Ryan Carson (solo founder)

Ryan Carson is a five-time founder and the current solo founder of Untangle, a B2B SaaS platform for family law firms. Before Untangle, he co-founded Treehouse, an online coding education platform, an...

24 Aug 44min

I tested Grok Bot, Grok 4.6, and Cursor Origin - here’s my honest take

I tested Grok Bot, Grok 4.6, and Cursor Origin - here’s my honest take

This week I’m doing a solo breakdown of everything xAI and Cursor have shipped recently, including Grok Bot, Cursor Origin, and the Grok 4.6 model. I set up five Grok Bots, ran Grok 4.6 through my Cla...

18 Aug 27min

How a solo founder used Codex and ChatGPT to launch a fashion brand without engineers | Yana Welinder

How a solo founder used Codex and ChatGPT to launch a fashion brand without engineers | Yana Welinder

Yana Welinder is the solo founder of Yana Bana, an AI-native fashion brand built with AI as her technical co-founder, starting from hand-drawn sketches and ending with runway photos, CAD files for 3D ...

17 Aug 32min

Claude Code for normal people: skills, voice mode, and how to collaborate with AI

Claude Code for normal people: skills, voice mode, and how to collaborate with AI

Grace Clarke is an AI educator and former marketing consultant who taught herself Claude Code earlier this year and built a curriculum out of the process. She now runs her entire service business on t...

10 Aug 43min

Build an AI code review bot in 30 minutes with Vercel Eve

Build an AI code review bot in 30 minutes with Vercel Eve

AI writes most of my code now, and that created a new problem: a PR queue I couldn’t keep up with. In this episode, I walk through how I built Merge Mommy, a Vercel Eve agent that reads every PR after...

5 Aug 24min

ChatGPT Codex Voice + browser + Sites: an expert’s AI workflow | Nick Baumann (OpenAI)

ChatGPT Codex Voice + browser + Sites: an expert’s AI workflow | Nick Baumann (OpenAI)

Nick Baumann is on the Developer Experience team at OpenAI, where he spends his days building with, testing, and communicating the capabilities of ChatGPT Codex and ChatGPT Work. In this episode, Nick...

3 Aug 41min

From zero coding background to hardware hacker: How Cursor + a Raspberry Pi makes AI fun

From zero coding background to hardware hacker: How Cursor + a Raspberry Pi makes AI fun

Maddie Reese is a vibe coder, hardware tinkerer, and builder. She builds things at the intersection of software and hardware, including a thermal receipt printer that people around the world can messa...

27 Jul 28min

Populært innen Teknologi

lydartikler-fra-aftenposten
tomprat-med-gunnar-tjomlid
teknisk-sett
energi-og-klima
nasjonal-sikkerhetsmyndighet-nsm
elektropodden
shifter
teknologi-og-mennesker
fornybaren
rss-kunstig-intelligens-med-elisabeth-maren-og-morten
smart-forklart
rss-heis
rss-snakk-om-sikkerhet
rss-alt-som-gar-pa-strom
rss-ai-forklart
rss-grenser-for-ki
rss-digitaliseringspadden
rss-alt-vi-kan
rss-ki-til-kaffen
digital-forretningsforstaelse