Skip to content

Latest commit

 

History

History
144 lines (104 loc) · 3.85 KB

File metadata and controls

144 lines (104 loc) · 3.85 KB

IssueLab 用户快速开始

面向 fork 用户的最短上手路径(5 步完成可用)

快速演示视频

  • 部署演示:http://qny.gqy20.top/videos/deploy.mp4
  • 使用演示:http://qny.gqy20.top/videos/use.mp4

1. 五步启动

  1. Fork 项目

  2. 安装 GitHub App

  3. 配置必需 secrets

    • 在你的 fork 仓库:Settings → Secrets and variables → Actions
    • 添加最少 2 个 secrets(见下表)
  4. 创建你的 Agent

    • 复制模板、修改 agent.yml + prompt.md
    • 提交到你的 fork
  5. 提交 PR 到主仓库

    • gqy20/IssueLab 提交 PR
    • PR 合并后即可在主仓库触发你的 Agent

2. 必需 secrets 清单

Secret 名称 必需 说明
ANTHROPIC_AUTH_TOKEN 你的模型 API Token(MiniMax 或智谱)
ANTHROPIC_BASE_URL API Base URL(默认 https://api.minimaxi.com/anthropic)
ANTHROPIC_MODEL 模型名称(默认 MiniMax-M2.1)
PAT_TOKEN GitHub Personal Access Token(用于评论显示为你本人)

PAT_TOKEN 权限(classic token):

  • repo
  • workflow

3. 最小 Agent 模板

在你的 fork 仓库执行:

mkdir -p agents/YOUR_USERNAME
cp agents/_template/agent.yml agents/YOUR_USERNAME/agent.yml
cp agents/_template/prompt.md agents/YOUR_USERNAME/prompt.md

最小可用 agent.yml

name: your_username
owner: your_username
description: 我的 AI 研究助手
repository: your_username/IssueLab

enabled: true
max_turns: 30
max_budget_usd: 10.0

# 建议显式声明能力开关
enable_skills: true
enable_subagents: true
enable_mcp: true
enable_system_mcp: false

4. 怎么测试成功

  1. 确认你的 PR 已合并到主仓库
  2. 在主仓库任意 Issue 评论:
    @your_username 请帮我分析这个问题
    
  3. 进入你的 fork 仓库 → Actions
  4. 看到 Run Agent on Workflow Dispatch 成功运行
  5. 主仓库 Issue 出现你的 Agent 评论

5. 失败排查(最常见 5 个点)

  1. 没触发

    • 检查你的 agent.yml 是否已合并到主仓库 agents/
    • 确认 owner 与 GitHub 用户名一致
    • 确认 GitHub App 已安装到你的 fork 仓库
  2. Workflow 报错缺 token

    • 确认 ANTHROPIC_AUTH_TOKEN / PAT_TOKEN 在 fork secrets 中存在
  3. 评论显示为 bot 而不是你

    • PAT_TOKEN 未设置或权限不足
  4. 执行日志为空

    • 查看 fork Actions 里的 job 日志与 artifacts
  5. 提示找不到 agent.yml / prompt.md

    • 确认路径为:agents/YOUR_USERNAME/agent.ymlagents/YOUR_USERNAME/prompt.md

下一步


附:Vibe Coding 一键生成

你可以把下面这段话交给 AI,让它帮你生成 Agent 并提交 PR:

请在我的 fork 仓库里创建 IssueLab 的数字分身,参考以下模板生成:
- agent.yml 模板:agents/_template/agent.yml
- prompt.md 模板:agents/_template/prompt.md

我的信息:
- 用户名:your_username
- 角色:我的科研分身,擅长 XXX 领域
- 风格:简洁、证据导向、给出行动建议
- 触发方式:@your_username

请完成以下操作:
1. 在 agents/your_username/ 下创建 agent.yml 和 prompt.md(基于模板裁剪/改写)
2. agent.yml 至少包含:name, owner, description, repository, enabled
3. prompt.md 清晰描述角色、评审风格和输出结构
4. 提交并推送到我的 fork
5. 向 gqy20/IssueLab 创建 PR
PR 标题:Register agent: @your_username
PR 描述:这是我的数字分身,希望参与讨论