Skip to content

feat: add /ddev:work to take an issue or PR from start to finish - #8

Merged
stasadev merged 1 commit into
mainfrom
20261029_stasadev_work_skill
Oct 29, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261029_stasadev_work_skill

Conversation

@stasadev

Copy link
Copy Markdown
Member

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 ". 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

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

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

## 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>
@stasadev
stasadev merged commit 67ce883 into main Oct 29, 2026
1 check passed
@stasadev
stasadev deleted the 20261029_stasadev_work_skill branch October 29, 2026 13:39
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.

1 participant