Token导航 LogoToken导航

Agent Skill · 研究检索

test-staging-branch(测试暂存分支)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

test-staging-branch 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,083。

总安装 190周安装 8GitHub Stars 219下载 67核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:test-staging-branch(测试暂存分支)
来源仓库:https://github.com/different-ai/agent-bank
仓库路径:skills/test-staging-branch
安装命令:
npx skills add https://github.com/different-ai/agent-bank --skill test-staging-branch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/different-ai/agent-bank --skill test-staging-branch

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助测试设计、自动化测试用例整理和回归验证。适合编写单元测试、端到端测试或根据失败日志定位问题。使用时应确认项目测试框架、运行命令和夹具数据,避免误改真实逻辑。涉及浏览器或外部服务时,需区分本地模拟、测试环境与生产环境。

安装方式:通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI。

来源仓库内路径:skills/test-staging-branch

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/different-ai/agent-bank --skill test-staging-b…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

test-staging-branch 怎么安装?

在终端执行 npx skills add https://github.com/different-ai/agent-bank --skill test-staging-branch。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

test-staging-branch 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

test-staging-branch 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

test-staging-branch 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

test-staging-branch 用的人多吗?

公开数据是累计安装 190 次,近一周安装 8 次,下载 67 次,GitHub 219 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

test-staging-branch 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
test-staging-branch

测试暂存分支 · 本页

190219操作浏览器未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

What I Do

End-to-end test feature branches on Vercel preview deployments:

  1. Wait for Vercel deployment to complete
  2. Login via Chrome MCP (Gmail OTP flow)
  3. Test the specific feature
  4. Report results on GitHub (without leaking sensitive data)

Prerequisites

  • Chrome DevTools MCP configured
  • Vercel CLI authenticated with --scope prologe
  • Access to Gmail for OTP codes
  • GitHub CLI (gh) authenticated

Workflow

1. Wait for Deployment

# Get latest preview deployment for the branch
BRANCH="feat/your-branch-name"
LATEST=$(vercel ls --scope prologe 2>/dev/null | grep -i "$BRANCH" | head -1 | awk '{print $2}')

# Or get the most recent deployment
LATEST=$(vercel ls --scope prologe 2>/dev/null | head -1 | awk '{print $2}')

echo "Deployment URL: $LATEST"

# Wait for Ready status (up to 5 min)
vercel inspect "$LATEST" --scope prologe --wait --timeout 5m

Output to check:

  • status: ● Ready → proceed to testing
  • status: ● Building → still building
  • status: ● Error → check build logs

2. Login Flow (Token-Efficient)

CRITICAL: Minimize snapshots. Each snapshot costs tokens.

// Step 1: Navigate to preview deployment
chrome_navigate_page({ url: 'https://your-deployment-url.vercel.app' });

// Step 2: Wait for page load, take ONE snapshot
chrome_wait_for({ text: 'Sign in', timeout: 10000 });
chrome_take_snapshot();

// Step 3: Click login button (find uid from snapshot)
chrome_click({ uid: 'login-button-uid' });

// Step 4: Wait for Privy modal, take snapshot
chrome_wait_for({ text: 'Email', timeout: 5000 });
chrome_take_snapshot();

// Step 5: Enter email
chrome_fill({ uid: 'email-input-uid', value: 'ben@0.finance' });
chrome_click({ uid: 'continue-button-uid' });

3. Get OTP from Gmail

Navigate to Gmail, find OTP code:

// Open Gmail in new tab
chrome_new_page({ url: 'https://mail.google.com' });

// Wait for inbox
chrome_wait_for({ text: 'Inbox', timeout: 30000 });

// Take snapshot to find latest email
chrome_take_snapshot();

// Click on Privy email (should be recent)
chrome_click({ uid: 'privy-email-row-uid' });

// Wait for email to load
chrome_wait_for({ text: 'verification code', timeout: 5000 });

// Extract OTP with script (faster than snapshot)
chrome_evaluate_script({
  function: `() => {
    const body = document.body.innerText;
    const match = body.match(/\\b\\d{6}\\b/);
    return match ? match[0] : null;
  }`,
});

4. Complete Login

// Switch back to app tab
chrome_list_pages();
chrome_select_page({ pageIdx: 0 });

// Enter OTP
chrome_take_snapshot();
chrome_fill({ uid: 'otp-input-uid', value: '123456' });

// Wait for dashboard
chrome_wait_for({ text: 'Dashboard', timeout: 30000 });

Note: Login typically takes 2-3 minutes. Be patient.

5. Test the Feature

Example for AI Email transfer feature:

// Navigate to settings or relevant page
chrome_navigate_page({
  url: 'https://deployment.vercel.app/dashboard/settings',
});
chrome_wait_for({ text: 'Settings', timeout: 10000 });
chrome_take_snapshot();

// Verify new feature elements exist
// Take screenshot for evidence
chrome_take_screenshot({ filePath: 'test-evidence.png' });

6. Report on GitHub

NEVER include:

  • Actual balances or amounts
  • Email addresses
  • OTP codes
  • API keys or tokens
  • Safe addresses

DO include:

  • Feature worked/failed
  • UI elements verified
  • Error messages (sanitized)
  • Screenshot paths (local only)
# Add comment to PR
gh pr comment $PR_NUMBER --body "## Test Results

**Branch**: feat/your-branch
**Deployment**: ✅ Deployed successfully

### Feature Tested
- [x] New balance endpoint returns correct structure
- [x] UI shows idle/earning/spendable breakdown
- [ ] Transfer flow (not tested - requires bank account)

### Evidence
Verified on preview deployment. All API responses match expected schema."

Token-Efficient Patterns

❌ DON'T

// Taking unnecessary snapshots
chrome_take_snapshot();
chrome_take_snapshot();
chrome_take_snapshot();

✅ DO

// One snapshot, multiple actions
chrome_take_snapshot();
// Use uids from this snapshot for next 2-3 actions
chrome_fill({ uid: 'field1', value: 'x' });
chrome_fill({ uid: 'field2', value: 'y' });
chrome_click({ uid: 'submit' });
// Only snapshot again when page changes

Use wait_for Instead of Snapshot

// Instead of snapshot to check if loaded
chrome_wait_for({ text: 'Dashboard' });
// Only snapshot when you need uids

Use evaluate_script for Data (PREFERRED)

// Extract data without full snapshot
chrome_evaluate_script({
  function: `() => document.querySelector('.balance')?.innerText`,
});

// Check page state without snapshot
chrome_evaluate_script({
  function: `() => ({ url: window.location.href, hasText: document.body.innerText.includes('Dashboard') })`,
});

// Fill form when UIDs are stale
chrome_evaluate_script({
  function: `() => {
    const input = document.querySelector('input[type="text"]');
    if (input) {
      input.value = '123456';
      input.dispatchEvent(new Event('input', { bubbles: true }));
      return 'filled';
    }
    return 'no input';
  }`,
});

Common Issues

1. Deployment Not Ready

Wait for vercel inspect --wait to complete. Don't proceed on "Building".

2. Login Timeout

  • Check if already logged in (profile persists)
  • Gmail might need manual login first
  • OTP expires in 10 minutes

3. OTP Email Not Found

  • Check spam folder
  • OTP might be in "Updates" tab in Gmail
  • Try searching: from:privy.io or verification code

4. Wrong Tab Selected

Always use chrome_list_pages() then chrome_select_page() to ensure correct tab.

Security Reminders

  1. Never log credentials - Not even in console.log
  2. Screenshot locally only - Don't upload to GitHub
  3. Sanitize error messages - Remove emails, IDs
  4. Clear browser after testing - Use --isolated mode if sensitive

Real Example: Testing Spendable Balance Feature

Step 1: Check deployment

LATEST=$(vercel ls --scope prologe 2>/dev/null | head -1 | awk '{print $1}')
vercel inspect "$LATEST" --scope prologe --wait --timeout 5m
# Output: status: ● Ready

Step 2: Navigate and login

// Navigate to preview deployment
chrome_new_page({ url: 'https://zerofinance-xxx-prologe.vercel.app' });
chrome_wait_for({ text: 'Sign in', timeout: 10000 });

// Click Sign in, enter email, submit
chrome_click({ uid: 'sign-in-button' });
chrome_fill({ uid: 'email-input', value: 'ben@0.finance' });
chrome_click({ uid: 'continue-button' });

Step 3: Get OTP from Gmail (token efficient)

// Switch to Gmail tab (if already open)
chrome_select_page({ pageIdx: 2 }); // Gmail tab index

// Reload to see new emails
chrome_navigate_page({ type: 'reload' });
chrome_wait_for({ text: 'Inbox', timeout: 15000 });

// OTP is visible in email list preview - no need to open email!
// Look for: "Your code is XXXXXX" in the row text
chrome_take_snapshot();
// Parse the 6-digit code from the snapshot text

Step 4: Enter OTP and wait for dashboard

chrome_select_page({ pageIdx: 0 }); // App tab
chrome_fill({ uid: 'otp-input', value: '123456' });
chrome_wait_for({ text: 'Dashboard', timeout: 60000 });

Step 5: Verify feature

// Take snapshot to verify UI elements
chrome_take_snapshot();
// Look for expected text like:
// - "SPENDABLE" with amount
// - "EARNING" with amount and APY
// - "IDLE" with amount

// Take screenshot for local evidence
chrome_take_screenshot({ filePath: 'test-evidence.png' });

Step 6: Report on GitHub

gh pr comment 123 --body "## Test Results

**Branch**: feat/ai-email-transfers-spendable-balance
**Deployment**: ✅ Ready

### Features Verified
- [x] Dashboard shows spendable balance breakdown
- [x] Earning balance displays with APY
- [x] Idle balance shows correctly
- [x] Total = Earning + Idle

### Notes
- Tested on preview deployment
- All balance calculations match expected values"

Token Saving Tips Learned

  1. Gmail OTP visible in preview - The OTP code shows in the email list row, no need to open the email
  2. Reuse open tabs - Use chrome_select_page instead of opening new pages
  3. wait_for before snapshot - Confirm page loaded before taking expensive snapshot
  4. One snapshot per page state - Don't retake unless navigation occurred

Critical Learnings from Real Usage

Session Persistence is Your Friend

Chrome MCP persists login sessions between runs. Before doing the full login flow:

// ALWAYS check if already logged in first!
chrome_new_page({ url: 'https://your-deployment.vercel.app' });
chrome_wait_for({ text: 'Dashboard', timeout: 5000 }).catch(() => null);
// If Dashboard appears, skip login entirely!

Vercel Deployment URL Patterns

The preview URL pattern is predictable:

zerofinance-git-{branch-name-slugified}-{hash}-prologe.vercel.app

You can also get it directly from the PR:

# Get deployment URL from GitHub PR comment
gh pr view $PR_NUMBER --json comments --jq '.comments[] | select(.author.login=="vercel") | .body' | grep -oP 'https://zerofinance-git[^)]+\.vercel\.app' | head -1

OTP Extraction - Most Efficient Method

The OTP is 6 digits and appears in both:

  1. Email list preview row (fastest - no click needed)
  2. Email body (requires opening email)
// BEST: Use evaluate_script to extract OTP without snapshot
chrome_new_page({
  url: 'https://mail.google.com/mail/u/0/#search/from%3Aprivy+newer_than%3A5m',
});
chrome_wait_for({ text: 'Inbox', timeout: 15000 });

// Extract OTP directly via script - NO SNAPSHOT NEEDED
chrome_evaluate_script({
  function: `() => {
    const rows = document.querySelectorAll('tr[role="row"]');
    for (const row of rows) {
      const text = row.innerText;
      if (text.includes('Preview | Dev') && text.includes('Your code is')) {
        const match = text.match(/Your code is (\\d{6})/);
        if (match) return match[1];
      }
    }
    return null;
  }`,
});
// Returns the 6-digit OTP directly!

Key insight: evaluate_script is MUCH cheaper than take_snapshot. Use it for:

  • Extracting specific data (OTP codes, balances, text)
  • Checking page state (document.body.innerText.includes('Dashboard'))
  • Filling forms when UIDs are stale

Privy Login Modal UIDs

The Privy modal has consistent element structure:

  • Email input: Look for textbox with "Email" nearby
  • Continue button: Usually button with text "Continue" or "Submit"
  • OTP inputs: 6 separate textbox elements OR one combined input

Pro tip: After entering email, Privy redirects. Wait for OTP screen:

chrome_wait_for({ text: 'Enter the code', timeout: 10000 });

Dashboard Verification Checklist

When testing balance features, verify these elements exist:

  • SPENDABLE label with dollar amount
  • EARNING label with dollar amount and APY percentage
  • IDLE label with dollar amount
  • Total calculation makes sense (SPENDABLE ≈ EARNING + IDLE)

Common Failure Modes

IssueSymptomFix
Stale sessionLogin works but dashboard shows wrong dataHard refresh or clear cookies
OTP expired"Code expired" errorRe-request OTP, they last ~10 min
Wrong deploymentFeatures missingVerify branch name in URL matches PR
Rate limitedGmail blocks automationWait 30s between email checks
Privy popup blockedModal doesn't appearCheck for popup blockers in Chrome

Optimal Test Sequence

1. Check if already logged in (5 sec check)
   └─ YES → Skip to step 5
   └─ NO → Continue

2. Get deployment URL from Vercel/GitHub (no browser needed)

3. Navigate to deployment, wait for sign-in button

4. Login flow:
   a. Click sign in
   b. Enter email
   c. Switch to Gmail tab (or open new)
   d. Search for recent Privy email
   e. Extract OTP from list preview
   f. Switch back to app
   g. Enter OTP
   h. Wait for Dashboard (up to 60s)

5. Verify feature (1-2 snapshots max)

6. Screenshot evidence (local only)

7. Report on GitHub PR

Parallel Tab Strategy

Keep these tabs open for efficiency:

  • Tab 0: App under test
  • Tab 1: Gmail (logged in)
  • Tab 2: (optional) Another app page
// Quick tab reference
chrome_list_pages(); // Always know your tab indices
chrome_select_page({ pageIdx: 0, bringToFront: true });

Anti-Patterns to Avoid

Don't: Snapshot spam

// BAD - 5 snapshots for one flow
chrome_take_snapshot(); // to find button
chrome_click({ uid: 'x' });
chrome_take_snapshot(); // to check result
chrome_take_snapshot(); // just in case
chrome_take_snapshot(); // why not

Do: Strategic snapshots

// GOOD - 2 snapshots for full flow
chrome_wait_for({ text: 'Page loaded' });
chrome_take_snapshot(); // Get all UIDs needed
chrome_click({ uid: 'button1' });
chrome_fill({ uid: 'input1', value: 'x' });
chrome_click({ uid: 'submit' });
chrome_wait_for({ text: 'Success' });
chrome_take_snapshot(); // Verify result

Don't: Open new tabs unnecessarily

// BAD
chrome_new_page({ url: 'https://mail.google.com' }); // Every time

Do: Reuse existing tabs

// GOOD
chrome_list_pages();
// Find Gmail tab by URL, select it
chrome_select_page({ pageIdx: gmailTabIndex });
chrome_navigate_page({ type: 'reload' }); // Refresh to see new emails

平台分布

Codex

35.73%
按下载量换算24

Claude

28.88%
按下载量换算19

Cursor

18.72%
按下载量换算13

Gemini CLI

9.37%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills