Your GitHub Repo Is More Than Version Control — It's Your AI's Memory

by Alien Brain Trust AI Learning
Your GitHub Repo Is More Than Version Control — It's Your AI's Memory

Your GitHub Repo Is More Than Version Control — It’s Your AI’s Memory

Meta Description: When you build with AI, your repo isn’t just a backup — it’s the context your AI reads to understand your project. Here’s the structure that lets Claude read your thesis, generate your Linear backlog, and help you build coherently.

Here’s a thing most people don’t realize when they start building with AI:

The quality of your AI’s help scales directly with the quality of context it has.

When Claude only sees the one file you’re currently editing, it makes decisions based on that one file. When Claude can see your product thesis, your architecture, your scope constraints, your current week’s goals — it makes decisions that fit your actual project.

Your GitHub repo is how you give Claude that context. Not just version control. Not just a place to push your code. The repo is your AI’s memory between sessions.

Here’s how to set it up correctly from the start.


Step 1: Create the Repo

Go to github.com → create a free account if you need one.

New repository:

  • Name: lowercase, hyphens (e.g., client-intake-bot, content-repurpose-pipeline)
  • Visibility: Private (make it public on Demo Day when you’re ready)
  • Check Add a README file
  • Click Create repository

Step 2: The Structure That Works

Most AI project repos end up as a flat pile of files. Don’t do that. This structure takes 10 minutes to set up and pays back for the entire sprint:

your-project/
├── README.md               ← One-sentence public description
├── CLAUDE.md               ← Claude's instruction manual (auto-read every session)
├── docs/
│   ├── thesis.md           ← Your product + business thesis
│   └── decisions.md        ← Why you made key choices (running log)
├── prompts/                ← Your AI prompts — these are source code
│   ├── system-prompt.md
│   └── user-prompt-template.md
├── scripts/                ← Automation scripts
├── src/                    ← Application code (if applicable)
└── .gitignore              ← Files Git must not track (API keys, etc.)

The two most important files are CLAUDE.md and docs/thesis.md. Let’s set those up.


Step 3: Write Your CLAUDE.md

CLAUDE.md is a special file that Claude Code reads automatically at the start of every working session. It’s your AI’s briefing document. Write it once, update it as the project evolves.

Here’s the template:

# Project: [Your Project Name]

## What This Is
[Your one-sentence description — the mechanism, not the features]
Example: "An async client intake bot that replaces 45-minute onboarding calls 
with a 3-minute questionnaire for independent consultants."

## Target User
[One sentence — specific person, specific pain]
Example: "Independent consultants who lose 3-5 hours/week to onboarding calls 
with clients who often don't convert."

## Version 1 Scope — Build These
- [Feature 1]
- [Feature 2]  
- [Feature 3]

## Version 1 Scope — Do NOT Build These
- [Thing explicitly cut]
- [Thing explicitly cut]
- [Thing explicitly cut]

## Tech Stack
- [Language/framework]
- [Key services/APIs]

## Key Files
- [file] — [what it does]
- [file] — [what it does]

## Current Sprint Week
Week 1 — Foundation

## Full Thesis
See: docs/thesis.md

This file is your Claude’s persistent memory. When you start a new working session, Claude reads this and immediately understands what you’re building and what the constraints are — without you re-explaining it every time.

Update “Current Sprint Week” at the start of each week. That one-line update changes how Claude prioritizes suggestions.


Step 4: Add Your Thesis Doc

If you ran the CLEAR method session, you have a written product thesis. Create docs/thesis.md and paste it in.

This is the document Claude will read when you ask it to:

  • Generate your Linear backlog
  • Help you prioritize competing features
  • Make architecture decisions
  • Write your Demo Day README

The thesis is the source of truth. The code implements the thesis. Claude bridges the two.


Step 5: The .gitignore — Non-Negotiable

Create a .gitignore file in your project root. Copy this in exactly:

# API keys — NEVER commit these
.env
*.env
.env.local
.env.production
secrets.json
**/secrets/**

# System files
.DS_Store
Thumbs.db

# Python
__pycache__/
*.pyc
*.pyo
venv/
.venv/

# Node
node_modules/
.next/
dist/
build/

# IDE
.vscode/settings.json
.idea/

Why this matters: If you accidentally push an API key to a public GitHub repo, it will be scraped by automated bots within minutes and used. The .gitignore makes Git pretend those files don’t exist. It’s not optional.

Your API keys live in:

  • A .env file locally (never committed)
  • Your deployment platform’s secret manager when you ship

Never in the code itself.


Step 6: Get It on Your Computer

If you haven’t already, clone the repo to your machine:

git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name

Now you have a local copy. Changes you make here can be committed and pushed back to GitHub.

Install Git first if needed: git-scm.com


Step 7: Your Three Git Commands

For the AI Builder Sprint, you’ll use these three commands constantly:

git add .                          # Stage all changes
git commit -m "clear description"  # Save a checkpoint
git push                           # Send to GitHub

Run these after every meaningful chunk of work. Not every line of code — every chunk. “Added intake form questions,” “Fixed email send error,” “Scoped out notifications feature.”

Your commit history is your project’s story. Make it readable.

Good commit messages:

  • feat: add 5-question intake form with validation
  • fix: handle empty response from Claude API
  • docs: update thesis with revised target user definition

Bad commit messages:

  • update, fix, stuff, wip, asdf

The README: Public Face of Your Project

Your README.md is what anyone sees when they open your repo — including you in 6 months.

Start with this and fill it in as you build:

# [Project Name]

[Your one-sentence description from the thesis]

## Problem
[One paragraph: who has this problem, what does it cost them]

## Solution
[One paragraph: what your tool does and the mechanism that makes it work]

## Setup
[Leave blank until v1 is working — fill in before Demo Day]

## Status
🔨 Building — AI Builder Sprint, May–June 2026

## Built With
- Claude / ChatGPT / Gemini
- [Other tools]

Your README is your Demo Day presentation opener. Build it as you go, not at the end.


Why This Structure Matters More Than You Think

Here’s the workflow you’re building toward:

  1. Write your thesis → put it in docs/thesis.md and CLAUDE.md
  2. Claude reads your repo → generates your Linear backlog directly (no copy-paste)
  3. Build in VS Code with Claude Code → Claude reads your repo on every request, makes coherent decisions
  4. Commit to GitHub → your progress is tracked, your context is preserved

Without this structure, step 2 doesn’t work. Claude can’t generate a coherent backlog from an empty repo — it needs the thesis.

With this structure, your AI actually knows what you’re building. And that changes everything about the quality of help it can give you.


Previous: CLEAR Method: Develop your product thesis →

Next: Using Linear for solo builder project tracking — with Claude as your Product Owner →


Alien Brain Trust builds AI education for working founders. The AI Builder Sprint is our 30-day live build program — Zero to Shipped, May 19 – June 13.

Tags: #building-in-public#workflows#tools#implementation#ai-builder-sprint

Comments

Loading comments...