8000 feat(pick): the no-argument picker and the /dw-mc skill by dominikwozniak · Pull Request #43 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(pick): the no-argument picker and the /dw-mc skill - #43

Merged
dominikwozniak merged 1 commit into
mainfrom
feat/12-picker-and-skill
Sep 17, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
feat/12-picker-and-skill

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

Closes #12.

The two front doors onto the state the commands already keep.

dw-mc with no arguments sweeps, lists every tracked PR under the bucket it sits in, offers what that pull request has something to act on, and runs the command I would have typed. The /dw-mc skill reaches the same state from a session I am already steering, the findings JSON included.

flowchart LR
  A[dw-mc] --> B[sweep]
  B --> C{which pull request?}
  C --> D{what do I do with it?}
  D --> E[review / findings / fix / rebase / resolve / stamp --withdraw]
Loading

The picker implements nothing of its own. The action I pick is dispatched as argv into the same subcommands, through the same parser, so there is one implementation of every action.

An action is offered only where it has something to act on, measured against the current head: no report where no run has covered this head, no rebase where the repository has not turned it on, no withdrawal where there is no stamp. resolve is offered first when a conflict record sits at the current head, because a conflict makes every other signal on the pull request stale.

Two things worth a reviewer's eye:

  • The list is a single Select with the bucket as a column, not headings. Prompt.SelectChoice declares disabled but nothing in unstable/cli reads it, so there is no unselectable heading row to group under. Rows stay in bucket order.
  • resolve is a sixth action; the issue names five. It is a command already built, and a conflict is the first thing that makes a pull request mine.

The row shape both dw-mc status and the picker draw moved into src/cli/row.ts, so neither command owns how the other writes a pull request down.

The two front doors onto the state the commands already keep. `dw-mc`
with no arguments sweeps, lists every tracked PR under the bucket it sits
in, offers what that pull request has something to act on, and runs the
command I would have typed; the skill reaches the same state from a
session I am already steering, the findings JSON included.

The picker implements nothing of its own. It dispatches into the same
subcommands through the same parser, so there is one implementation of
every action and the picker is only a way of reaching it without
remembering the flags.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit 6f9e062 into main Sep 17, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/12-picker-and-skill branch September 17, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The /dw-mc skill and the no-argument picker

1 participant

0