阿里的心流 https://www.iflow.cn/ 团队最近开源了一款基于终端的 AI Agent 工具 iFLOW CLI, 目前可以免费使用到强大的 Qwen3-Coder、Kimi K2 等模型。又是一款类似 Anthropics Claude Code 的产品。
iFlow CLI 是一款直接在终端中运行的强大 AI 助手。它能够无缝分析代码仓库、执行编程任务、理解上下文需求,通过自动化处理从简单的文件操作到复杂的工作流程,全面提升您的工作效率。 既然是基于终端的 AI Agent 工具,那么就可以很好的利用 Github Action 来实现在文档内容更新之后, 自动生成幻灯片风格的文档站点。
趁着发布当日,立马基于 GitHub Copilot Agent、iFLOW CLI vibe coding 了一个 GitHub Actions 来方便在隔离的 GitHub Actions 环境中大规模使用。
GitHub Actions https://github.com/marketplace/actions/iflow-cli-action 已经发布到了 GitHub 的 Marketplace 市场。欢迎来玩~
这里我们介绍如何基于这个 GitHub Actions 来生成幻灯片风格的文档站点,最终的效果可以查看这个网站 https://vibe-ideas.github.io/iflow-cli-action/#/, 预览效果如下:
接下来我们看看如何使用这个 GitHub Actions.
使用 iFLOW CLI GitHub Action
如果想要使用这个 iFLOW CLI GitHub Action, 你需要在 GitHub 中创建一个代码库 https://github.com/new, 然后在代码库中创建一个 .github/workflows 目录,在 .github/workflows 目录下创建一个 iflow-cli-action.yml 文件使用 iFLOW CLI GitHub Action:- git clone https://github.com/yourname/your-repo.git cd your-repo mkdir -p .github/workflows touch .github/workflows/iflow-cli-action.yml
复制代码 iflow-cli-action.yml 文件内容如下:- name: iFlow CLI Example on: [push] jobs: analyze-code: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Run iFlow CLI uses: vibe-ideas/iflow-cli-action@v1.2.0 with: prompt: "Analyze this codebase and suggest improvements" api_key: ${{ secrets.IFLOW_API_KEY }} model: "Qwen3-Coder" timeout: "1800" extra_args: "--debug"
复制代码 prompt 即提示词,指导 AI Agent 完成你的目标
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |