Modh
  • Work
  • About
  • Let's talk
Let's talk
Modh
  • Work
  • About
  • Let's talk
Let's talk

Useful tools. No email-shaped theatre.

Scorecards, calculators, engineering skills, and field guides built from real projects, not generic theory.

The Modh Engineering Playbook

34 battle-tested engineering patterns from shipping production SaaS. Each one tells you the problem, the principle, the implementation, and the business case. This is not a tutorial — it is the methodology we use every day.

  • 7 sections covering data layer, architecture, quality, security, observability, process, and frontend craft
  • Each chapter: The Problem → The Principle → The Pattern → The Business Case
  • 18 AI agent skills that enforce these patterns automatically in your editor
  • Open source on GitHub — install with one command
Get the playbook

The Modh Agentic Engineering Playbook

The exact skill pack we use across every client project — consolidated from 40+ battle-tested patterns into a portable framework for Claude Code, Cursor, Copilot, and more.

resource hub · 4 key takeaways

The Software Build Scorecard

The framework we use with every client before writing a line of code.

scorecard · 3 key takeaways

The Engineering Health Check

A 5-minute assessment that shows where your team stands and what to improve next.

quiz · 3 key takeaways

The AI Code Review Framework

Three questions to ask on every AI-generated PR. One page, pin it next to your monitor.

pdf plus email course · 3 key takeaways

The Build-or-Buy Calculator

Input your constraints, get a clear recommendation with the math behind it. The same framework we use with clients.

calculator · 3 key takeaways

The AI Maturity Scorecard

In 5 minutes, know exactly where your team stands on AI adoption and what the next concrete move is.

scorecard · 3 key takeaways

The Technical Due Diligence Checklist

The 22-point checklist we run for PE firms. Score any codebase across 5 technical dimensions before you sign.

checklist · 3 key takeaways

The Mobile App Readiness Scorecard

Find out whether your service business is ready for a mobile app, or whether the timing isn't right yet.

scorecard · 3 key takeaways

The Release Readiness Checklist

The 20-item preflight checklist we run before every deploy. Five gates, all green, then you ship.

checklist · 3 key takeaways

The DORA Metrics Tracker

Log deploys, incidents, and recovery times. Auto-calculates your DORA tier so you can show leadership real numbers.

spreadsheet · 3 key takeaways

The Vertical SaaS Niche Validator

Score your niche across problem severity, market reachability, and build feasibility before you write a line of code.

scorecard · 3 key takeaways

The AI Tool Stack Blueprint

The exact stack we run across 7 engineering categories, with cost breakdowns per role and a setup checklist.

guide · 3 key takeaways

The Write Criticality Framework

Classify every database write by durability requirement so you only alert on what actually matters.

guide · 4 key takeaways

The Server/Client Boundary Framework

Next.js hides a real architectural bug from you. Your client components import server-side modules and it works fine — until you try Storybook, unit tests, or component isolation. Here is the one-question diagnostic and the three-line fix.

guide · 4 key takeaways

The E2E Testability Framework

Your e2e tests aren't flaky because of Playwright. They're flaky because your UI wasn't built to be tested. One question fixes 90% of it.

guide · 4 key takeaways

The Three-Phase Triage Framework

Nine of fourteen bugs were already fixed on main. Five research agents spent 30 minutes confidently hallucinating root causes for problems that no longer existed. One 30-second check per ticket would have caught it all. Here's the framework that now runs every bug cleanup session.

guide · 4 key takeaways

Zero Errors Is Not the Same As Nothing Firing

Your Sentry query returns zero events. Your Datadog dashboard shows no errors. Your CloudWatch alarm is silent. You're either doing great or you're silently dead. Here's how to tell the difference — and why the default verification query on every observability platform gets this backwards.

guide · 4 key takeaways

The Three-Rule Form-Builder Framework

React Hook Form's useFieldArray is two features pretending to be one. Use the wrong half for per-keystroke writes and you remount the input on every character. Here's the three-rule framework that turns a 50-row admin form from sluggish to indistinguishable-from-five — plus the three specific traps that every form-builder walks into until someone writes them down.

guide · 4 key takeaways

The E2E Fix-Loop

Most teams fix flaky Playwright tests by bumping retries and adding waitForTimeout. That hides bugs; it doesn't fix them. Here's the four-rung triage ladder that distinguishes locator drift from product bugs from infra outages — and the exit criteria that prove the suite is actually green.

guide · 4 key takeaways

The Status Rollup Pattern

Your ops lead opens the admin dashboard, sees nine truncated columns, and asks 'so is this person ready to take a call or not?' Nobody answers. Everyone does the derivation in their head. Here's the three-component pattern that collapses dense admin tables into scannable status boards without losing the raw data.

guide · 4 key takeaways

The Middleware Cookie Fast Path

A growth lead told me the cookie banner was blocking the pixel. I ran a live browser diagnostic against their landing page. The pixel took 34 seconds to fire on mobile Slow 3G, long before any banner appeared. The actual villain was a post-hydration fetch for geo detection that nobody in code review caught. Here is the middleware-cookie fast path that eliminates the waterfall, and the diagnostic discipline that surfaces these problems in 30 minutes instead of three weeks.

guide · 4 key takeaways

The Commit Scope Verification Pattern

I staged eight files. The commit landed with fourteen and 11,481 insertions - absorbing a parallel agent's unfinished database migration. Pre-commit hooks with auto-formatters can silently sweep concurrent unstaged work into your commit through their stash/restore cycle. Here's the three-line git habit that catches it before push.

guide · 4 key takeaways

The Webhook That Emailed Customers About a Meeting That Already Happened

A booking-critical alert fired at 19:17 UTC. The closer had edited a Google Calendar event 17 minutes after its scheduled start time — nothing more dramatic than extending the meeting block. Our integration treated it as a "reschedule," wrote the past timestamp into the database, dispatched reschedule emails to attendees about a meeting that already happened, fired a CRM event, then tripped its own future-time guard at the deepest layer. Every layer in front was silently wrong. The fix is two lines. The diagnostic question is portable across every webhook integration.

guide · 4 key takeaways

The Catalog Hoisting Playbook

Shared dependency drift turns a one-hour upgrade into a three-day archaeology dig. Bun catalogs (default + named) make framework bumps a single root edit and turn family couplings (Mastra, React renderer + types) into structural invariants the build can't break.

guide · 4 key takeaways

The Stale Bot-PR Playbook

Sentry Seer, Dependabot, and Cursor open fix PRs against a stale snapshot of your code. Before you merge, this 10-minute triage tells you which ones to keep and which silently break production.

guide · 4 key takeaways

The "Please Try Again" Trap

Stripe, Clerk, and every API you integrate hand you a precise reason when a call fails. One line of defensive code throws it away, and a recurring bug hides behind "Please try again" for days. Here's how to stop swallowing the diagnosis.

guide · 4 key takeaways

The Lying Monitor Framework

A heartbeat monitor with nothing feeding it doesn't fail safe — it reports a permanent false outage. We found one that cried wolf 1,253 times while the system underneath was perfectly healthy. Here's how to find the lying monitors in your stack before alert fatigue costs you a real outage.

guide · 4 key takeaways

The Redaction That Wasn't

Most teams configure one PII scrubber and call it done. But redaction is a property of every place data leaves your process, and the weakest sink defines your exposure. Here is the gap, and the counterintuitive logger trap, that a routine audit almost always finds.

guide · 4 key takeaways

The Project Charter Framework

Most roadmaps are lists of tasks you can't tell apart — finished from abandoned, shipped from dark. A 12-section charter plus two gates (Definition of Ready and Done) turns each project into a measurable outcome with a baseline and a target.

guide · 4 key takeaways

Your Performance Dashboard Is Empty and Nobody Got Paged

Telemetry is metered by category and fails silently — when the trace budget runs out, every span is dropped while errors flow fine, so the performance dashboard goes dark and nothing pages. The counterintuitive fix makes the problem cheaper, not more expensive: cut the noise before you buy more budget.

guide · 4 key takeaways

The Silent Lost-Write Playbook

A too-broad de-dupe key silently merges legitimately-different records — no error, no log, just a customer swearing their data vanished. One question catches every version of it, and the fix is splitting true-retry idempotency from your fuzzy 'looks like a dupe' window.

guide · 4 key takeaways

Prove Your Telemetry

Everyone understands the empty dashboard. This is the version nobody notices: monitoring that works, errors arriving by the hundred, and every single report blank where it matters. One log line fired 970 times a day for months with the cause field empty on all of them. It carried a cause the whole time. We were reading the wrong object.

guide · 4 key takeaways

The Deploy Source Guard

Deploys that build from a live folder ship whatever is on disk while they run. A branch switched mid-build put a mix of two versions into production, and every check passed. Here is the fifty-line guard that makes a deploy ship exactly one reviewed version, and prove it.

guide · 4 key takeaways

The Two Questions Framework

Every failed database call is one of two stories: your code broke, or the database wasn't there. Most teams file both under the same alert, so one overload lights up every feature at once and real bugs hide in the noise. Here is the two-rule split that makes alerts mean something again.

guide · 4 key takeaways

The Silent Skip Framework

Software makes sensible decisions to do nothing all day: a setting is off, a record is a duplicate, there is nothing to send. When those decisions leave no trace, a correct choice and a bug look identical a week later. Here is how to record them so support can answer in thirty seconds, without flooding your history with noise.

guide · 4 key takeaways

The Login Budget Framework

Every login hands the browser a small pass with a fixed size limit. Go over it and the browser quietly drops the pass, so sign-in "works" and the user lands back on the login page. Your test account never hits it. Your admins with thirty accounts do. Here is how to find and fix it before they do.

guide · 4 key takeaways

The Build-Time Reads Framework

Pages built ahead of time freeze whatever the build machine could see. One missing setting made a staging app disagree with itself, and one unreadable file path packed 465 MB into a single route. Both shipped green. Here is how to find and fix both.

guide · 4 key takeaways

The Header That Gets Out of the Way

Smart headers slide back when you scroll up. On a booking page, that puts the menu right on top of the form at the moment a visitor is deciding. Nothing errors, nothing alerts, and the page still looks polished. Here is the one question that catches it and the small fix.

guide · 4 key takeaways

The Satellite Domain

A founder moved to a better domain. The site loaded, the app loaded, the deploy was green. Then I clicked sign in on the new domain and landed on the old one. Nothing was broken; every visitor was just being handed back the moment they committed. Here are the three places a domain move leaks, and the one question that finds them in an afternoon.

guide · 4 key takeaways

The Rulebook Nobody Reads

A team wanted one simple feature: send emails from each customer's own domain. Their code had a tidy rulebook for every email. Thirteen places ignored it and decided the sender on their own, and some replies from leads went nowhere. Here is the five-part fix that makes a rulebook real before you build on top of it.

guide · 4 key takeaways

The Decision Page

A customer asked a question that looked like a bug. It was really a stack of product decisions, and the people who had to agree read at different depths. Here is the two-step habit that gets sales and engineering to agree on one page, then hands the engineer a ticket with nothing left to guess.

guide · 4 key takeaways

The Cost to Serve Audit

Usage-billed vendors charge for what their own meter counted, and your app's records quietly count less: the bot waiting in an empty call, the old account still connected, the file nobody deleted. Here is the one-day audit that finds the gap before a big deal multiplies it.

guide · 4 key takeaways

The One Rule Framework

Every integration your product runs decides, on its own, whether to update a customer's existing deal or start another. Written separately in each one, the answers drift, and one customer ends up in your pipeline three times at three stages. Here is how to put the rule in one place, and the trap that makes merging two integrations riskier than it looks.

guide · 4 key takeaways

The Agent Disk Budget

Coding agents copy your project, install dependencies, build, and restore databases, and nothing deletes the copies afterwards. One laptop went from 1 TB to 27 GB free this way. Here is the two-word rule, the weekly sweep and the alarm that keep the space free, and why your disk tool overstates what a cleanup will give back.

guide · 4 key takeaways
Modh

Your industry expertise. Built into working software.

Hands-on help from Imran Gardezi to build products, fix software, and put AI to work.

info@modh.ca
Build with ModhAI workshopTeam deliveryServicesHow we workAboutWorkPlaybookResourcesWriting

© 2026 Modh. All rights reserved.