# My Day-to-Day AI Dev Workflow (Git + Cursor/Windsurf/Cline + Playwright + Supabase + Replit)
<!--
ref: @content/youtube/yifan-bth/my-day-to-day-ai-dev-workflow-git-cursor-windsurf-cline-playwright-supabase-replit
tags: [AI coding workflow, git discipline, rules files, test-first development, Playwright, Supabase migrations, code review, staging environments]
version: 2
updated_at: 2026-11-24T07:19:31.113Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=9wD0_MIkNJU)**

# My Day-to-Day AI Dev Workflow (Git + Cursor/Windsurf/Cline + Playwright + Supabase + Replit)

*Synthesized from Yifan on Beyond the Hype, 2025-01-10.*

Yifan presents alone on the Beyond the Hype channel. The transcript gives only a first name, and the walkthrough is a live feature build on a visa appointment booking product.

## Core Thesis
Yifan argues that AI code editors are only as reliable as the loop around them: start from a clean git state, have the agent write tests before the feature as a written spec, let the compiler and test runners check its work, then review every line before committing. He says most of his gains came from edits to the rules file, not from new models.

## Key Insights
- **Git as the spine.** Each task starts from a clean working tree. He keeps history in git instead of editor checkpoints, which he finds unreliable when switching between stages. He accepts all AI changes and reviews them in git, and he reports roughly 40 to 50 commits over a couple of weeks.
- **Rules file as the workflow.** The rules file tells the agent to search for existing end-to-end tests first, write new tests, and stop for user review of those tests before implementing. Then it runs the TypeScript compiler, the Playwright suite and Prettier. He could not get Cursor to pause for review, though Windsurf and Cline did.
- **Tests as spec.** Reviewing the test is how he checks the plan, since the test states the expected behavior before any code exists.
- **Worked example.** A lead-time setting for appointment booking, defaulting to 7 and validated between 1 and 60 days, touched the front end, server actions, a Supabase migration with regenerated types, and Playwright tests. He says the first run passed on the first try, which surprised him.
- **Database rules.** Migrations go through the Supabase CLI. The rules forbid breaking changes unless asked, so tables are renamed only after data has moved. A push to production applies only the migrations not yet run there.
- **Environments.** Local is the development environment, and Replit serves as staging with production credentials. Replit does not give root access to run the Supabase local emulator, which is why he keeps database work local.
- **Human review.** He reviews every committed line and reverts changes he does not want. He notes that AI does not maintain the code afterward. Commit messages come from the editor, shaped by rules that say how to write them.
- **Rules evolve.** Behavior improved when he added rules, such as updating website copy whenever UX changes so the copy matches the logic.

## Actionable Takeaways
1. Start every AI session from a clean git state, and review and commit in git rather than relying on editor checkpoints.
2. Put test-first instructions in the rules file, including a pause for human review of the tests before implementation.
3. Add the typecheck, formatter and end-to-end test steps to the rules so the agent runs them before it reports done.
4. Forbid breaking database changes in the rules unless asked, and rename tables only after the data has moved.
5. Review every line before commit, and keep commit-message style in the rules file.

## Notable Quotes
> "I always always review every single line of code that gets committed into codebase" — Yifan

> "I prefer to use git as the core part of my workflow here" — Yifan

---

*Related: `@content/youtube/yifan-bth/how-i-use-ai-git-to-code-3x-faster-real-dev-workflow-with-cursor` · `@content/youtube/yifan-bth/how-to-build-robust-applications-with-cursor-ai-playwright` · `@content/youtube/yifan-bth/openai-codex-revolutionary-workflow-or-200-mistake` · `@content/youtube/yifan-bth/5x-your-cursor-ai-coding-quality-with-these-pro-tips` · `@content/youtube/yifan-bth/cursor-windsurf-settings-to-5x-ais-output-quality-works-with-vs-code-too`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*