Skip to content
Development
Command

/gaia-debt

Fixes the tech-debt backlog, a single issue, a recommended related batch, or an optional batch of small unrelated issues, highest severity then oldest first, on a fresh isolated branch through the audit gate, closing the issue(s) on merge. With no argument it drains the top of

From plugin
gaia
2612 skills18 agents12 commands
$ npx -y skills add gaia-harness/gaia --agent claude-code

Command definition

gaia-debt.md
name: gaia-debt
description: Fixes the tech-debt backlog, a single issue, a recommended related batch, or an optional batch of small unrelated issues, highest severity then oldest first, on a fresh isolated branch through the audit gate, closing the issue(s) on merge. With no argument it drains the top of the backlog, and also offers a batch of small unrelated issues when two or more unrelated issues or groups fit at offer time; one issue number fixes that issue directly, and several issue numbers name the operator's own batch, budgeted. An optional trailing `[use] worktree|branch` picks the isolation mode. A named number that cannot be drained stops with a reason. Use when the user asks to drain, fix, or work the tech-debt backlog or a named tech-debt issue.
argument-hint: "[<issue-number>...] [[use] worktree|branch]"

Run the GAIA **debt** workflow with these arguments: `$ARGUMENTS`

Pre-flight: Worktree check

This command claims a backlog issue, cuts its own isolated branch, and drives that branch's pull request to merge. If invoked from a linked worktree, reject hard: `gaia_refuse_if_worktree` (`.gaia/scripts/main-only-lib.sh`) asks the shared resolver which tree this is and refuses out loud, naming the main checkout, when the answer is a worktree.

Detection (run this first, before anything else):

. .gaia/scripts/main-only-lib.sh
gaia_refuse_if_worktree "/gaia-debt" || exit 1
. .gaia/scripts/main-only-lib.sh
gaia_pull_gate "/gaia-debt"

On a non-zero exit, read `.claude/skills/update-gaia/references/pull-gate.md` and follow it with `/gaia-debt`, this run's original arguments and the exit code, before anything below creates a branch, worktree, claim or SPEC id.

Read `.claude/skills/gaia/references/debt.md` from the project root and follow it exactly, treating the arguments above as its input: zero or more issue numbers (one fixes that issue, several name your own batch) and an optional trailing isolation mode. The reference's argument parser owns the grammar, and an unrecognized argument stops the run with the accepted form; no argument runs the top-of-backlog flow.

`debt.md` routes each run to at most a few of these sub-references, all under `.claude/skills/gaia/references/debt/`. Read one only when a "Read ... now" line sends you there, and then read the whole file:

  • `recommend.md`: the no-argument offer.
  • `named.md`: validating named issue numbers and fixing one issue or a named set.
  • `spec-handoff.md`: handing a spec-class issue off to `/gaia-spec`.
Read more
@gaia-react
Ships withgaia

Claude is raw power. GAIA is order and focus. A serious harness for Claude Code. It keeps Claude-shipped code production-grade as your team scales. The React frontend is handled. You build the rest of your app on top.

2619 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
26
Star history of gaia-react/gaia on GitHub, a chart by star-history.com

Other commands on gaia.

distribution-vet

distribution-vet

Command

Maintainer-only. Classifies every file that would newly ship to adopters against the written distribution-boundary categories,…

@gaia-react@gaia-reactInstall Command
gaia-cleanse

gaia-cleanse

Command

Cleanses memory and auto-loaded files (CLAUDE.md, rules) of duplication with the wiki, contradictions with the wiki, and stale…

@gaia-react@gaia-reactInstall Command
gaia-codify

gaia-codify

Command

Drafts a guard (deterministic check, skill, or path-scoped rule) for a recurring code-audit finding class, with approval. Reviews…

@gaia-react@gaia-reactInstall Command
gaia-fitness

gaia-fitness

Command

Lints this project's Claude integration (skills, commands, agents, rules, hooks, settings, CLAUDE.md files, wiki) with a…

@gaia-react@gaia-reactInstall Command
gaia-forensics

gaia-forensics

Command

Turns a GAIA workflow misfire into a redacted, classified, filing-ready bug report in one read-only pass. Self-diagnoses config…

@gaia-react@gaia-reactInstall Command
gaia-init

gaia-init

Command

Initializes a new project from the GAIA harness. Renames, strips GAIA branding, configures i18n, installs the React Doctor skill,…

@gaia-react@gaia-reactInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command