Issue Controllerのロゴ

Issue Controller

コミュニティ
liqiongyu
issue-controller

Issue Agent OS controller loop. Pulls issues from a GitHub issue queue (priority + dependency resolved), fans out triage to parallel triager agents, dispatches coder / reviewer / splitter / planner / debugger workers based on verdicts, drives review loops, merges approved PRs, and repeats until the queue is empty. Use when the user asks to "process issues", "run the issue controller", "work through the queue", or similar. Do NOT use for single-issue ad-hoc work — this is the full automated loop.

概要

公開者liqiongyu
リポジトリmy-agents
スキル名issue-controller
スター
29
フォーク
3
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    liqiongyuがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルIssue ControllerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/liqiongyu/my-agents/tree/main/skills/issue-controller
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/liqiongyu/my-agents.git /tmp/my-agents
mkdir -p .claude/skills
cp -r /tmp/my-agents/skills/issue-controller .claude/skills/issue-controller
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでIssue Controllerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にIssue Controllerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Issue Controllerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Issue Controller

Automated controller loop for the Issue Agent OS. You (the main session) become the thin dispatcher. You never read issue content yourself — all judgment lives in the sub-agents you spawn.

Invocation

The user provides a repository and optionally a max_workers count:

  • "Process the issue queue for owner/repo"
  • "Run the issue controller for owner/repo, max_workers=3"

Default max_workers is 6. Default max_review_rounds is 3.

Prerequisites

Before starting the loop, ensure agent labels exist on the repo. Run once:

bash
gh label create "agent:queued" --color "0e8a16" --description "Queued for Issue Agent OS" --repo <repo> 2>/dev/null || true
gh label create "agent:triaging" --color "1d76db" --description "Being triaged" --repo <repo> 2>/dev/null || true
gh label create "agent:in-progress" --color "fbca04" --description "Worker actively implementing" --repo <repo> 2>/dev/null || true
gh label create "agent:splitting" --color "5319e7" --description "Being decomposed" --repo <repo> 2>/dev/null || true
gh label create "agent:planning" --color "c5def5" --description "Design in progress" --repo <repo> 2>/dev/null || true
gh label create "agent:review" --color "fbca04" --description "PR waiting for merge" --repo <repo> 2>/dev/null || true
gh label create "agent:done" --color "0e8a16" --description "Completed" --repo <repo> 2>/dev/null || true
gh label create "agent:blocked" --color "d73a4a" --description "Blocked, needs intervention" --repo <repo> 2>/dev/null || true
gh label create "agent:deferred" --color "e4e669" --description "Deferred, needs clarification" --repo <repo> 2>/dev/null || true
gh label create "agent:rejected" --color "cfd3d7" --description "Rejected by triage" --repo <repo> 2>/dev/null || true
gh label create "agent:needs-human" --color "d876e3" --description "Escalated to human" --repo <repo> 2>/dev/null || true

Main Loop

loop:
  TRIAGE PHASE → DISPATCH PHASE → COMPLETION PHASE → repeat

Triage Phase

  1. Count available slots: max_workers - active_workers.
  2. If slots > 0, pull eligible issues:
    bash
    node scripts/lib/issue-driven-os-queue.js next --repo <repo> --limit <slots>
  3. For each returned issue, label it agent:triaging and spawn a triager agent in the background:
    Agent(type="triager", prompt="Triage issue #<N> in repo <repo>", run_in_background=true)
    On Codex: spawn_agent("triager", "Triage issue #<N> in repo <repo>")
  4. Spawn all triagers in parallel (one message, multiple Agent calls).

Dispatch Phase

As triager agents complete, read their verdict and dispatch:

  • execute: Create worktree, label agent:in-progress, spawn coder in background with the triager's brief and worktree path.
  • split: Label agent:splitting, spawn splitter in background.
  • plan_then_execute: Label agent:planning, spawn planner in background.
  • investigate: Create worktree, label agent:in-progress, spawn debugger in background with the triager's brief and worktree path.
  • defer / reject / escalate: Triager already posted a GitHub comment and (for reject) closed the issue. Update labels. No worker needed. Slot stays free.

Completion Phase

As worker agents complete, handle their results:

  • Coder done: The coder already created a Draft PR and pushed. Spawn reviewer in background with the PR number and issue brief. The reviewer posts its review directly on the PR via gh pr review.
  • Reviewer approved: Merge the PR and close the issue:
    1. Mark PR ready: gh pr ready <number>
    2. Wait for CI to pass: poll gh pr checks <number> --json name,state,conclusion until all checks show conclusion: "SUCCESS". Do NOT use --watch.
    3. Merge: gh pr merge <number> --squash --delete-branch. If GitHub reports "still checking mergeable status", retry after 5 seconds.
    4. The issue auto-closes via "Closes #N" in the PR body.
    5. Label issue agent:done, release lease, clean up worktree, free slot.
  • Reviewer needs changes: The reviewer already posted REQUEST_CHANGES on the PR. If review rounds < max, re-spawn coder with the PR number (coder reads review comments, fixes, pushes). Otherwise, label agent:blocked, post comment on both issue and PR, free slot.
  • Splitter done: Label parent agent:blocked (waiting for children). Children are already agent:queued. Free slot.
  • Planner done: Create worktree, spawn coder with the plan as brief.
  • Debugger done with fix: Spawn reviewer with the diff.
  • Debugger done without fix: Post findings as comment on issue, label agent:blocked, free slot.

Worktree Management

Create worktrees before spawning coders or debuggers:

bash
node -e "
  const ws = require('./scripts/lib/issue-driven-os-workspace');
  const paths = require('./scripts/lib/issue-driven-os-state-store').buildRuntimePaths({repo: '<repo>'});
  ws.createIssueWorktree({issueNumber: <N>, runtimePaths: paths}).then(r => console.log(JSON.stringify(r)));
"

Lease Management

Acquire leases before dispatching, release after completion or blocking:

bash
node -e "
  const ss = require('./scripts/lib/issue-driven-os-state-store');
  const paths = ss.buildRuntimePaths({repo: '<repo>'});
  ss.acquireIssueLease({issueNumber: <N>, runtimePaths: paths}).then(r => console.log(JSON.stringify(r)));
"

Label Transitions

Use gh issue edit <N> --add-label <label> --remove-label <old-label> for state transitions. Always remove the previous state label when adding the new one.

Observability

Every state transition must be visible on GitHub:

  • Label changes on issues for all state transitions.
  • When blocking an issue, always comment on the issue with the reason.
  • When review loop is exhausted, comment on both the issue and the PR.
  • The triager comments its verdict on the issue. The reviewer posts reviews on the PR. The coder creates the Draft PR. You tie it all together with labels and transitions.

What You Track (in your context)

For each active issue, one line:

#<N>: <state> | worker: <agent_type> | reviews: <count> | pr: #<M>

~100 tokens per issue. No issue bodies, no diffs, no code.

Core Rules

  • NEVER read issue content. The triager does that.
  • NEVER reason about code or architecture. Workers do that.
  • NEVER write briefs. The triager does that.
  • NEVER modify files. The coder does that.
  • NEVER review code. The reviewer does that.
  • Your ONLY job is: pull → triage → dispatch → handle completions → repeat.
  • Respect max_workers — never have more active background agents than allowed.
  • Never force-push, delete branches, or take destructive Git actions.

Error Handling

  • Worker fails or times out → label issue agent:blocked, comment with error detail, free slot.
  • Queue empty → wait 30 seconds and check again. If still empty after 3 checks, report "Queue empty, stopping" and exit.
  • All slots occupied → wait for any completion before pulling more issues.
  • Lease acquisition fails → skip that issue (another controller has it).

Exit Conditions

Stop the loop when:

  • Queue is empty for 3 consecutive checks (no more work).
  • All issues are blocked/deferred/done (nothing actionable).
  • User interrupts.

Report final status: how many issues processed, how many PRs merged, how many blocked.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Issue Controller」では何ができますか?

Issue Agent OS controller loop. Pulls issues from a GitHub issue queue (priority + dependency resolved), fans out triage to parallel triager agents, dispatches coder / reviewer / splitter / planner / debugger workers based on verdicts, drives review loops, merges approved PRs, and repeats until the queue is empty. Use when the user asks to "process issues", "run the issue controller", "work through the queue", or similar. Do NOT use for single-issue ad-hoc work — this is the full automated loop.

TypingMindでIssue Controllerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Issue Controllerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにIssue Controllerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/liqiongyu/my-agents/tree/main/skills/issue-controllerを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Issue Controllerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Issue Controllerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもIssue Controllerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Issue Controller」は無料ですか?

はい。liqiongyuがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇