Repository navigation
feat(pick): the no-argument picker and the /dw-mc skill - #43
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12.
The two front doors onto the state the commands already keep.
dw-mcwith 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-mcskill 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]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.
resolveis 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:
Selectwith the bucket as a column, not headings.Prompt.SelectChoicedeclaresdisabledbut nothing inunstable/clireads it, so there is no unselectable heading row to group under. Rows stay in bucket order.resolveis 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 statusand the picker draw moved intosrc/cli/row.ts, so neither command owns how the other writes a pull request down.