Ag Task logo

Ag Task

Community
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.

Overview

Publisherkevinslin
Repositoryagstack
Skill nameag-task
Stars
26
Forks
1
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinslin on GitHub. Read the source before you install it.

Installation

Install the Ag Task AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinslin/agstack/tree/main/drafts/ag-task
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ag Task in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ag Task on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ag Task is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ag Task AI skill do?

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.

Why use Ag Task on TypingMind?

Because you install it once and use it with any model. Ag Task is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ag Task in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/drafts/ag-task. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ag Task?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ag Task?

As many as you like. As long as a model supports skills, you can use Ag Task with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ag Task AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇