一键导入
automate-github-issues
// Set up automated GitHub issue triage and resolution using parallel Jules coding agents
// Set up automated GitHub issue triage and resolution using parallel Jules coding agents
| name | automate-github-issues |
| description | Set up automated GitHub issue triage and resolution using parallel Jules coding agents |
| allowed-tools | ["Bash","Read","Write"] |
You are setting up a repository to automatically analyze open GitHub issues, plan implementation tasks, and dispatch parallel Jules coding agents to fix them.
A 5-phase automated pipeline that runs via GitHub Actions (or locally):
Copy the entire scripts/ directory from this skill into the target repository at scripts/fleet/:
Target structure:
scripts/fleet/
├── fleet-analyze.ts
├── fleet-plan.ts
├── fleet-dispatch.ts
├── fleet-merge.ts
├── types.ts
├── prompts/
│ ├── analyze-issues.ts
│ └── bootstrap.ts
└── github/
├── git.ts
├── issues.ts
├── markdown.ts
└── cache-plugin.ts
Important: Preserve the directory structure exactly. The scripts use relative imports between files.
Copy the workflow files from assets/ to the repository's .github/workflows/ directory:
assets/fleet-dispatch.yml → .github/workflows/fleet-dispatch.ymlassets/fleet-merge.yml → .github/workflows/fleet-merge.ymlCreate scripts/fleet/package.json with the required dependencies:
{
"name": "fleet-scripts",
"private": true,
"type": "module",
"dependencies": {
"@google/jules-sdk": "^0.1.0",
"octokit": "^4.1.0",
"find-up": "^7.0.0"
},
"devDependencies": {
"@types/bun": "^1.2.0"
}
}
Copy assets/.env.example to the repository root.
cd scripts/fleet && bun install
Tell the user they need to:
JULES_API_KEY as a GitHub repository secret (Settings → Secrets → Actions)GITHUB_TOKEN is provided automatically by GitHub Actions.github/workflows/fleet-dispatch.yml (default: daily 6am UTC)After setup, the user can run the pipeline locally:
cd scripts/fleet
# Fetch open issues
bun fleet-analyze.ts
# Plan tasks (creates a Jules planning session)
JULES_API_KEY=<key> bun fleet-plan.ts
# Dispatch parallel agents
JULES_API_KEY=<key> bun fleet-dispatch.ts
# Merge PRs sequentially
GITHUB_TOKEN=<token> bun fleet-merge.ts
The analysis prompt in scripts/fleet/prompts/analyze-issues.ts controls how deeply issues are investigated. Users can adjust:
Edit scripts/fleet/github/issues.ts to filter issues by label, milestone, or state.
git remote get-url origin)maxWaitMs in fleet-merge.ts (default: 10 minutes)curl -fsSL https://bun.sh/install | bash