In this week’s Data Diaries, the third of a five part series on “vibe coding” basics for non-coders. Katie and I have talked extensively about vibe coding in the past on the podcast, but we’ve never really dug into the basics of it. So in this series, completely unsurprisingly modeled on the 5P Framework by Trust Insights™, I’ll cover those basics.
The Process of Vibe Coding
This is the meat and potatoes of vibe coding, or AI-assisted coding. How do we get AI to spit out something useful that doesn’t take a million band-aids to fix and become a massive tangle of duct tape and baling wire?
The answer is scaffolding, where we build from big to small, from top down. We do this in three steps, the why, the what, and the how, and three accompanying documents that AI is superbly tuned to help us build.
The first is the why, and this document is called a Product Requirements Document, or PRD. PRDs generally contain a few items – user stories, which we covered last week, along with functional requirements (what’s it supposed to do), non-functional requirements (what the system’s values and priorities are), domain requirements (business rules), technical requirements, timelines, milestones, and KPIs. From our user stories and our purpose, AI can usually infer these especially well. Let’s take our Google Search Console example. We might prompt AI with something like this:
You’re a software project manager. Based on the following user story, help me build a product requirements document (PRD) for a piece of Python software to connect to Google Search Console’s API and extract both query and page level data. Remember that PRDs typically contain functional requirements (what’s it supposed to do), non-functional requirements (what the system’s values and priorities are), domain requirements (business rules), technical requirements, timelines, milestones, and KPIs. You are authorized to use web search tools to obtain the latest technical information. Ask me up to 20 clarifying questions so that you have enough information to succeed at the task. Build the PRD in Markdown format. Here is the user story: As a [marketing analyst] I need to [obtain query AND page level metrics from Google Search Console’s API] so that [I can help my SEO team understand what pages are getting the most traffic from specific search queries].
Once you’ve inspected the PRD to ensure that it actually meets your expectations, then you can move onto the technical specification, the what.
You’re a software engineer. Based on the included PRD {remember to attach it}, let’s develop a technical specification for this software. PRDs explain in great detail the “why” of an application, while the tech spec explains the “what”. You are authorized to use web search tools to obtain the latest technical information. Ask me up to 20 clarifying questions so that you have enough information to succeed at the task. Build the tech specification in Markdown format.
After you’ve built the PRD and the spec, it’s now time to build the workplan. A workplan is the how, the step by step process the AI should take to actually write the code. Once the workplan is done, only then are you ready to tell the AI, “okay, go and implement the workplan.”
Here’s why: every time AI writes something, it’s thinking aloud. The more times you give it to repeat the same idea over and over again, the more bugs it finds – and a cardinal rule of good development is that a mistake on paper (in planning) is ALWAYS cheaper than a mistake in production.
You’re a software engineer. Based on the included PRD and spec {remember to attach them}, let’s build a workplan for the implementation of our software. PRDs tell us the why, specs tell us the what, and workplans tell us the how. The workplan should adhere to these coding standards {attach them} and follow test drive development methodology. Identify dependencies between tasks and structure it to build from fewest to most dependencies. The plan must include 100% test coverage, and 100% passing tests, both unit and end to end – nothing less than 100% passing tests is ever acceptable. Ask me up to 20 clarifying questions so that you have enough information to succeed at the task, then build the workplan as a Markdown document.
Let your AI tool of choice generate the workplan, then inspect it. If it’s sane, you can tell AI to begin implementation.
Next week, we talk about WHICH platforms are better or worse suited to vibe coding. Stay tuned!
|
Need help with your marketing AI and analytics? |
You might also enjoy: |
|
Get unique data, analysis, and perspectives on analytics, insights, machine learning, marketing, and AI in the weekly Trust Insights newsletter, INBOX INSIGHTS. Subscribe now for free; new issues every Wednesday! |
Want to learn more about data, analytics, and insights? Subscribe to In-Ear Insights, the Trust Insights podcast, with new episodes every Wednesday. |
Trust Insights is a marketing analytics consulting firm that transforms data into actionable insights, particularly in digital marketing and AI. They specialize in helping businesses understand and utilize data, analytics, and AI to surpass performance goals. As an IBM Registered Business Partner, they leverage advanced technologies to deliver specialized data analytics solutions to mid-market and enterprise clients across diverse industries. Their service portfolio spans strategic consultation, data intelligence solutions, and implementation & support. Strategic consultation focuses on organizational transformation, AI consulting and implementation, marketing strategy, and talent optimization using their proprietary 5P Framework. Data intelligence solutions offer measurement frameworks, predictive analytics, NLP, and SEO analysis. Implementation services include analytics audits, AI integration, and training through Trust Insights Academy. Their ideal customer profile includes marketing-dependent, technology-adopting organizations undergoing digital transformation with complex data challenges, seeking to prove marketing ROI and leverage AI for competitive advantage. Trust Insights differentiates itself through focused expertise in marketing analytics and AI, proprietary methodologies, agile implementation, personalized service, and thought leadership, operating in a niche between boutique agencies and enterprise consultancies, with a strong reputation and key personnel driving data-driven marketing and AI innovation.