AI Library

AI Library

Books for Reading AI

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

The EU AI Act cover

Table of Contents

The EU AI Act

Kim Kyung-jin, Attorney at Law

A Practitioner’s Guide for Korean Companies

From August 2, 2026, a game company’s chatbot in Pangyo and a medical-device reading software in Busan fall under Article 50 of the EU AI Act, even without a single office in Europe. Rather than summarizing the provisions, this book reads them from the enforcement authority’s point of view: extraterritorial reach, transparency duties, general-purpose AI models, high-risk systems, and the double regulation that overlaps with Korea’s AI Framework Act. It is a field guide to what a Seoul-headquartered company must prepare, when, and how.

South Korea's AI Basic Act: A Practical Guide for Business Operators cover

Contents

South Korea’s AI Basic Act: A Practical Guide for Business Operators

Kim Kyung-jin, Attorney at Law

Compliance, Obligations, and Opportunities under Korea’s AI Regulation

On January 22, 2026, the AI Basic Act came into effect in the Republic of Korea. This book was written by an attorney for business operators. It answers questions such as “Is our service high-impact AI?”, “How should prior notification be conducted?”, and “What preparations are needed when expanding into the EU?”

Chinese Government AI Regulations cover

Contents

Chinese Government AI Regulations

Kim Kyung-jin, Attorney at Law

Chinese originals, translations, terms, issuing bodies, effective dates, administrative interpretations, and judicial materials

This edition orders Chinese AI-related laws, administrative regulations, military regulations, departmental rules, policy documents, and national standards by legal force. Each entry keeps the Chinese original text and adds an English translation or explanation, legal terms, issuing body, effective date, administrative interpretations, and judicial materials where available.

Fathers of Chinese AI cover

Table of Contents

Fathers of Chinese AI

Kim Kyung-jin, Attorney at Law

Ten lives behind China's AI ascent

This book follows Kai-Fu Lee, Robin Li, Jie Tang, Liang Wenfeng, Yang Zhilin, Yan Junjie, Wang Xiaochuan, Jingren Zhou, Shunyu Yao, and Yonghui Wu through the laboratories, companies, models, and policy environment that shaped Chinese AI.

How Far Has AI Entered Chinese Hospitals? cover

Table of Contents

How Far Has AI Entered Chinese Hospitals?

Kim Kyung-jin, Attorney at Law

A quiet shift in clinics, imaging rooms, and hospital administration

This book follows how artificial intelligence has entered Chinese hospitals, using Chinese and English materials together with original Chinese policy texts. It covers national policy, medical foundation models, clinical decision support, image reading, hospital information departments, traditional Chinese medicine, AI-native hospitals, the patient experience, hallucination and responsibility, regulation, and money. The final chapters collect major Chinese guidelines and the 84 health-sector AI application scenarios, with translated text and summaries.

Andrew Ng Biography cover

Table of Contents

Andrew Ng Biography

Kim Kyung-jin, Attorney at Law

A central figure in AI education and public learning

This book follows Andrew Ng from London, Hong Kong, Singapore, Carnegie Mellon, MIT, Berkeley, and Stanford to Google Brain, Coursera, Baidu, DeepLearning.AI, Landing AI, AI Fund, and Amazon. It reads his career through research, teaching, company building, and his practical view of AI.

Mykhailo Fedorov, Leading Figure of Ukraine's Drone War cover

Table of Contents

Mykhailo Fedorov, Leading Figure of Ukraine's Drone War

Kim Kyung-jin

From the State in a Smartphone to the Defense Ministry of the Drone War

This book follows Diia, IT Army, Starlink, UNITED24, Brave1, the Unmanned Systems Forces, drone procurement, and battlefield data to explain how Mykhailo Fedorov tied technology to state power in wartime Ukraine.

China’s Leading AI Firms and Government Agencies cover

Table of Contents

China’s Leading AI Firms and Government Agencies

Kim Kyung-jin

Policy, Companies, Data, and Hardware in China’s Intelligent Economy

This book follows China’s AI policy arc from the 2017 next-generation AI plan to AI+ and the 15th Five-Year Plan. It maps the roles of the State Council, NDRC, CAC, MIIT, and SAC, then reads DeepSeek, the AI Tigers, Alibaba, Tencent, Baidu, ByteDance, iFLYTEK, Huawei Ascend, East Data West Computing, manufacturing, education, consumption, and humanoid robotics as one connected system.

U.S. Department of War CDAO (Chief Digital and AI Officer) cover

Table of Contents

U.S. Department of War CDAO (Chief Digital and AI Officer)

Kim Kyung-jin, Attorney at Law

How the Military’s Brain Is Being Redesigned

From the moment in January 2026 when the U.S. Department of War declared data hoarding a national security threat, this book follows the birth of the CDAO (Chief Digital and Artificial Intelligence Office) and the five organizations it absorbed, Advana and the War Department Data Platform, the Open DAGIR procurement experiment, Project Maven and CJADC2 on the battlefield, and Responsible AI, allies, and critics — the story of how America is redesigning its military’s brain.

Science and Technology Commission of the CMC of the Communist Party of China cover

Table of Contents

Science and Technology Commission of the CMC of the Communist Party of China

Kim Kyung-jin

STC, Military-Civil Fusion, and China’s Military Technology Innovation

This English AI Library edition follows the CMC Science and Technology Commission, the Equipment Development Department, military-civil fusion, intelligentized warfare, emerging technology competition, and the institutional limits of China’s military innovation system.

The Chinese Communist Party School cover

Table of Contents

The Chinese Communist Party School

Kim Kyung-jin

Where Power Is Trained

This book follows the Chinese Communist Party school system from Ruijin and Yan'an to the Central Party School, the National Academy of Governance, provincial and county schools, young-official training classes, Cai Qi's leadership, and the Mwalimu Julius Nyerere Leadership School.

DARPA, America’s Defense Research Lab cover

Table of Contents

DARPA, America’s Defense Research Lab

Kim Kyung-jin

This book follows DARPA through its 2026 office reorganization, budget signals, AIxCC, AI Forge, RACER, LongShot, quantum computing, space robotics, battlefield medicine, and strategic-material programs, using official sources as the main trail.

AI and the Classroom cover

Table of Contents

AI and the Classroom

Kim Kyung-jin

The AI Teacher That Does Not Give Answers

From Estonia's AI Leap and Khanmigo to answer leakage, Korean AI digital textbooks, and teacher-in-the-loop classrooms, this book asks how AI can protect thinking instead of replacing it.

Spiderweb cover

Table of Contents

Spiderweb

Kim Kyung-jin

Ukraine's drone revolution that changed the map of war

A narrative account of Operation Spiderweb on June 1, 2025, and how Ukraine's drones reached deep inside Russia and changed military planning, intelligence work, and security assumptions.

A Map of the 2026 U.S.-China Collision cover

Table of Contents

A Map of the 2026 U.S.-China Collision

Kim Kyung-jin

The year tied in Busan and left unsolved in Beijing

A one-year map of tariffs, chips, rare earths, Taiwan, sea lanes, and Korea's choices between Washington and Beijing.

China's 2026 Power Map cover

Table of Contents

China's 2026 Power Map

Kim Kyung-jin

The completion of one-man rule, and the empty seat that follows

A map of Xi Jinping's power system, the military purge, the blocked succession path, and the economic-security dilemma.

The Architect of Contradictions cover

Table of Contents

The Architect of Contradictions

Kim Kyung-jin

Peter Thiel and the empire built by a man who hated competition

Peter Thiel, from a South African childhood to PayPal, Facebook, Palantir, politics, and the dream of defeating death.

Claude, GPT, Palantir, and the 2026 World War cover

8 readings

Claude, GPT, Palantir, and the 2026 World War

Kim Kyung-jin

How Artificial Intelligence Came to Pull the Trigger of War. Prologue, 3 Parts / 6 Chapters, Epilogue

A single name sits on the screen. An intelligence officer looks at it for twenty seconds, confirms only that it is a man, and moves on. Inside those twenty seconds a person dies, and the responsibility for deciding to kill him disappears. From Lavender over Gaza to Maven in Ukraine, Epic Furies over Iran, and target selection in the skies of Venezuela, this book follows the hand that chooses targets as it passes from human to machine in the wars of 2026.

China's Robotics Industry 2026: The Age of Mass Production and Real-World Deployment cover

25 readings

China's Robotics Industry 2026: The Age of Mass Production and Real-World Deployment

Kim Kyung-jin

From the humanoid mass-production race to U.S.-China hegemony: the state of China's robotics industry in 2026. Table of Contents, Preface, 7 Parts / 23 Chapters, Epilogue

In a factory in Shenzhen, hundreds of humanoid robots repeat the same motion. This book traces the mass-production race between Unitree and UBTECH, the Optimus supply chain, real-world deployment sites, and where Korea stands amid the U.S.-China tech hegemony.

Crossing the Adolescence of Technology Cover

15 Parts in Total

Crossing the Adolescence of Technology

Kim Kyung-jin

Dario Amodei, Anthropic, and the Struggle Toward Controllable Intelligence. Table of Contents, Preface, Prologue, 12 Chapters, Epilogue

The struggle of a physicist who lost his father to create controllable artificial intelligence. The story of Dario Amodei and Anthropic clashing with the Pentagon and the White House, shaking the era with the scaling law and Constitutional AI.

Boss, Give Yourself an AI Employee Now

Table of Contents, 43 Chapters, 11 Appendices, Epilogue

Boss, Give Yourself an AI Employee Now

Written by Kim Kyung-jin

Building an AI Automation System for Small Business Owners

37 Concrete Codex Use Cases cover

Book-style reading

37 Concrete Codex Use Cases

Kim Kyung-jin

From morning briefings to agent swarms: 37 real-world workflow automations

This guide gathers 37 ways to connect Codex and AI agents to real work: personal routines, data processing, marketing, sales, documents, development, and browser control.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

[AI Library] Chapter 20: YouTube Analytics Workflow and Email Automation

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

Mastering Claude Code

Chapter 20: YouTube Analytics Workflow and Email Automation

Kim Kyung-jin

Mastering Claude Code

Collecting YouTube Channel Data and Analyzing Trends

VS Code sits open. In the left file explorer, a project folder named "YouTube Analysis" waits empty. On the right, Claude Code's chat window blinks. Starting from this empty folder, we will build an automated system that collects YouTube channel data, analyzes trends, and produces professional reports delivered by email.

This chapter shows how to integrate MCP, skills, the GWS command-line approach, and the WAT framework into a single workflow.

Project Initialization

The first step is to place a claude.md file in the project. This file serves as the agent's system prompt. It communicates the three-layer structure of the WAT framework,workflow, agent, and tool,to the agent.

After placing the file, ask Claude Code: "Please initialize the project based on this claude.md file." The agent creates temp, tools, and workflows folders, configures the .env file and .gitignore. The project skeleton is now in place.

Communicating Requirements in Plan Mode

Switch to plan mode. Since the importance of this step was thoroughly emphasized in the previous chapter, we will proceed directly to practice.

This request is intentionally in "brain dump" form. It is not a perfectly polished set of requirements. Plan mode's power reveals itself precisely here.

Agent Research and Questions

The agent does not merely think. It performs web searches to investigate methods for collecting YouTube data and how to use MCP connection servers. Questions come back.

Answer each question. Auto-discover channels, weekly frequency, include sheet records, send email to your Gmail. These answers fill in the blanks in your requirements document.

[Figure 20-1] Screen showing the agent asking questions and collecting answers in plan mode]

Establishing the Execution Plan

The scale of the plan the agent proposes is substantial. It will generate seven Python tools.

1. fetch_youtube_data.py - collect YouTube data 2. analyze_youtube_data.py - analyze collected data 3. generate_charts.py - generate chart images 4. generate_slides.py - compose slide deck 5. send_email_report.py - send email report 6.

export_sheets.py - export to Google Sheets 7. discover_channels.py - auto-discover AI channels

The workflow is created with the name youtube_weekly_report. This workflow acts as conductor, calling the seven tools in sequence.

Approve the plan and the agent creates a task list and executes it one by one. During this time, work on something else on another monitor and check progress occasionally.

Installing Dependencies and Configuring API Keys

When tool creation completes, the agent guides you through the next steps.

Store API keys in the .env file. Tell the agent: "Please install the dependencies. I will provide the YouTube API key." When passing the API key to Claude Code, confirm it is recorded only in the .env file.

For OAuth authentication, you must enable YouTube Data API, Gmail API, and Google Sheets API in your Google Cloud project. This process is identical to what we covered in Chapter 19 with the GWS command-line approach.

First Validation Run

When all configuration is complete, the agent validates the pipeline automatically. The results follow.

[Figure 20-2] Summary of first validation run results - scale of collected data]

Automatic Slide Deck Generation

Open the report that arrived by email. It is a weekly report titled "AI Automation YouTube Analytics."

Email Body

Key metrics,tracking 30 channels and analyzing 187 videos,are positioned at the top. The body includes a list of top videos for the week and content creation recommendations.

PowerPoint Deck Composition

Open the attached PowerPoint file and the following slides appear.

[Figure 20-3] Screen capture of auto-generated PowerPoint slide deck]

Google Sheets Data Structure

Along with the report, data is recorded in Google Sheets. The sheet has three tabs.

Channel Stats: Channel ID, channel name, subscriber count, total views, and video count are recorded by date. Each time it runs weekly, a new row is added, allowing you to track channel growth over time.

Top Videos: Video ID, title, channel name, view count, like count, comment count, engagement rate, and days since publication. Viewing engagement rate alongside days elapsed lets you pinpoint "trending right now" videos with precision.

Weekly Summary: Execution date, tracked channel count, analyzed video count, median view count, median engagement score, and top keywords are summarized in one line. As weekly data accumulates, industry trend shifts become visible at a glance.

Converting to PDF Reports

If you prefer a branded PDF report instead of PowerPoint, you can use the Canvas Design skill. Find and install this skill from the Claude Code template website. Pasting the installation command into Claude Code creates skill files and fonts in the .claude/skills folder.

The agent replaces the existing generate_slides.py tool with a new PDF generation tool and updates the workflow file. The email sending tool also changes the attachment format from PowerPoint to PDF.

The first PDF generation may produce unexpected results. Only the cover and final page are included, while the body charts are missing. In this case, we offer a correction suggestion in natural language.

The agent finds the root cause, fixes the tool, updates the workflow, and then generates a new completed 9-page PDF. The logo is placed at the top, the date is displayed, and all charts and recommendations are included.

[Figure 20-4] Completed branded PDF report screen]

Gmail Integration: Automated Report Delivery

The final step of the workflow is sending the completed report via Gmail.

Structure of the Email Delivery Tool

The send_email_report.py tool handles the following elements.

Since Gmail API is called through the GWS command-line approach, no separate SMTP configuration or app password is required. Once OAuth authentication is complete, a single gws command sends the email.

Simultaneous Google Sheet Update

Data is also recorded in the Google Sheet at the same time the email is sent. You do not need to create the sheet manually. The agent creates a new sheet, adds tabs to an existing sheet, sets the schema (column structure), and enters the data. A new row is added each time the workflow runs weekly, so time-series data accumulates naturally.

Verification and Optimization

Completing the workflow does not mean it can be deployed immediately. A verification and optimization phase remains.

Iterative Refinement in Practice

It is rare for everything to work perfectly on the first run. The YouTube analytics workflow also required multiple iterations.

Each time a problem is discovered, describing it to the agent in natural language prompts the agent to investigate the root cause and fix it. The corrections are reflected in the tool files and workflow files, so the same issues do not recur in subsequent runs.

Security Review

A security review must be performed before deployment.

The agent reviews all code and checks the following items.

Even if items requiring attention are found in the security review, the system may not actually be in a vulnerable state. If the agent reports "There are 3 items requiring attention, but all secrets are being managed securely," deployment can proceed.

[Figure 20-5] Security review summary screen]

Deployment: Scheduled Execution Using Modal

To run the workflow on a weekly schedule, you must deploy it to the cloud. We use Modal, an AI infrastructure platform. Modal charges only when automation runs, making it cost-effective. It also provides free credits.

The deployment process works like this.

The agent performs the following tasks in sequence.

1. Update environment variable paths in scripts 2. Create Modal deployment files 3. Configure Cron schedules 4. Register API keys and authentication credentials as Modal secrets 5. Execute deployment and validate

Once deployment is complete, you can view the app in the Modal dashboard. Validate once more with a manual trigger, then activate the scheduled trigger once normal operation is confirmed.

Maintenance After Deployment

We must emphasize an important distinction mentioned in the previous chapter: what gets deployed are the workflow and tools, not the agent. Therefore, if the deployed workflow encounters a new error during execution, it cannot self-heal.

The maintenance cycle works as follows.

As the workflow stabilizes, this cycle gradually decreases. Initially, checks are needed once or twice per week, but as edge cases are resolved, automated execution alone becomes sufficient.

Complete Architecture Overview

Here we summarize the entire structure of the YouTube analytics workflow at a glance.

[Figure 20-6] Complete YouTube analytics workflow architecture diagram]

MCP (Firecrawl), API (YouTube Data), command-line approach (GWS), skills (Canvas Design), and the WAT framework are organically integrated within a single workflow. Natural language conversation was the only thing needed to orchestrate all of this.

We have walked through the entire process from starting with an empty folder to having a weekly YouTube trends report automatically arrive in your inbox. Beginning with a single prompt, we exchanged questions with the agent to create seven tools and one workflow, then verified, refined, and deployed them.

The intuition gained here,the rhythm of describing your goal in natural language, answering the agent's questions, reviewing the output, and offering refinements,applies equally to any automation you build going forward.

Gyeongkin Kim, AI Policy Expert and Lawyer

AI law and policy specialist · former member of parliament · author of numerous works

If this book has been with you even briefly, please support us so the next story can reach the world.

(Voluntary contributions welcome: Account 302-1096-0948-81, Nonghyup Bank, Account holder: Gyeongkin 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
kimkj.com Home
Scroll to Top
kimkj.com Home