# Agent Reproduce Feature

Use when reproducing an existing Codex or Claude Code feature in Qwen Code or another...

- Repository: https://github.com/QwenLM/qwen-code (28858 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add QwenLM/qwen-code --skill agent-reproduce-feature -g -a claude-code -y`
Codex: `npx skills add QwenLM/qwen-code --skill agent-reproduce-feature -g -a codex -y`
Cursor: `npx skills add QwenLM/qwen-code --skill agent-reproduce-feature -g -a cursor -y`
Gemini CLI: `npx skills add QwenLM/qwen-code --skill agent-reproduce-feature -g -a gemini-cli -y`

## Description

Use when reproducing an existing Codex or Claude Code feature in Qwen Code or another agent CLI by choosing a reference agent, capturing HTTP request bodies, prompts, tool/function schemas, terminal output, and then implementing the matching behavior in the target repo.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Agent Reproduce Feature

## Purpose

Use this skill to turn an observed feature from a reference agent into an implementation task for Qwen Code. The workflow treats the current session as the outer harness and runs a nested reference agent process as the program under test.

Default target repo: the current working directory. Use a user-specified path only when the user explicitly provides one.

## Reference Agent Selection

Start by selecting exactly one reference agent:

- `codex`: use nested Codex as the reference implementation.
- `claude-code`: use nested Claude Code as the reference implementation.

If the user did not choose one, ask once before capture. Then discover the local commands instead of assuming them:

```sh
command -v codex || true
command -v claude || command -v claude-code || true
```

Record the selected adapter in the run notes or scenario:

```json
{
  "reference_agent": "codex",
  "reference_interactive_command": "codex",
  "reference_headless_command": "codex exec",
  "target_agent": "qwen-code",
  "target_repo": "."
}
```

## Workflow

The rest: https://github.com/QwenLM/qwen-code/blob/HEAD/.qwen/skills/agent-reproduce-feature/SKILL.md
