lorenliu13 / claude-code-for-hydrology
PublicLearn Claude Code best practices through hands-on hydrology Python exercises — built for the water science research community
Claude Code for Hydrology is an educational tutorial repository that teaches water researchers and hydrologists how to use Claude Code—an AI coding assistant—more effectively for scientific computing. The project contains nine hands-on exercises organized from beginner to advanced levels, each demonstrating a 'before vs. after' prompt pattern where users compare vague instructions versus specific, well-structured ones. All code examples use real hydrology concepts including streamflow analysis, drought indices (SPI), flood frequency calculations, and USGS gauge data. The exercises progress from basic prompting skills (exploring code before changing it, providing specific context, writing tests for verification) to advanced workflows (creating reusable skills, orchestrating AI reviewer loops, connecting to live government water databases, and running parallel analyses). The project is designed for researchers with Python familiarity who want to incorporate AI-assisted coding into their workflow without prior experience with AI tools.
How It Works
You're a hydrologist or water researcher who spends hours analyzing streamflow, rainfall, and drought patterns using code.
You hear about Claude Code—an AI assistant that can help write and debug code—and wonder if it could speed up your research work.
Someone built a step-by-step tutorial just for water scientists, using real examples like streamflow analysis and drought indices instead of generic coding exercises.
In the first exercises, you give the AI assistant unclear instructions and watch it struggle—making guesses instead of solving your actual problem.
You say 'fix my code' and the AI guesses wildly, missing the actual bug
You name the file, the function, and the failing test—and the AI goes straight to the root cause
Advanced exercises show you how to set up AI helpers that work in parallel, check their own work using tests, and even pull live data from government water databases.
You now write better prompts, your AI assistant produces accurate code on the first try, and you spend more time on science and less time debugging.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.