work-to-prs
Current workflow version: 2.0.0.
The version is published as Agent Skills metadata.version. Skills.sh installs and updates from repository source; this metadata identifies the workflow release but does not provide registry-style version selection.
Hand the agent a work item, get back reviewed, ready-to-publish PRs. The pipeline: a planner and a private companion agent research the codebase and interview each other until the design is settled, the work is broken into single-concern TDD phases, each phase is implemented by a fresh agent under strict commit rules and gated by a fresh strict reviewer, a grouper decides from the real diff where each PR ends, and everything lands as local branches plus markdown artifacts. Nothing is pushed or published until you explicitly say so.
Install
npx skills install mohasarc/mo-skills --skill work-to-prsQuick start
work-to-prs fix the double-submit bug on the checkout form
work-to-prs PROJ-123
work-to-prs https://github.com/you/repo/issues/42Output lands in runs/<run>/ inside the skill folder (git-ignored): brief, phased plan, planning dialogue, per-phase completion notes, review reports, grouping decisions, and a proposed PR description per branch. The handoff report ends with the exact publish command.
work-to-prs resume <run-folder> # continue an interrupted run
work-to-prs publish <run-folder> # push and open PRs per your configConfigure
Edit config.md beside SKILL.md. It ships with working defaults; every line is a plain-sentence rule the agents follow. The sections:
- Reading work items — how input becomes a brief. Default: plain text is the work description. Point it at your tracker, e.g. "Use the linear-read skill for Linear IDs and URLs. Tracker is read-only."
- Models — model per agent role (planner, companion, implementer, reviewer, grouper), e.g. "Planner: opus". Unset roles use the harness default.
- Publication — what
publishdoes (draft PRs / ready PRs / push only) and when (all at once on command / per part as each is cut). - Review — non-final phases get at most two reviewer rounds; material findings carry into the next phase, while the final phase reviews until it passes and clears them.
- Runs — where run output lives and whether to keep it. Default: keep everything.
- PR size — commit and line budget per PR. The grouper cuts to it; the planner slices larger phases so a PR can end mid-phase. Defaults to ~10 commits and ~500 lines, ceiling 20 commits. Strictness says how far past the ceiling a range may go and when.
- Conventions — integration branch, branch naming, verification commands. Left on "discover", the agent reads your repo docs and asks before recording what it found.
- Capabilities — optional tools agents may use, all off by default.
- Extra guidance — freeform project rules passed verbatim to every agent. Rules here override the workflow's defaults, so this is also where you relax core behavior (e.g. drop TDD) if you must.
Suggested third-party tools
None required. If installed and named in config, agents use them:
- linear-read — Linear issue access, for the Reading work items section.
- loom-watch — Loom transcripts and frames, for the Video links capability.
Any equivalent tool works; the config sentence just has to name it.
Requirements
Install describe-work alongside this skill. Implementers use it for phase completion notes; groupers use it for PR descriptions.
Works on any agent harness that can load markdown skills. Harnesses that can spawn subagents get the full design: isolated planner/companion dialogue and fresh implementer/reviewer/grouper contexts per phase. Harnesses without subagents degrade to playing the roles sequentially in one context; the run still completes and the handoff report discloses the lost isolation.
Note: reinstalling or updating the skill can overwrite your edited config.md. Diff and carry your rules over after an update.