dart-next
Use this skill in Codex to run the DART dart-next workflow. The editable
workflow source lives in .claude/commands/; this file is its generated adapter
in the shared .agents/skills/ catalog.
Invocation
- Claude Code:
/dart-next <arguments>
- Codex:
$dart-next <arguments>
Treat the text after the skill name as $ARGUMENTS. When the workflow
references $1, $2, etc., map those to the positional values supplied by the
user.
Command Body
Select and execute the next bounded DART task: $ARGUMENTS
Required Reading
@AGENTS.md
@docs/ai/principles.md
@docs/ai/north-star.md
@docs/ai/workflows.md
@docs/ai/verification.md
@docs/plans/dashboard.md
@docs/dev_tasks/README.md
Load docs/plans/README.md, docs/onboarding/contributing.md,
docs/onboarding/ci-cd.md, and docs/onboarding/ai-tools.md only when the
selected mode or routed workflow needs them.
Arguments
Interpret $ARGUMENTS as optional constraints:
mode=select: choose one task and stop with evidence.
mode=execute: choose one task, make local changes, and verify locally.
This is the default when the user asks to do the work.
mode=pr: execute locally and prepare PR text. Before an action requiring
explicit maintainer/user approval under docs/ai/principles.md and the PR
owner docs, verify existing authorization covers its action, target, and
scope; ask only for missing authority. Ordinary authorized local branch
creation is preparation; shared-state mutations, branch deletion, and
destructive Git operations retain their approval requirements.
size=tiny|small|medium|large or days=N: fit the chosen task to the
requested scope. Default to small, meaning one focused local session.
focus=<topic>: prefer a focus area without making it the only allowed
candidate. Examples: ai-native, easy-start, algorithm, compute,
release, ci, docs, python, io, PLAN-122, world_split,
dartpy, or a file path.
area=<dimension>: alias for focus=<dimension>.
- Any issue, PR, branch, milestone, failing check, file path, or user-stated
priority overrides the default dashboard order.
If constraints conflict or make the task unsafe to select, stop and ask one
clarifying question.
Workflow
- Inspect local state before choosing work:
git status --short --branch
git diff --stat
- Build the candidate set from tracked evidence:
- explicit user instruction in
$ARGUMENTS;
- current branch, local diff, or active
docs/dev_tasks/<task>/ state;
docs/plans/dashboard.md, in priority order, especially Horizon: Now;
docs/ai/north-star.md gaps and readiness criteria;
- issue, PR, or CI state named by the user or inferable from the branch.
- Exclude candidates that are blocked, larger than the requested size, missing
enough evidence to start, or only bootstrap/maintain the
dart-next workflow
itself unless explicitly focused. Missing approval excludes a candidate only
when it has no useful bounded deliverable within the selected mode and
current authorization. A later publication requirement does not disqualify
local preparation. Preserve explicitly named targets; report their remaining
approval boundary after completing authorized work.
- Prefer the highest-value remaining candidate in this order:
- user-specified issue, PR, failing check, or file path;
- candidates matching
focus=<topic> or area=<dimension>;
- failing CI or review feedback on the current PR;
- active dev task with a clear next local step;
- first unblocked
Horizon: Now dashboard item fitting the size;
- issue triage or plan refinement when implementation evidence is missing.
- State the selected task before editing:
- candidate and source evidence;
- rejected higher-priority candidates and why they were not selected;
- whether the preferred focus matched the selected task, and why if it did
not;
- size assumption and expected stopping point;
- workflow to follow next;
- verification gate from
docs/ai/verification.md.
Execution Routing
After selection, follow the most specific DART workflow:
| Selected work |
Route through |
| New implementation task |
$dart-new-task in Codex or /dart-new-task elsewhere |
| Existing dev task |
$dart-resume in Codex or /dart-resume elsewhere |
| Numbered-plan work packet |
$dart-execute-packet or /dart-execute-packet |
| Plan-only change |
$dart-plan-update in Codex or /dart-plan-update |
| Docs-only change |
$dart-docs-update in Codex or /dart-docs-update |
| GitHub issue fix |
$dart-fix-issue in Codex or /dart-fix-issue |
| Downstream bug |
$dart-downstream-fix or /dart-downstream-fix |
| Failing CI |
$dart-fix-ci in Codex or /dart-fix-ci |
| PR review or PR management |
$dart-review-pr / $dart-manage-pr or slash versions |
If the selected task is multi-session or needs design tracking, create or
update docs/dev_tasks/<task>/ according to docs/dev_tasks/README.md.
Local Work Cycle
- Load task-specific docs from
AGENTS.md and the routed workflow.
- Make the smallest coherent local change that satisfies the selected task.
- Run the strongest relevant local gate:
- docs/AI work: gates from
docs/ai/verification.md;
- C++ or Python behavior:
pixi run lint, build, and focused tests;
- CI work: local reproduction when possible plus the fixed check.
- Review the local diff before declaring completion:
git diff --stat
git diff --check
- Optimize or benchmark only when the selected objective is performance
sensitive or the plan gate explicitly requires performance evidence.
- Update durable docs when the task changes project state, public workflow, or
roadmap evidence.
- Run the completion audit from
docs/ai/verification.md before finalizing.
PR And Review Management
Use $dart-pr or /dart-pr only after local verification is complete and the
user requested PR preparation. Verify existing explicit maintainer/user approval
for each approval-gated action under docs/ai/principles.md and the PR owner
docs; ask only for missing or changed authority. Local branch creation and
other authorized preparation need no extra approval. Shared-state mutations,
branch deletion, and destructive Git operations retain their approval boundaries.
After a PR exists and explicit approval covers PR management, use
$dart-manage-pr or /dart-manage-pr for CI, review, and cleanup; the Codex
review trigger and draft-ready criteria live in docs/onboarding/ai-reviews.md.
Output
Report:
- selected task, size, evidence, and routed workflow;
- files changed and verification commands run;
- completion-audit result and any remaining blocker;
- PR readiness status, without performing external mutations unless explicit
approval was given.
1---2name: dart-next3description: DART Next: choose the next bounded DART task from plans, issues, and CI, then route it4---56<!-- AUTO-GENERATED FILE - DO NOT EDIT MANUALLY -->7<!-- Source: .claude/commands/dart-next.md -->8<!-- Sync script: scripts/sync_ai_commands.py -->9<!-- Run `pixi run sync-ai-commands` to update -->1011# dart-next1213Use this skill in Codex to run the DART `dart-next` workflow. The editable14workflow source lives in `.claude/commands/`; this file is its generated adapter15in the shared `.agents/skills/` catalog.1617## Invocation1819- Claude Code: `/dart-next <arguments>`20- Codex: `$dart-next <arguments>`2122Treat the text after the skill name as `$ARGUMENTS`. When the workflow23references `$1`, `$2`, etc., map those to the positional values supplied by the24user.2526## Command Body2728Select and execute the next bounded DART task: $ARGUMENTS2930## Required Reading3132@AGENTS.md33@docs/ai/principles.md34@docs/ai/north-star.md35@docs/ai/workflows.md36@docs/ai/verification.md37@docs/plans/dashboard.md38@docs/dev_tasks/README.md3940Load `docs/plans/README.md`, `docs/onboarding/contributing.md`,41`docs/onboarding/ci-cd.md`, and `docs/onboarding/ai-tools.md` only when the42selected mode or routed workflow needs them.4344## Arguments4546Interpret `$ARGUMENTS` as optional constraints:4748- `mode=select`: choose one task and stop with evidence.49- `mode=execute`: choose one task, make local changes, and verify locally.50 This is the default when the user asks to do the work.51- `mode=pr`: execute locally and prepare PR text. Before an action requiring52 explicit maintainer/user approval under `docs/ai/principles.md` and the PR53 owner docs, verify existing authorization covers its action, target, and54 scope; ask only for missing authority. Ordinary authorized local branch55 creation is preparation; shared-state mutations, branch deletion, and56 destructive Git operations retain their approval requirements.57- `size=tiny|small|medium|large` or `days=N`: fit the chosen task to the58 requested scope. Default to `small`, meaning one focused local session.59- `focus=<topic>`: prefer a focus area without making it the only allowed60 candidate. Examples: `ai-native`, `easy-start`, `algorithm`, `compute`,61 `release`, `ci`, `docs`, `python`, `io`, `PLAN-122`, `world_split`,62 `dartpy`, or a file path.63- `area=<dimension>`: alias for `focus=<dimension>`.64- Any issue, PR, branch, milestone, failing check, file path, or user-stated65 priority overrides the default dashboard order.6667If constraints conflict or make the task unsafe to select, stop and ask one68clarifying question.6970## Workflow71721. Inspect local state before choosing work:73 ```bash74 git status --short --branch75 git diff --stat76 ```772. Build the candidate set from tracked evidence:78 - explicit user instruction in `$ARGUMENTS`;79 - current branch, local diff, or active `docs/dev_tasks/<task>/` state;80 - `docs/plans/dashboard.md`, in priority order, especially `Horizon: Now`;81 - `docs/ai/north-star.md` gaps and readiness criteria;82 - issue, PR, or CI state named by the user or inferable from the branch.833. Exclude candidates that are blocked, larger than the requested size, missing84 enough evidence to start, or only bootstrap/maintain the `dart-next` workflow85 itself unless explicitly focused. Missing approval excludes a candidate only86 when it has no useful bounded deliverable within the selected mode and87 current authorization. A later publication requirement does not disqualify88 local preparation. Preserve explicitly named targets; report their remaining89 approval boundary after completing authorized work.904. Prefer the highest-value remaining candidate in this order:91 - user-specified issue, PR, failing check, or file path;92 - candidates matching `focus=<topic>` or `area=<dimension>`;93 - failing CI or review feedback on the current PR;94 - active dev task with a clear next local step;95 - first unblocked `Horizon: Now` dashboard item fitting the size;96 - issue triage or plan refinement when implementation evidence is missing.975. State the selected task before editing:98 - candidate and source evidence;99 - rejected higher-priority candidates and why they were not selected;100 - whether the preferred focus matched the selected task, and why if it did101 not;102 - size assumption and expected stopping point;103 - workflow to follow next;104 - verification gate from `docs/ai/verification.md`.105106## Execution Routing107108After selection, follow the most specific DART workflow:109110| Selected work | Route through |111| -------------------------- | ------------------------------------------------------- |112| New implementation task | `$dart-new-task` in Codex or `/dart-new-task` elsewhere |113| Existing dev task | `$dart-resume` in Codex or `/dart-resume` elsewhere |114| Numbered-plan work packet | `$dart-execute-packet` or `/dart-execute-packet` |115| Plan-only change | `$dart-plan-update` in Codex or `/dart-plan-update` |116| Docs-only change | `$dart-docs-update` in Codex or `/dart-docs-update` |117| GitHub issue fix | `$dart-fix-issue` in Codex or `/dart-fix-issue` |118| Downstream bug | `$dart-downstream-fix` or `/dart-downstream-fix` |119| Failing CI | `$dart-fix-ci` in Codex or `/dart-fix-ci` |120| PR review or PR management | `$dart-review-pr` / `$dart-manage-pr` or slash versions |121122If the selected task is multi-session or needs design tracking, create or123update `docs/dev_tasks/<task>/` according to `docs/dev_tasks/README.md`.124125## Local Work Cycle1261271. Load task-specific docs from `AGENTS.md` and the routed workflow.1282. Make the smallest coherent local change that satisfies the selected task.1293. Run the strongest relevant local gate:130 - docs/AI work: gates from `docs/ai/verification.md`;131 - C++ or Python behavior: `pixi run lint`, build, and focused tests;132 - CI work: local reproduction when possible plus the fixed check.1334. Review the local diff before declaring completion:134 ```bash135 git diff --stat136 git diff --check137 ```1385. Optimize or benchmark only when the selected objective is performance139 sensitive or the plan gate explicitly requires performance evidence.1406. Update durable docs when the task changes project state, public workflow, or141 roadmap evidence.1427. Run the completion audit from `docs/ai/verification.md` before finalizing.143144## PR And Review Management145146Use `$dart-pr` or `/dart-pr` only after local verification is complete and the147user requested PR preparation. Verify existing explicit maintainer/user approval148for each approval-gated action under `docs/ai/principles.md` and the PR owner149docs; ask only for missing or changed authority. Local branch creation and150other authorized preparation need no extra approval. Shared-state mutations,151branch deletion, and destructive Git operations retain their approval boundaries.152153After a PR exists and explicit approval covers PR management, use154`$dart-manage-pr` or `/dart-manage-pr` for CI, review, and cleanup; the Codex155review trigger and draft-ready criteria live in `docs/onboarding/ai-reviews.md`.156157## Output158159Report:160161- selected task, size, evidence, and routed workflow;162- files changed and verification commands run;163- completion-audit result and any remaining blocker;164- PR readiness status, without performing external mutations unless explicit165 approval was given.