Vibe Coding and AI Creation

This is to track my researching into creating ‘App’ with LLVM. I am going to break this down into the main categories.

AI Manifesto

  1. Using AI effectively is now a fundamental expectation of everyone at Shopify. It’s a tool of all trades today, and will only grow in importance. Frankly, I don’t think it’s feasible to opt out of learning the skill of applying AI in your craft; you are welcome to try, but I want to be honest I cannot see this working out today, and definitely not tomorrow. Stagnation is almost certain, and stagnation is slow-motion failure. If you’re not climbing, you’re sliding.
  2. AI must be part of your GSD Prototype phase. The prototype phase of any GSD project should be dominated by AI exploration. Prototypes are meant for learning and creating information. AI dramatically accelerates this process. You can learn to produce something that other team mates can look at, use, and reason about in a fraction of the time it used to take.
  3. We will add AI usage questions to our performance and peer review questionnaire. Learning to use AI well is an unobvious skill. My sense is that a lot of people give up after writing a prompt and not getting the ideal thing back immediately. Learning to prompt and load context is important, and getting peers to provide feedback on how this is going will be valuable.
  4. Learning is self directed, but share what you learned. You have access to as much of the cutting edge AI tools as possible. There is chat.shopify.io, which we had for years now. Developers have proxy, Copilot, Cursor, Claude code, all pre-tooled and ready to go. We’ll learn and adapt together as a team. We’ll be sharing Ws (and Ls!) with each other as we experiment with new AI capabilities, and we’ll dedicate time to AI integration in our monthly business reviews and product development cycles. Slack and Vault have lots of places where people share prompts that they developed, like #revenue-ai-use-cases and #ai-centaurs.
  5. Before asking for more Headcount and resources, teams must demonstrate why they cannot get what they want done using AI. What would this area look like if autonomous AI agents were already part of the team? This question can lead to really fun discussions and projects.

Vibe Coding Process

  • Use Kiro for Spec development
  • Use PhpStorm and Junie to learn existing Template
  • Use Claude Code Terminal as its free for setups
  • Use Chef.ai or the one for OSX
  • iPhone apps – https://rork.com/
  • You need to have you infrastructure setup properly, ideally with a full pipeline; IDE, GitRep, GitActions for testing, Provision workloads using IaC and deployment to the presentation layber such as Render..io. Or just work locally and you can use Docker or Podman.io. You dont want too many libraries on your work OS.
  • Use UI Template and Backend Template.
  • Ask AI to do One tasks at a time and build a plan from start to finish. Otherwise, just like humans you will get confused and AI will Hallucinated.
  • Keep Track of Code Changes. This is really difficult, make incremental changes and track and test the code as you go.
  • Computer Desktop Controller

UI Design Templates

Setup your environment

Multi-Agent RAG architecture,

┌─────────────────────────────────────────────────────────────────────────────┐
│                                   USER                                      │
│                                  (Query)                                    │
└─────────────────────────────────────────────────────────────────────────────┘
                                      │
                                      ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                           ORCHESTRATOR / ROUTER                              │
│        (Task Decomposition, Routing, Guardrails, Policy, Budgeting)          │
│        Tools: LangGraph / CrewAI / AutoGen / Semantic Router                  │
└─────────────────────────────────────────────────────────────────────────────┘
            │                     │                     │
            │                     │                     │
            ▼                     ▼                     ▼
┌─────────────────────┐  ┌─────────────────────┐  ┌─────────────────────┐
│   RETRIEVAL AGENT   │  │   SEARCH AGENT      │  │   CODE / TOOL AGENT  │
│  (Private KB)       │  │  (Web / APIs)       │  │  (Execution)        │
│  Tools:             │  │  Tools:             │  │  Tools:             │
│  - LlamaIndex       │  │  - Tavily           │  │  - Python REPL      │
│  - LangChain        │  │  - SerpAPI          │  │  - Bash             │
│  - FAISS            │  │  - Kagi Search      │  │  - SQL Client       │
│  - Pinecone         │  │                     │  │                     │
└──────────┬──────────┘  └──────────┬──────────┘  └──────────┬──────────┘
           │                          │                          │
           ▼                          ▼                          ▼
┌─────────────────────┐  ┌─────────────────────┐  ┌─────────────────────┐
│   VECTOR DATABASE   │  │   WEB / API DATA    │  │   RUNTIME SYSTEM    │
│  - Pinecone         │  │  - Docs             │  │  - Containers       │
│  - Weaviate         │  │  - SaaS APIs        │  │  - Cloud Services   │
│  - Milvus           │  │                     │  │                     │
└─────────────────────┘  └─────────────────────┘  └─────────────────────┘
            │                     │                     │
            └──────────────┬──────┴──────────────┬──────┘
                           ▼                     ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                           AGGREGATOR / SYNTHESIS AGENT                       │
│     (Evidence Scoring, Deduplication, Conflict Resolution, Ranking)          │
│     Tools: LangChain, LlamaIndex, Rerankers (Cohere, BGE, OpenAI)              │
└─────────────────────────────────────────────────────────────────────────────┘
                                      │
                                      ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                         GENERATION / REASONING MODEL                         │
│      LLMs: GPT-4.x / Claude / Llama 3 / Mistral                               │
│      Techniques: ReAct, Tree-of-Thoughts, Self-Reflection                    │
└─────────────────────────────────────────────────────────────────────────────┘
                                      │
                                      ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                                 FINAL OUTPUT                                 │
└─────────────────────────────────────────────────────────────────────────────┘

SYSTEM PROMPT

https://github.com/continuedev/continue
https://github.com/VSCodium/vscodium
https://github.com/trypear/pearai-app
https://github.com/RockAfeller2013/void
https://github.com/ghuntley/how-to-build-an-agent
https://ghuntley.com/amazon-kiro-source-code/
https://github.com/RockAfeller2013/amazon-kiro.kiro-agent-source-code-analysis

Claude Code

XCODE

How to use Windsurf AI for iOS App Development

https://www.youtube.com/watch?v=Hvf_of7o7W0



1️⃣ Cursor as IDE

Cursor is a clone of VS Code with some baked-in AI goodness.

It’s multi-line suggestions are *much* better than Github Copilot, IMO.

Here’s some things I’ve learned:

a. After it suggests a change, save the file, test your app, THEN accept it.

b. Write a good comment, next line start the code, tab-to-complete.

c. Write pseudo code, then highlight, cmd-k, and say “make this actual code”

e. Have other related files open.

2️⃣ Cline extension for Cursor

Cline is great. Try it.

Prompting it is a skill you have to practice.

I’ve been writing code for 20 years and using LLMs almost daily for 3.

I know exactly what I want my code to look like – I just use AI to do it faster.

But have an acronym to help me write better prompts, SCIM:
Specific
Concrete
Incremental
Methodical

Saying “Build a dashboard” won’t usually turn out well.

Instead, break it down and be specific:
“Scaffold a dashboard view with placeholders for a full-width section at the top and two equal columns below. Use [insert a file] as a reference for styles and examples”

I’ve also improved the memory prompt for Cline to generate a bunch of context it’ll use on every run.

If you want a copy + instructions on how to use it, drop a comment below and then send me a connection request so I can DM it to you.

3️⃣ Claude Desktop

I have tons of “Projects” with added context and instructions.

An example is a “Sparring Partner”.

It has instructions to play the devils advocate, find edge cases, use socratic methods, and present alternate views.

It’s not designed to think for me, but to encourage me to challenge my own thinking.

I tell it what I’m thinking and it tells me why I’m dumb.

Basically a rubber duckie with Web Scale levels of cynicism.


4️⃣ Paren.ai ← my app

Paren helps B2B SaaS teams build faster by bringing all their code, docs, comms, notes, projects, etc. into a purpose-built AI engine so you can write better code and get answers to hard questions fast.

Flutter and Firebase Vibe’N

Claude Code

1. Create a CLAUDE.MD file to include project goals, tech stack, folder structure and best practices

2. Don’t ask Claude to code first. Instead, ask it to explore first, then plan, then implement features.

3. Use /clear command often to reduce hallucinations and save tokens

4. Build custom slash commands to automate repetitive tasks like debugging

5. Paste screenshots into Claude to better describe errors, layouts and bugs. A picture says more than 1000 words

Use existing Code Base

As a examole; Lovable; Can I start a project by importing code from an external source such as GitHub? No, currently there is no way to start a Lovable project from already existing code on for example GitHub.

GitHub Copilot
Integrates directly within GitHub and IDEs like VS Code and JetBrains. It can analyze entire codebases, assist with code exploration, and generate pull requests. GitHub Docs

Code AI with codebase context

“an AI pair programmer that actually knows about your entire codebase’s APIs, impls, and idioms”

ExplainGitHub
A free tool that provides AI-powered code explanations and intelligent repository exploration tools to understand GitHub projects quickly. ScriptByAI

Codebase Digest
A Python CLI tool that analyzes your codebase, providing structured overviews and consolidating content for easy analysis with Large Language Models (LLMs). GitHub

RepoAnalyzer
Analyzes GitHub repositories and generates intelligent issue recommendations using AI. brosg.github.io

GitLoop
An AI tool designed to understand entire codebases, making it easier for developers to manage pull requests, conduct code reviews, and track issues in GitHub repositories. gitloop.com

CodeLens
Provides code analysis, commit tracking, and project insights for GitHub projects, streamlining workflows with real-time AI-driven monitoring. geekyants.com

ExplainGitHub
Offers AI-powered code explanations and intelligent repository exploration tools to understand GitHub projects quickly. ScriptByAI

Git Scape AI
Converts any Git repository into clean text, making it easy to use with preferred AI models for understanding. gitscape.ai

Codebase Digest
A Python CLI tool that analyzes your codebase, providing structured overviews and consolidating content for easy analysis with Large Language Models (LLMs). GitHub

CodeXpert
An AI-powered code analysis tool leveraging CodeLlama, FAISS, and HuggingFace for efficient code understanding, explanation, and optimization

Cursor