<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Github-Actions on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/github-actions/</link><description>Recent content in Github-Actions on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 23 Apr 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/github-actions/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude Code 实战（六）：SDK 与 GitHub CI</title><link>https://www.chenk.top/zh/claude-code-learn/06-sdk-and-github/</link><pubDate>Thu, 23 Apr 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/claude-code-learn/06-sdk-and-github/</guid><description>&lt;p>CLI 是最显而易见的入口，SDK 才是真正有趣的部分，而 GitHub 集成则是它真正体现价值的地方。&lt;/p>
&lt;p>&lt;figure class="article-figure">
 &lt;img src="https://blog-pic-ck.oss-cn-beijing.aliyuncs.com/posts/zh/claude-code-learn/06-sdk-and-github/illustration_1.png" alt="Claude Code 实战（六）：SDK 与 GitHub CI — 章节概览图" loading="lazy" decoding="async" class="content-image">
 
&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="用一段话介绍-sdk" class="heading-anchor">用一段话介绍 SDK&lt;a href="#%e7%94%a8%e4%b8%80%e6%ae%b5%e8%af%9d%e4%bb%8b%e7%bb%8d-sdk" class="heading-link" aria-label="Permalink to this section" title="Copy link to this section">#&lt;/a>
&lt;/h2>&lt;p>&lt;code>@anthropic-ai/claude-code&lt;/code> 是 npm 包。它将 CLI 使用的相同 Claude Code 引擎（包括相同的工具和权限）以编程接口的形式暴露出来。你传入一个 prompt，它会返回一个异步可迭代的 conversation events。你可以把它集成到任何地方——脚本、服务、CI 步骤。&lt;/p></description></item></channel></rss>