CLAUDE.md
Guides Claude Code to understand a SvelteKit portfolio site deployed to Cloudflare Pages with development commands and architecture.
What this file does
Guides Claude Code to understand a SvelteKit portfolio site deployed to Cloudflare Pages with development commands and architecture.
When to use it
- You use Claude Code to edit a SvelteKit project
- You want Claude to know your project's build and deploy commands
- You need Claude to understand your project structure and config files
- You share a repository with other developers using Claude Code
Assumes this stack
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is a personal portfolio website built with SvelteKit and deployed to Cloudflare Pages. The project consists of:
- A main website in the
www/directory - Code examples in the
code-examples/directory
Development Commands
Frontend (www/)
# Install dependencies
pnpm install
# Run development server
pnpm dev
# Build for production
pnpm build
# Preview production build
pnpm preview
# Type checking
pnpm check
pnpm check:watch
# Linting and formatting
pnpm lint # Check formatting
pnpm format # Auto-format code
Architecture
Frontend Stack
- Framework: SvelteKit with Svelte 5
- Build Tool: Vite
- Styling: Tailwind CSS v4 with PostCSS
- Package Manager: pnpm (v10.14.0)
- Deployment: Static adapter for Cloudflare Pages
Project Structure
www/
├── src/
│ ├── routes/ # SvelteKit routes
│ │ ├── +page.svelte # Homepage
│ │ ├── blog/ # Blog section
│ │ └── photos/ # Photos section
│ ├── app.css # Global styles
│ └── app.html # HTML template
├── static/
│ └── assets/ # Static images
└── build/ # Production build output
Key Configuration Files
svelte.config.js: SvelteKit configuration with static adaptervite.config.ts: Vite configuration with enhanced images, Tailwind CSS, and chunking strategytsconfig.json: TypeScript configuration
Deployment
The site is automatically deployed to Cloudflare Pages on push to the main branch via GitHub Actions (.github/workflows/deploy.yaml).
Important Notes
- The project uses Tailwind CSS v4 with the new PostCSS-based setup
- Enhanced images are configured for optimized image loading
- Service worker is included for offline functionality
- The build is optimized with Terser minification and manual chunking for better performance
What's inside
Project overview, 6 development commands, architecture stack, project structure, deployment info, 4 important notes
Change this for your project
- Replace
peaske7/peaskewith your own GitHub repository name - Replace
www/paths with your own project directory if different - Replace
code-examples/with your own secondary directory if present - Replace
.github/workflows/deploy.yamlwith your own CI workflow path
Where it goes
Save as CLAUDE.md in your repository root. Claude Code reads it automatically at the start of every session.
Related Documents
Code indexing for AI agents: summarization strategies and evaluation systems
Synthesises 2024-2025 research on code indexing for AI agents, covering summarisation strategies, hybrid retrieval architectures, and evaluation benchmarks.
Claude AI Git Workflow Integration
Recommends using the git-ai-commit CLI tool for AI-generated commit messages instead of manual ones.
Missing Business Agents Research — FLUXION 2026
Identifies 12 missing business operations agents for an indie software company and ranks them by impact and effort with €0 implementation plans.
角色:金牌面试者
Prompts Claude to act as a resume consultant, collecting user info and generating a polished A4-format React resume component with STAR-format experience.