Ag Taskのロゴ

Ag Task

コミュニティ
kevinslin
ag-task

Read a Markdown task file, parse frontmatter, split work by level-2 headings outside code fences, and execute each section with subagents while keeping level-3 headings as ordered follow-on instructions for the same subagent.

概要

公開者kevinslin
リポジトリagstack
スキル名ag-task
スター
26
フォーク
1
同梱ファイル
3
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 3個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

ag-task

Use this skill when the user invokes $ag-task with a Markdown file or asks to run a Markdown task plan through subagents.

Intake

  1. Resolve the Markdown file path and read it before delegating.
  2. Parse the file with the bundled helper from this skill directory:
bash
./scripts/ag-task-parse "$TASK_FILE"
  1. Treat YAML frontmatter as run metadata, not executable instructions. Apply clear fields such as cwd, max_agents, agent, priority, depends_on, serial, or blocked_by when present. User instructions in the chat override frontmatter.
  2. Do not execute text before the first level-2 heading as a task. Use that preamble only as global context when it clearly applies to every task.

If the helper is unavailable, reproduce its parsing semantics: remove leading frontmatter first, then recognize ATX headings only when they are outside fenced code blocks and are not indented code.

Task Model

  • Each level-2 heading (##) starts one subagent lane.
  • The level-2 title is the task name.
  • The text after the level-2 heading up to the first level-3 heading is the initial task instruction.
  • Each level-3 heading (###) inside that level-2 block is an ordered follow-on instruction for the same subagent.
  • Keep follow-ons attached to their original level-2 lane. Do not redistribute them to other agents.
  • Ignore headings inside fenced or indented code blocks, including nested examples that contain ## or ###.

If a level-2 section has no body before its first level-3 heading, use the title plus the first follow-on list as the initial context and still queue the follow-ons in order.

Scheduling

  1. Build a queue from all parsed level-2 tasks in file order. If the file has no level-2 tasks, stop and report that there is nothing to run.
  2. Determine concurrency from frontmatter when it has a clear limit such as max_agents; otherwise use all available subagent capacity. If the tool surface does not expose a numeric capacity, start one subagent per ready level-2 task up to the practical session limit and backfill as agents finish.
  3. Honor explicit dependency or serial hints in frontmatter or task text. Otherwise assume level-2 tasks are independent and schedule them concurrently.
  4. Spawn one subagent per active level-2 lane. Include the source file path, source line numbers, relevant frontmatter, the initial task instruction, and the ordered follow-on titles.
  5. Tell every subagent that it is not alone in the codebase, must not revert others' work, and must report changed files, tests run, blockers, and remaining follow-ons.
  6. After the initial task completes, queue that lane's level-3 follow-ons to the same subagent in order. If the subagent tool supports ordered queued messages, enqueue them with "run after the previous item" wording; otherwise send the next follow-on only after the prior one completes.
  7. Keep scheduling unstarted level-2 tasks onto free subagent capacity until every lane is complete or blocked.

Do not send follow-ons after a failed initial task unless the follow-on is clearly independent or the user explicitly approves continuing.

Subagent Prompt Shape

Use a compact prompt like this for each level-2 lane:

markdown
You are working on one lane from a Markdown task file.

Source: <path>:<start-line>
Task: <level-2 title>
Global metadata: <frontmatter summary>

Initial instruction:
<body before the first level-3 heading>

Queued follow-ons for this same lane:
1. <level-3 title> - lines <start-end>
2. <level-3 title> - lines <start-end>

You are not alone in the codebase. Do not revert edits made by others. Keep changes scoped to this lane, adapt to nearby changes, and report changed files, validation run, blockers, and whether the lane is ready for the next queued follow-on.

For each follow-on, send:

markdown
Continue the same lane. Run this follow-on after the previous item:

Source: <path>:<start-line>
Follow-on: <level-3 title>
Instruction:
<level-3 body>

Integration

  1. Track every lane as pending, running, blocked, or done.
  2. Review subagent results before trusting them, especially changed files and tests.
  3. Resolve conflicts between lanes locally when needed.
  4. Run the smallest validation that proves the completed lanes.
  5. Close unused or completed subagents.
  6. Final output should summarize completed lanes, blocked lanes, files changed, and validation.

同梱ファイル

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

よくある質問

AIスキル「Ag Task」では何ができますか?

Read a Markdown task file, parse frontmatter, split work by level-2 headings outside code fences, and execute each section with subagents while keeping level-3 headings as ordered follow-on instructions for the same subagent.

TypingMindでAg Taskを使うメリットは何ですか?

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

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

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

Ag Taskを使えるAIモデルはどれですか?

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

Ag Taskは何個のAIモデルで使えますか?

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

AIスキル「Ag Task」は無料ですか?

kevinslinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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