khoshov/integration/agent-reproduce-feature
Claude Code and agent skill by khoshov/integration
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install khoshov/integration/agent-reproduce-featureSKILL.md
The same SKILL.md was published earlier as khoshov/integration/agent-reproduce-feature.
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:
Record the selected adapter in the run notes or scenario:
Workflow
- Define the feature surface in one sentence: command, trigger, expected UI/output, and a minimal prompt that exercises it.
- Select
codexorclaude-codeas the reference agent and discover its local launch command. - Inspect the target repo enough to identify the likely module boundaries and Qwen Code launch command before changing code.
- Run the nested reference agent against the feature with capture enabled:
- Local state capture via
scripts/capture_state.pybefore and after the
scenario.
- HTTP/body capture via
scripts/run_with_mitm.sh. - Terminal capture via
scripts/run_tmux_capture.shwhen the feature is interactive or TUI-visible. - Headless/non-interactive execution when the feature has a stable command-line path.
- Extract behavioral facts from the trace:
- system/developer prompt deltas relevant to the feature
- request body shape, including
messages,tools,functions, schemas, tool choice, model settings - visible terminal states and command output
- local agent state changes, file edits, exit status, and error paths
- Implement the smallest compatible behavior in Qwen Code using its existing patterns.
- Add focused tests or a reproducible smoke command.
- Hand off to
$agent-reproduce-alignwhen implementation exists and parity needs iteration.
Read references/capture-workflow.md before running capture for the first time in a session.
Capture Defaults
Prefer a fresh output directory per run:
For Claude Code, use the discovered headless command if available; otherwise use tmux:
For interactive slash commands or terminal rendering, use tmux:
The 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:
Use --agent claude-code to snapshot ~/.claude instead of ~/.codex. Use --root PATH only for a custom state directory or tests.
Implementation Rules
- Do not copy all captured prompt text into Qwen Code. Convert it into the minimum behavior, schema, or test needed.
- Treat captured request bodies as sensitive local artifacts. Redact tokens before saving examples into docs, commits, issues, or PRs.
- Treat state diffs as sensitive local artifacts too. The state tool redacts
common token shapes and omits content for sensitive paths, but review state-diff.md before copying any excerpt into a tracked file.
- Keep the first implementation narrow: one feature, one trigger path, one observable parity target.
- Prefer compatibility tests that assert behavior over brittle tests that assert exact prompt wording.
- If a captured schema reveals a stable public contract, encode that contract as a typed structure or fixture in Qwen Code.
Done Criteria
- A baseline reference-agent trace exists under
.repro-runs/or an equivalent ignored/local path. - Reference-agent state changes are captured or explicitly marked as not
relevant for the scenario.
- Qwen Code contains a focused implementation and at least one verification path.
- Any user-visible command behavior is documented in Qwen Code if that repo already documents similar features.
- The next parity step can be run by
$agent-reproduce-alignwithout re-discovering the setup.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingqwen-code-main/.qwen/skills/agent-reproduce-feature/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/khoshov/integration/agent-reproduce-feature)