Skip to content
Skill

tq

by zedutch

AI Summary

The tq booster teaches AI agents how to use the tq agent-first Git-compatible task queue system for managing, claiming, and resolving tasks in distributed workflows. It's valuable for teams using Claude Code that need structured task management without polluting their main repository.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "tq" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/tq && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/tq/SKILL.md "https://raw.githubusercontent.com/zedutch/tq/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Guides agents through using the tq agent task queue system. Activate when the user mentions tq, tasks, or when working in a repository with a .tasks directory. Teaches proper workflow for managing, creating, and resolving tasks.

TQ - the agentic task queue

This skill helps you work with tq, an agent-first Git-compatible task queue.

Core concept

All tasks are stored as yml files in a workspace. The location of this workspace can be queried with tq where. This could be in the current repo but could also be somewhere totally different. The tq workspace uses a separate git repository to prevent changes to tasks from entering the main project git repo. You seldomly need access to the workspace itself, you should generally query it using tq commands. If you do need to manually change something in the tq workspace, make sure you clean up its working copy (e.g. by pushing your changes to the remote) before continuing on. You can run git commands inside of the workspace by using tq git <command>. All usual git commands work as these just get passed along to git directly. Each task in tq is identified by a 4-character task id. This id is always needed when querying or editing a single task. When creating a new task, tq will return the new id as a response if the task was created correctly. tq can be used in a distributed system with synchronisation going through a git server. Tasks can and should be claimed before work starts, that way other users immediately know that a task has already started so we can prevent parallel redundant work.

Workflow

If you don't know what task to work on, run tq list to show all open, unclaimed tasks. If you do know what task to work on or if you've just chosen one, run tq claim <task id> to claim that task. Only start working on the task if the claim was successful. If the claim failed, either look for another open task (that could be the same one if it's still returned by tq list) or ask the user what to do instead if you're running in interactive mode. Once the task has completed, run tq close <task id> to mark it as such.

Create a new task

tq create "<task name / summary>" -d "<description about what needs to be done and why>" -p "<priority 0..4, optional>"

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
0 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Issues0
Updated2mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code