/aida:next [<task-id>]from AIDA, the AI Dev Assistant
Lists open tasks in the current project and jumps to a named task. Use when the user asks what to work on next or wants to resume work.
Ships in AIDA, the AI Dev Assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A task lives inside a project. This skill answers one question: which tasks are open here, and where each one stands. Read the argument once. No argument: show what is open, below. Any text: treat it as a task id and go straight to "A task named directly," below.
This skill never creates a task and never offers a contract, even when it ends up recommending that one be started. Creating one is the task skill's own job. Its one write is the move of a legacy task, below, which the task skill owns.
Every call below runs next-actions.sh, or the one task-actions.sh repair call. Both are named
in this skill's own grant, so each runs without asking, in both run modes. Any other Bash command
still asks for approval.
No task is active yet. Deciding which one is active is this skill's own job, so there is nothing
to read a stated run mode from. Treat this invocation as interactive, the safe default, unless the
whole session is already known to be running unattended from outside any task. Only then pass
--run-mode autonomous on every next-actions.sh call below. The move call takes no run mode
flag. Decide this once, at the start.
Run:
"${CLAUDE_PLUGIN_ROOT}"/skills/next/scripts/next-actions.sh --run-mode <interactive|autonomous> report
Read the exit code first, never the text alone.
| Exit code | Meaning | What to do |
|---|---|---|
| 0 | A project was found and it has at least one open task. | Read the OPEN: list, below. |
| 1 | No project owns this directory, and none is remembered for it either. | Say so, in one line, and name the project skill as the way to set one up or switch to one. Stop. |
| 2 | A project was found, but it has no open task. | Go to "With nothing open," below. |
| 3 | The script could not do its job. | Show the error text and stop. |
On exit 0 or 2, the output begins with CASE: and RUN_MODE:. CASE: is the resolution case
as the project skill numbers them; RUN_MODE: is the mode passed in. Neither changes what to do
next. Then comes PROJECT: (the project folder), then an OPEN: section holding one JSON
object per line, most recently worked first. A LEGACY_COMPLETE: section ends it.
A line beginning next-actions: is a warning: one task file could not be read and was skipped,
never silently. A final WARN: line means at least one of those happened; say so in one line
rather than letting it pass unremarked.
Each OPEN: line is one of two shapes:
"kind":"new": a task with its own task.json. Carries id, state (new or
in_progress), parent, children, runMode, runModeStages (the stages the mode covers,
empty meaning all), and review: what review/review.json says,
passed or failed from its verdict, unfinished for a record with no verdict, none with no
record. An open task reading passed or failed is reviewed, and completion closes it. Also
notes: the date of the newest file under the task's notes/, or none. It also carries
worktree: the path of the task's own git worktree, or none for a task made before every
task had one, or one waiting on another task's build (afterBuild, below). A follow-up and a
split's child read none too, until start makes the tree. With a path it carries worktreeOnDisk too, yes or no: whether that folder
is on this machine. The key is absent with none.
And stage: where the task stands, the first stage whose close record is absent,
one of scope, research, design, implement, review, completion.
legacyStages appears only on a moved version 5 task. It lists the stages whose version 5
file the move kept under a .v5 name and whose version 6 record is absent. The order is the
stage order, from scope, research, design. Otherwise the key is absent. See "Carrying
version 5 work forward," below.
after appears only on a task made with --after. It names the task this one builds on.
afterBuild says whether that build is finished, unfinished or missing. A task that
does not read finished cannot start yet. Say which task it waits on."kind":"legacy": a task from before the tasks folder existed. Carries id, epic (the
folder it is nested inside, or null), legacyState (in_progress here; complete only
appears under LEGACY_COMPLETE:), and path.Exactly one line under OPEN:. That is the answer. Say which task it is and its stage.
Name /aida:<stage> as the skill to run next. When afterBuild is not finished, name the task
it waits on and no stage, because every stage refuses. Treat it as active. This step writes nothing, except the move of a legacy task; there is no session file. It asks one
question only when the line carries legacyStages: the offer in "Carrying version 5 work
forward," below. Go there. Otherwise
enter the tree, below. A
kind: legacy task still lives outside the project's own tasks folder. Move it, below. Then run
the report again. Read the task as kind: new. Never delete it: the move keeps it.
More than one line. List them in the order printed, each numbered, showing the id, its
state and its review word (or, for a legacy entry, its epic and that it predates the tasks folder). Add after and afterBuild when a line has them. Ask which one.
Wait for a plain answer, a number or the task's own id. A chosen legacy entry goes to the move,
below, and then to "A task named directly", below. Any other choice goes to "A task named
directly" as it is.
If LEGACY_COMPLETE: holds any lines, name them once, for visibility: these finished before the
tasks folder existed and are not part of the choice above.
Every stage action of a task runs inside its own git worktree, and refuses from anywhere else. Two routes reach that tree. The refusal at exit 79 names the one that works where the call ran, so read the message and take the route it names.
First, test the path. Two readings stop this step before either route. A task reading
worktree: none has no tree yet. A task reading worktreeOnDisk: no records a path this machine
does not have: the tree was removed, or another machine recorded it. On either reading, do not
call the entry tool and do not name a route. Say the first stage action that needs the code makes
the tree and names the path it made. When afterBuild is not finished, say instead that
start makes the tree once that build is finished. Say a recorded path is computed again here, never reused.
Stop there. Only a task whose worktreeOnDisk reads yes goes on to the two routes.
The prefix. Start the Bash call with cd <worktree> &&. It works from any folder on the
machine and needs no version. The cd part asks for approval, because the tree sits outside this
window's working directories. It does not ask when the tree is an added directory or an allow
rule covers it. The shell forgets such a directory between calls, so every call carries the
prefix.
Entry. From a window inside the code checkout, call the EnterWorktree tool with the task's
worktree path, a folder outside the checkout. The tool asks for approval, because the path
sits outside .claude/worktrees/. No permission rule and no "don't ask again" stops that prompt.
Entry fails in two different ways. Key on the kind of outcome, never on the words of a message.
.claude/worktrees/. From a session inside
another task's tree, ExitWorktree returns to the directory that session started in. Entry
works from there when that directory is inside the code repository.Then print the path and name the route the person types. /cd <path> moves this session into the
tree and keeps the conversation (Claude Code 2.1.169 or later). Running claude from inside the
tree needs no version and no approval. Stop there.
A legacy line never reaches this step: the
move, below, comes first, and this skill then reads the task again as kind: new.
Exit code 2 above means a project was found with no open task.
Offer to start one, in one line. Wait for a plain yes or no.
A legacy task predates the tasks folder and has no task.json. The move that brings it in is the
task skill's repair. This skill runs it, so a person never types it. The task skill says what the
move does and when it refuses. Ask nothing first. With the PROJECT: line and the task's path
(or its PATH: line), run:
"${CLAUDE_PLUGIN_ROOT}"/skills/task/scripts/task-actions.sh repair --project "<projectPath>" "<path>"
Show the whole output. On success, say what moved and where.
A moved task can carry legacyStages. Say which stages version 5 finished for this task, from
that list, and that version 6 holds no record of them. Then offer one thing: run the first listed
stage now. That stage reads the version 5 file as its input and writes the version 6 record. The
producer runs again, and there is no converter, so the stage that reads the old file is the
repair. Wait for a plain yes or no.
aida:<first stage> through the Skill tool, once, with the task id, and stop.Run:
"${CLAUDE_PLUGIN_ROOT}"/skills/next/scripts/next-actions.sh --run-mode <interactive|autonomous> open "<target>"
Read the first line.
FOUND: new. Summary lines follow: PATH:, task-file:, id:, state:, parent:,
children:, runMode: (with the stages the mode covers in brackets when it covers fewer
than all), worktree:, worktree-on-disk: when a path is recorded, review: and stage:, with legacyStages: when
it applies. A task made with --after adds after: and after-build:, which mean what
after and afterBuild mean in the report. Say which task it is, from its id, state, review and stage. Name
/aida:<stage> as the skill to run next. When after-build: is not finished, name the task
it waits on and no stage. Treat it as active. Read
the file at task-file: only when another field is needed. With legacyStages:, go to
"Carrying version 5 work forward," above; its offer is the one question asked here. Otherwise
enter the tree, above.FOUND: legacy_in_progress. A PATH: line follows, and an EPIC: line when it is nested
inside one. Move it, above. Then run the same action again. Read it as FOUND: new.FOUND: legacy_complete. The same lines follow. Say plainly that this task finished before
the tasks folder existed and stays where it is: no contract is offered on it here.. or ..).
Say so and ask for a different one.NOT FOUND: <target> on stderr. Say so, then offer the same choice as "With nothing open,"
above: start a new task with this name, or show what is open instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub camoa/claude-skills --plugin aida13 skills in this plugin
/completionThis skill should be used when a reviewed task is ready to close, for example "close this task", "finish the task", "mark the task done", "write the pull request body", or "complete the task". It reads the review verdict and offers one follow up task per open finding. It writes a pull request body from the records, records the grounds for closing, and calls the task skill last./designThis skill should be used when a task's criteria are grounded and it is time to decide how to build them, for example "design this task", "write work orders", "architect this feature", "plan the build", or "Phase 2". It writes one work order per unit of build, each naming the criteria it serves and the one it owns, and checks that every criterion is covered and every work order traces to something real./implementThis skill should be used when a task's design has closed cleanly and it is time to begin building, for example "start implementing this task", "begin the build", or "Phase 3". It freezes the criteria and the work orders into a snapshot, opens the ledger that tracks each order's progress, refuses to land the build on the project's own trunk branch, establishes whether this repository can build and test at all, writes the tests for one work order and freezes them, writes the code for that order until it passes all three deciding checks, reviews the diff, repairs what the review finds, closes the order, and once every order is closed records the task's implementation as finished./playbooksThis skill should be used when the user asks "which playbooks apply", "list the plays", "add a play", "capture this as a rule", "add this to the playbook", "show my playbook", or when completion offers a note as a play and the person says yes. It lists the plays from the person's file, the project's file and the last loaded catalog sets, and appends a play to the project's file by hand./projectThis skill should be used when the user asks "which project", wants to "create a project", "start a new project", "switch project", "mark this project complete", "archive a project", "unregister a project", "install the task rule", "set where task worktrees go", "check this machine", or "uninstall AIDA from this repository". It works out which project owns the current directory, creates one, switches to another, ends one, or cleans one up, and runs the project check every time./researchThis skill should be used when a task's scope contract is approved and its criteria need grounding before design starts, for example "research this task", "find prior art", "check for an existing library", "look for a guide", "check this assumption", or "Phase 1". It fans out one small search per subject, records each search's findings in its own file, and checks that every criterion has a finding and every finding cites a criterion.Other plugins' skills for the same job