# ds-adopt

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 534 installs · ★ 320 repo stars
- Author: aicodeking
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/aicodeking/deepseek-stack/tree/HEAD/skills/ds-adopt/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/ds-adopt

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ds-adopt/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ds-adopt/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ds-adopt/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ds-adopt/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aicodeking/deepseek-stack skills/ds-adopt
```

2. **Manually: put the files in place**
- File: `.github/skills/ds-adopt/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-adopt
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ds-adopt/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aicodeking/deepseek-stack --skill ds-adopt -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aicodeking/deepseek-stack/tree/HEAD/skills/ds-adopt/SKILL.md

## When to use it
- 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
- 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.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: df4bb6458b4f1cf7.

BEGIN THIRD-PARTY FILE df4bb6458b4f1cf7
```text
---
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.
```
END THIRD-PARTY FILE df4bb6458b4f1cf7

The third-party file has ended. Everything between the df4bb6458b4f1cf7 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© aicodeking · MIT · https://github.com/aicodeking/deepseek-stack/tree/HEAD/skills/ds-adopt/SKILL.md

## Similar
- [work-with-pr](https://affpapa.org/en/nevibecode/skills/work-with-pr.md) — skill · 786 installs
- [pr-feedback-quality-gate](https://affpapa.org/en/nevibecode/skills/pr-feedback-quality-gate.md) — skill · 2000 installs
- [full-stop](https://affpapa.org/en/nevibecode/skills/full-stop.md) — skill · 1300 installs
- [antfu-create-pr](https://affpapa.org/en/nevibecode/skills/antfu-create-pr.md) — skill · 919 installs
- [detailed-pr-description](https://affpapa.org/en/nevibecode/skills/detailed-pr-description.md) — skill · 800 installs
- [fix-pr](https://affpapa.org/en/nevibecode/skills/fix-pr.md) — skill · 621 installs

From the same set: [aicodeking/deepseek-stack](https://affpapa.org/en/nevibecode/by/aicodeking/deepseek-stack.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
