<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by simon yu on Medium]]></title>
        <description><![CDATA[Stories by simon yu on Medium]]></description>
        <link>https://medium.com/@simonyu0518?source=rss-641e7c034ad2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*U_x-exqIL5XxTUxc.</url>
            <title>Stories by simon yu on Medium</title>
            <link>https://medium.com/@simonyu0518?source=rss-641e7c034ad2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:59:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simonyu0518/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond Vibe Coding: Series Recap — What’s in Your AI-Native Toolkit]]></title>
            <link>https://medium.com/@simonyu0518/beyond-vibe-coding-series-recap-whats-in-your-ai-native-toolkit-97e36b4df199?source=rss-641e7c034ad2------2</link>
            <guid isPermaLink="false">https://medium.com/p/97e36b4df199</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[simon yu]]></dc:creator>
            <pubDate>Fri, 01 May 2026 04:40:25 GMT</pubDate>
            <atom:updated>2026-05-01T04:40:25.098Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PffqXY6vsbFvdKWD7bnXQw.png" /></figure><p>Four articles, one trajectory. Here’s the map.</p><h3>What These Four Articles Covered</h3><p><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-1-role-migration-software-engineers-pushed-to-the-extremes-by-ai-989c2fccb455"><strong>Ep1: Role Migration</strong></a> — AI is compressing the middle layer. “I can write code” is no longer a moat. Move upstream (define requirements) or downstream (verify quality). The senior engineers who got this first didn’t wait — they just started writing PRDs.</p><p><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-2-methodology-the-ai-native-engineering-workflow-020546c5219e"><strong>Ep2: Methodology</strong></a> — 1 person + 4 AI Agents, structured by Human-in-the-Loop checkpoints. The engineer’s role shifts from craftsman to orchestrator.</p><p><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-3-hands-on-building-your-ai-native-toolkit-5c579b90b629"><strong>Ep3: Hands-On</strong></a> — Deployable SKILL.md files, Progressive Disclosure for context windows, and a flash-sale system built end-to-end through four Agents and four human checkpoints. Copy the configs, follow the pipeline.</p><p><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d"><strong>Ep4: Archaeology</strong></a> — Two Brownfield Agents reverse-engineered a 5-year-old monolith and found a payment bug hiding in production for years. Most AI tutorials stop at greenfield. Most engineering work is brownfield.</p><h3>The Pipeline at a Glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PffqXY6vsbFvdKWD7bnXQw.png" /></figure><h3>Toolkit Inventory</h3><p>The diagram above shows the complete flow. Six Agents, two pipelines, one closed loop.</p><p><strong>Greenfield</strong> — build from scratch:</p><p>① Requirements Analyst → ② System Architect → ③ Implementation Coder → ④ Verification Audit</p><p><strong>Brownfield</strong> — understand before you act:</p><p>① Codebase Cartographer → ② Logic Decoder → Refactoring Plan → feeds back into Greenfield</p><p>Every Agent produces a document. Every document feeds the next stage. Every transition has a human checkpoint. Not six isolated tools — one workflow.</p><p>Full SKILL.md configs on GitHub: <a href="https://github.com/simonyu0518/beyond-vibe-coding">beyond-vibe-coding</a></p><h3>Beyond Vibe Coding — What Comes Next?</h3><p>This series answered <strong>who</strong> (six Agents) and <strong>what</strong> (each Agent’s mandate). In practice, you’ll immediately hit the next question: <strong>how do you wire them?</strong></p><p>Bad Cop flags a critical issue — patch or restart from scratch? A one-line bug fix — does it really need four Agents? An Agent says “done” — what evidence proves it?</p><p>This is <strong>harness engineering</strong>: not more Agents, but a workflow that can route, gate, and roll back. Generate → verify → revise, with explicit decision points. Task-size routing. Evidence-based verification.</p><p>The six Agents are your team. The harness is how you manage them.</p><p>And this pattern isn’t limited to code. Sales pipelines, content production, market expansion — any complex workflow with multiple roles and decision points. The role names change. The core principles don’t.</p><p>That’s the story of Beyond Vibe Working. We’ll save it for another day.</p><h3>The AI-Native Engineer’s Complete Map (Agent Matrix)</h3><h4>Greenfield Pipeline: Creators Building from 0 to 1</h4><p><strong>① Requirements Analyst</strong></p><blockquote><em>‘Intercept vague requirements. Turn vibes into structured specs.’</em></blockquote><p><strong>② System Architect</strong></p><blockquote><em>‘Before the first line of code is written, define the system’s DNA and technical standards.’</em></blockquote><p><strong>③ Implementation Coder</strong></p><blockquote><em>‘I’m a TDD disciple. AI is just the fastest pen in my hand.’</em></blockquote><p><strong>④ Verification Audit</strong></p><blockquote><em>‘My job is to blow the whistle — ensuring code doesn’t just run, but runs safely and meets compliance.’</em></blockquote><h4>Brownfield Pipeline: Restorers Bridging Old to New</h4><p><strong>① Codebase Cartographer</strong></p><blockquote><em>‘Before you get lost in the details, let me draw you a full navigation chart of this unfamiliar system.’</em></blockquote><p><strong>② Logic Decoder</strong></p><blockquote><em>‘No matter how tangled the spaghetti, I can translate it into business logic humans can understand.’</em></blockquote><p>Domain expertise lives in the Agent Skills. Engineering judgment stays with you.</p><p><em>Beyond Vibe Coding series:</em></p><p><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-1-role-migration-software-engineers-pushed-to-the-extremes-by-ai-989c2fccb455"><em>#1 Role Migration</em></a><em> → </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-2-methodology-the-ai-native-engineering-workflow-020546c5219e"><em>#2 Methodology</em></a><em> → </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-3-hands-on-building-your-ai-native-toolkit-5c579b90b629"><em>#3 Hands-On</em></a><em> → </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d"><em>#4 Archaeology</em></a><em> → Series Recap (this article)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e36b4df199" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Vibe Coding #4: Archaeology — Reverse-Engineering Legacy Code with AI]]></title>
            <link>https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d?source=rss-641e7c034ad2------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b66f6e533d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[legacy-code]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[simon yu]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 09:39:47 GMT</pubDate>
            <atom:updated>2026-04-11T09:39:47.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K652bnVW0X0y4XuHxzXqFA.png" /></figure><h3>Every Engineer’s Nightmare</h3><p>git clone finishes. You open the project. Terminal: 247 files, 100,000 lines of code. No documentation, no comments, original author left the company two years ago.</p><p>Your task: add a new payment method. Your timeline: the sprint starts Monday.</p><p>What’s your first move?</p><p>In the past, you’d spend three days reading. Start from the entry point, chase function calls, hammer Go to Definition until your eyes glazed over. By day three, you’d have a hazy mental model — enough to be dangerous, not enough to be confident. I’ve been in this exact situation more than once, and the worst part isn’t the reading. It’s the false confidence that comes after. You <em>think</em> you understand the system, so you start making changes — and three weeks later, a bug surfaces in a code path you never even looked at.</p><p>Now, you can have AI draw the map first.</p><p>The previous three articles covered greenfield scenarios — building from scratch. But in reality, the far more common situation is inheriting legacy code you’ve never seen. This article is about using AI for reverse engineering.</p><h3>Greenfield vs. Brownfield — Why a Different Toolkit</h3><p>The four Agents from Ep3 (Gatekeeper, Designer, Builder, Bad Cop) were designed for <strong>Greenfield</strong>: you control everything — requirements, architecture, tech choices. The logic flows one direction: requirement → code.</p><p><strong>Brownfield</strong> is the opposite. Everything’s already been decided — architecture, stack, business rules, even the bugs are inherited. You can’t define requirements first. You must <em>understand the current state</em> before deciding what to do.</p><p>This isn’t the same problem at a different difficulty level. It’s two fundamentally different problems running in opposite directions:</p><p>Greenfield: “What should we build?” Brownfield: “What’s already here?”</p><p>Most engineers spend 80% of their time in Brownfield. Most AI tutorials focus on Greenfield. That’s why we need a separate set of Agents built specifically for reverse engineering.</p><p>The two new roles in this article are an independent skill set — not an extension of the Greenfield pipeline, but a parallel methodology for “understand before you act” scenarios.</p><h3><strong>Codebase Cartographer — The Mapper</strong></h3><p>Job isn’t to understand every line — it’s to draw a map of the entire project.</p><p>Imagine receiving a box of LEGO pieces with no manual. The Mapper doesn’t start assembling. It dumps everything out and sorts: chassis parts, wheels, decorative pieces.</p><p>Concretely, the Cartographer does three things:</p><p>First, <strong>reads structure, not code.</strong> Priority: package.json, go.mod, Dockerfile, docker-compose.yml, directory naming conventions. These metadata files reveal architecture without opening a single source file. This matters because most engineers&#39; instinct is to start reading the biggest source file — which is exactly the wrong move. You need the satellite view before you zoom in.</p><p>Second, <strong>identifies entry points.</strong> Which files are API endpoints? Cron jobs? Webhook handlers? Find these and you know how the outside world interacts with this system. Miss one, and you’ve got a blind spot that will bite you later.</p><p>Third, <strong>produces a Codebase Map</strong> — architecture overview marking core modules, key dependencies, and data flow direction. The output must include a Mermaid diagram. Text-only maps are not acceptable — humans need visual navigation aids.</p><p>This role answers: “I just inherited this — what <em>is</em> it?” The answer isn’t an essay. It’s a map.</p><h3>Logic Decoder — The Translator</h3><p>If the Cartographer does satellite imagery, the Decoder hikes through the jungle.</p><p>When the Cartographer says the core logic lives in /src/services/order-service.js, you need someone to explain what that file actually does. That&#39;s the Decoder.</p><p>Its method is the Feynman Technique: explain complex things in the simplest language possible. It won’t say “this function calls processOrder, then deductInventory, then paymentGateway.charge” — that’s reading code aloud. It will say: “When a user places an order, the system confirms inventory, then charges the payment provider. But there’s a problem: inventory deduction and payment aren’t atomic. If payment fails, inventory is already deducted but never restored.”</p><p>The difference: reading aloud vs. making you understand.</p><p>Key behavioral rules: focus on data flow and control flow, not syntax. Explain in a “new hire onboarding” tone. Produce sequence diagrams or flowcharts. And critically — proactively flag potential issues like race conditions and unhandled edge cases, even if the human didn’t ask.</p><p>Both Agents follow the same <a href="http://skill.md/">SKILL.md</a> structure as Ep3 — frontmatter for activation, Markdown body for behavioral rules. Full configs for all six Agents on GitHub: <a href="https://github.com/simonyu0518/beyond-vibe-coding/tree/main/project-skills">beyond-vibe-coding/project-skills</a></p><h3><strong>Live Simulation: 5-Year-Old Monolith E-Commerce Backend</strong></h3><p>Config files covered. Now let’s see the Brownfield Agents in action.</p><p>Scenario: you’ve inherited a 5-year-old e-commerce backend. Node.js monolith — orders, inventory, and payments coupled in a single service. Original team gone. Documentation: a README last updated two years ago. Your task: add BNPL (Buy Now, Pay Later) as a payment method.</p><p>If you start coding immediately, you’ll likely shove the new payment method into a code path you don’t fully understand. Three months later, support tickets: “payment notification didn’t fire” or “inventory numbers wrong” — because you inherited a bug you didn’t know existed.</p><p>Two Agents, three steps. Let’s go.</p><h3>Step 1: The Mapper Surveys the Terrain</h3><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> “I just inherited this e-commerce backend. Need to add BNPL. First, help me understand the architecture.”</em></blockquote><blockquote><em>🤖 </em><strong><em>/cartographer:</em></strong><em> “Copy that. Reading project structure and configs — no code.”</em></blockquote><p>Results:</p><blockquote><strong><em>Architecture Overview:</em></strong></blockquote><blockquote><em>Classic Node.js monolith. All business logic under </em><em>/src/services/, no clear module boundaries.</em></blockquote><blockquote><strong><em>Entry Points:</em></strong></blockquote><blockquote>1. server.js → Express REST API (primary entry)</blockquote><blockquote>2. workers/order-timeout.js → Cron job (checks timed-out orders every 5 min)</blockquote><blockquote>3. webhooks/payment-notify.js → Payment provider callback</blockquote><blockquote><strong><em>Risk Zones:</em></strong></blockquote><blockquote>- /src/services/order-service.js (582 lines) — order, inventory, payment logic all in one file. Highly coupled.</blockquote><blockquote>- No unit tests. /test/ exists but contains only an empty index.test.js.</blockquote><blockquote>- package.json depends on 3 deprecated packages.</blockquote><p>Notice what just happened. One pass — reading only metadata files and directory structure, not a single line of business logic — and you already know three critical facts: core logic concentrated in order-service.js, zero tests (any change is flying blind), and deprecated dependencies are a latent security risk.</p><p>But more importantly, the Cartographer found three <em>entry points</em>. Without it, you’d spend half a day reading order-service.js details while completely missing the webhook handler and the cron job. Those are the exact landmines you&#39;d step on when adding BNPL — the webhook handles payment confirmations, and the cron job manages order timeouts. Miss either one, and your new payment method silently breaks the existing flow.</p><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ Map received. I need to understand the payment flow in order-service.js.</em></blockquote><h3>Step 2: The Translator Goes Deep</h3><blockquote><em>🤖 </em><strong><em>/decoder:</em></strong><em> “Decoding payment-related logic in order-service.js.”</em></blockquote><p>Analysis:</p><blockquote><strong><em>Payment Flow in Plain Language:</em></strong></blockquote><blockquote><em>When a user clicks Checkout:</em></blockquote><blockquote>1. Check inventory sufficiency</blockquote><blockquote><strong>2. Immediately deduct inventory</strong> (DB write)</blockquote><blockquote>3. Call third-party payment API</blockquote><blockquote>4. Wait for result</blockquote><blockquote>5. Success → create order; Failure → return error</blockquote><blockquote><em>🚨 </em><strong><em>Critical — Inventory and payment are not atomic.</em></strong><em> Step 2 deducts before Step 3 attempts payment. If payment fails, inventory is already gone but </em><strong><em>never restored.</em></strong><em> Every failed payment eats inventory.</em></blockquote><p>This is the crown jewel of Brownfield archaeology. This bug has likely been in production for years. Why hasn’t anyone noticed? Because the failure rate on the existing payment provider is probably low — maybe 2–3% of transactions fail. At that rate, the inventory leak is small enough to be attributed to “data discrepancies” or manually corrected during periodic reconciliation. Nobody connects the dots because nobody has a clear picture of the actual flow.</p><p>The Decoder found it in minutes — not by reading code line by line, but by tracing the data flow and asking “what happens when things go wrong?”</p><blockquote><em>⚠️ </em><strong><em>Warning — Cron compensation is incomplete.</em></strong><em> </em><em>order-timeout.js releases inventory for timed-out orders. But it only checks &quot;created but unpaid&quot; status. The bug above creates &quot;payment failed, no order record&quot; cases — ghost inventory the cron job never reclaims.</em></blockquote><blockquote><em>⚠️ </em><strong><em>Warning — Payment provider hardcoded into business logic.</em></strong><em> API endpoint, keys, callback handling all live in </em><em>order-service.js. No abstraction layer. Adding BNPL means another </em><em>if-else in an already complex function.</em></blockquote><blockquote><em>ℹ️ </em><strong><em>Info — Magic numbers in discount logic.</em></strong><em> </em><em>applyDiscount has three hardcoded values (0.85, 0.9, 0.95) with no comments.</em></blockquote><p>Without the Decoder, you’d add a BNPL if-else branch and ship it. Three months later: &quot;Customers with failed BNPL payments see items as sold out — but inventory exists.&quot; You inherited a bug you never knew about, and your new feature made it worse.</p><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> Critical findings. Before adding BNPL, let’s fix inventory deduction first. Suggest a refactoring plan.</em></blockquote><h3>Step 3: From Understanding to Refactoring</h3><p>This is what separates archaeology from “just reading code.” The Decoder doesn’t just explain — it proposes concrete next steps.</p><blockquote><em>🤖 </em><strong><em>/decoder:</em></strong></blockquote><blockquote><strong><em>Refactoring Proposal: Payment Module Decoupling</em></strong></blockquote><blockquote><strong><em>Goal:</em></strong><em> Extract payment logic from </em><em>order-service.js into an independent Payment Gateway abstraction.</em></blockquote><blockquote><strong><em>Specifics:</em></strong></blockquote><blockquote>1. Create PaymentGateway interface: charge(), refund(), verify()</blockquote><blockquote>2. Current provider becomes StripeGateway; BNPL becomes BNPLGateway</blockquote><blockquote>3. Move inventory deduction to <em>after</em> payment confirmation (fixing the non-atomic issue)</blockquote><blockquote>4. Add inventory release on payment failure (patching the existing bug)</blockquote><blockquote><strong><em>Risk:</em></strong><em> Refactoring affects payment callback flow. Add payment flow tests before refactoring.</em></blockquote><p>Archaeology complete. You now have:</p><ul><li>An architecture map (global understanding)</li><li>A logic analysis report (deep understanding)</li><li>A concrete refactoring plan (actionable next step)</li></ul><p>And here’s where the two toolkits connect. That refactoring plan feeds directly into the Ep3 Greenfield pipeline: Gatekeeper defines the refactoring requirements → Architect designs the PaymentGateway abstraction → Builder implements with TDD → Bad Cop verifies. Then the Cartographer re-scans to confirm the changes integrated correctly.</p><p>This isn’t a handwave. It’s the closed loop in action.</p><h3>Closed Loop: Brownfield → Greenfield</h3><p>Across this series, you now have 6 Agents in two methodologies:</p><p><strong>Brownfield (this article):</strong></p><ul><li>Codebase Cartographer: global recon, architecture maps</li><li>Logic Decoder: deep-dive into logic, discover issues, propose refactoring</li></ul><p><strong>Greenfield (Ep3):</strong></p><ul><li>Requirements Analyst (Gatekeeper): define requirements</li><li>System Architect (Designer): design architecture</li><li>Implementation Coder (Builder): build the code</li><li>Verification Audit (Bad Cop): verify quality</li></ul><p>The two toolkits solve different-direction problems, but they have a natural handoff:</p><p><strong>Understand</strong> (Cartographer + Decoder) → <strong>Recommend</strong> → <strong>Execute</strong> (Gatekeeper → Architect → Builder → Bad Cop) → <strong>Verify</strong> (Cartographer re-scans)</p><p>The full lifecycle: not just building from scratch, but inheriting, understanding, and improving. Not six isolated tools — one workflow covering the complete software lifecycle.</p><h3>Four Articles, One System</h3><p>Ep1: the middle layer is collapsing — move upstream or downstream. Ep2: master both ends and you become the orchestrator, directing domain-expert Agents through structured checkpoints. Ep3: those Agents become concrete — deployable skill files and a live Greenfield demonstration. This article: the other 80% of engineering reality — inheriting systems, understanding them before changing them, and connecting discovery back into the build pipeline.</p><p>Most AI coding tutorials stop at greenfield. Most engineers’ actual work is brownfield. The gap between those two realities is where bugs hide, where refactors go wrong, and where the real value of structured AI collaboration shows up.</p><p>Domain expertise lives in the Agent Skills. Engineering judgment stays with you.</p><h3>What’s Next</h3><p>Ep1 through Ep4: recognize the trend, build the framework, execute hands-on, face reality. In the final piece, we recap the full journey — what’s in your toolkit now, and where these ideas go beyond code.</p><p><em>Beyond Vibe Coding series:</em></p><p><em>#1 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-1-role-migration-software-engineers-pushed-to-the-extremes-by-ai-989c2fccb455"><em>Role Migration</em></a><em> → #2 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-2-methodology-the-ai-native-engineering-workflow-020546c5219e"><em>Methodology</em></a><em> → #3 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-3-hands-on-building-your-ai-native-toolkit-5c579b90b629"><em>Hands-On</em></a><em> → #4 Archaeology (this article) → Series Recap</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b66f6e533d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Vibe Coding #3: Hands-On — Building Your AI-Native Toolkit]]></title>
            <link>https://medium.com/@simonyu0518/beyond-vibe-coding-3-hands-on-building-your-ai-native-toolkit-5c579b90b629?source=rss-641e7c034ad2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c579b90b629</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[simon yu]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 15:32:16 GMT</pubDate>
            <atom:updated>2026-04-11T09:41:37.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBEUAkxGoRoWCGG6oliPPg.png" /></figure><h3>From Framework to Execution</h3><p>The first two articles covered the why and the what. This one answers the most practical question: <strong>how?</strong></p><p>Ep2 defined four Agent roles and Human-in-the-Loop checkpoints. If your reaction was “I get it, but what do I actually do when I open Cursor tomorrow?” — this article is for you.</p><p>By the end, you’ll have a deployable toolkit: four Agent configurations you can copy into any project, plus a live simulation showing them in action on a flash-sale inventory system.</p><p>The demo uses <strong>Cursor + Agent Skills</strong>, but the same architectural thinking applies to any tool supporting role-based configuration (Gemini Gems, Codex, Windsurf, etc.).</p><h3>Why You Can’t Cram Everything Into One Giant Prompt</h3><p>I’ve done this. The result: AI “knows” everything but does nothing well. It starts selectively complying — some rules followed perfectly, others silently ignored — and you have no idea which ones it dropped. I spent an afternoon debugging why my “architect” kept generating code instead of diagrams, only to realize the context window was so overloaded that half my instructions were effectively invisible.</p><p>When most people first try to make AI “play a role,” they write one massive system prompt stuffing every role’s behavioral rules, output formats, and constraints into it.</p><p>Context windows are finite. Overload them and AI’s attention dilutes. The solution borrows an old concept from software engineering: <strong>Progressive Disclosure.</strong> Don’t dump everything at once — load in layers.</p><p>In the Agent Skills specification, this breaks into three layers:</p><p><strong>Layer 1 — Metadata (~100 tokens)</strong>: At startup, load just thename and description of every Skill. AI only needs to know what capabilities exist and when to use them.</p><p><strong>Layer 2 — Instructions (recommended &lt; 5,000 tokens):</strong> When AI determines a Skill is relevant, <em>then</em> it loads that Skill’s full SKILL.md. Only task-relevant instructions occupy the context window.</p><p><strong>Layer 3 — Resources (on demand):</strong> Files in scripts/, references/, and assets/ directories are read only when actually needed during execution.</p><p>The file structure in practice:</p><pre>.cursor/skills/<br>├── requirements-analyst/<br>│   ├── SKILL.md              # Core instructions<br>│   └── references/<br>│       └── prd-template.md   # PRD template (loaded on demand)<br>├── system-architect/<br>│   ├── SKILL.md<br>│   └── references/<br>│       └── pes-template.md<br>├── implementation-coder/<br>│   ├── SKILL.md<br>│   └── scripts/<br>│       └── tdd-scaffold.sh   # TDD scaffold script<br>└── verification-audit/<br>    ├── SKILL.md<br>    └── references/<br>        └── owasp-checklist.md</pre><p>Each Skill is a <strong>directory</strong>, not a single file. The directory name must match the name field in SKILL.md. This follows the Agent Skills Open Standard (initiated by Anthropic, adopted by 26+ platforms including Cursor, Codex, Gemini CLI, and GitHub Copilot).</p><p>This mirrors how you’d manage a real team: you wouldn’t hand every person the combined SOPs for requirements, architecture, implementation, and QA on a single sheet. Each role gets a dedicated playbook, with appendices to consult when needed.</p><h3>What Does a SKILL.md Actually Look Like?</h3><p>Ep2 walked through what the four Agents <em>do</em> — Gatekeeper, Designer, Builder, Bad Cop. This section is about how you actually configure them as deployable skill files.</p><p>Every SKILL.md has two parts: YAML frontmatter + Markdown body. The frontmatter is minimal — two required fields: name (lowercase alphanumeric + hyphens, matching the directory name) and description (what it does, when to activate). All behavioral rules, workflows, and output formats go in the Markdown body.</p><p>Let’s look at the Requirements Analyst — the Gatekeeper — since it’s the most critical role in the pipeline. If this one fails, everything downstream builds on flawed assumptions.</p><p>Frontmatter:</p><pre>---<br>name: requirements-analyst<br>description: &gt;-<br>  Transform vague requirements into structured PRD with<br>  Gherkin acceptance criteria. Use when the user provides<br>  a new feature request, product requirement, or any<br>  ambiguous development task. NEVER jump to solutions<br>  before clarifying requirements.<br>metadata:<br>  author: your-team<br>  version: &quot;1.0&quot;<br>---</pre><p>This is what AI reads at startup — about 100 tokens. The description carries both “what it does” and “when to trigger” — AI’s primary activation signal.</p><p>Once activated, AI loads the Markdown body (recommended under 5,000 tokens):</p><pre># Requirements Analyst<br><br>## Behavior<br>You are The Gatekeeper. Your first action on ANY input<br>is a Clarification Loop — never jump to solutions.<br><br>## Workflow<br>1. Receive raw requirement<br>2. Identify ambiguities → generate clarifying questions<br>3. Wait for human answers (CHECKPOINT A)<br>4. Produce PRD with:<br>   - User stories (As a... I want... So that...)<br>   - Gherkin Acceptance Criteria<br>   - Edge cases explicitly listed<br>   - Compliance requirements flagged<br><br>For detailed PRD template, see<br>references/prd-template.md<br><br>## Hard Rules<br>- If the user says &quot;just do it&quot;, respond:<br>  &quot;I understand the urgency, but shipping ambiguity<br>   downstream costs 10x more to fix. Let me ask<br>   3 critical questions first.&quot;</pre><p>A few things worth noting:</p><p><strong>Two activation paths.</strong> Auto-trigger via semantic matching on description, or explicit /requirements-analyst invocation. The official recommendation for description is the “WHEN + WHEN NOT” pattern — specify both when to activate and when <em>not</em> to. Explicit invocation is for established workflows where you already know which role is next.</p><p><strong>That Hard Rule isn’t decoration.</strong> In practice, the most common thing you’ll do is try to skip clarification when you’re in a rush. “Just build it, I’ll fix the spec later.” This rule ensures AI pushes back — and in my experience, AI pushing back at this stage has saved me more time than any other single intervention.</p><p>The PRD template lives in references/, not inside SKILL.md. Layer 3 of Progressive Disclosure — loaded only when AI actually needs to produce a PRD, keeping the context window clean at all other times.</p><p>The other three Agents — Designer, Builder, Bad Cop — follow the exact same structure. Different behavioral rules, same file format. The Designer forces architecture decision rationale (creating automatic ADRs). The Builder enforces TDD-first and blocks unauthorized scope expansion. The Bad Cop focuses exclusively on unhappy paths and OWASP Top 10.</p><p>Full SKILL.md files for all four Agents are on GitHub: <a href="https://github.com/simonyu0518/beyond-vibe-coding">beyond-vibe-coding</a></p><h3>Live Simulation: Flash-Sale Inventory System</h3><p>Config files covered. Now let’s see the pipeline in action end-to-end.</p><p>You receive a requirement: “Build an inventory system for flash-sale events.”</p><p>This is one of those requirements that looks simple and isn’t. “Just deduct inventory, right?” Sure — until 50,000 people hit the buy button at the same millisecond and your database locks bring everything to a halt. Drop this straight into AI and you’ll get something that runs in development and collapses in production.</p><p>Four Agents, four checkpoints. Let’s go.</p><p><strong>Step 1: The Gatekeeper Intercepts</strong></p><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> “I need an inventory system for flash-sale events.”</em></blockquote><blockquote><em>🤖 </em><strong><em>/requirements:</em></strong><em> “Before I spec this out, a few critical questions:</em></blockquote><blockquote><em>1. Expected peak QPS? Hundreds or tens of thousands?</em></blockquote><blockquote><em>2. Oversell policy: absolute zero tolerance, or allow minor overselling with manual resolution?</em></blockquote><blockquote><em>3. Inventory release: how long before unpaid orders release stock?</em></blockquote><blockquote><em>4. Bot/scraper protection needed?</em></blockquote><blockquote><em>5. Single SKU or multiple SKUs simultaneously?”</em></blockquote><p>This is where the Gatekeeper earns its keep. Without it, AI assumes a few hundred QPS, zero tolerance, single SKU — reasonable-sounding defaults that could all be wrong. And you wouldn’t find out for three days, after the architecture is already set and thousands of lines of code are built on those assumptions.</p><p>After you answer, the Gatekeeper produces a PRD:</p><ul><li>Peak QPS: 50,000</li><li>Oversell: absolute zero tolerance (undersell before oversell)</li><li>Unpaid timeout: 15 minutes</li><li>Bot protection: rate limiting required</li><li>Multiple simultaneous SKUs</li></ul><blockquote><em>👤 Human: ✅ Spec approved. /architect, design the architecture.</em></blockquote><p><strong>Step 2: The Designer Architects</strong></p><p>The Designer’s first move is a rejection: <strong>no RDBMS for direct inventory deduction.</strong></p><p>This is exactly the kind of decision that justifies having a dedicated architecture agent. At 50,000 QPS, database row-level locks become a catastrophic bottleneck. Even optimistic locking would drown the database in retries. A junior engineer — or an unbriefed AI — might default to “just use a database transaction” because that’s what every tutorial teaches. The Designer knows better, because its SKILL.md encodes the constraint: “at &gt;10K QPS, evaluate in-memory data stores before RDBMS.”</p><p>The design:</p><ul><li><strong>Inventory deduction</strong>: Redis + Lua atomic script (check + deduct in one operation, no race conditions)</li><li><strong>Order confirmation</strong>: Kafka async processing (post-deduction events don’t block the main flow)</li><li><strong>Inventory release</strong>: Delayed job — checks payment after 15 minutes; Lua script restores stock if unpaid</li><li><strong>Bot protection</strong>: API gateway rate limiting + token bucket</li></ul><p>Architecture Decision Record:</p><blockquote><em>“Why Redis + Lua over direct DB deduction? At 50K QPS, MySQL row locks push P99 latency past 2 seconds — unacceptable UX. Redis single-threaded + Lua atomic ops complete in sub-millisecond.”</em></blockquote><p>This ADR is the reason we require the Designer to document rationale. Three months from now, a new team member asks “why not use the database?” Instead of relying on someone’s memory — or worse, nobody’s memory — you open this document.</p><blockquote><em>👤 Human: ✅ Architecture approved. /coder, execute.</em></blockquote><p><strong>Step 3: The Builder Executes via TDD</strong></p><p>The Builder doesn’t jump to implementation. It writes the test first.</p><p>Test 1: “100 concurrent requests competing for 50 remaining units. Exactly 50 succeed, 50 fail, inventory hits zero.”</p><p>This test fails initially (Red) — there’s no implementation yet. Then the Builder writes the Redis + Lua implementation and the test passes (Green).</p><p>Test 2: “Order unpaid after 15 minutes — inventory auto-released.”</p><p>Red → Green.</p><p>This might seem slow, but the payoff is clarity. Every step has a precise definition of correct. When the Bad Cop runs its verification next, it has concrete tests to build on — not a pile of code you’d need to manually trace to understand.</p><blockquote><em>👤 Human: ✅ Code review passed. /auditor, verify.</em></blockquote><p><strong>Step 4: The Bad Cop Verifies</strong></p><p>Not here to confirm things work. Here to find holes.</p><blockquote><em>🚨 </em><strong><em>Critical: Redis Single Point of Failure</em></strong></blockquote><blockquote><em>Single Redis instance. If it goes down, the entire flash-sale system dies. Add Redis Sentinel or Cluster for failover.</em></blockquote><blockquote><em>⚠️ </em><strong><em>Warning: Missing rate limiting test coverage</em></strong></blockquote><blockquote><em>PES requires rate limiting. No test verifies “100 requests from same user in 1 second — requests beyond 10th are blocked.”</em></blockquote><blockquote><em>ℹ️ </em><strong><em>Info: Lua script lacks comments</em></strong></blockquote><blockquote><em>Low readability. Add inline comments explaining each step.</em></blockquote><p>The Redis SPOF finding is the kind of thing that separates this pipeline from Vibe Coding. AI wrote the code, AI wrote the tests, AI passed the tests — and a different AI agent with a different mandate immediately spotted a production-critical gap. This is why the Bad Cop exists as a <em>separate</em> agent: same model, different instructions, different incentives.</p><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ Redis SPOF: must-fix. Rate limiting tests: must-fix. Lua comments: nice-to-have, next iteration. /coder, patch and merge.</em></blockquote><h3>What You Actually Get</h3><p>From “I need a flash-sale inventory system” through four Agents and four human checkpoints, the output isn’t just runnable code. It’s:</p><ul><li>A complete PRD (requirements no longer vague)</li><li>A PES with decision records (architecture no longer a black box)</li><li>TDD-verified code (quality backed by evidence)</li><li>A verification report (risks identified and triaged)</li></ul><p>Vibe Coding gives you something that works. This gives you something that’s production-ready — and that you can hand off to another engineer with full context.</p><h3>Three Articles, One Trajectory</h3><p>Ep1: the middle layer is collapsing — move upstream or downstream. Ep2: master both ends and you become the orchestrator, directing domain-expert Agents through structured checkpoints. This article: those Agents are now concrete — deployable skill files, a quality-controlled pipeline, and a live demonstration of how the pieces fit together.</p><p>An engineer’s value used to be “I can write code.” It’s shifting to “I can define the right problem, design the right process, and verify the result.” The strongest engineer isn’t the fastest typist — it’s the person who encodes the best domain expertise into their Agent Skills.</p><p>Domain expertise lives in the Agent Skills. Engineering judgment stays with you.</p><h3>What’s Next</h3><p>Everything so far assumes greenfield — building from scratch. But reality is usually messier. Most engineers’ day-to-day is inheriting a codebase they’ve never seen before.</p><p>Tens of thousands of undocumented lines, tangled dependencies, business logic nobody remembers the rationale for. If you’ve ever git cloned a repo, opened it, and thought &quot;where do I even start?&quot; — the next article is for you.</p><p>Next up: using AI for reverse engineering — quickly making sense of spaghetti code, then safely modifying it.</p><p><em>Beyond Vibe Coding series:</em></p><p><a href="https://medium.com/p/989c2fccb455"><em>#1 Role Migration</em></a><em> → </em><a href="https://medium.com/p/020546c5219e"><em>#2 Methodology</em></a><em> → #3 Hands-On (this article) → #4 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d"><em>Archaeology</em></a><em> → Series Recap</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c579b90b629" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Vibe Coding #2: Methodology — The AI-Native Engineering Workflow]]></title>
            <link>https://medium.com/@simonyu0518/beyond-vibe-coding-2-methodology-the-ai-native-engineering-workflow-020546c5219e?source=rss-641e7c034ad2------2</link>
            <guid isPermaLink="false">https://medium.com/p/020546c5219e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[simon yu]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 14:35:08 GMT</pubDate>
            <atom:updated>2026-04-11T09:42:07.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBEUAkxGoRoWCGG6oliPPg.png" /></figure><h3>Knowing Where to Go and Knowing How to Get There Are Two Different Things</h3><p><a href="https://medium.com/p/989c2fccb455">Last article,</a> we covered the “why” — the middle layer of software engineering is collapsing, and engineers need to move upstream or downstream. But direction is one thing. Execution is another.</p><p>What do you actually do differently when you sit down to work tomorrow morning? How do you move from “I should use AI better” to a concrete workflow that produces production-grade software?</p><p>That’s what this article is about. The core idea is one thing: <strong>you need a system that gives each AI a clear role in the process.</strong> Not chatting with AI — orchestrating it like a team of domain experts, each with a defined job.</p><h3>From Tool to Teammate</h3><p>Most people still use AI at the tool level. Need something? Fire off a question. Get an answer? Move on.</p><p>But consider this: you give the same task to a new hire and to a domain expert. The new hire gives you something that works. The domain expert asks ten questions before writing a single line — not because someone told them to, but because they’ve seen enough systems fail to know where the risks hide.</p><p>Agent Skills encode exactly this kind of expertise into AI. When you write a skill file that says “before accepting any payment requirement, ask about currency scope, transaction limits, settlement timing, and PCI-DSS compliance” — you’re packaging the judgment of a senior payments engineer into a reusable configuration. The AI stops being a generalist that answers whatever you ask, and starts behaving like a specialist who knows what to ask <em>you</em>.</p><p>This isn’t unique to any single product. Cursor and Claude share the same Agent Skills open standard. ChatGPT Codex supports multi-agent role configuration. Gemini Gems lets you create custom roles with reference materials and tailored prompts. <strong>The implementations differ, but the direction is the same: turning AI from a generic tool into a domain-aware collaborator.</strong> “Tool to teammate” is an industry-wide convergence, not one vendor’s experiment.</p><p>Apply this to software engineering and you get the core idea of this article: <strong>take the traditional roles — requirements analyst, system architect, developer, QA — and turn each into a dedicated AI Agent.</strong></p><h3>Four Agent Roles: Walking Through a Real Scenario</h3><p>Abstract frameworks are easy to nod along with and hard to use. So let’s walk through a concrete scenario instead.</p><p>You receive a requirement: “Build cross-border payment authorization.”</p><p>If you drop this straight into AI, it starts writing code immediately. In an AI-Native workflow, this requirement passes through four Agents first:</p><p><strong>Agent 1: Requirement Agent (The Gatekeeper)</strong></p><p>You say: “I need cross-border payment authorization.”</p><p>The Gatekeeper doesn’t start coding. It intercepts:</p><blockquote>“Hold on. Authorization for whom? What’s the currency scope? Single-transaction limit? PCI-DSS compliance required? Authorization validity window? Revocation mechanism?”</blockquote><p>After you answer, the Gatekeeper produces a complete PRD with Gherkin Acceptance Criteria — not rough notes, but a spec the next Agent can pick up immediately.</p><p><strong>Agent 2: Architect Agent (The Designer)</strong></p><p>The Designer receives the PRD and designs architecture, not code:</p><ul><li>Authentication: OAuth 2.0 + token-based authorization</li><li>Multi-currency: exchange rate locked at authorization time, re-fetched at settlement</li><li>Compliance: PCI-DSS encryption requirements, token storage standards</li></ul><p>Deliverable: a Product Engineering Spec (PES) plus a sequence diagram. This defines what the system should look like — not how the code should read.</p><p><strong>Agent 3: Coding Agent (The Builder)</strong></p><p>The Builder doesn’t get a vague “build me a payment system.” It receives a complete PES — schema, API contract, edge cases, all specified.</p><p>It works TDD-first: write the test, then write the implementation. Not because TDD is fashionable, but because when AI writes code, tests are the guardrails that keep it on track.</p><p>Deliverable: tested code. Not code that runs — code with tests proving it’s correct.</p><p><strong>Agent 4: Verification Agent (The Bad Cop)</strong></p><p>Why a fourth Agent when the first three already have tests?</p><p>Because the Builder’s tests reflect its own interpretation of the spec. They cover the happy path — “does it work when everything goes right?”</p><p>Real problems live on the unhappy path: unexpected user behavior, network failures, deliberate bypass attempts.</p><p>The Bad Cop exists to break things on purpose:</p><ul><li>Edge case coverage: concurrent requests, timeouts, duplicate submissions</li><li>Security scan: SQL injection, XSS, unvalidated input</li><li>Spec compliance: if the spec says $5,000 limit — does the code actually enforce it?</li></ul><p>Deliverable: a verification report plus hardened test cases. Not here to confirm things work — here to confirm things won’t break.</p><p><strong>See the difference?</strong></p><p>Same requirement. Vibe Coding generates code from a single sentence. The AI-Native approach routes the requirement through four layers, each with defined inputs, outputs, and quality gates.</p><p>But who controls the flow between Agents? Who decides “this spec passes” or “this architecture needs a redo”?</p><p>You do.</p><h3>Human-in-the-Loop: Editor-in-Chief, Not Spectator</h3><p>Many people imagine AI collaboration as: I say one thing, AI handles everything, I glance at the result.</p><p>For a fresh personal project, that might work. For production software, it will blow up.</p><p>Why? Because your role isn’t spectator — it’s <strong>editor-in-chief.</strong></p><p>An editor-in-chief doesn’t write the articles. They set the direction, structure, and quality bar for every piece, then hand the writing to specialists. They own problem definition and final sign-off. Everything in between is delegated. In an AI-Native workflow, you are that editor-in-chief, and your writers are AI Agents equipped with domain expertise.</p><p>AI has a defining trait: it always produces a plausible-looking answer, even when its assumptions are wrong. It won’t say “I’m not sure.” It fabricates an assumption and keeps building. If you don’t intervene at the right moments, flawed assumptions get baked into architecture, code, and tests — and by the time you notice, everything downstream needs to be redone.</p><p>Human-in-the-Loop isn’t “review when convenient.” It’s a structural requirement. Four checkpoints:</p><p><strong>Checkpoint A: Spec Review</strong></p><p>After the Gatekeeper produces the PRD — are requirements complete? Edge cases considered? Compliance requirements correct? No approval, no code.</p><p><strong>Checkpoint B: Architecture Review</strong></p><p>After the Designer produces the PES — are architecture decisions sound? Does token storage meet security standards? Does multi-currency handling account for timezones?</p><p><strong>Checkpoint C: Test Definition</strong></p><p>You define what success looks like. AI writes and runs tests, but <em>what to test</em> comes from you. AI doesn’t know how your users will misuse your system. You do.</p><p><strong>Checkpoint D: Verification Review</strong></p><p>After the Bad Cop’s report — which issues are must-fix, which are acceptable risk? Not every flag is critical, but you need the judgment to tell them apart.</p><p>The workflow in practice:</p><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> “I need cross-border payment authorization.”</em></blockquote><blockquote><em>🤖 </em><strong><em>/requirements:</em></strong><em> “Hold on. Authorization for whom? Currency scope? Transaction limit? PCI-DSS?”</em></blockquote><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> (answers all questions)</em></blockquote><blockquote><em>🤖 </em><strong><em>/requirements:</em></strong><em> (produces PRD + Gherkin AC)</em></blockquote><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ Spec approved. /architect, design the architecture.</em></blockquote><blockquote><em>🤖 </em><strong><em>/architect:</em></strong><em> (produces PES + sequence diagram)</em></blockquote><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ Architecture approved. /coder, execute.</em></blockquote><blockquote><em>🤖 </em><strong><em>/coder:</em></strong><em> (TDD-first, produces tested code)</em></blockquote><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ Code review passed. /auditor, verify.</em></blockquote><blockquote><em>🤖 </em><strong><em>/auditor:</em></strong><em> (scans security, edge cases, spec compliance; produces report)</em></blockquote><blockquote><em>👤 </em><strong><em>Human:</em></strong><em> ✅ 2 must-fix, 1 accepted risk. /coder, patch and merge.</em></blockquote><p>The human wrote zero lines of code. But every critical decision was made by a human.</p><h3>What Happens Without HITL?</h3><p>A real example from my own work.</p><p>I once let AI go from requirement to code with zero checkpoints. The ask: a multi-tenant permission management system.</p><p>The AI picked an architecture that looked reasonable — but was completely wrong for the use case. It assumed every tenant shared an identical permission model. Ours didn’t. Without a spec review checkpoint, that wrong assumption got woven into thousands of lines of code.</p><p>Three days later I caught it during testing. The entire architecture had to be scrapped. Three days of work, gone.</p><p>If I’d reviewed the spec when AI first produced it, catching that error would have taken ten minutes.</p><p>The lesson: <strong>AI hallucination isn’t the scary part. The scary part is when a hallucination gets baked into an architecture decision.</strong> Once the architecture is set, everything downstream builds on it. By the time you realize the foundation is wrong, you’re rewriting everything.</p><p>Checkpoint A exists to prevent exactly this.</p><h3>Reshaping Team Composition</h3><p>If you lead a team, you’re probably already doing the math.</p><p>Here’s the provocative version of that math: <strong>can one person take on a million-user project?</strong></p><p>In a traditional setup, building a flash-sale system requires at least six people: a product manager, an analyst, an architect, two developers, and a QA engineer. Coordination alone eats a huge portion of the timeline.</p><p>But if you can upgrade AI from a tool to a teammate — using the four Agents and HITL checkpoints we just walked through — that lineup becomes: <strong>1 engineer + 4 AI Agents.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmZpGme0vAAzpim4yPHJ0g.png" /></figure><p>This doesn’t mean every team downsizes to one tomorrow. But the trend is clear:</p><p><strong>Same project scope, fewer people needed — and each person needs broader capabilities.</strong></p><p>You used to need six specialists in defined roles. Now you need someone who understands enough about requirements, architecture, and quality to direct AI and judge its output. The concept of T-shaped engineers evolving into broader, pi-shaped talent keeps surfacing across the industry — people who combine depth in one area with working knowledge across the full stack of concerns. Not deep expertise in everything, but enough breadth to know which expert to call and whether the output is good enough to ship.</p><p>Ep1’s “move upstream + move downstream” now has a clearer shape: <strong>you’re the orchestrator — the person who decides which expert to call, when to step in, and whether the output is good enough to ship.</strong> Domain expertise lives in the Agent Skills. Engineering judgment stays with you.</p><h3>What’s Next</h3><p>Framework established. But how does it actually land? How do you turn these Agent roles into reusable, deployable skill configurations?</p><p>Next up: building the AI-Native toolkit — complete with Agent Skills configs and a live simulation of a flash-sale inventory system.</p><p>The demo uses <strong>Cursor + Agent Skills</strong>, but the architectural thinking applies to any tool supporting role-based configuration.</p><p><em>Beyond Vibe Coding series:</em></p><p><a href="https://medium.com/p/989c2fccb455"><em>#1 Role Migration</em></a><em> → #2 Methodology (this article) → </em><a href="https://medium.com/p/5c579b90b629"><em>#3 Hands-On</em></a><em> → #4 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d"><em>Archaeology</em></a><em> → Series Recap</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=020546c5219e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Vibe Coding #1: Role Migration — Software Engineers Pushed to the Extremes by AI]]></title>
            <link>https://medium.com/@simonyu0518/beyond-vibe-coding-1-role-migration-software-engineers-pushed-to-the-extremes-by-ai-989c2fccb455?source=rss-641e7c034ad2------2</link>
            <guid isPermaLink="false">https://medium.com/p/989c2fccb455</guid>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[simon yu]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 14:51:16 GMT</pubDate>
            <atom:updated>2026-04-11T09:42:35.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBEUAkxGoRoWCGG6oliPPg.png" /></figure><h3>‘Our most senior engineers have started spending most of their time writing PRDs.’</h3><p>You open Claude. You describe what you need. Ten minutes later, you have working code.</p><p>Now what?</p><p>This is the question almost nobody is answering. Over the past year, the industry conversation around AI and software engineering has coalesced around a single narrative: engineers need to evolve from Builders to Architects. You hear it on tech podcasts, in Hacker News threads, in talks by AI company employees. The message is clear — the world is changing.</p><p>But then the conversation ends. You’re left with a vague sense of urgency and zero concrete next steps. What do you actually do differently when you sit down to work tomorrow morning?</p><p>That gap between “the world is changing” and “here’s how to adapt” is exactly what this series is about.</p><p>The urgency hit me during a recent conversation with an engineering leader who manages a team of twenty. Midway through, he said something I haven’t been able to shake:</p><blockquote>‘Our most senior engineers have started spending most of their time writing PRDs.’</blockquote><p>He wasn’t worried. He was puzzled. Nobody asked these engineers to write PRDs. They arrived at it themselves: <strong>when AI can produce working code in minutes, writing code is no longer the bottleneck. The real bottleneck is what comes <em>before</em> the code — defining exactly what to build.</strong></p><p>This isn’t an isolated case. I keep seeing the same pattern across different teams and companies: <strong>the strongest engineers aren’t using AI to write more code. They’re shifting their weight upstream.</strong></p><p>This series — four articles from concepts to implementation — is built to answer the “now what.” Why the shift is happening, what the new workflow looks like, how to set it up concretely, and how to deal with the messy reality of legacy systems you’ve already inherited.</p><p>Let’s start with the why.</p><h3>Vibe Coding Is Great — But It Has a Ceiling</h3><p>Let me be clear: Vibe Coding is one of the most important developer experience shifts in years. “Talk to AI, ship an app” — that was science fiction not long ago. Now it’s routine. It lets non-engineers build their own tools and compresses side-project timelines from weeks to hours.</p><p><strong>But it has a ceiling.</strong></p><p>Vibe Coding shines for personal projects, MVPs, single-file scripts, quick prototypes. The common thread: <strong>small scope, low complexity, manageable failure cost.</strong></p><p>When the stakes rise, Vibe Coding starts to crack:</p><p>A flash-sale system handling tens of thousands of concurrent purchases — just the question of “how to deduct inventory” involves atomic operations, distributed locks, and message queue compensation. You can’t solve that by chatting.</p><p>A cross-border e-commerce platform that must comply with PCI-DSS, GDPR, and local data protection laws simultaneously — each with different requirements for how data is stored, transmitted, and deleted, sometimes contradicting each other.</p><p>A microservices architecture with a dozen interdependent services where a single deployment requires version compatibility planning, data migration, and rollback strategies — that’s an architecture decision, not a coding task.</p><p><strong>Vibe Coding solves “how to write it.” But in production software engineering, the hard part has never been “how to write it” — it’s “what to write” and “how to prove it’s correct.”</strong></p><p>This series is about what comes after Vibe Coding.</p><p>One note upfront: this is about <strong>rethinking software engineering methodology</strong>, not a tutorial for any particular tool. Whether you use Claude, Gemini, ChatGPT, Cursor, or Windsurf — the underlying thinking is the same: <strong>treat AI not as a tool but as a role-aware teammate, and use Human-in-the-Loop checkpoints to ensure quality.</strong> We’ll demo with Cursor + Agent Skills in Ep3, but the concepts are portable.</p><h3>How We Got Here: Three Eras of Software Engineering</h3><p><strong>Era 1: Structured / Waterfall</strong></p><p>If you’ve worked at a large enterprise or traditional software company, you know this model. Product owners define requirements. Analysts break them into specifications. Architects design the system. Developers write the code. QA verifies it.</p><p><strong>Era 2: Agile / SaaS</strong></p><p>Then Agile arrived, and speed became the top priority. To move faster, role boundaries blurred. Product managers absorbed the analyst function — User Stories replaced formal requirement specs. Full-stack engineers merged architecture and implementation into a single role.</p><p>You know the feeling. Someone in an interview asks “Are you frontend or backend?” and you answer “Both” — with a quiet sense of pride. This era shaped the professional identity of most working engineers: “I’m full-stack. I can do it all.” Frontend, backend, databases, DevOps, CI/CD — you could own an entire feature from database schema to deploy button. It <em>looked</em> like mastery of everything, but the core competitive advantage was really speed and breadth of code output.</p><p>That worked fine. Until about 2023.</p><p><strong>Era 3: AI-Native — Now</strong></p><p>When AI can produce working code in minutes, the market value of “I can write code” drops fast. A feature that takes a junior engineer three days? AI delivers something comparable in ten minutes. An API structure a mid-level engineer spends a day on? AI hands it back seconds after you describe it.</p><p>The middle of the production line — the part where humans translate requirements into code — is exactly where AI is strongest. And that’s where most engineers have been living for the past decade.</p><h3>The Collapse of the Middle Layer</h3><p>Here’s a sharper way to think about it.</p><p>In every era of software engineering, there’s been a “translation” step: someone takes what the business needs and turns it into running software. In the Waterfall era, that translation was spread across analysts, architects, and developers. In the Agile era, full-stack engineers consolidated it. You became the person who could take a Jira ticket and turn it into a deployed feature — and that felt like a superpower.</p><p>AI is now absorbing that translation layer wholesale.</p><p>Give it a clear description, and it produces working CRUD endpoints, API scaffolding, even complete modules with tests. For the task of <em>turning specs into code</em>, AI already matches a mid-level engineer in many scenarios — and it’s faster.</p><p><strong>If your core competitive advantage is “I can write working code,” that advantage is compressing.</strong> Not overnight, but the trajectory is clear.</p><p>This isn’t another “engineers will be replaced” headline. It’s a more precise observation: <strong>engineers whose primary value is spec-to-code translation are losing leverage — quickly.</strong></p><p>What does that look like concretely? Say you’re asked to build a cross-border payment reconciliation system.</p><p>The Vibe Coding approach: paste the requirement into AI, generate code, ship it if it runs.</p><p>A senior engineer’s approach: ask ten questions first. What’s the acceptable reconciliation latency — real-time, or is T+1 settlement good enough? When is the exchange rate locked for cross-currency transactions — at order time, capture time, or settlement time? What happens when a transaction succeeds at the payment gateway but the local database write fails — do you have idempotency keys to safely retry, or are you risking duplicate charges? Does the data retention policy meet regulatory requirements across every jurisdiction you operate in?</p><p>AI won’t ask these questions unprompted. It gives you a “working” answer — but the distance between “working” and “production-ready” isn’t code. It’s engineering judgment. It’s the kind of knowledge you build from debugging a payments bug at 3 AM, not from reading documentation.</p><p>This is the part of the conversation where people go quiet. Because the next thought is uncomfortable.</p><p><strong>The real anxiety isn’t “AI will replace me.” It’s the quieter realization: “A large part of what I’ve spent years getting good at — turning specs into code — is something AI can already do.”</strong></p><p>If that resonates, you’re not alone. And to be direct: that instinct is correct.</p><p>But there’s good news. Your experience contains something else — something AI genuinely can’t do — and most engineers haven’t fully recognized it yet.</p><h3>Where Do You Go From Here?</h3><p>Think of software development as a pipeline: define the problem → produce the code → verify the result.</p><p>AI is eating the middle. Human value migrates to the ends.</p><p><strong>Direction 1: Move upstream — become the person who defines the problem.</strong></p><p>Before AI writes a single line, someone has to specify <em>what</em> to build. And “build me a payment system” isn’t a specification. A specification is:</p><p>What’s the transaction data schema? Which fields are required? Are currencies represented in ISO 4217 or custom codes?</p><p>When a transaction fails — auto-retry, hold for manual review, or immediate refund? Each path implies a different architecture.</p><p>What’s the per-transaction limit? How are timezone differences handled for cross-border settlements?</p><p>These decisions shape the entire system. AI won’t surface them — it’ll make assumptions and build on top of them. Wrong assumptions, wrong architecture. And you won’t find out until you’re three sprints deep and someone asks why the reconciliation numbers don’t match.</p><p>Moving upstream means your role shifts from “the person who writes code” to “the person who defines what the code should do.” Requirements analysis, system design, product definition — these are AI’s blind spots and your opportunity.</p><p><strong>Direction 2: Move downstream — become the person who verifies the result.</strong></p><p>AI produces fast, but not flawlessly. It writes code that compiles, runs, and passes basic tests — while missing edge cases, ignoring race conditions, and leaving security vulnerabilities open.</p><p>These gaps don’t show up in development. They show up in production — usually surfaced by your users or your security team. If you’ve ever inherited a codebase with zero documentation and had to figure out what it actually does before you could safely change anything, you already know what this skill feels like. Verification is the same muscle.</p><p>Moving downstream means your role shifts from “the person who writes code” to “the person who ensures the code is correct.” Defining edge cases AI can’t anticipate. Writing targeted tests. Catching things in code review where AI’s output runs fine but shouldn’t be built that way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Tc2LFGgMrhNtOemDOGPtFg.png" /></figure><p><strong>Two directions. One common thread.</strong></p><p>Whichever way you lean, the shift is the same: <strong>your job is no longer writing code. It’s directing AI to write the <em>right</em> code.</strong></p><p>And directing requires a methodology. You can’t direct AI by casually chatting with it, any more than you can run a cross-functional team by winging it. You need clear role definitions, structured workflows, and precise quality checkpoints.</p><p>That’s exactly what the next article is about.</p><h3>What’s Next</h3><p>The direction is clear. But how do “moving upstream” and “moving downstream” actually work in practice?</p><p>Next up: designing the AI-Native engineering pipeline — how to transform AI from a Tool into a Teammate, and why Human-in-the-Loop isn’t optional. It’s a prerequisite.</p><p><em>Beyond Vibe Coding series:</em></p><p><em>#1 Role Migration (this article) → </em><a href="https://medium.com/p/020546c5219e"><em>#2 Methodology</em></a><em> → </em><a href="https://medium.com/p/5c579b90b629"><em>#3 Hands-On</em></a><em> → #4 </em><a href="https://medium.com/@simonyu0518/beyond-vibe-coding-4-archaeology-reverse-engineering-legacy-code-with-ai-44b66f6e533d"><em>Archaeology</em></a><em> → Series Recap</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=989c2fccb455" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>