Find And Feed.
Menu
HomeNewsAbout Us
VI

Vibe Coding

Vibe Coding in Production (Part 1): Turning an Idea into a Solid AI Blueprint

How I moved beyond throwaway AI demos to architect Find And Feed—covering vertical slicing, choosing a 5-dependency Go + Astro + Postgres stack, and locking Step 0 contracts.

Vibe Coding Part 1 Idea to Blueprint isometric stack illustration with Go, Astro, and Postgres blocks

Disciplined vibe coding starts before your first prompt—with one vertical slice, a low-hallucination tech stack, and a written architectural blueprint. Prompting an AI to "build a full web app" produces impressive demos in 15 min, yet those same codebases collapse the moment real authentication, migrations, and cross-locale routing enter the picture. Over 29 days building Find And Feed, I learned that treating AI like a structured engineering team instead of a slot machine is what turns rough ideas into maintainable production software.

Four-stage Vibe Coding Part 1 flow: Vertical Slice, Minimal Stack with Go Astro Postgres, Schema First, and Verified App

1. What Vibe Coding Really Means When Building Production Software

True vibe coding at production scale is not typing vague wishes and blindly hitting Accept—it is shifting your role from syntax typist to Product Architect and Technical Reviewer.

In impulsive demo-style vibe coding, you describe an entire app in one chat, let the model install dozens of heavy packages, and hope nothing breaks when you ask for the next feature. That approach works for throwaway prototypes, because nobody maintains a weekend toy after Monday morning.

In disciplined vibe coding (agentic engineering), you still describe behavior in natural language rather than hand-writing every boilerplate loop, but you control the boundaries:

  • You define the architecture and invariants before code exists.
  • The AI drafts plans, implementations, and test suites inside strict lanes.
  • Automated tests, not vibes, decide whether a feature is finished.
Dimension Impulsive Prompt Coding Disciplined Vibe Coding
Starting trigger Open chat and ask for the whole app Define one vertical slice and data schema
Dependency posture Heavy frameworks with hidden magic Minimal standard-library-first stack
Context persistence Re-explain rules in every new chat Living repo memory (AGENTS.md) + plans
Definition of done "Looks good in the screenshot" Failing test first, full suite passes
Multi-week survivability High rewrite risk after 10–15 features Scales across 384 commits without drift

2. Turning an Idea into Vertical Slices

An idea fails in AI-assisted development most often because it is handed to the model horizontally ("build the whole database, then all APIs, then the whole frontend") or monolithically ("build an entire bilingual CMS and affiliate platform").

Instead, break every idea into vertical slices—thin end-to-end features that touch database migration, API handler, frontend UI, and automated test in one self-contained unit.

Before touching a single prompt for a new feature, I spend 15 min answering four questions in plain text:

  1. Who is the actor and what changes? (For example: an anonymous reader viewing an article vs. an authenticated admin updating a draft.)
  2. What is the minimum database state required? (Exact tables, columns, and constraints—nothing speculative.)
  3. What is the failure contract? (Validation rules, HTTP status codes, and edge cases.)
  4. How will we prove it works automatically? (Exact unit test and browser end-to-end assertions.)

When you hand an AI agent a single well-bounded slice instead of a 10-page wish list, context windows stay sharp and regressions drop dramatically.

3. Choosing an AI-Friendly Tech Stack

Not every framework works equally well with AI coding agents. High-magic frameworks filled with implicit conventions, decorator metadata, and rapidly shifting major versions cause models to hallucinate outdated patterns from training data.

When choosing a stack for Find And Feed, I intentionally optimized for clarity, explicitness, and low dependency churn:

  • Go 1.26.3 Backend (net/http): Go's standard library http.ServeMux supports HTTP method and path-parameter patterns (GET /api/public/articles/{locale}/{slug}) natively—no third-party router framework required. Across 26 internal packages, the Go backend uses strictly 5 direct dependencies (pgx/v5, goose/v3, goldmark, golang.org/x/crypto, and sentry-go). Fewer libraries mean the model almost never invents nonexistent helper methods.
  • Astro 7.4.2 SSR + React 19.3.1 Islands: Public content pages render fast HTML on the server with zero unnecessary client JavaScript, while rich interactive admin editors and public tools (like our interactive mini-apps and chat widget) hydrate cleanly as isolated React islands paired with Tailwind CSS 4.3.3.
  • PostgreSQL 18 + Raw SQL (pgx + goose): Writing explicit parameterized SQL queries instead of fighting an ORM means both humans and AI agents see the exact indexes, joins, and locks executed against Postgres.
Tech Layer Choice for Find And Feed Why AI Agents Excel With It
Backend HTTP Go 1.26.3 (http.ServeMux) Explicit routing, fast compiler feedback in under 5 s
Backend Deps Strictly 5 direct modules Near-zero API hallucination across sessions
Database PostgreSQL 18 + pgx + goose Plain SQL migrations, deterministic schema state
Frontend SSR Astro 7.4.2 + React 19 islands Clear separation between static/SSR views and interactive islands
Image Pipeline Local sharp in Astro Re-encodes uploads cleanly into WebP/AVIF without external cloud glue

4. Step 0 Before Writing Code: Schema, Boundaries, and Definition of Done

The single highest-leverage habit in vibe coding happens at Step 0—before your first feature commit.

If you skip Step 0, the model invents inconsistent response shapes on every endpoint: one route returns plain text errors, the next wraps data in {data: ...}, and the frontend spends half its code guessing formats.

Lock three foundations up front:

  1. The Error & Decoding Contract: Every API error in Find And Feed returns { "error": "..." } with predictable HTTP codes (400, 401, 403, 404, 409, 429), and httpx.Decode rejects unknown JSON fields so silent typos fail immediately during tests.
  2. The Migration Spine: Put embedded SQL migrations (00001_init.sql onward) inside the binary so startup automatically guarantees schema parity across dev, test, and production.
  3. A Reproducible Test Harness (Makefile): One command (make db-up, make api, make web, make test-backend, make test-frontend, make test-e2e) lets both you and every AI agent boot and verify the entire stack deterministically.

5. How I Started Find And Feed

I started Find And Feed from scratch on October 24, 2026. My goal was practical: build a bilingual (en for the US market, vi for the Vietnamese market) review, editorial, and utility mini-apps platform with full admin governance, affiliate link cloaking, and automated editorial tooling.

Rather than jumping straight into React pages on commit one, look at how the very first commits unfolded:

2026-10-24  Initial commit & roadmap/Phase 1 architecture plans
2026-10-24  Docker Compose PostgreSQL 18 + Makefile targets
2026-10-24  Go API skeleton, embedded goose migrations, pg_advisory_lock test harness
2026-10-24  Admin session auth, bcrypt hashing, and atomic login rate limiter
2026-10-24  Bilingual categories (translation_key) -> programs, products, /go/{slug} links

Notice the order: Roadmap & Plans → Database & Test Harness → Auth & Security Core → First Vertical Domain Slice.

Because every single domain piece had a clear schema, a strict JSON contract, and an integration test running against real PostgreSQL from day one, adding new features never felt like balancing on a wobbling Jenga tower. Over the first month, that foundation scaled cleanly to 81 written plan documents and 384 commits.

6. Up Next in Part 2

A clean blueprint gets you through week one. By week two, when dozens of endpoints, background workers, and UI views exist, a single chat window can no longer hold the rules in working memory.

In Part 2: Guardrails, Custom Skills & Parallel AI Agents, I show how I turned project conventions into living memory (AGENTS.md), built custom skills and an MCP server, and ran multiple AI agents in parallel across isolated Git worktrees without collisions.

(If you are also comparing agent workflows and models before setting up your own stack, check out our breakdown of Claude vs Google Antigravity. And in the upcoming Part 4, we will close the series with the most critical layer of all: Deployment and Security.)

Frequently asked questions

What is the biggest mistake beginners make when starting vibe coding?

Prompting the AI to build an entire application horizontally in one chat without defining database schemas, JSON error contracts, or test boundaries first. That produces demos quickly but collapses when real features interact.

Why use Go standard library net/http instead of a big web framework for vibe coding?

Go 1.26.3's standard http.ServeMux handles method and parameter routing natively, and keeping Find And Feed to 5 direct Go dependencies prevents AI models from hallucinating outdated middleware or framework magic.

How long should Step 0 setup take before building features?

You can establish Docker Postgres, embedded goose migrations, strict JSON decoding, auth foundations, and a Makefile test harness in your first working day—saving weeks of structural rewrites later.

Can non-senior developers apply disciplined vibe coding?

Yes, provided they scope changes into small vertical slices, inspect schema migrations carefully, and require passing unit and end-to-end tests after every single task.

Related articles