Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

How I AI

How I AI artwork

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

Jan 26, 202657 minAudio
ShareXLinkedInFacebookWhatsAppEmail

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: How to use mermaid diagrams to preload context into Claude Code for faster, more accurate coding assistance Creating custom hooks in Claude Code to automatically check for TypeScript errors and commit working code Building efficient command-line aliases and tools to streamline your AI workflows Techniques for using AI to generate documentation that works for both humans and machines How to leverage AI for code investigation and orientation when tackling unfamiliar codebases 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.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. OpenClaw for executives: Automate every 1% annoyance

    Nov 23, 202631 minAudio

    Ankit Maheshwari, the CTO of Innovaccer, walks me through the OpenClaw Jarvis he still runs on a Mac Mini. He started with the approvals that were making him the bottleneck at work, then kept going until the same system...

    Credit the people on this episode

  2. How I fight token fraud as a solo founder

    Nov 16, 202640 minAudio

    Today I’m walking you through a problem that has cost me tens of thousands of dollars over the past year and eaten almost all of my engineering energy: token fraud. I’m the solo founder of ChatPRD, a bootstrapped AI...

    Credit the people on this episode

  3. Claude Code + Obsidian: My family’s AI brain | Scott Farrar

    Nov 11, 202634 minAudio

    Scott Farrar is a math educator and parent who got tired of AI chats that drift and forget. So he built a household brain in Claude Code: a folder of Markdown files, viewed in Obsidian, that knows his appliances,...

    Credit the people on this episode

  4. Claude Fable 5.2 review: fast, creative, and finally not annoying

    Nov 9, 202625 minAudio

    Anthropic just released Fable 5.2, their new frontier model, and I spent two days actually building things with it before recording this. I made an animated marketing video from a single tweet, assembled a pile of...

    Credit the people on this episode

  5. How this founder built a better Duolingo with Codex | William Imoh

    Nov 9, 202639 minAudio

    William Imoh is the founder of Hackmamba, a developer marketing company, and the creator of Mural, a real-time voice app he built to learn Norwegian after moving from Dubai to Norway. He has a chemical engineering...

    Credit the people on this episode