Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By DanielSuo117
Build and maintain Playwright + pytest test suites using a Page Object Model governance framework: generate PageObjects and tests from live DOM, replace fragile selectors with stable ones, and diagnose failures by jumping directly to the failing page without login. The agent enforces POM patterns, configures browsers, and analyzes test results with automated fix workflows.
npx claudepluginhub danielsuo117/velocitai --plugin velocitai为已有 PageObject 增量添加回归测试点。触发:新增测试点、添加回归点、add test point、增加覆盖、扩展页面方法。
POM 分层与 context 共享决策树。触发:架构、分层、POM、Page Object、基类设计、新增角色。
浏览器 viewport / headless / 超时分层配置。触发:viewport、浏览器配置、导航超时、headless、slow_mo、incognito。
共享 page 下用例离开起点后必须 UI 返回并断言。触发:往返闭合、case round trip、复位超时、scope 共享 page。
AST 知识图谱:变更审查、探索、调试、重构。触发:知识图谱、代码审查、影响分析、爆炸半径、重构。
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Three specialized agents (planner, generator, healer) and shared skills for Playwright E2E testing with Page Object Model pattern
Production-grade Playwright testing toolkit. Generate tests from specs, fix flaky failures, migrate from Cypress/Selenium, sync with TestRail, run on BrowserStack. 55+ ready-to-use templates, 3 specialized agents, smart reporting that plugs into your existing workflow.
Playwright E2E test debugging and interactive browser exploration. Runs tests with action capture (DOM snapshots, network, console, screenshots), diagnoses failures, and provides browser tools for navigating, clicking, and inspecting pages through ARIA snapshots.
Browser automation and E2E testing with Playwright. Auto-detects dev servers, writes clean test scripts. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use for cross-browser testing, visual regression, API testing, component testing in TypeScript/JavaScript and Python projects.
Tool-agnostic QA Automation library: Playwright, Selenium, API testing, accessibility (WCAG 2.1 AA), QA Planner, and ISTQB-aligned artifacts. Includes 13 specialized agents and 10 reusable skills.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
为 AI 编程代理提供的完整 UI 自动化方法论,基于可组合技能和强制规则构建。
VelocitAI 是一套 Agent Harness(代理治理框架)—— 不是又一个测试框架,而是让 AI 代理能够自主生成、执行、调试和进化企业级 UI 测试代码,基于 Python + Playwright + pytest。
使用 AI Agent 仅需 15 个工作日,传统人工编码预估 60 个工作日 —— 4 倍开发速度。
claude install-plugin velocitai
# 克隆并复制到你的项目
git clone https://github.com/DanielSuo117/velocitai.git
cp -r velocitai/{skills,rules,hooks,docs,CLAUDE.md,AGENTS.md} your-project/
git clone https://github.com/DanielSuo117/velocitai.git
cp -r velocitai/{skills,rules,hooks,docs,CLAUDE.md,GEMINI.md} your-project/
git clone https://github.com/DanielSuo117/velocitai.git
cp -r velocitai/{.claude,.claude-plugin,skills,rules,hooks,docs,CLAUDE.md,AGENTS.md,GEMINI.md} your-project/
技能告诉你的代理如何完成任务 —— 分步操作指南。
| 技能 | 用途 |
|---|---|
ui-automation-harness | 路由器:将子技能组合成多步骤工作流 |
gen-page-test | 从目标页面生成 PageObject + 测试文件 |
add-regression-point | 为已有页面添加回归测试点 |
locator-replacer | 使用六级优先级替换脆弱定位符(P0 ARIA → P5 XPath) |
test-runner | 运行测试 + 结构化失败分析 |
quick-debug | 三步超时排查:页面 → tab → 定位符 |
page-load-assertion | 用 4 种验证模式设计 is_page_loaded() |
wait-strategy | 配置隐式/显式等待策略 |
browser-config | viewport、超时、context、headless/headed |
case-round-trip | 确保测试往返闭合(状态一致性) |
save-verify-strategy | Toast / 重定向 / 数据对比 / 富文本验证 |
architecture | 架构决策、继承设计、角色拆分 |
code-review-graph | AST 知识图谱驱动的代码审查 |
规则强制硬性约束。每条规则包含 ❌ 反模式 + ✅ 最佳实践。
| 规则域 | 文件数 | 关键规则 |
|---|---|---|
| Agent 行为 | 3 | 运行测试前确认 --env;不自动提交;文档/代码冲突时询问 |
| 编码规范 | 1 | PascalCase 类名、snake_case 方法名、定位符声明为类常量 |
| Playwright | 8 | 六级定位符优先级、禁止 time.sleep()、context 隔离 |
| 报告策略 | 1 | 仅失败时生成 HTML 报告、自动轮转、域名统计 |
VelocitAI 代理从错误中学习。遇到问题后,自动将经验持久化:
| 类型 | 目标 |
|---|---|
| How-to(经验) | skills/<主题>/SKILL.md |
| Must/Must-not(规则) | rules/<规则域>/<规则>.md |
| 项目事实 | docs/<文件>.md |
1. 探索页面 → agent-browser(相比 Playwright MCP 节省 82-93% token)
2. 生成 PageObject → gen-page-test 技能
3. 编写测试用例 → add-regression-point + case-round-trip
4. 运行 & 调试 → test-runner → quick-debug(自动三步排查)
5. 代码审查 → code-reviewer 代理 + AST 知识图谱
6. 进化沉淀 → 自动持久化到 skills / rules / docs
velocitai/
├── CLAUDE.md # Agent 入口 & 路由表
├── AGENTS.md # Copilot CLI 入口
├── GEMINI.md # Gemini CLI 入口
├── package.json # npm 发布配置
├── .claude-plugin/ # Claude Code 插件配置
│ ├── plugin.json
│ └── marketplace.json
├── .claude/ # Claude 专属配置
│ ├── settings.json # 权限 + hooks
│ └── agents/ # 子代理定义
│ └── code-reviewer.md
├── skills/ # 操作技能(How-to)
│ ├── SKILL.md # 路由器(组合子技能)
│ ├── gen-page-test/
│ ├── locator-replacer/
│ ├── test-runner/
│ ├── quick-debug/
│ └── ... (共 13 个)
├── rules/ # 强制规则(Must/Must-not)
│ ├── agent-behavior/ # 3 个文件
│ ├── coding-conventions/ # 1 个文件
│ ├── playwright/ # 8 个文件
│ └── report-strategy/ # 1 个文件
├── hooks/ # 会话与工具 hooks
│ └── hooks.json
└── docs/ # 项目知识库
├── architecture.md
├── pages-catalog.md
├── regression-points.md
└── setup.md
| 平台 | 状态 | 入口文件 |
|---|---|---|
| Claude Code | 原生支持(插件) | CLAUDE.md |
| GitHub Copilot CLI | 技能兼容 | AGENTS.md |
| Gemini CLI | 技能兼容 | GEMINI.md |
| Cursor | 规则兼容 | CLAUDE.md |
| Windsurf | 规则兼容 | CLAUDE.md |
# 1. 克隆并集成
git clone https://github.com/DanielSuo117/velocitai.git
cp -r velocitai/{skills,rules,hooks,docs,.claude,CLAUDE.md} your-project/
# 2. 安装依赖
cd your-project
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
playwright install chromium
# 3. 运行测试(--env 必须指定)
pytest tests/ --env=pre
# 4. 查看报告
allure serve reports/allure-results
MIT
A complete UI automation methodology for your coding agents, built on composable skills and enforced rules.
VelocitAI is an agent harness — not another test framework — that gives AI agents the ability to autonomously generate, execute, debug, and evolve enterprise-grade UI test code using Python + Playwright + pytest.