AI Library

AI Library

Books for Reading AI

Choose a book, then read it in order from the table of contents.

2026 Beijing: The Dangerous Dance of Two Giants book cover

16 posts available

2026 Beijing: The Dangerous Dance of Two Giants

Kim Kyung-jin

Table of Contents, Introduction, 13 Chapters, Epilogue

This book reads the Beijing summit through Hormuz, rare earths, Taiwan, Boeing, soybeans, AI chips, and Korea’s exposure to the U.S.-China bargain.

Share

Leaving It to AI and Stepping Away cover

27 posts

Leaving It to AI and Stepping Away

Kim Kyung-jin

A Complete Beginner’s Guide to YOLO Mode. Table of contents and 26 chapters

A beginner-friendly online book on YOLO mode in Claude Code and Codex. It explains how to let AI read files, write code, run commands, and finish work while keeping rollback, Docker sandboxing, and safety checks close at hand.

Share

Artificial Intelligence Fighter, Artificial Intelligence Air Force book cover

43 posts available

Artificial Intelligence Fighter, Artificial Intelligence Air Force

Kim Kyung-jin

Table of Contents, Preface, 40 Chapters, Epilogue

Artificial Intelligence Fighter, Artificial Intelligence Air Force is an online AI Library book by Kim Kyung-jin. It covers AI fighters, autonomous air power, unmanned combat aircraft, CCA, MUM-T, sixth-generation fighters and is organized as Table of Contents, Preface, 40 Chapters, Epilogue.

Share

Artificial Intelligence on Trial book cover

26 posts available

Artificial Intelligence on Trial

Attorney Kyungjin Kim

Table of Contents, Preface, 21 Chapters, 3 Appendices

Artificial Intelligence on Trial is an online AI Library book by Attorney Kyungjin Kim. It covers artificial intelligence and law, AI liability, algorithmic judgment, courts and technology and is organized as Table of Contents, Preface, 21 Chapters, 3 Appendices.

Share

PALANTIR book cover

16 posts available

PALANTIR: War, Surveillance, Artificial Intelligence

Attorney Kyungjin Kim

Table of Contents, Preface, 14 Chapters

PALANTIR: War, Surveillance, Artificial Intelligence is an online AI Library book by Attorney Kyungjin Kim. It covers Palantir, war, surveillance, artificial intelligence, data analytics, national security and is organized as Table of Contents, Preface, 14 Chapters.

Share

Brain Readers: Neuralink and the Final Human Revolution book cover

21 posts available

Brain Readers: Neuralink and the Final Human Revolution

Kim Kyung-jin

Table of Contents, Prologue, 18 Chapters, Epilogue

Brain Readers: Neuralink and the Final Human Revolution is an online AI Library book by Kim Kyung-jin. It follows Neuralink, brain-computer interfaces, brain data, medicine, neurorights, and the future of human enhancement.

Share

Artificial Intelligence and the Reshaping of Society book cover

16 posts available

Artificial Intelligence and the Reshaping of Society

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Epilogue

Artificial Intelligence and the Reshaping of Society is an online AI Library book by Kim Kyung-jin. It follows how artificial intelligence changes work, education, inequality, cities, democracy, and human relationships.

Share

The Jensen Huang Story book cover

16 posts available

The Jensen Huang Story

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Epilogue

The Jensen Huang Story is an online AI Library book by Kim Kyung-jin. It covers Jensen Huang, NVIDIA, GPUs, AI chips, and the AI industry.

Share

Ten Questions AI Poses to Humanity book cover

12 posts available

Ten Questions AI Poses to Humanity

Kim Kyung-jin

Table of Contents, Preface, 10 Chapters

Ten Questions AI Poses to Humanity is an online AI Library book by Kim Kyung-jin. It asks how artificial intelligence changes truth, weapons, work, data, identity, and human control.

Share

Malaysia and the Malacca Strait book cover

23 posts available

Malaysia and the Malacca Strait: Whoever Controls It Controls the World

Kim Kyung-jin

Table of Contents, Preface, 20 Chapters, Epilogue

Malaysia and the Malacca Strait is an online AI Library book by Kim Kyung-jin. It covers Malaysia, the Malacca Strait, maritime logistics, geopolitics, global trade, and Southeast Asia’s strategic future.

Share

Georgia history and culture travel book cover

24 posts available

A Journey Through Georgia’s History and Culture

Kim Kyung-jin

Table of Contents, Preface, 17 Chapters, 4 Appendices, Epilogue

A Journey Through Georgia’s History and Culture is an online AI Library book by Kim Kyung-jin. It covers Georgia’s history, culture, religion, politics, travel, and the Caucasus crossroads between Europe and Asia.

Share

Reading Armenia book cover

13 posts available

Reading Armenia: A Thousand Prayers, One Mountain

Kim Kyung-jin

Table of Contents, Preface, 10 Chapters, Epilogue

Reading Armenia: A Thousand Prayers, One Mountain is an online AI Library book by Kim Kyung-jin. It covers Armenian history, faith, Mount Ararat, cultural memory, travel, and the endurance of a small nation.

Share

Mastering Claude Code book cover

41 posts available

Mastering Claude Code

Kim Kyung-jin

Table of Contents, Preface, Chapters, Appendices

Mastering Claude Code is an online AI Library book by Kim Kyung-jin. It covers Claude Code setup, commands, workflows, automation, agents, and practical methods for using Claude Code in real work.

Share

Claude Cowork and Agent manual book cover

11 posts available

Claude Cowork and Agent Utilization Manual

Kim Kyung-jin

Table of Contents, Preface, 8 Chapters, Closing Note

Claude Cowork and Agent Utilization Manual is an online AI Library book by Kim Kyung-jin. It covers Claude Code, AI agents, coding automation, work automation, and practical agent-based collaboration.

Share

2026 U.S.-Iran War and the Global Energy Crisis book cover

39 posts available

The 2026 U.S.-Iran War and the Global Energy Crisis

Kim Kyung-jin

Table of Contents, Preface, Chapters and Appendices

The 2026 U.S.-Iran War and the Global Energy Crisis is an online AI Library book by Kim Kyung-jin. It covers war, oil, the Strait of Hormuz, maritime security, energy markets, and the global consequences of conflict.

Share

The Traces Han Dong-hoon Left on South Korea book cover

13 posts available

The Traces Han Dong-hoon Left on South Korea

Kim Kyung-jin

Table of Contents, Prologue, Chapters, Epilogue

The Traces Han Dong-hoon Left on South Korea is an online AI Library book by Kim Kyung-jin. It examines his record in justice policy, immigration reform, public institutions, and the structural questions facing South Korea.

Share

The Han Dong-hoon Story book cover

39 posts available

The Han Dong-hoon Story

Kim Kyung-jin

Table of Contents, Prologue, Chapters, Epilogue

The Han Dong-hoon Story is an online AI Library book by Kim Kyung-jin. It traces Han Dong-hoon’s life, public career, political choices, and the changing landscape of South Korean conservative politics.

Share

Beyond the Glass Ceiling cover

39 entries

Beyond the Glass Ceiling

Kim Kyung-jin

Table of contents, prologue, 31 chapters, epilogue, 5 appendices

A political biography tracing Sanae Takaichi’s rise from Nara to Japan’s premiership, through party struggles, security policy, diplomacy, and the meaning of Japan’s first female prime minister.

Share

AI Hegemony War book cover

8 posts available

AI Hegemony War

Kim Kyung-jin

Table of Contents, 7 Chapters

An online AI Library book by Kim Kyung-jin on AI superintelligence, the U.S.-China technology race, Europe and Korea’s AI laws, and international AI governance.

Share

Sam Altman Biography: Pioneer of the AI Revolution cover

22 posts

Sam Altman Biography: Pioneer of the AI Revolution

Kim Kyung-jin, Kim Kyung-ran

Table of contents, preface, 7 parts, 20 chapters

An online biography following Sam Altman’s childhood, startups, Y Combinator, OpenAI, ChatGPT, the 2023 board crisis, and his sense of responsibility in the AI era.

Share

From Chaiwala to Prime Minister cover

13 entries

From Chaiwala to Prime Minister

Kim Kyung-jin

Table of contents, preface, 10 chapters, epilogue

A political biography tracing Narendra Modi from a chai-selling boy in Vadnagar to RSS organizer, Gujarat chief minister, and three-term prime minister, while reading modern India, Korea-India relations, and the risks of a rising power.

Share

AI Classroom: Your Grades Will Change book cover

26 posts available

AI Classroom: Your Grades Will Change

Kim Kyung-jin

Table of Contents, Preface, 24 Sections

An online AI Library book by Kim Kyung-jin on how AI can support elementary, middle, and high school learning, teaching, assessment, and educational equity.

Share

Military Artificial Intelligence cover

17 entries

Military Artificial Intelligence

Kim Kyung-jin and Kim Won-tae

Table of contents, preface, 14 chapters, epilogue

A full-length study of military artificial intelligence, from autonomous weapons, drones, command systems, logistics, and cyber defense to the strategies of the United States, China, Israel, Korea, and global defense AI companies.

Share

Global Case Studies in Introducing AI into Public Administration book cover

25 posts available

Global Case Studies in Introducing AI into Public Administration

Kim Kyung-jin

Table of Contents, 23 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on public-sector AI adoption, national strategies, administrative services, governance, and future policy tasks.

Share

Seven Misunderstandings About the Arctic Route book cover

10 posts available

Seven Misunderstandings About the Arctic Route

Kim Kyung-jin

Table of Contents, Preface, 7 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on seven common misunderstandings about the Arctic Route, including speed, liner service, insurance, safety rules, year-round access, carbon impact, and infrastructure.

Share

Artificial Intelligence Election cover

14 posts

Artificial Intelligence Election

Kim Kyung-jin

Table of contents, author preface, 11 chapters, closing essay

An online book on campaign messaging, publicity materials, digital campaigning, data analysis, campaign operations, disinformation defense, legal risk, and ready-to-use prompts.

Share

Demis Hassabis book cover

34 posts available

Demis Hassabis, Father of Google’s Artificial Intelligence

Kim Kyung-ran, Kim Kyung-jin

Table of Contents, Author’s Preface, 31 Chapters, Epilogue

Demis Hassabis, Father of Google’s Artificial Intelligence is an online AI Library book by Kim Kyung-ran, Kim Kyung-jin. It covers Demis Hassabis, Google DeepMind, artificial intelligence, AlphaGo, AI research and is organized as Table of Contents, Author’s Preface, 31 Chapters, Epilogue.

Share

The Dhammapada 423 Verses book cover

28 posts available

The Dhammapada: 423 Verses

Kim Kyung-jin

Table of Contents, Editor’s Note, 26 Chapters, 423 Verses

An online AI Library book by Kim Kyung-jin. This edition arranges all 423 verses of the Dhammapada into 26 chapters for slow, poetic reading.

Share

Nano Banana Pro Practical Prompt Book cover

24 posts

Nano Banana Pro Practical Prompt Book

Kim Kyung-jin

6 parts, 22 chapters, classroom prompt appendix

An online book for using Nano Banana Pro in classes and real work, covering image generation, editing, text rendering, character consistency, business use cases, and monetization.

Share

Liberal Arts AI for College Students book cover

16 posts available

Liberal Arts AI for College Students

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Closing Essay

An online AI Library textbook for college students. It introduces AI history, daily use, document work, research, images, presentations, video, productivity, learning, careers, copyright, and governance.

Share

Legal Practice and Artificial Intelligence book cover

16 posts available

Legal Practice and Artificial Intelligence

Kim Kyung-jin

Table of Contents, Preface, 14 Parts

An online AI Library book by Kim Kyung-jin on legal research, drafting, evidence analysis, contract review, NotebookLM, and practical generative AI workflows for legal practice.

Share

Hello, I Am Kim Kyung-jin book cover

10 posts available

Hello, I Am Kim Kyung-jin

Kim Kyung-jin

Table of Contents, Preface, Recommendations, 6 Chapters, Closing

An online AI Library book on Kim Kyung-jin’s life, science and technology policy, parliamentary diplomacy, legislative battles, Dongdaemun vision, and proposals for Korea’s demographic future.

Share

Politics and People book cover

25 posts available

Politics and People

Kim Kyung-jin

Table of Contents, Prologue, 22 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on how politics begins with reading people, winning trust, keeping relationships, and enduring seasons of crisis.

Share

[AI Library] Chapter 8: claude.md: Writing Agent Instructions

Mastering Claude Code
Author
Kim Kyung-jin
Date
2026-05-06 09:09
Views
373

Mastering Claude Code

Chapter 8: claude.md: Writing Agent Instructions

Kim Kyung-jin

Mastering Claude Code

Introduction

A newly hired employee shows up for their first day. You open the office door, let them in, and say nothing but "get to work." What happens? They don't know where the bathroom is. They don't know where the contacts for major clients are kept. They don't know what the company's tone and manner are. They start writing emails knowing none of this. The result cannot help but be wrong. Using Claude Code on a new project for the first time is exactly this.

The agent opens a folder and looks for one file first: claude.md. Without this file, the agent is no different from a new employee who showed up with no guidance.

The Role of System Prompts

If you have built an AI agent in n8n, you have probably seen the field in the node settings window where you enter a system prompt. If you have created a custom GPT in ChatGPT, you have experienced adding your role and rules to the Instructions tab. claude.md serves the same purpose.

The name is different, but the essence is the same. It is the document the agent always reads before reading the user's message.

Let me trace the sequence. The user sends a message to Claude Code. Before processing that message, the agent reads the entire claude.md file from the project root. Only then does it check the user's message and generate a response. This order is always the same. Every time you start a new conversation, every time you run /clear, the agent reads claude.md first.

What this means is clear. Content written in claude.md becomes the baseline that runs through all of the agent's behavior. If you write "all responses should be in Korean," the agent answers in Korean. If you write "always include error handling when creating Python scripts," the agent won't skip try-except blocks.

[Figure 8-1] Flowchart showing the order in which the agent processes a message. Read claude.md → Check user message → Explore files as needed → Generate response.

What to Include

The information that should go in claude.md divides into three main layers.

What: the project's identity. Specify what this project is, what its tech stack is, and what core packages or skills it needs. A real example looks like this.

One paragraph. It contains the agent's role and the user's top priority goal.

Why: the purpose of each component. If you write only "the tools folder contains Python scripts," the agent knows the folder exists but does not understand why to check it first. If you write "when you get a new task, check the tools folder first,there might already be a tool built for it," the agent's behavior changes.

How: the working method expected of the agent. Action rules like "if an error occurs, fix the script and then add that error handling method to the workflow document" belong here.

What Not to Include

Do not include the resumes of all team members. Do not copy and paste the entire project meeting log. Do not include detailed documentation of every API endpoint.

The reason is the token count discussed in the previous chapter. claude.md is read in its entirety at the start of every conversation. If the file is 500 lines, each time those 500 lines' worth of tokens eat into what the model can read in one session. To answer a single question, a large chunk of context is already consumed by the system prompt before the conversation even starts.

The rule is straightforward. Put only what the agent needs to know every single time in claude.md. Information needed only occasionally goes in a separate file, with claude.md pointing to that file's location.

The 150-to-200-Line Principle

So what is the right length for claude.md?

The validated standard in practice is between 150 and 200 lines. Within that range, you can fit project identity, core rules, and file location guidance. There is a real example: the claude.md file right after setting up an agent secretary project was about 87 lines. As the project grows,skills and tools added, reference files multiplying,it naturally expands toward 150 lines.

Once you start crossing 200 lines, you should be alert. At that point, items in claude.md definitely exist for which the answer to "do I really need to read this every time?" is no. Those items should be moved to a separate file.

As time passes, new skills are added to the project, reference documents accumulate, and rules become more detailed. claude.md naturally expands. You now need a routing strategy.

Routing Strategy: Pointing from claude.md to Other Files

Open the agent secretary project's claude.md and you will see a passage like this in the middle section.

This is routing. claude.md itself contains no detailed information about "who the user is." Instead, it just points to "read this file if you want to know about the user." The agent reads context/me.md only when the user's question involves the user's personal information. If it does not, it skips it.

This way, the only tokens consumed each time are the brief guidance lines in claude.md.

Let me show routing's impact with numbers. If you cram user profile, work details, team information, priorities, and project description all into claude.md, you will easily exceed 500 lines. With routing, claude.md stays at 100 to 150 lines while the agent pulls in those files only when needed. That frees up proportionally more breathing room in what it can read at once.

Here are examples of files that can be routing targets.

[Figure 8-2] Hub-and-spoke diagram with claude.md as the hub and me.md, work.md, team.md, and others as spokes.

The Habit of Updating claude.md as Your Project Grows

claude.md is not something you write once and shelve. It lives and breathes with your project.

Initial Generation: The /init Command

If your existing project lacks claude.md, run the /init command. The agent scans the project's folder structure and code, then automatically generates a claude.md draft. It will not be perfect, but it beats starting from a blank page. Review the draft, add any missing rules, and delete anything unnecessary.

Daily Updates

When you add a new skill or workflow, just tell the agent directly: "I just added a folder called brand-assets. Update claude.md so it tells me to check that folder whenever I need a logo or brand guidelines." The agent opens claude.md and adds the entry. This habit, built over time, turns claude.md into a precise map of your project's current state.

Periodic Compression

After a project runs for weeks or months, accumulated entries in claude.md start to exceed 200 lines. At this point, ask the agent like this: "claude.md has gotten long. Clean it up to reflect where we are now. Remove tools and project references we do not use anymore, and consolidate similar rules." The agent analyzes and reorganizes the file. You review the result and sign off.

The Relationship Between claude.md and the .claude/ Directory

Alongside claude.md in the project root, a hidden directory called .claude sometimes appears. Inside sit detailed rule files like communication style guides. If claude.md is the broad-brush guidance, the files inside .claude are supplementary rules.

[Figure 8-3] Tree structure visualization showing the relationship between claude.md and the .claude/ directory, as well as the context folder in the project folder structure

In summary, claude.md is the agent's job description. It defines the role, specifies core rules, and points to where files with detailed information are located. Keep it to between 150 and 200 lines. Update it whenever the project changes.

You have organized who the agent is, what it remembers, and what rules it follows. But however intelligent the agent may be, its ability to act is limited without a means to interact with the outside world. To send emails, collect information from websites, or add events to a calendar, the agent needs 'hands.'

Gyeong-jin Kim, AI Policy Expert and Attorney

AI legal policy specialist, former member of parliament, author of multiple works

If this book has spent even a moment with you, please help the next story reach the world.

(Voluntary support requested - Account: Nonghyup 302-1096-0948-81, Account holder: Gyeong-jin Kim)

Kim Kyung-jin

Attorney · Former Member of the National Assembly · AI Policy Researcher

kimkj.com

© 2026 Kim Kyung-jin. All rights reserved.

#KimKyungjin #AILibrary #MasteringClaudeCode
Scroll to Top
kimkj.com Home