Leanpub Header

Skip to main content

Claude Code:從基礎到精通

2026 年智慧軟體開發完全指南

This book is 100% completeLast updated on 2026-07-15

軟體開發日新月異,而 Claude Code 正是這場變革的核心。本書《精通 Claude Code》指導開發者如何有效率地與 AI 代理商協作,編寫程式碼、自動化工作流程,並自信地應對大型專案。內容涵蓋從設定和提示設計到實際工程實踐的方方面面,為所有希望了解 2026 年現代軟體建構方式的人士提供了一份實用的路線圖。

This book is a translation into Chinese (Traditional) of Claude Code: From Basics to Mastery which was originally written in English

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
138
Pages
About

About

About the Book

本書全面介紹了 Anthropic 的智能體編碼系統 Claude Code,該系統從根本上改變了軟體的建構方式。無論您是剛接觸 AI 輔助程式設計的開發者,或是希望掌握多智能體工作流程的資深工程師,本書都能引導您從首次安裝到企業部署。內容涵蓋 Claude Code 的架構、提示工程技術、來自 Stripe 和 Wiz 的真實案例研究、CI/CD 自動化、安全最佳實踐以及智慧體編碼的未來發展方向。每一章都包含實用範例、動手專案以及基於數十萬次真實 Claude Code 會話研究的可操作指導。

This book is a translation into Chinese (Traditional) of Claude Code: From Basics to Mastery which was originally written in English

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 400 engineers and researchers from Ukraine, Belarus and Russia. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Translations

Translations

Contents

Table of Contents

2026 年代理式軟體開發完全指南

  1. 精通 Claude Code、多代理工作流與企業部署的綜合手冊

前言:不再敲鍵盤的工程師

  1. 本書將教您的內容
  2. 本書適合誰閱讀
  3. 如何使用本書
  4. 證據基礎
  5. 關於本書未涵蓋內容的說明
  6. 核心論點
  7. 2026 年的局勢

第 1 章:軟體開發中的代理式革命

  1. 從自動完成到代理:五年的演進
  2. 是什麼讓 Claude Code 不同:終端機優先的代理式架構
  3. Boris Cherny 的工作流:創始人實際如何使用 Claude Code
  4. 勞動分工:人類為指揮者、代理為建構者
  5. 2026 年 AI 編碼代理的局勢
  6. 為何是現在?市場採用與向代理式工作流的轉變
  7. 批判性分析:代理式工具的權衡與限制

第 2 章:Claude Code 的解剖

  1. 代理循環:收集、行動、驗證
  2. 幕後模型:Sonnet、Opus、Fable 與模型選擇
  3. Token 管理數學:理解您的花費
  4. 內建工具:檔案操作、搜尋、執行、Web、程式碼智慧
  5. .claude 目錄:配置、CLAUDE.md 與記憶
  6. 情境視窗:如何填充、自動壓縮與 Token 管理

第 3 章:入門與設定

  1. 跨平台安裝:macOS、Linux、Windows、WSL、Homebrew、WinGet
  2. 認證與帳號設定
  3. 您的首次會話:從零到程式碼的逐步操作
  4. 許可權模式:預設、自動接受、Plan 與 Auto 模式
  5. IDE 整合:VS Code、JetBrains、遠端控制、Web 介面

第 4 章:Claude Code 的提示工程

  1. Claude 提示的藝術:具體性、情境與驗證
  2. CLAUDE.md 作為持久指令層
  3. 少次範例、XML 結構化與角色分配
  4. 「訪問我」模式:讓 Claude 在編碼前提問
  5. 提示鏈接與跨會話狀態管理
  6. 常見失敗模式與如何避免它們
  7. 對抗性測試:壓力測試 Claude Code 的輸出

第 5 章:真實開發工作流

  1. 從零建構全端應用程式(實作專案)
  2. 重構遺留程式碼庫:Stripe 的 Scala 到 Java 遷移案例研究
  3. 除調複雜 Bug:逐步操作
  4. 大規模程式碼遷移:Wiz 的 Python 到 Go 遷移
  5. 熟悉不熟悉程式碼庫的入职培訓

第 6 章:測試、驗證與品質保證

  1. 給 Claude 一個可對照驗證的東西
  2. 測試生成與自我修復測試
  3. Outcomes:自動化評分標準評級
  4. 以平行會話的撰寫者/審查者模式
  5. 程式碼審查技能與對抗性審查策略
  6. CI/CD 整合:GitHub Actions、GitLab CI 與自動化 PR

第 7 章:自動化與擴展

  1. 無頭模式:用於腳本和管道的非互動式 Claude Code
  2. 扇出模式:平行處理數千個檔案
  3. Claude Code Routines:排程任務和事件驅動工作流
  4. Pre-commit Hooks、Linting 與自動化程式碼品質閘門
  5. 大規模成本管理與 Token 預算

第 8 章:進階代理式模式

  1. 子代理:授權調查與驗證
  2. 技能:建立可重用的領域知識和工作流
  3. MCP 伺服器:連接外部系統(GitHub、資料庫、Jira)
  4. Hooks:跨會話自動化策略強制執行
  5. 多代理協調:主導代理、專家子代理、共用檔案系統
  6. Claude Managed Agents 與「Dreaming」功能

第 9 章:部署與生產就緒

  1. 將 Claude Code 建構的應用程式部署到雲端平台
  2. 環境配置與機密管理
  3. 監控與可觀察性:OpenTelemetry、使用分析、Token 追蹤
  4. 效能最佳化:提示快取、模型選擇、情境效率
  5. 從原型到生產:與樂天的案例研究

第 10 章:團隊協作與企業部署

  1. 大規模 Claude Code:Stripe 的 1,370 名工程師部署
  2. 受控設定、企業安全與合規
  3. 共用 CLAUDE.md、技能函式庫與外掛分發
  4. 將 Claude Code 整合到現有團隊工作流

第 11 章:安全深入探討

  1. 已記錄的漏洞:CVE-2025-59536 與 CVE-2026-21852
  2. 提示注入與惡意檔案內容
  3. 情境載入中的機密暴露
  4. —dangerously-skip-permissions 標誌:何時如何安全使用
  5. 沙箱化:Docker、Dev 容器與 VM 隔離
  6. 企業安全架構:MDM、LLM 閘道、代理監控

第 12 章:代理式編碼的未來

  1. Anthropic 的路線圖:Dreaming、Outcomes、多代理協調
  2. 關於專業知識的研究:為何領域知識勝過編碼背景
  3. 塑造 2026 年及以後代理式編碼的八大趨勢
  4. 軟體工程師角色的變化
  5. 這對工作和知識經濟的未來意味著什麼

第 13 章:結論:成為代理式工程師

  1. 綜合從新手到大師的旅程
  2. 軟體開發的新思維模型
  3. 建立您的 Claude Code 實踐:個人行動計畫
  4. 展望未來:接下來的五年帶我們去何處

參考文獻

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub