Skip to content
Back to skills

Mq

ASecurity

Manage thegn's local merge queue from inside a worktree — add the current branch to the queue, clear it, list it, or drain it. Use when the user asks to queue a branch for merge, empty/clear the merge queue, or check what's queued.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
developmentbash

Works with

  • cli

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add blakeashleyjr/thegn --skill mq --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mq?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mq
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blakeashleyjr-thegn/badge)](https://www.skillsdirectory.com/skills/blakeashleyjr-thegn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mq
description: Manage thegn's local merge queue from inside a worktree — add the current branch to the queue, clear it, list it, or drain it. Use when the user asks to queue a branch for merge, empty/clear the merge queue, or check what's queued.
harnesses: claude,codex,pi
gate: merge_queue
when: create,startup,explicit
---

# thegn merge queue (`/mq`)

You are inside a **thegn** worktree. thegn has a local, test-gated merge
queue that folds worktree branches onto the repo's target branch. Drive it with
the `thegn` CLI (already on your PATH; `tg` is an alias). All commands
operate on the **current** worktree/repo — run them from within the worktree.

## Actions

- **`/mq add`** — add this worktree's current branch to the queue:

  ```bash
  thegn merge add
  ```

  Add every eligible branch in the repo with `thegn merge add --all`.

- **`/mq clear`** — empty the queue for this repo:

  ```bash
  thegn merge clear
  ```

- **`/mq list`** — show what's queued:

  ```bash
  thegn merge list
  ```

  Add `--json` for machine-readable output.

- **`/mq drain`** — process the queue one branch at a time (fold + gate; the
  autopilot). This can land branches, so confirm with the user first:
  ```bash
  thegn merge drain
  ```

## Notes

- These are no-ops if the merge queue is disabled (`[merge_queue] enabled = false`);
  the command will say so.
- Adding a branch that _is_ the target branch is skipped automatically.
- `add`/`clear`/`list` are safe and reversible (`thegn merge rm <worktree>` removes
  a single entry). `drain` mutates the target branch — treat it as a landing action.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.