Cj Z 🎯 Profile picture
Nov 26 14 tweets 5 min read Read on X
AI coding = Proper Documentation + Detailed Instructions

It's like a smart kid who can code but doesn't know the best practices of code.

You need to tell AI what exactly you want:
- web app?
- features?
- structure?
etc

Here's how you can make AI your full stack developer:
🧵 Image
Context is King!

You need to build a strong wall of Context around AI.

Goal: Don't let AI assume anything. Provide all the information yourself.

This way AI works with you, not against you.

Let's talk about what docs we need to attach, to provide max. context. Image
1. Project Requirement Document

It provides the overview of what the project is all about:

- Introduction
- Problem
- Solution
- Target Audience
- Tech Stack
- Core Features
- Scope of Work

This document is a brief introduction of your project.

Let's now add more specific docs to guide AI on each step.
2. App Flow & Functionality Doc

Think of it like you're explaining you app to a friend.

"when user will sign up, it lands on dashboard. On dashboard it has 4 sections. Metrics section, Analytics section etc"

This doc provides a complete end-to-end rundown of your app.

TIP: Ask AI to DO NOT use bullet points in this doc.

This Document is very important as it creates a graph/blueprint for AI to plan its execution for each page.
3. Tech Stack and Packages Doc

Now let's provide technical context to AI.

Is your project using python? or Nextjs? or what are you using for backend: Supabase? or Firebase?

This doc will explain every single detail about the tech stack AI need to use to build your app.

Make sure you use popular tech stacks only because LLMs like Claude and GPT4 are trained on mostly used frameworks.

I use Nextjs 14, TaliwindCSS, shadcnUI, radixUI for frontend and supabase for backend.

This stack is favored by all platforms:
- v0
- bolt
- Claude
- Cursor
- Replit

Python is also good for heavy funtioning apps that doesn't require modern UI.
4. File structure Doc.

This Doc is important if you don't want to enter the vicious error cycle later on.

AI can create duplicate files, save files in wrong place, or even delete finished code.

To solve this pain. Provide the file structure yourself.

Tip: Make sure you ask AI to create the File structure in ASCII format.

Screenshot it and attach that too with doc.
5. API Docs

AI doesn't know by default how API is configured for any platform.

We need to attach the API docs of all APIs we will be using in our app.

Like OpenAI API, Claude API Docs, Supabase Docs etc.

Copy the instructions from their site and paste it in your doc and attach that doc to AI.
6. Backend Schema Design Doc.

Schema is Basically a blueprint of your Backend.

It contains all database tables that you need to create, storage buckets and user information tables (auth)

I use Supabase beacause AI can create SQL queries that you can run in Supabase in seconds.

And this way I can create my database in an hour and attach it to my frontend.

Best part: Claude is great at designing backend schema's and if you create a proper doc.

AI follows the guidelines easily.
7. .cursorrules file

Many of you are not using this. Think of it like custom instructions in ChatGPT.

cursorrules file need to be project specific and not general like "rules for AI' prompt in cursor.

Based on the tech stack and project requirements, Ask AI to create a .cursorrules file.

This doc will tell AI which doc is located where. (Google map for Cursor)

Help AI navigate better with this file.
8. UI Layout Doc

This doc will make your frontend pretty and if you use it with v0 than you can build frontend components with consistent vibe.

Most people underestimate the power of clean user interface (UI).

"fisrt impression is the last impression"

This Doc will have information like what UI package you'll be using, fonts, color palletes, icons, effects etc.
9. System Prompts

You can ask AI to create project specific system prompts for v0, bolt or any other tool you might use.

This helps communicating with tools, and you don't need to provide longer context everytime.

You know why Claude on their platform works better than via API? because of their super good system prompt.

You do the same for your projects and you'll be friand with AI.
That's it.

This might sound alot of work, at it is. But it is very important if you want to build production ready apps.

I spend 80% of my dev. time in creating docs and I achieve great results in rest 20% time.

I asked you yesterday, if you want me to automate the documentation creation process for you?

and the response was AMAZING.

and we got 400 reposts!!Image
Image
So I got to work.

Introducing: codeguide. dev

An app that will help you brainstorm and write all important docs that you need to attach to AI.

✅System prompts
✅PRDs
✅Schema Design
✅App Flow Doc
✅UI Layout Doc
etc

(check next tweet) Image
Here's the link:

Join the waitlist to get early access.

I'm building Code Guide with AI to Guide AI to Code. lolcodeguide.dev

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Cj Z 🎯

Cj Z 🎯 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cj_zZZz

Nov 24
I've built 19 projects with Cursor AI without line a single line of code myself.

But, the Truth is Cursor is dumb you don't add detailed docs around your project.

You need to build a strong <Context Boundary> around Cursor

Here what you can do to improve your Cursor workflow🧵 Image
1. Brain dump with Claude

You need to to share everything about your idea. The best way you open your mic and speak out everything about your project.

- What it is?
- Features?
- Layout?
- Inspirations?

Anything that comes to your mind. Context is the Key for AI.
2. Claude or ChatGPT o1

Claude is great to turn your thoughts into structured output.

You take this output to ChatGPT o1 model.

Ask it to create:
- Project requirements Doc.
- Tech Stack and Packages Doc.
- Schema Design Doc.
- Detailed App Flow Doc.

I do compare Claude and o1. Sometimes Claude outshines o1.

(If you don't have access to o1, you can get this done with Claude too)
Read 13 tweets
Nov 23
I use bolt. new to build web apps.

I burned 200 Million+ tokens so far and spent $300+ on bolt.

Here's the best use case of bolt.

We'll cover this workflow:
Claude AI

Bolt. new

Cursor

Let's start.
🧵 Image
Bolt is best for:
- starting the project super fast.
- building your frontend sceens.
- micro saas applications

Bolt is not good for:
- building complex projects
- connecting backend to frontend
- API handling

So how to use bolt .new?
Start your workflow with Claude AI

1. Start a new project
2. Attach all documents
- PRD (Project Dev. Doc)
- App flow & Functionality Doc
- Frontend code (if you used v0)
3. Now tell Claude that you'll be using
- bolt .new start the project Image
Read 18 tweets
Nov 11
315 days are gone!!!

ONLY 50 days are left in 2024.

Don't wait for the New Year's Resolution.

Use AI to build your dream business.
🧵 Image
2: Build your own SaaS project: Image
3: Start a Web Development Agency: Image
Read 11 tweets
Nov 9
Code Your First SaaS with AI:

Start your workflow with Research.

Use ChatGPT o1 model: It is best for:
- Diving deep into research
- Preparing Documentation
- Crafting App layout

Then go to v0.

v0 is new figma: Design your frontend
- screens
- buttons
- effects

Continue 🧵 Image
Now go to Claude AI chat.

This is your coding guide throughout the journey.

- Upload all docs
- write a detailed system prompt
- Use Claude prompt generator

Then go to Replit.

- Start a new project
- Install Nextjs Starter kit
- Connect Github (to save code)
- Connect cursor Image
Now go to cursor

Cursor is your coder. You'll be using AI to get the coding done for you.

Follow Claude's introductions for:
- creating all folders & files in cursor
- installing supabase (backend to save information on cloud)
- to connect frontend with backend.

Then Image
Read 10 tweets
Jun 26
Claude Prompting is different than ChatGPT.

It has a Coding brain.

You need to use tags <>, and markers to make it understand the request.

After playing with Claude's all 3 models for over 3 months now.

Here are the 12 main tricks I found that work the best:Image
1. Use XML tags:

Think of it like a camera lens.

When you input a long text, Claude models don't focus on finding important information.

However, using XML tags makes retrieving information easier for the models.

Example: Youtube transcript
2. Be super clear:

Tell Claude exactly what you want it to do.

Use words like "please" and "I want you to..." as this gives models the hint that this is an action request.

Be as specific as you can!

Example: Please summarize the main ideas in the section.
Read 13 tweets
Sep 21, 2023
Sam Altman (@sama) tweeted about DALL-E 3 yesterday.

Top points:

1. ChatGPT + Image Generation = DALL-E 3
2. DALL-E 3 can Spell right!
3. Own your Art with DALL-E 3

DALL-E 3 integrated directly into Bing (completely free to use)

Here's ALL you need to know about DALL-E 3
🧵👇
Image
Releasing Date?

DALLE - 3 will be released to ChatGPT Plus users & Enterprise users by October. So in 3-4 weeks max.

DALL-E API is also coming this fall. (that's a big step) Image
Features:

1. No More Complicated Prompting

DALL-E 3 is built on top of ChatGPT, which means ChatGPT will write complicated prompts itself.

All we need to do is "Chat" with DALL - E/ChatGPT.

*No Complex parameters "--aspect 2:3, --chaos, --style <4a, 4b, or 4c>, etc" Image
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(