The .claude Directory¶
The .claude/ directory is Claude Code's native project directory. Samuel uses it to store skills that extend AI capabilities.
Overview¶
While CLAUDE.md provides universal guardrails, .claude/ stores skills specific to YOUR project:
.claude/
├── skills/ # Agent Skills (language guides, frameworks, workflows)
│ ├── README.md
│ ├── typescript-guide/ # 21 language guide skills
│ │ ├── SKILL.md
│ │ └── references/
│ ├── react/ # 33 framework skills
│ │ ├── SKILL.md
│ │ └── references/
│ ├── create-prd/ # 23 workflow skills
│ │ └── SKILL.md
│ ├── auto/ # Autonomous loop skill
│ │ └── SKILL.md
│ └── ... (more skills)
├── auto/ # Autonomous loop state (generated)
│ ├── prd.json # Machine-readable task state
│ ├── progress.md # Append-only learnings journal
│ ├── prompt.md # Iteration prompt template
│ └── discovery-prompt.md # Discovery prompt (pilot mode)
└── settings.local.json # Claude Code local settings
What's Inside¶
Skills¶
Skills are capability modules following the Agent Skills standard:
| Type | Count | Loaded | Example |
|---|---|---|---|
| Language guides | 21 | Auto-load by file extension | skills/go-guide/SKILL.md |
| Framework skills | 33 | On-demand | skills/react/SKILL.md |
| Workflow skills | 23 | On-demand | skills/create-prd/SKILL.md |
Per-Folder CLAUDE.md Files¶
Samuel creates stub CLAUDE.md files in existing project directories during samuel init. These are loaded automatically when AI works in that directory. Customize them with folder-specific instructions, conventions, and constraints.
Language Guide Skills¶
Auto-loaded based on file extensions you're working with (21 languages):
| Language | Extensions | Guide |
|---|---|---|
| TypeScript | .ts, .tsx, .js, .jsx | skills/typescript-guide/SKILL.md |
| Python | .py | skills/python-guide/SKILL.md |
| Go | .go | skills/go-guide/SKILL.md |
| Rust | .rs | skills/rust-guide/SKILL.md |
| Kotlin | .kt, .kts | skills/kotlin-guide/SKILL.md |
| Java | .java | skills/java-guide/SKILL.md |
| C# | .cs | skills/csharp-guide/SKILL.md |
| PHP | .php | skills/php-guide/SKILL.md |
| Swift | .swift | skills/swift-guide/SKILL.md |
| C/C++ | .c, .cpp, .h, .hpp | skills/cpp-guide/SKILL.md |
| Ruby | .rb | skills/ruby-guide/SKILL.md |
| + 10 more | SQL, Shell, R, Dart, HTML/CSS, Lua, Assembly, CUDA, Solidity, Zig |
No manual selection needed - AI detects automatically.
Framework Skills¶
On-demand framework-specific patterns (33 framework skills across 11 language families):
| Language | Frameworks |
|---|---|
| TypeScript/JS | React, Next.js, Express |
| Python | Django, FastAPI, Flask |
| Go | Gin, Echo, Fiber |
| Rust | Axum, Actix-web, Rocket |
| Kotlin | Spring Boot (Kotlin), Ktor, Android Compose |
| Java | Spring Boot, Quarkus, Micronaut |
| C# | ASP.NET Core, Blazor, Unity |
| PHP | Laravel, Symfony, WordPress |
| Swift | SwiftUI, UIKit, Vapor |
| Ruby | Rails, Sinatra, Hanami |
| Dart | Flutter, Shelf, Dart Frog |
How to load: Reference the framework or work in a project that uses it.
Workflows¶
On-demand workflows for structured tasks:
| Workflow | When to Use |
|---|---|
initialize-project | New or existing project setup |
create-prd | Plan complex features |
generate-tasks | Break PRD into tasks |
troubleshooting | Debug systematically |
generate-agents-md | Cross-tool compatibility |
create-skill | Create portable Agent Skills |
auto | Autonomous AI coding loop |
algorithmic-art | Generative art with p5.js |
doc-coauthoring | Collaborative document writing |
frontend-design | Design-driven frontend interfaces |
mcp-builder | MCP server development guide |
theme-factory | Theme styling for artifacts |
web-artifacts-builder | React/TypeScript/shadcn toolchain |
webapp-testing | Playwright-based web testing |
How to invoke:
Loading Protocol¶
AI follows this protocol when starting a session:
1. Load CLAUDE.md (always)
↓
2. Load per-folder CLAUDE.md (when working in a subdirectory)
↓
3. Auto-load language guide based on file extensions
↓
4. On-demand: Load workflow or framework skills as needed
Git Configuration¶
What to Commit¶
CLAUDE.md
AGENTS.md
.claude/skills/ # Language guides, frameworks, and workflows
Per-folder CLAUDE.md files # Folder-specific instructions
What to Gitignore¶
Best Practices¶
Do¶
- Customize per-folder CLAUDE.md files with specific instructions
- Create custom skills for recurring project tasks
- Use
samuel skill createto scaffold new skills
Don't¶
- Manually edit language guide skills (they're templates, use
samuel update) - Over-organize the directory
- Put secrets or credentials in CLAUDE.md files
Related¶
-
CLAUDE.md
The main instruction file.
-
Language Guides
Auto-loaded language rules (21 languages).
-
Framework Guides
Framework-specific patterns (33 frameworks).
-
Workflows
On-demand structured workflows.