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.
71
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
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.
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:
command -v codex || true
command -v claude || command -v claude-code || trueRecord the selected adapter in the run notes or scenario:
{
"reference_agent": "codex",
"reference_interactive_command": "codex",
"reference_headless_command": "codex exec",
"target_agent": "qwen-code",
"target_repo": "."
}codex or claude-code as the reference agent and discover its local launch command.scripts/capture_state.py before and after the
scenario.scripts/run_with_mitm.sh.scripts/run_tmux_capture.sh when the feature is interactive or TUI-visible.messages, tools, functions, schemas, tool choice, model settings$agent-reproduce-align when implementation exists and parity needs iteration.Read references/capture-workflow.md before running capture for the first time in a session.
Prefer a fresh output directory per run:
mkdir -p .repro-runs/slash-command-baseline
.qwen/skills/agent-reproduce-feature/scripts/run_with_mitm.sh \
.repro-runs/slash-command-baseline \
-- codex exec "exercise the Codex feature here"For Claude Code, use the discovered headless command if available; otherwise use tmux:
.qwen/skills/agent-reproduce-feature/scripts/run_tmux_capture.sh \
.repro-runs/slash-command-claude \
claudeFor interactive slash commands or terminal rendering, use tmux:
.qwen/skills/agent-reproduce-feature/scripts/run_tmux_capture.sh \
.repro-runs/slash-command-tui \
codexThe mitm script sets common proxy and CA variables for Node, Python, and curl-based CLIs. If TLS fails, read the certificate notes in references/capture-workflow.md and fix trust before interpreting missing traffic as product behavior.
Capture reference-agent state before and after a run:
.qwen/skills/agent-reproduce-feature/scripts/capture_state.py \
snapshot .repro-runs/slash-command-baseline/state-before \
--agent codex
# Run the reference scenario here.
.qwen/skills/agent-reproduce-feature/scripts/capture_state.py \
snapshot .repro-runs/slash-command-baseline/state-after \
--agent codex
.qwen/skills/agent-reproduce-feature/scripts/capture_state.py \
diff \
.repro-runs/slash-command-baseline/state-before \
.repro-runs/slash-command-baseline/state-after \
--out-dir .repro-runs/slash-command-baseline/state-diffUse --agent claude-code to snapshot ~/.claude instead of ~/.codex.
Use --root PATH only for a custom state directory or tests.
state-diff.md before copying any excerpt into a tracked file..repro-runs/ or an equivalent ignored/local path.$agent-reproduce-align without re-discovering the setup.62e009a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.