Repository navigation
feat: add /ddev:work to take an issue or PR from start to finish - #8
Merged
Merged
Conversation
## Short Summary (TL;DR) `/ddev:work` takes an issue or PR in a DDEV repository from reading to a change ready to commit. It writes down the brief that maintainers retype in almost every such session. ## The Issue About 22 local sessions in ddev/ddev, ddev.com and four add-ons start with "let's work on <issue or PR>". Most then add the same instructions by hand: read all comments, read every related issue and PR, check open PRs for conflicts, rebase, plan first, and test by hand. Later prompts repeat the same corrections: "you didn't update this file", "can it be simpler?", and "don't run the whole suite". ## How This PR Solves The Issue | Step | What the skill does | | --- | --- | | Read | `gh issue view --comments`, `/ddev:review`'s `pr-context.sh` for a PR, and a new `mentions.sh` that lists every issue and PR that mentions it, open and closed, in any repository | | Pick up | For a paused PR: what is done, unanswered review comments, failing checks, conflicts, and parts another PR already did | | Conflicts | Lists open PRs that change the same files | | Plan | Shows a plan and waits. New flags, keys, config and breaking changes are the user's decision | | Implement | Searches code, scripts, docs, schema, completion and tests for every place the change touches | | Test | Reproduces on a baseline first, then on the change, using `/ddev:review`'s builds and Docker lock. Reads an outside contributor's PR for risky changes before running it. Only the related tests run | | Hand over | Checks its own diff, reports, and drafts comments for the issues it fixes. Commits through `/ddev:commit` | AGENTS.md now says a skill can call another skill's script through `<skill dir>/../<other>/`, as this one does with `/ddev:review`'s. `mentions.sh` reads `filteredCount`, not `totalCount`, because on a PR `totalCount` counts every timeline event and ignores the type filter. ## Manual Testing Instructions ```bash gh pr checkout 8 cd ~/code/ddev/ddev <this checkout>/plugins/ddev/skills/work/mentions.sh 7904 # Expect #8817, #8820, #8830, #8903, #8906, and ddev/ddev-typo3-solr#30 ``` Follow "When a skill should load" in AGENTS.md with "let's work on issue 12, read all comments and related PRs. Plan only, don't change anything." as the prompt. Expect `ddev:work` in the repository with a `github.com/ddev/` remote, and no output in the other one. ## Automated Testing Overview `claude plugin validate .` and shellcheck pass, and the frontmatter parses with Ruby's YAML parser. Claude Code ran `mentions.sh` on ddev/ddev#7904, ddev/ddev#8956 and ddev/ddev-nvm#6, and the open-PR overlap command on ddev/ddev. Claude Code ran the routing check with Opus 5.5 for two prompts: `ddev:work` loaded in 4 of 4 runs in the DDEV repository and in 0 of 4 in the other one. Not tested: a full session through the skill, and `mentions.sh` on macOS. 🤖 Developed with assistance from [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 5.5 <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.
Short Summary (TL;DR)
/ddev:worktakes an issue or PR in a DDEV repository from reading to a change ready to commit. It writes down the brief that maintainers retype in almost every such session.The Issue
About 22 local sessions in ddev/ddev, ddev.com and four add-ons start with "let's work on ". Most then add the same instructions by hand: read all comments, read every related issue and PR, check open PRs for conflicts, rebase, plan first, and test by hand. Later prompts repeat the same corrections: "you didn't update this file", "can it be simpler?", and "don't run the whole suite".
How This PR Solves The Issue
gh issue view --comments,/ddev:review'spr-context.shfor a PR, and a newmentions.shthat lists every issue and PR that mentions it, open and closed, in any repositoryAGENTS.md now says a skill can call another skill's script through
<skill dir>/../<other>/, as this one does with/ddev:review's.mentions.shreadsfilteredCount, nottotalCount, because on a PRtotalCountcounts every timeline event and ignores the type filter.Manual Testing Instructions
Follow "When a skill should load" in AGENTS.md with "let's work on issue 12, read all comments and related PRs. Plan only, don't change anything." as the prompt. Expect
ddev:workin the repository with agithub.com/ddev/remote, and no output in the other one.Automated Testing Overview
claude plugin validate .and shellcheck pass, and the frontmatter parses with Ruby's YAML parser. Claude Code ranmentions.shon ddev/ddev#7904, ddev/ddev#8956 and ddev/ddev-nvm#6, and the open-PR overlap command on ddev/ddev. Claude Code ran the routing check with Opus 5.5 for two prompts:ddev:workloaded in 4 of 4 runs in the DDEV repository and in 0 of 4 in the other one.Not tested: a full session through the skill, and
mentions.shon macOS.🤖 Developed with assistance from Claude Code