用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/replayio/plugins --skill replay-qa命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | replay-qa |
| description | Managed E2E testing service for finding bugs and adversarial verification |
| allowed-tools | Bash(node *) |
Use Replay QA through the bundled scripts in ${CLAUDE_SKILL_DIR}/scripts. The scripts call the Replay QA HTTP API directly, preserve project state in the repo, and avoid requiring the model to remember raw endpoint details.
This block is injected when the skill loads. If shell execution is disabled or auth is missing, use the error message to decide which setup step to run next.
node "${CLAUDE_SKILL_DIR}/scripts/context.js" "$ARGUMENTS"
The scripts look for a token in this order:
REPLAY_QA_API_KEYREPLAY_API_KEYREPLAY_ACCESS_TOKEN~/.replay/profile/auth.jsonIf the user is not logged in, run:
npx replayio login
npx replayio whoami
If the API returns 401, ask the user to export a Replay QA API token as REPLAY_QA_API_KEY or REPLAY_API_KEY.
Before creating or selecting a Replay QA project, always inspect the current project root for .replay/config.json.
Resolve the project root with git rev-parse --show-toplevel; if that fails, use the current directory. If .replay/config.json contains a non-empty string property named "qa-project-id", reuse that project id for all Replay QA work in this repo. Do not create a duplicate project unless the user explicitly asks for a new project or the stored project is proven invalid for the current account.
If the user gives a Replay QA dashboard URL, pass it directly to the script or pass its project id with --project-id. The scripts recognize project ids such as proj-example inside positional arguments, --project-id, --project-url, and REPLAY_QA_PROJECT_ID. An explicit project argument overrides .replay/config.json.
If there is no reusable project id, create a project with bootstrap.js or full-qa.js. The scripts write the new project id back to .replay/config.json while preserving unrelated keys:
{
"qa-project-id": "projectId"
}
When reporting setup, say whether the id was reused from .replay/config.json, passed explicitly, read from the environment, or created and written back.
Replay QA needs network access to the app under test. For local apps, pass a local URL such as http://localhost:3000; the project creation script sets use_reverse_proxy=true for local URLs. After project creation, run reverse-proxy.js --wait or follow the runbook printed by full-qa.js so Replay QA can reach the local app. If the user provides a public URL, pass --public.
Run scripts with Node from the project root:
node "${CLAUDE_SKILL_DIR}/scripts/full-qa.js" http://localhost:3000 "Test the core user journeys."
Available scripts:
| Script | Purpose |
|---|---|
bootstrap.js | Create or reuse a project, then show details, status, and reverse-proxy setup. |
context.js | Inject concise current project context, status, and open bug summaries into this skill. |
full-qa.js | Create or reuse a project, show status, show reverse-proxy setup, fetch open bug details, and print next steps. |
status.js | Show project status; pass --watch to poll. |
reverse-proxy.js | Show reverse-proxy setup; pass --wait to poll until instructions are ready. |
explorations.js | List explorations. |
start-exploration.js | Start a focused exploration only when the user asks for one. |
journeys.js | List journeys or filter locally with --journey-id. |
test-runs.js | List test runs; pass --journey-id to review a single journey's run history. |
bugs.js | List bugs; use --status, --details, and --save. |
bug.js | Fetch one bug by id. |
mark-bug.js | Mark a bug fixed, wontfix, invalid, or reopened. Marking fixed automatically retries the affected journey. |
report-missing-bug.js | Report a missing bug and ask Replay QA to create an investigation journey. |
rerun-journeys.js | Expose supported journey retry alternatives because there is no direct single-journey rerun endpoint. |
List scripts print normalized JSON for agent use. For example, bugs.js returns a top-level bugs array even when the API response uses items. Pass --raw to bugs.js if you need the unmodified API list response.
Common examples:
node "${CLAUDE_SKILL_DIR}/scripts/full-qa.js" http://localhost:3000
node "${CLAUDE_SKILL_DIR}/scripts/status.js" --watch
node "${CLAUDE_SKILL_DIR}/scripts/bugs.js" "https://qa.replay.io/projects/proj-example/bugs"
node "${CLAUDE_SKILL_DIR}/scripts/bugs.js" --status open --details --save
node "${CLAUDE_SKILL_DIR}/scripts/bug.js" bug_id_here --save
node "${CLAUDE_SKILL_DIR}/scripts/mark-bug.js" bug_id_here fixed
node "${CLAUDE_SKILL_DIR}/scripts/start-exploration.js" "Focus on onboarding, invalid inputs, refreshes, and back navigation."
node "${CLAUDE_SKILL_DIR}/scripts/rerun-journeys.js" --bug-id bug_id_here
node "${CLAUDE_SKILL_DIR}/scripts/report-missing-bug.js" "Settings changes do not persist after refresh."
This plugin also ships command files in the plugin commands/ directory. Invoke them through the plugin namespace when available:
| Command | Purpose |
|---|---|
/replay-qa:run-full-qa | Bootstrap or resume QA, show status, show reverse-proxy instructions, and fetch open bugs. |
/replay-qa:qa-status | Show or watch project status. |
/replay-qa:qa-bugs | Fetch open bug details for repair work. |
/replay-qa:start-new-exploration | Start a focused exploration. |
/replay-qa:rerun-journeys | Use supported journey retry alternatives. |
/replay-qa:report-missing-bug | Ask Replay QA to investigate a missed issue. |
Use this loop for QA and repair:
full-qa.js with the target URL and any user instructions.status.js until there is useful progress.bugs.js --status open --details --save.mark-bug.js <bug-id> fixed; Replay QA automatically retries the affected journey.Do not manually start new explorations unless the user asks. Project creation already starts the normal QA workflow.
The current OpenAPI spec exposes journeys and test runs, but it does not expose a direct endpoint to manually run one journey. Use these supported alternatives:
test-runs.js --journey-id <journey-id>.mark-bug.js <bug-id> fixed; Replay QA automatically retries the affected journey.report-missing-bug.js "<description>"; Replay QA creates an investigation journey.Do not claim that a journey was manually rerun unless one of the supported flows actually triggered verification.