Claude Code
Bible
How to hire one developer with a single terminal command
After using it, I realized. It's a different dimension."
โ Kim Hwa-hyun, 6 months after using Claude Code
Full Curriculum
โณ Life โ does not go according to plan.
Time does not stop.
AI evolves every day.
In this era of change โ
Become the top 0.1% who uses AI most effectively.
That value is โ 10x ยท 100x ยท and beyond.
Start now.
99,000 won, one time only ยท 5-book bundle (Books 1ยท2ยท3ยท4ยท5) + Lifetime updates + VIP Discord
Original combined price 5M+ won ยท 1-year accumulated 15M+ won โ 99,000 won
โ 100% refund guarantee for 1 year ยท ๐ Price increase on 7/1 (today is the cheapest forever) ยท ๐ incomparable to regular PDF ebooks
"Introduction to Agent Skills" Certificate of Completion
โ Hwahyun Kim (hwahyun Kim, Limitlessman) ยท Issued 2026-05-14
Direct certification by Claude's developer โ Author who completed the official Anthropic curriculum, not theory alone
"With Claude Code and AI Agents โ Must-read for becoming an AI-native company."
โ Sunghwan Noh ยท IT Executive (Google AntiGravity Vibecoding author)
"The way to plant your company's constitution into AI with CLAUDE.md โ if you taught AI without knowing this, you only taught half."
โ Ki-Woong Park CEO (AI Education Company SANTA)
"A solo founder completed a B2B platform in 96 hours using the G-Stack methodology โ vibe coding isn't a trend, it's a new development paradigm."
โ Professor Kim Deok-eun (Pusan National University Industry-Academic Cooperation Foundation)
"I built an internal automation system without outsourcing โ and saved 12 million won in development costs."
โ Kang Mu-seong CEO (SIWU ENT)
"I deployed a landing page in 3 days. In 10 years as a marketing manager, there were things I couldn't tell developers about โ now I've built it myself."
โ Park O-jun (Marketing Manager, 38)
Total 165 direct testimonials accumulated ยท 92% recommendation rate
92% recommendation rate ยท 18,054 cumulative visitors (measured)
๐ From here โ unlocked with password after payment
5-book full package 99,000 KRW โ the most valuable one-time investment of your life.
After confirming payment, register on Notion DB โ password sent via email and text within 2 business days (excluding holidays).
๐ AI Bible Platform Guide โ the ebook is accessed via password on a locked page link in web format. No separate PDF files or zip archives are provided.
"With Claude Code and AI agents โ the essential read for becoming an AI-native company."
โ Seonghwan Roh ยท IT CEO (Google AntiGravity VibeCode Author)
Endorsements for Volumes 1-4: Ki-woong Park ยท Deok-eun Kim ยท Moo-sung Kang
name ยท email ยท phone ยท product ยท amount (5 items)
Already paid โ Enter your password
โ Refundable: If within 1 year you've diligently implemented all 5 volumes but don't feel the 100K won ($99) is worth it โ 100% full refund
โ Non-refundable: Due to the nature of knowledge services โ simple changes of mind after purchase are non-refundable (E-commerce Act Enforcement Decree Article 21)
๐ Price increase 7/1 ยท โพ Lifetime updates
What Exactly is Claude Code?
How Is It Different from ChatGPT?
The most frequently asked question. I'll cover everything in this lesson. One analogy is enough.
โก I can easily explain the meaning of "agent" to non-developers
โข I can distinguish what Claude Code can and cannot do
One Analogy Explains Everything
Asking ChatGPT for code is like searching for a recipe. Once you get the recipe, you have to buy the ingredients yourself, cook it, and even do the dishes.
Claude Code is different. It's like hiring a chef. You say, "Make pasta for dinner tonight," and the chef opens the fridge, figures out what ingredients are available, cooks, and sets the table. All I have to do is give feedback like "It's delicious, but a bit salty."
ChatGPT: "Please paste which file you're referring to."
Claude Code: (Actually digs through the folder and 30 seconds later) "I think there will be a None type error on line 127 of app.py. Should I fix it?"
It just fixed it. For real.
Core Differences โ 4 Key Points
| Category | ChatGPT / Claude.ai Web | Claude Code CLI |
|---|---|---|
| File Access | Paste only | Read, write, and execute directly |
| Memory | Resets when conversation ends | Permanent memory via CLAUDE.md |
| Behavior | Generate answers | Plan โ Execute โ Verify |
| Extension | None | Direct control of DB, GitHub via MCP |
The decisive difference is direct access to the file system. Claude Code directly opens folders on your computer, reads files, modifies them, and executes terminal commands. It's not just that an AI works like a developerโan AI actually works like a developer.
What is an Agent?
Lately, the term "AI agent" is used a lot. Simply put, here's what it means.
Agent: Goal โ Plan โ Use Tools โ Check Results โ Modify โ Complete
An agent loops on its own until it achieves the result. Give it one instruction and it handles it automatically.
Claude Code is a coding agent. When you say "Add unit tests to this API," it reads the code, writes tests, runs them to verify they pass, and automatically repeats the process to fix any failures.
What It Can Do vs. What It Cannot
Understand existing code structure / Analyze error causes / Optimize SQL queries
Write git commit messages / Generate PR description drafts
Directly manipulate GUI apps (without Playwright MCP) / Run autonomously indefinitely (it asks for confirmation)
Installation & First Conversation
10-Minute Complete Guide
Don't overthink it. Install Node.js and run one commandโthat's it.
โก I'll complete my first conversation in an actual project folder
โข I'll memorize 5 essential commands
Prerequisites (5 minutes)
Installation (1 minute)
npm install -g @anthropic-ai/claude-code
Login (2 minutes)
claude
When you run it for the first time, a browser window opens. Log in with your Anthropic account and click the "Allow" buttonโthat's it. Your token is saved on your computer.
First Conversation (2 minutes)
cd my-project-folder claude
That's all there is to it. Claude Code automatically reads the current folder and enters conversation mode.
Understand this folder structure and explain what kind of project this is.
Claude actually opens the files and explains them. It's magical the first time you see it.
5 Essential Commands to Memorize
| Command | Purpose |
|---|---|
| /clear | Reset conversation context (before starting a new task) |
| /help | Show all available commands |
| /context | Check current context window usage |
| Ctrl+C | Stop Claude's response immediately |
| Shift+Enter | Line break (Enter sends the message) |
The Golden Workflow
Explore โ Plan โ Code โ Commit
The correct order to use Claude Code. If you ignore this order, 90% will fail. We proved it ourselves.
โก Explain why "Explore โ Verify Plan โ Implement โ Validate" matters
โข Know when to use Plan mode
"Why do I get weird results when I tell Claude Code to code right away? It's like telling a chef to 'cook' without saying what you want."
Why Order Matters
Mistake #1 when first using Claude Code: telling it to "fix bugs" right away. Then Claude patches the code without even examining it, guessing. It fails. Fix it again. It gets worse.
After that, I never run quick fixes. Always explore first.
The 4-Step Golden Workflow
Real Prompts โ Copy and Paste
Step 1: Explore Prompt
Understand how [file name or feature] works. Read related files and explain the current structure. Don't touch code yet, just analyze.
Step 2: Verify Plan Prompt
How would you implement [desired changes]? Tell me the plan first โ which files to change and how. I'll start the code modifications when I approve.
Step 3: Implementation Prompt
OK, proceed. Start with [file name].
/plan mode โ More safely
For complex tasks, I use the /plan mode. In this mode, Claude cannot modify files. I can only make plans.
/plan # Now Claude can only read, cannot modify # When I say "okay, let's start," switch to normal mode
CLAUDE.md โ Give AI a Brain
Claude has no memory by default. I meet a stranger every session. CLAUDE.md creates that memory.
โก Write CLAUDE.md tailored to my project
โข Understand the multi-CLAUDE.md deployment strategy
"Using Claude Code without CLAUDE.md is like hiring an employee but not explaining the company. I have to explain everything from scratch every time."
What is CLAUDE.md
CLAUDE.md is the first file Claude Code looks for when starting. The content written here is automatically read in every session. Once I write it, I never need to explain again.
CLAUDE.md Golden Template
# Project Name โ Claude Behavior Guidelines ## Project Overview - **Purpose**: [One-line description] - **Stack**: Python 3.11 / FastAPI / PostgreSQL - **Port**: 8766 (local), Render deployment ## Core Folder Structure - `api_server/` โ Backend - `frontend/` โ React SPA - `MASTER.env` โ Environment variables (never commit!) ## Coding Rules - Clear function names over comments - If there's try/except, always log - Check existing tests pass before new features ## โ Prohibited Actions (Claude must read) - Never git push --force - Never output .env file contents - Always ask before running rm -rf ## Frequently Used Commands - Start server: `python local_agent_server.py` - Test: `pytest tests/ -v` - Security check: `python git_security_check.py` ## Past Mistakes โ Never repeat - [2026-05] Korean path subprocess encoding error โ Solution: Always set PYTHONUTF8=1 - [2026-05] MCP 204 empty response parsing error โ Solution: Check content length first
CLAUDE.md Deployment Strategy
Subfolder CLAUDE.md โ Folder-specific rules. Loaded additionally when working on that folder.
Example: api_server/CLAUDE.md manages "this folder is FastAPI-only" rules separately
~/.claude/CLAUDE.md โ Applied across all my projects. Define personal style.
CLAUDE.md is a file that goes up on git. If a key is exposed, it's hopeless.
Always get keys from environment variables with os.getenv("API_KEY").
MCP โ Equip Your Superpower
Without MCP, Claude Code is trapped inside your code folder. With MCP, Claude's hands reach your database, GitHub, and browser.
โก I will directly connect 1 of Supabase or GitHub MCP
โข I can name 3 or more things that become possible with MCP
What is MCP?
Model Context Protocol. Don't overthink it. One-line summary:
Without MCP: Claude only works within my code folder
With MCP: Claude directly queries databases, opens PRs on GitHub, and controls browsers
Installing MCP โ One Command
claude mcp add supabase -- npx -y @supabase/mcp-server-supabase@latest \ --access-token my_Supabase_token \ --project-ref my_project_ref
claude mcp add github -- npx @modelcontextprotocol/server-github \ --token my_GitHub_token
claude mcp list
Major MCP Server List
| Server | Main Functions |
|---|---|
| Supabase | PostgreSQL queries, migrations, Edge Function deployment |
| GitHub | Create PRs, query issues, search code, manage branches |
| Playwright | Actual browser control, screenshots, scraping |
| Figma | Read designs, Code Connect, auto-generate mockups |
| Context7 | Real-time latest library official documentation lookup |
| Linear | Issue creation, sprint management, task tracking |
How to Manage with Configuration Files
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token", "sbp_XXXXXXXXXX",
"--project-ref", "XXXXXXXXXX"
]
},
"playwright": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-playwright"]
}
}
}
Hooks settings are stored in ~/.claude/settings.json. Be careful as these are two different files.
Never commit files containing token values to git.
You can also use environment variables instead โ refer to Anthropic's official documentation.
We kindled fire, created writing, invented the printing press, and connected the internet.
And now โ AI has arrived.
Those who asked, "How do I use this?"
And those who turned away saying, "This has nothing to do with me."
When the printing press arrived, scribes lost their jobs,
but people who could read became stronger than ever before.
When the internet came, offline stores collapsed,
but people who learned to search put the entire world on their desks.
AI multiplies by 10x what you already have.
Don't fear change.
You are already the descendant of a species that has adapted to change for millions of years.
That is the essence of humanity, and it is your instinct.
Hooks โ The Ultimate in Automation
Shell commands that run automatically every time Claude does something. With this, you get real automation.
โก I set up Hooks directly in settings.json
โข I apply 2 or more Hook recipes that work in real practice
What are Hooks?
When Claude modifies a file, when Claude executes a Bash command, when Claude completes a response โ at these moments, I can automatically run shell commands I want. That's Hooks.
5 Hook Event Types
| Event | When it runs | Use cases |
|---|---|---|
| PreToolUse | Right before tool execution | Block dangerous commands, log activity |
| PostToolUse | Right after tool execution | Run tests automatically, lint check |
| Notification | When notification occurs | Send to Slack/Telegram |
| Stop | Claude response completes | Sound alert, auto-commit |
| SubagentStop | Subagent completes | Trigger next step in pipeline |
Setup Method
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit",
"hooks": [
{
"type": "command",
"command": "pytest tests/ -x -q 2>&1 | tail -8"
}
]
}
],
"Stop": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "powershell -c \"[console]::beep(880, 400)\""
}
]
}
]
}
}
5 Copy-Paste Recipes
โ Auto-test after file modification
"command": "python -m pytest tests/ -x -q 2>&1 | tail -5"
โก Sound alert when task completes (Windows)
"command": "powershell -c \"[console]::beep(800,300)\""
โข Send Telegram notification
"command": "python /tools/telegram_notify.py \"Claude task complete!\""
โฃ Block rm -rf (PreToolUse)
"command": "python /tools/bash_safety_check.py"
โค Auto git stage after file modification
"command": "git add -u"
For long-running tasks, either background them (&) or handle in a separate pipeline.
If PreToolUse returns exit code 2, that Claude action is blocked.
Subagents โ Building an AI Team
Claude alone is strong, but multiple Claudes are much stronger. When an orchestrator conducts the team, tasks run in parallel.
โก I can write parallel processing prompts in Claude Code
โข I know the existence and basic patterns of Agent SDK
"If Claude alone handles 26 rounds of the Shixuan AGI loop, it takes hours. When I parallelized it with multi-agent, it finished in under an hour."
Orchestrator Pattern
Claude A (orchestrator) understands the overall goal and delegates tasks by dividing them among multiple Claude B, C, D. Each sub-agent works on its own task in an isolated context. Once everything is complete, the orchestrator consolidates the results.
Sub-agent A โ Frontend code review
Sub-agent B โ Backend security review
Sub-agent C โ DB query optimization
Each agent executes in an isolated context โ No main context pollution
How to Run Parallel Tasks in Claude Code
Process these 3 things in parallel: 1. Security vulnerability review for api_server/ (Agent 1) 2. Performance optimization points analysis for frontend/ (Agent 2) 3. Coverage analysis for tests/ (Agent 3) Analyze each independently, and once done, create a comprehensive report.
Agent SDK โ Build Teams in Code
With Anthropic Agent SDK, I can build multi-agent systems in code. This is the core of JANDA Shixuan AGI.
import anthropic
client = anthropic.Anthropic()
# Sequential pipeline: pass diagnosis results to the next agent
def run_pipeline(task: str):
# Agent 1: Code review (Haiku โ fast and cheap)
review = client.messages.create(
model="claude-haiku-4-5-20251001",
max_tokens=1024,
system="Code review expert. Find only bugs and security vulnerabilities.",
messages=[{"role": "user", "content": task}]
)
# Agent 2: Receive review results and write improvement plan (Sonnet)
solution = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=2048,
system="Improvement plan expert. Provide specific code.",
messages=[
{"role": "user", "content": task},
{"role": "assistant", "content": review.content[0].text},
{"role": "user", "content": "Based on the above review, write improved code"}
]
)
return solution.content[0].text
# โโ To actually run independent tasks in parallel, use asyncio โโ
import asyncio, anthropic
async def run_parallel(tasks: list[str]):
client = anthropic.AsyncAnthropic()
async def call(t):
r = await client.messages.create(
model="claude-haiku-4-5-20251001", max_tokens=512,
messages=[{"role": "user", "content": t}]
)
return r.content[0].text
return await asyncio.gather(*[call(t) for t in tasks])
Direct API Integration
Building Bots and SaaS
Beyond CLI, how to put Claude inside my app. From Telegram bots to SaaS products.
โก I understand the differences in use cases and costs by model
โข I know the structure of the Tool Use (function calling) pattern
SDK Installation
pip install anthropic python-dotenv
Basic Message Sending
import anthropic
import os
from dotenv import load_dotenv
load_dotenv("MASTER.env")
client = anthropic.Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))
response = client.messages.create(
model="claude-sonnet-4-6", # default model
max_tokens=1024,
system="Answer only in Korean.",
messages=[
{"role": "user", "content": "Create 3 blog titles for today. Return as JSON array."}
]
)
print(response.content[0].text)
Model Selection โ When to Use What
| Model | When to Use | Cost |
|---|---|---|
| claude-haiku-4-5-20251001 | Classification, scoring, short responses, fast processing | Cheapest |
| claude-sonnet-4-6 | General development, analysis, long responses (default) | Mid-range |
| claude-opus-4-7 | Strategic decisions, complex reasoning | Most expensive |
Opus 4.7 only when necessary, considering monthly budget. Don't use it just for "better answers."
The more specific, the more helpful it becomes to others.
Streaming Response
with client.messages.stream(
model="claude-sonnet-4-6",
max_tokens=2048,
messages=[{"role": "user", "content": "Write a long report"}]
) as stream:
for text in stream.text_stream:
print(text, end="", flush=True)
Tool Use โ Give Claude Functions
tools = [{
"name": "search_naver_local",
"description": "Search business info using Naver Local Search API",
"input_schema": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "Search term (e.g., Gangnam study cafe)"}
},
"required": ["query"]
}
}]
response = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=512,
tools=tools,
messages=[{"role": "user", "content": "Find Pilates businesses in Gangnam"}]
)
# When Claude returns a tool_use block, execute the actual function
for block in response.content:
if block.type == "tool_use":
result = search_naver_local(block.input["query"])
# Pass result back to Claude to have it summarize
Building JANDA AGI
The Story from Someone Who Actually Built It
6 months of real Claude Code usage. I tell the story with concrete numbers and actual code.
"I was spending 3 million won per month on outsourced development. After adopting Claude Code, API costs are 50,000 won per month. Output volume is 3x."
What We Built
Agent Systems: Sihwang AGI (26-Round Self-Coding Loop) / Multi-Agent Orchestrator / Knowledge RAG Bot
SaaS Products: AITF API (17 Products, 48 Endpoints) / JungleBooking Reservation System
Codebase: 50,000+ Lines (Built by 1 Developer in 6 Months)
Sihwang AGI โ Self-Coding in Action
Sihwang AGI starts on its own every night at 00:30, improves its code automatically, and finishes at 07:00. I don't have to do anything.
CLAUDE.md Made It All Possible
## Sihwang AGI File Safety Rules (v3.3 โ 2026-05-14) | Rule | Details | |------|---------| | confidence < 55 | Skip โ Retry with reduced scope (1 attempt) | | Cooldown Threshold | 1 hour from last attempt (prevent loops) | | Import Validation | Reflect only after subprocess execution | | Overnight Modifications | Via code_patcher only, no direct edits | | Target Success Rate | 100% โ All valid attempts must have patched=True
These rules live in CLAUDE.md and are injected into Claude every session. They're the safety protocols I follow when AI modifies AI code.
Core Lessons โ Looking Back After 6 Months
2. Never apply without validation. Without the subprocess validation step, automation becomes a liability instead of an asset.
3. Design rollback first. Without auto-generated .bak files and git commit checkpoints, I can't trust overnight loops.
4. Start small. I began with 1 bot. The 11 bots were built one by one over 6 months.
Want to see Claude Code in action on video?
I show the real implementation process of everything taught in this book. Bot building, automation pipelines, failures and all โ sometimes watching is much faster than reading.
Completion & Next Steps
What to Do Now
You've completed this book. Now it's time to close the gap between what you know and what you've actually done. Let's start with your first project.
If you've read this book, you're already prepared. Now it's just a matter of actually doing it. Your first project is the fastest way to close the gap between knowing and doing.
3 Projects to Start Right Now
Reading about something and actually using it are completely different. When you're reading, it all seems to make sense. The moment you open the terminal, your mind goes blank. The fastest way to bridge that gap is with one small project. Do them in order, one at a time.
Lv.2 (Intermediate): Connect GitHub MCP โ Create a script that automatically organizes the issue list every morning
Lv.3 (Advanced): Set up Hooks โ Automatically run tests after file changes + Connect Telegram notifications
Claude Code Ecosystem โ The Future
โข Autonomous Agent Expansion: Models expected to achieve 90%+ on SWE-bench
โข AI Proficiency = Core Job Competency: Hiring demand for Claude Code users is surging
โข Era of the One-Person Team: Claude Code + proper infrastructure = 5-person team productivity
Services I built directly with Claude Code
AITF โ AI Agent Building & Education
Building, operation, and training services for companies that need AI agent implementation. The systems introduced in this book are actually running here.
aitf-landing.onrender.com โ์ ๊ธ๋ถํน โ AI Integrated Booking System
Booking automation for vertical industries like study cafes, pilates studios, and coworking spaces. From reservations to marketing.
ai-jungle.kr โClaude Code Mastery Achieved
By completing all 10 lessons, you're part of a small group in Korea who truly understands Claude Code.
There's only one next step โ open your terminal tonight and start your first project.
You've become a Claude Code Master,
Now widen the gap with real-world video tutorials
Only 17% of all readers have completed this book.
The gap widens even more when you watch practical coding videos on the AI Hunter channel.
Claude Code Bible 2026 โ Author Kim Hwa-hyun ยท Co-author Road
AI Hunter Channel ยท ceo@stayjanda.com
Collaboration and suggestions ยท ceo@stayjanda.com
Prompt Cheat Sheet
30 Copy-Paste-Ready Patterns
[Change only what's in brackets]. The rest works as-is. These prompts are battle-tested across scenarios.
๐ Bug Fix Patterns
I'm getting this error. Find the cause and fix it. Explain the cause before touching the code. [Paste entire error message] File: [filename]
[Function name] is giving me [symptom]. Input: [example input] Expected output: [what I expect] Actual output: [what I'm getting] Read the code and find the cause. Tell me your hypothesis before fixing.
[Feature name] sometimes breaks. Not always, but [frequency/condition]. The logs show: [Log content] Check if it's a race condition or timing issue. Read all related code and find suspicious points.
๐จ New Feature Patterns
Read the current [module name] code. I want to add [feature description]. Where and how should I attach it to the existing structure so it feels natural? Plan onlyโno code changes until I say OK.
Add [endpoint path] endpoint to FastAPI. - Method: [GET/POST/PUT] - Input: [parameter description] - Output: [return value description] - Auth: [yes/no] Read the existing router file [filename] and match that style.
Write a query to fetch [condition] data from [table name]. Current DB connection method is in [filename]. Match the style of existing query functions.
โป๏ธ Refactoring Patterns
[Function name] in [filename] is too long. Read it and suggest how to break it up. Must keep existing functionality identical before and after.
[FilenameA] and [FilenameB] have similar code. Read both and find parts that can be extracted into a shared function. Minimize changes.
Read [filename]. Don't change functionality. Just rename variables and function names to be clearer. Show me the rename list first, and I'll confirm before applying.
โ Test Writing Patterns
Write pytest tests for [function name] in [filename]. - 3 normal cases - 2 edge cases (None input, empty values, etc.) - 1 exception case Read the existing test file [tests/filename] and match that style.
Read [filename] entirely. Pick the 3 most important functions in this file. Write at least 2 test cases for each. Write tests first, then run them to confirm they pass.
๐ Code Understanding Patterns
I don't understand how the [feature name] part of this project works. Read through [related folder/file name] and explain the data flow to me in order. Don't touch the code.
I don't understand what this part does in [file name] lines [line number]~[line number]. Explain the reasoning behind why it was written this way. Make it understandable even for non-developers.
Where will changes to [file name/function name] have an impact? Find the files that import or call this file. After I understand the scope of impact, I'll make the modifications.
๐ Performance Optimization Patterns
[Function name] in [file name] is slow. It takes an average of [time]ms. Read the code and find the bottleneck. Focus on indexing, N+1 queries, and unnecessary loops.
[Function name] in [file name] runs sequentially, which is slow. Check if we can switch it to async/parallel processing. Read the current code and suggest improvements using asyncio or ThreadPoolExecutor.
๐ Documentation Patterns
Read through this entire project. Write a GitHub README.md for me. - Project description (1~2 lines) - Installation method - Usage (with examples) - Environment variable list Make it readable for non-developers.
Read [file name]. Find public functions without docstrings and add docstrings in Args/Returns/Raises format. Don't touch the function logic.
๐ Security Patterns
Read [file name]. Check for vulnerabilities from these 4 perspectives: SQL injection, XSS, authentication bypass, sensitive data exposure. If you find any, tell me the severity level (high/medium/low) and how to fix it.
Find any hardcoded API keys or passwords in this project. Create a list of things that can be replaced with os.getenv(). Don't output the actual values.
๐ค Collaboration Patterns
Here's the result of git diff [branch name]..HEAD: [diff content] Write a GitHub PR description for these changes. - Summary (what changed and why) - Testing method - Cautions Use markdown format.
Here's the result of git diff --staged: [diff content] Write a commit message in Conventional Commits format. Choose the appropriate type from feat/fix/refactor/docs.
๐ Python-Specific Patterns
Read [file name]. Add type hints to functions without them using Python's typing module. Don't change the function behavior, only the types.
[Function name] in [file name] has insufficient error handling. Analyze what exceptions could occur and add try/except + logging. Silent fails are prohibited.
โก Automation Patterns
I do [task description] manually every day. Create a Python script to automate this. - Input: [data source] - Processing: [logic] - Output: [result] Read keys from MASTER.env.
I want [script path] to run automatically every day at [time]. Tell me how to set it up in Windows Task Scheduler or Linux cron. How do I get a Telegram notification if it fails?
๐ง Debugging Patterns
Here's a log. Find what's wrong with it. [log content] Focus on timestamp patterns, error patterns, and unusual values.
When I run [command], I get this: [execution result] It works locally but not on the server. Find the cause of the environment difference. Focus on OS, Python version, and package version differences.
๐ Data Patterns
This is the JSON structure: [JSON sample] Write code that extracts only [desired data] and converts it to [output format].
The data I receive from [file name] is sometimes malformed. Add code that validates it matches [expected schema]. If malformed data comes in, log it and skip it.
โจ๏ธ Complete Slash Command List
Commands you can enter anytime during a Claude Code conversation. This one table is all you need.
| Command | When to Use | Description |
|---|---|---|
| /help | When starting out | View complete list of available commands |
| /clear | Before starting new task | Completely reset conversation context (resets cost & quality) |
| /compact | When conversation gets long | Compress conversation into summary. Saves tokens while maintaining flow |
| /context | Check context | Check current remaining context window usage |
| /model | When switching models | Switch between Opus / Sonnet / Haiku |
| /config | Check settings | Display current settings status |
| /cost | Check cost | Check current session token usage and cost |
| /quit ยท /exit | Exit | Exit Claude Code |
/compact โ When it's the same task but the conversation got too long. When you want to maintain the flow.
Top 10 Common Mistakes
The Pitfalls Only Experienced Users Know
These are mistakes I've made myself. After reading this, you can avoid the same trial-and-error.
"You don't need to repeat the mistakes I made. I already paid enough for them."
Mistake #1 โ Asking to "Fix it" without exploration
โ After confirming the analysis: "Fix just this part"
Mistake #2 โ Starting new task without /clear
No need for /clear if continuing the same task. Judgment rule: "Does the previous conversation help this task?"
โ If No, use /clear
Mistake #3 โ Throwing a huge task at once
O: "Step 1: Migrate just models.py first. After testing and confirming completion, we'll do step 2."
Maximum 3-5 files changing at once. If more, the scope is too wide.
Mistake #4 โ Committing .env file to git
.env *.env MASTER.env .env.local .env.production secrets.json *_credentials.json token*.pickle
Mistake #5 โ Starting development without CLAUDE.md
Minimum content: project purpose, main ports/paths, things that must never be touched.
Mistake #6 โ "Build it well" without success criteria
O: "Build this function. Success criteria: โ Response under 100ms โก All existing tests pass โข Changes to 2 files or fewer"
Mistake #7 โ Not recording failures
Format: [Date] Symptom โ Cause โ Solution
Claude won't make the same mistake in the next session.
Mistake #8 โ Deploying without validation
Mistake #9 โ Token waste
2. Don't write a Sonnet when Haiku will do โ Scoring and classification are enough with Haiku
3. Keep exploration prompts short โ Instead of "read this entire folder," try "read only auth.py"
Mistake #11 โ Leaving Claude stuck in a loop
Step 2 โ Redefine the problem. From "what's not working" to "what state do I want?"
Step 3 โ Break it down. From "fix everything" to "why does this one line behave this way?"
โก Claude suggests methods you've already tried
โข Conversation exceeds 30 turns with the same problem persisting
Mistake #12 โ Not knowing your context window is exhausted and continuing anyway
CLAUDE.md โ Write down core rules; even if context gets cut off, re-reading it restores continuity.
Split long tasks across sessions โ "Complete stage 1, commit" โ start a new session actually yields higher quality.
Mistake #10 โ Believing everything Claude says 100%
When in doubt, ask: "Are there other ways? If there's a simpler method, let me know."
For important decisions, cross-reference official documentation. Context7 MCP brings the latest docs in real-time.
Cost Savings ยท VS Code ยท Git
Complete Practical Setup Guide
How to save money, use VS Code more comfortably, and connect git with Claude.
๐ฐ Part A โ Practical cost savings guide
Claude Code with claude.ai Pro plan ($20/month) has no separate CLI costs. However, if you build a bot that calls the API directly, token costs accumulate. Here's how to manage it.
Cost by model & appropriate use cases
| Model | Relative Cost | When to Use | When NOT to Use |
|---|---|---|---|
| Haiku 4.5 | โ โโ Cheap | Scoring, classification, short responses, repetitive loops | Long code generation, complex reasoning |
| Sonnet 4.6 | โ โ โ Medium | General development, analysis, code generation (default) | Simple classification, short summaries |
| Opus 4.7 | โ โ โ Expensive | Strategic decisions, architecture design | Everyday coding tasks |
Cutting Costs Through Context Management
โก Keep system prompts concise โ When using the API directly, the system prompt is included in every call. Keep only what's essential.
โข Set max_tokens appropriately โ For short responses, max_tokens=256 is enough. Don't leave the 4096 default as-is.
import anthropic
client = anthropic.Anthropic()
# โ
Scoring: Haiku + token limit
def score_lead(item: dict) -> int:
resp = client.messages.create(
model="claude-haiku-4-5-20251001", # cheap model
max_tokens=50, # just return a number
system="Return only a number. 0โ100.",
messages=[{"role": "user", "content": f"This vendor's subscription likelihood: {item}"}]
)
return int(resp.content[0].text.strip())
# โ
Code generation: Sonnet + reasonable tokens
def generate_code(spec: str) -> str:
resp = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=2048, # be generous for code generation
messages=[{"role": "user", "content": spec}]
)
return resp.content[0].text
๐ฅ๏ธ Part B โ VS Code Integration Complete Guide
Using Claude Code alongside VS Code is much faster than the terminal alone.
Installation & Getting Started
What You Can Only Do in VS Code
Ask about errors directly โ Red squiggle โ right-click โ "Ask Claude" (with extension installed)
Split View โ Work while viewing editor on left + Claude on right simultaneously
Check diff immediately โ When Claude modifies files, VS Code displays changes in diff view
Recommended VS Code Settings
{
"editor.formatOnSave": true,
"terminal.integrated.defaultProfile.windows": "PowerShell",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"git.autofetch": true,
"editor.minimap.enabled": false // Use screen space more efficiently
}
๐ฟ Part C โ Claude Code + Git in Practice
How to Let Claude Code Handle Git Operations
I'll start developing the new feature [feature name]. Create a feature/[feature name] branch using git checkout -b. After development is complete, write commit messages in Conventional Commits format.
Check what I've changed so far with git diff and commit them divided into meaningful units. Use feat/fix/refactor for each commit message as appropriate.
Automatic Security Check โ Commit Integration
#!/bin/bash # Automatically check for .env file inclusion before commit if git diff --cached --name-only | grep -E "\.env$|MASTER\.env|secrets\."; then echo "โ Security files are staged. Please exclude them with git reset HEAD." exit 1 fi echo "โ Security check passed"
GitHub Actions + Claude (Advanced)
name: AI Code Review
on: [pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Claude Code Review
run: |
# Send PR diff to Claude API to auto-generate review comments
# Combination of anthropic SDK + GitHub API
python scripts/ai_review.py
๐ Part D โ Security Practice Guide
The more I use Claude Code, the higher the probability of security mistakes. Being careful about .env is basic, but I need to take care of these too.
โ Actual API key values (e.g., sk-ant-xxxxx)
โ Database passwords, OAuth tokens
โ Internal server IPs, domains
โ Instead: "API keys load from MASTER.env. Never hardcode."
Scan this entire project for me. Find any hardcoded API keys, passwords, or tokens. Don't output actual valuesโjust tell me the file names and line numbers.
โก Check git status before git add to ensure no sensitive files
โก Set up pre-commit hook for automatic blocking (see Part C)
โก Verify CLAUDE.md contains no actual key values
๐ฅ Part E โ Team Collaboration Guide
Using Claude Code alone is different from using it in a team. When I share CLAUDE.md, the entire team can work with the same context.
Coding Conventions โ Variable names, file structure, import order
Prohibited Actions โ "Don't touch this file", "Don't call this API directly"
Common Patterns โ Snippets and design patterns the team frequently uses
# Team Project CLAUDE.md ## Coding Principles - Python functions: snake_case - API responses: always declare types with TypedDict - Errors: must log before raising ## Do Not Touch - db/migrations/ โ DBA only - auth/jwt.py โ modify after security team approval ## PR Rules Commit messages: choose from feat/fix/refactor/docs PR scope: 1 feature, 5 file changes or fewer ## Environment Variables All keys referenced in .env.example. Actual values issued via team Notion.
๐ช Part F โ Windows-Specific Tips
Most Claude Code tutorials are Mac/Linux-focused. When working on Windows, you hit unexpected blockers. If you're a domestic user, you absolutely need to know these.
Path() in Python for automatic handling.Korean encoding โ If terminal is CP949, Korean text breaks. After opening PowerShell:
$OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8Line breaks โ Windows uses CRLF, Linux uses LF. When git diff looks odd, fix with .gitattributes.
# Prevent Korean text corruption $OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 # Check Node.js version (v18+ required) node --version # Run Claude Code claude
* text=auto *.py text eol=lf *.js text eol=lf *.json text eol=lf
Windows Terminal โ Use instead of default PowerShell. Tabs, fonts, colors all improved.
Python execution โ If python doesn't work, try py or python3.