본문으로 건너뛰기
cccskills
Qwen 공식무료GitHub에 공개

agent-reproduce-feature

Reproduce a Codex or Claude Code feature in Qwen Code or another command-line agent. Capture requests, terminal output, and state changes, then use that evidence to implement focused behavior and add a verification path.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Reproduce an existing agent's slash command
  • Inspect request formats and tool definitions
  • Compare terminal output and saved state
  • Implement and verify a matching feature

포함된 파일(6)

  • SKILL.md5.7 KB
  • references/capture-workflow.md5.0 KB
  • scripts/capture_state.py17.9 KB
  • scripts/llm_dump.py5.8 KB
  • scripts/run_tmux_capture.sh1.0 KB
  • scripts/run_with_mitm.sh3.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

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

Record 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": "."
}

Workflow

  1. Define the feature surface in one sentence: command, trigger, expected UI/output, and a minimal prompt that exercises it.
  2. Select codex or claude-code as the reference agent and discover its local launch command.
  3. Inspect the target repo enough to identify the likely module boundaries and Qwen Code launch command before changing code.
  4. Run the nested reference agent against the feature with capture enabled:
    • Local state capture via scripts/capture_state.py before and after the scenario.
    • HTTP/body capture via scripts/run_with_mitm.sh.
    • Terminal capture via scripts/run_tmux_capture.sh when the feature is interactive or TUI-visible.
    • Headless/non-interactive execution when the feature has a stable command-line path.
  5. 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
  6. Implement the smallest compatible behavior in Qwen Code using its existing patterns.
  7. Add focused tests or a reproducible smoke command.
  8. Hand off to $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.

Capture Defaults

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 \
  claude

For interactive slash commands or terminal rendering, use tmux:

.qwen/skills/agent-reproduce-feature/scripts/run_tmux_capture.sh \
  .repro-runs/slash-command-tui \
  codex

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:

.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-diff

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-align without re-discovering the setup.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

agent-delegation

Qwen 공식무료

Write clear briefs for subagents and conversation forks, agents that inherit conversation history. Specify purpose, known findings, scope, and expected output while respecting each agent's existing role and separating research requests from implementation.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Writing a focused research brief for a subagent
  • Specifying files and constraints for implementation
  • Defining scope for an agent inheriting conversation history
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

agent-reproduce-align

Qwen 공식무료

Compare a feature implemented in Qwen Code with Codex or Claude Code under the same scenario. Capture communication and terminal records, inspect tool definitions and outputs, and guide fixes toward matching observable behavior.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking a reproduced feature against its reference agent
  • Comparing tool definitions and required arguments
  • Investigating differences in terminal output
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

autofix

Qwen 공식무료

Review local uncommitted changes, verify findings, and repeat focused repairs until the review converges or a blocker remains. Also supports Qwen Code issue fixes and review responses within workflows run through GitHub Actions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review and repair local uncommitted changes
  • Develop a focused fix for a selected issue
  • Verify and address pull request feedback
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

batch

Qwen 공식무료

Apply the same operation across multiple files using parallel worker agents. The skill finds matching files, divides the work, and reports successes, failures, and skipped files, with a preview option before edits.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add license headers across source files
  • Convert JavaScript files to TypeScript
  • Fix the same lint issue in multiple files
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

batch-api

Qwen 공식무료

Prepare shared instructions for translating, rewriting, or extracting information from many independent files, then submit a plan through the DashScope Batch API. Processing runs asynchronously at half the realtime list price and delivers new files later.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Translate many documents using shared terminology
  • Rewrite independent files into a consistent format
  • Extract structured data from a collection of files
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

bugfix

Qwen 공식무료

Fix bugs reported in GitHub issues through a reproduce-first process. The workflow guides code changes, build checks, verification, regression tests that check for recurring failures, and review before considering the fix complete.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fixing a bug reported in a GitHub issue
  • Reproducing a user-reported problem before editing code
  • Verifying a fix and adding regression tests
QwenLM/qwen-code2.9만2026년 10월 21일 업데이트

QwenLM의 스킬 모두 보기

이 스킬의 문제 신고