Skip to main content
skill CX Codex

ds-adopt — Claude Code skill: take over unfinished work

ds-adopt — a Claude Code skill takes over an existing PR, branch, or agent thread and completes its original goal. It activates when asked to adopt or finish someone else’s work.

MIT 534 installs ★ 320 updated 2026-10-28

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a claude-code
Open on GitHub

What ds-adopt does

The skill reads the PR, branch, or thread, including its commits, review notes, and later user corrections. It checks the current Git state, records the original goal, then chooses where to continue. By default, it creates a new branch from the original commits and adds fixes in separate commits. It uses ds-revive to update the work against the base branch.

The skill runs the original workflow to verify the fix and records the commands and output. If a PR is requested, it files one with ds-pr, monitors it with ds-watch-pr, and uses ds-pr-comments to reply to comments. The original PR must remain untouched unless the user authorizes changes, a merge, or closure. If the goal is unclear, the skill asks; after three consecutive verification failures on the same issue, it reports the blocker.

What it helps with

  • finish an inherited PR while preserving its original goal
  • inspect a branch’s current state and outstanding review findings
  • verify a fix by running the original workflow
  • keep the original contributors’ credit in commits and PRs

Example prompts for the agent

  • Take over this PR, finish its original goal, and preserve contributor credit.
  • Pick up this branch, check its current state, and complete the original work.
  • Adopt this agent thread and verify the fix with the original workflow.

How to install ds-adopt

1Skills CLI (Vercel)

npx skills add aicodeking/deepseek-stack --skill ds-adopt -a claude-code

2Manually: put the files in place

~/.claude/skills/ds-adopt/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ds-adopt/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ds-adopt

How do I install ds-adopt in Claude Code?

Run npx skills add aicodeking/deepseek-stack --skill ds-adopt -a claude-code. The skill file is at ~/.claude/skills/ds-adopt/SKILL.md.

What does ds-adopt do?

It takes over an existing PR, branch, or agent thread, works toward its original goal, and verifies the result. It preserves credit for the initial contributors.

Can ds-adopt edit or close the original PR?

No. It must not edit, merge, or close the original PR unless the user gives permission.

Source text

SKILL.md · MIT
---
name: ds-adopt
description: "Takes over an existing PR, branch or agent thread and finishes its original goal while keeping credit for the first contributors. Use when the user says take over, adopt, pick up or finish this PR, or /ds-adopt."
---

Finish someone else's work as if it were yours, but credit them for what they did.

## Steps

1. Read the source PR, branch or thread in full: description, commits, review comments and any later corrections from the user.
2. Find the real current state: the head SHA, uncommitted changes and open review findings. Treat the handoff notes as hints, not facts.
3. Write down the original goal in one sentence.
4. Choose where to work. By default, make a new branch with the original commits on it and add your fixes as separate commits. Continue in place or stack only if the user asked for it.
5. Run `ds-revive` to bring the work up to date with the base branch.
6. Fix what is needed to reach the original goal. Simplify where you can, but keep every intended behavior.
7. Verify on your own. Reproduce the original problem, then show it fixed. Run the real workflow, not only mocked tests. Record the commands and output.
8. Check the source PR again. It may have changed while you worked.
9. If a PR is wanted, file it with `ds-pr`, then watch it with `ds-watch-pr`. Use `ds-pr-comments` for any reply.
10. Report what you inherited, what you changed, how you verified it, how credit was kept and what is still open.

## Stop when

- The goal is reached, verified and reported.
- The goal is unclear, or finishing it needs a product decision. Ask the user.
- Verification fails three times in a row on the same issue. Report the blocker.

## Rules

- Keep the original Git authors and co-author trailers. Name the contributors and link the original PR in the description.
- If the PR will be squashed, keep human co-author lines in the squash message. Use verified identities only, never guessed emails.
- Do not defend the old code because it exists. Do not add unrelated features.
- Do not edit, merge or close the original PR without permission.
- State plainly what you could not verify.

© aicodeking · MIT · aicodeking/deepseek-stack

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set29

The whole set →
ds-jury The ds-jury Claude Code skill gathers independent reviews of a code change from several models. The agent works through accepted findings and runs another review round until the reviewers agree. CX Codex +1 539installs ds-best-of-n The ds-best-of-n Claude Code skill creates several independent versions of a task and combines the strongest result with selected parts from the others. It runs for substantial work where a single attempt may take the wrong direction. CX Codex +1 539installs ds-swarm Claude Code skill splits broad tasks across parallel workers and merges their verified outputs into a single report. Triggers on /ds-swarm during audits or multi-branch races. CX Codex +1 537installs ds-watch-pr ds-watch-pr is a Claude Code skill that follows a pull request through CI and review, fixes real findings, and stops when it is ready, merged, or blocked. CX Codex +1 536installs ds-ready ds-ready is a Claude Code skill that automates the delivery workflow through opening a pull request, then stops before merging. CX Codex +1 534installs ds-revive The ds-revive Claude Code skill checks whether an old PR still fits the current code. When asked to refresh or revive one, it recommends a rebase, a rewrite, or closure. CX Codex +1 534installs ds-pr ds-pr — a skill for Claude Code and other platforms that files a concise pull request for the current branch when asked to open a PR. CX Codex +1 534installs ds-ship A Claude Code skill takes a code change through checks and review to a merged pull request. It starts when asked to ship the work, merge once green, or run /ds-ship. CX Codex +1 534installs

Project sponsors

Companies that keep this analytics open