Skip to content
Back to skills

Repro Copy

ASecurity

Copy a real campaign to <test-user-email>, replay a reported issue against a real local server + real LLM, and capture evidence that can survive review

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
content-marketingpythongobash

Works with

  • mcp

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill repro-copy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repro Copy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repro Copy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-repro-copy/badge)](https://www.skillsdirectory.com/skills/jleechanorg-repro-copy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repro-copy
description: Copy a real campaign to <test-user-email>, replay a reported issue against a real local server + real LLM, and capture evidence that can survive review
---

# Repro Copy Workflow

Use this skill when you need to copy a real campaign to `<test-user-email>`,
replay a reported issue against a real local server + real LLM, and capture
evidence that can survive review.

## Twin baseline + test subject (no contamination)

If the user requires **two full copies** from production — **first copy never receives any turn** — and all replay on the **second** copy only (plus full `download_campaign` export to avoid drift), use **the `repro-twin-clone-evidence` skill**. That is **not** the same as canonical+variant here (variant may delete the last scene).

## CRITICAL: Resolve Firebase UID first — always pass `--source-user-id`

Without `--source-user-id`, the script uses `_find_campaign_owner` to scan users
for the campaign, which is slow. If the owner cannot be resolved, you get a
**ValueError** with an explicit message. Pass `--source-user-id` whenever you
already know the owner UID to skip the scan. Do not confuse the source campaign owner
with the destination test user (`<test-user-email>`).

```bash
# Step 1: resolve source campaign owner UID (required for any production campaign)
SOURCE_UID=$(./vpython -c '
import firebase_admin, os, sys
from firebase_admin import auth, credentials
cred = credentials.Certificate(os.environ["WORLDAI_GOOGLE_APPLICATION_CREDENTIALS"])
try:
    firebase_admin.get_app()
except ValueError:
    firebase_admin.initialize_app(cred)
print(auth.get_user_by_email(sys.argv[1]).uid)
' "<source-user-email>")
if [ -z "$SOURCE_UID" ]; then
  echo "Failed to resolve source Firebase UID" >&2
  exit 1
fi
# → <SOURCE_UID>

# Step 2: run repro copy to destination test user
./vpython scripts/repro_copy_campaign.py <campaign_id> \
  --source-user-id "$SOURCE_UID" \
  --test-user-email "<test-user-email>" \
  --issue "short issue description" \
  --start-local
```

## Optional flags

```bash
./vpython scripts/repro_copy_campaign.py <campaign_id> \
  --issue "missing planning block after level-up badge" \
  --user-input "I open my inventory and continue forward." \
  --server-url http://127.0.0.1:8081
```

Destructive variant mutation is opt-in:

```bash
./vpython scripts/repro_copy_campaign.py <campaign_id> \
  --issue "missing planning block after level-up badge" \
  --delete-last-scene \
  --force-delete-last-scene \
  --start-local
```

## What it does

1. Resolves the source owner UID (`--source-user-id`) and destination test user (`--test-user-email`).
2. Creates two copies of the source campaign:
   - canonical copy
   - variant copy
3. Replays the same input through a real local MCP server on both copies.
4. Optionally deletes the latest story scene from the variant copy before replay.
5. Writes a full evidence bundle under `/tmp/worldarchitectai/<branch>/repro_copy_campaign/...`.

## Evidence requirements

These are mandatory for evidence-bearing repro work:

- Canonical evidence standards: the `evidence-standards` skill
- Tmux video template: `tmux-video-evidence.md` in the `evidence-standards` skill
- UI video template: `ui-video-evidence.md` in the `evidence-standards` skill

The script writes:

- `artifacts/tmux_repro_evidence.sh`
- `artifacts/ui_video_guide.md`

Use those to record captioned tmux and browser videos tied to the same commit.

## When to require UI video

If the reported issue is visible in the browser, UI video is mandatory. Show:

1. Canonical campaign route.
2. Replay input.
3. Resulting state.
4. Variant campaign route.
5. Same replay input.
6. Resulting state.

## Notes

- The script is real-mode only. Do not use mock services.
- If replay input cannot be inferred from story entries, pass `--user-input`.
- `--delete-last-scene` is off by default and requires
  `--force-delete-last-scene` because it irreversibly deletes the newest
  Firestore story document from the variant copy.
- The variant copy is intentionally not a full rollback; when deletion is
  enabled it removes the latest story scene to test how sensitive the repro is
  to immediate story context.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.