Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计异常

iblai-test伊布莱测试

Agent Skill

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

总安装

894

周安装

38

GitHub Stars

14

下载量

313
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/iblai/vibe --skill iblai-test

简介

PNPM 构建

  • -- must pass with zero errors
  • pnpm test
  • -- vitest must pass
  • 询问用户测试凭据(电子邮件+密码)
  • Touch test every page -- pnpm test:e2e
  • for agent apps, or the
  • 剧作家登录 + 适用于普通应用程序的屏幕截图脚本(每页等待 10 秒)
  • 阅读每个屏幕截图并修复任何设计问题
  • Fix any failures before showing work to the user
  • Full E2E Reference
  • 用于编写自定义的经过身份验证的旅程测试、身份验证设置和
  • multi-browser patterns, see:
  • https://github.com/iblai/iblai-app-cli/blob/main/skills/testing/iblai-add-test.md
  • Brand guidelines : BRAND.md
  • 每周安装量
  • 38
  • 存储库
  • iblai/vibe
  • GitHub 之星
  • 14
  • 第一次看到
  • 2026 年 3 月 30 日
  • 安全审计
  • Gen Agent Trust Hub 警告
  • 插座警告
  • 斯尼克失败

SKILL.md

/iblai-test

You MUST run these checks before presenting any work to the user. Do NOT show untested code.

Use pnpm as the default package manager. Fall back to npm if pnpm is not installed.

Step 1: Build

Run the production build to catch TypeScript errors, missing imports, and config issues:

pnpm build

Fix all errors. A failed build means broken code -- do not proceed until the build passes cleanly.

Step 2: Run Unit Tests

pnpm test

This runs vitest to verify:

  • All @source paths in CSS files resolve to existing directories
  • The lib/iblai/sdk symlink is valid and targets the SDK dist
  • lib/iblai/sdk/web-containers/source contains compiled JS for Tailwind class generation

If tests fail, the SDK symlink may be broken. Run ls -la lib/iblai/sdk to check. If it's missing, run iblai add auth again to recreate it.

Step 3: Get Test Credentials

Before running E2E tests or authenticated screenshots, ask the user for their ibl.ai login credentials:

  1. Email -- the ibl.ai account email
  2. Password -- the account password

Store them in e2e/.env.development (create the file if it doesn't exist):

PLAYWRIGHT_USERNAME=user@example.com
PLAYWRIGHT_PASSWORD=their-password

If the user declines to provide credentials, skip authenticated page screenshots and only test unauthenticated pages (home, SSO callback).

Step 4: Touch Test Pages

If this is an agent app (from iblai startapp agent)

The app already has a full Playwright E2E suite in e2e/. Use it:

pnpm test:e2e

This runs auth setup + journey tests across Chromium, Firefox, and WebKit.

For a single browser:

npx playwright test --config e2e/playwright.config.ts --project=chromium

If this is a vanilla Next.js app

Install Playwright and a browser:

pnpm add -D @playwright/test
npx playwright install --with-deps chromium

--with-deps installs the browser binary AND system libraries (libatk, libcups, etc.). Without it the browser may fail to launch on Linux/CI.

Start the dev server:

pnpm dev &

Wait for http://localhost:3000 to be ready.

Login with Playwright before taking screenshots

Most pages require authentication. Write and run a Playwright script that logs in through the ibl.ai Auth SPA and saves the browser state, then takes screenshots of every page with a 10-second wait:

// e2e/visual-test.ts
import { chromium } from '@playwright/test';

const APP = 'http://localhost:3000';
const AUTH = 'https://login.iblai.app';

(async () => {
  const browser = await chromium.launch();
  const context = await browser.newContext();
  const page = await context.newPage();

  // --- Login ---
  await page.goto(APP, { waitUntil: 'domcontentloaded', timeout: 30000 });

  // AuthProvider redirects to the auth SPA
  await page.waitForURL(url => url.href.includes('/login'), { timeout: 60000 });

  // Click "Continue with Password"
  const pwdBtn = page.getByRole('button', { name: /continue with password/i });
  await pwdBtn.waitFor({ timeout: 30000 });
  await pwdBtn.click();

  // Fill credentials from env
  await page.getByRole('textbox', { name: /email/i }).fill(process.env.PLAYWRIGHT_USERNAME!);
  await page.getByLabel(/password/i).fill(process.env.PLAYWRIGHT_PASSWORD!);
  await page.getByRole('button', { name: /^continue$/i }).click();

  // Wait for redirect back to the app with auth tokens
  await page.waitForURL(url => url.href.startsWith(APP), { timeout: 60000 });
  await page.waitForFunction(() => !!localStorage.getItem('axd_token'), { timeout: 30000 });

  // --- Screenshot every page (10s wait each) ---
  const pages = [
    ['/', '/tmp/home.png'],
    ['/profile', '/tmp/profile.png'],
    ['/account', '/tmp/account.png'],
    ['/analytics', '/tmp/analytics.png'],
    ['/notifications', '/tmp/notifications.png'],
  ];

  for (const [path, file] of pages) {
    await page.goto(`${APP}${path}`, { waitUntil: 'domcontentloaded' });
    await page.waitForTimeout(10000);
    await page.screenshot({ path: file, fullPage: true });
  }

  await browser.close();
})();

Run it:

npx dotenv -e e2e/.env.development -- npx tsx e2e/visual-test.ts

If dotenv-cli is not installed, run:

pnpm add -D dotenv-cli tsx

Add every page you created to the pages array. If any screenshot shows an error page, fix it and re-run.

Kill the dev server when done.

Step 5: Review Screenshots for Design Issues

After taking screenshots, read every screenshot image and inspect for:

  • Broken layouts -- elements overlapping, overflowing containers, misaligned columns, collapsed sections with zero height
  • Missing content -- blank pages, empty cards, "Loading..." stuck forever, placeholder text not replaced
  • Style problems -- wrong colors (brand blue is #0058cc), unstyled raw HTML, missing icons, broken images, invisible text on same-color backgrounds
  • Responsive issues -- horizontal scrollbar, content cut off, elements too small or too large
  • SDK component issues -- components rendering outside their white wrapper, no border/rounding on SDK cards, SDK styles breaking page layout
  • Navigation problems -- navbar not visible, active tab not highlighted
  • Typography -- text too small, headings same size as body, missing spacing between sections

For each issue found, fix it in the code and re-screenshot to verify. Do NOT present work to the user with visible design problems.

How to Tell Which App Type

  • Agent app: has e2e/ directory with playwright.config.ts and auth.setup.ts, and package.json has test:e2e script
  • Vanilla Next.js app: no e2e/ directory, no test:e2e script

Summary

  1. pnpm build -- must pass with zero errors
  2. pnpm test -- vitest must pass
  3. Ask the user for test credentials (email + password)
  4. Touch test every page -- pnpm test:e2e for agent apps, or the Playwright login + screenshot script for vanilla apps (10s wait per page)
  5. Read every screenshot and fix any design issues
  6. Fix any failures before showing work to the user

Full E2E Reference

For writing custom authenticated journey tests, auth setup, and multi-browser patterns, see: https://github.com/iblai/iblai-app-cli/blob/main/skills/testing/iblai-add-test.md

Brand guidelines: BRAND.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.31%
按下载量换算111

Claude

30.23%
按下载量换算95

Cursor

21.87%
按下载量换算68

Gemini CLI

9.59%
按下载量换算30

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills