Connect ChatGPT/Codex, Claude/Claude Code, Grok, or Gemini directly to your own GitHub repository using guardrails that prevent broken deploys.
Module Outcome:
Your repository includes AGENTS.md guardrails and you know how to review AI edits safely before publishing.
LESSON WORKSPACE
Your module at a glance.
3 steps
Step 1 of 3
You do not need a proprietary AI website builder
When your website is clean static Astro or HTML in your own GitHub repository, you can use whichever AI tool is best today — and switch next year without rebuilding your site.
Before asking any AI assistant to edit your website, place a clear AGENTS.md file in your repository root. Modern AI coding tools read AGENTS.md automatically so they respect your CSS classes, accessibility target, SEO tags, and approval rules.
When your website is clean static Astro or HTML in your own GitHub repository, you can use whichever AI tool is best today — and switch next year without rebuilding your site.
Always connect AI tools directly to your repository with narrow permissions, and keep a human review step before anything merges into main.
ChatGPT + Codex: Connect GitHub in ChatGPT to analyze your repo; use Codex when authorized to prepare pull requests and code edits.
Claude + Claude Code: Connect your repo in Claude for context, or run Claude Code locally to make multi-file edits and run npm run build.
Grok + Gemini: Use supported GitHub connectors or local coding environments (like Google Antigravity with Gemini) against your own cloned repo.
Drop AGENTS.md into the root of your repository
Before asking any AI assistant to edit your website, place a clear AGENTS.md file in your repository root. Modern AI coding tools read AGENTS.md automatically so they respect your CSS classes, accessibility target, SEO tags, and approval rules.
Safe workflow for every AI-assisted website edit
1. Ask your AI tool to read README.md and AGENTS.md first.
2. Describe ONE clear change (e.g., "Update summer hours on Home and Contact").
3. Have the AI edit on a branch (not directly on main) and run: npm run build
4. Review the preview URL or git diff yourself.
5. Merge to main only after you verify the change looks right.
MODULE 05 VERIFICATION
Before moving on
AGENTS.md is saved in the root of your website repository.
AI tool is authorized ONLY on your specific website repository.
You review diffs or preview builds before merging changes to main.
You know how to revoke an AI connector in GitHub settings anytime.