save_claude_md.py

claude_md_content = “””# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

Personal academic portfolio website for Connor Magoon (Applied Mathematics PhD student, UNC Chapel Hill). Originally based on Academic Pages (Minimal Mistakes fork), but stripped down to a single-page site. Deployed via GitHub Pages.

Local Development

Install dependencies (once, on WSL/Linux):

sudo apt install ruby-dev ruby-bundler nodejs build-essential gcc make
bundle install

Serve locally for debugging only (run this after all changes are complete):

bundle exec jekyll serve -l -H localhost

The site will be available at http://localhost:4000.

Debugging locally should be the final step after making all content, layout, or asset changes.

Site Architecture

This is a single-page site. The website content lives in _pages/about.md.

Content Updates

Restrictions / What NOT to Do

Mental model for Claude: Focus edits on _pages/about.md. Everything else supports building, styling, or provides assets. Only serve locally at the very end for debugging.

Pipeline Permissions

The following bash commands are pre-approved for the analysis/development workflow:

with open(“CLAUDE.md”, “w”, encoding=”utf-8”) as f: f.write(claude_md_content)

print(“CLAUDE.md has been written successfully!”)