跳到正文
cccskills
免费在 GitHub 公开

manual-automation

Manual browser testing and automation using Chrome DevTools MCP server. Handles port management, app launch, browser automation, login, and end-to-end testing.

中文简介正在准备中。当前显示原文说明。

larchanka/skills星标 30(GitHub 30 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md4.4 KB
  • README.md10.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Manual Browser Automation

This skill enables manual browser testing and automation using the Chrome DevTools MCP server. It orchestrates the full workflow from port management through application launch, browser automation, login, and end-to-end testing.

Workflow Execution Steps

1. Port Management

Check if port 3000 is free:

lsof -i :3000

If port is in use:

  • Identify the process using the port
  • Stop the existing application gracefully
  • Verify the port is now free

If port is free:

  • Proceed to application launch

2. Application Launch

Launch the application in terminal:

  • Start the application server on port 3000
  • Run in background mode to allow continued agent execution
  • Monitor startup logs to ensure successful initialization
  • Wait for the application to be ready (health check or expected log message)

3. Browser Automation Setup

Initialize Chrome DevTools MCP connection:

  • Use MCP tools to connect to the browser
  • Navigate to http://localhost:3000
  • Wait for page load completion
  • Take initial screenshot for documentation

4. Login Flow

Execute login sequence:

  • Locate login form elements using MCP selectors
  • Fill in credentials (use environment variables or secure storage)
  • Submit the login form
  • Wait for successful login redirect
  • Verify login state (check for expected UI elements or cookies)
  • Take screenshot of logged-in state

5. Testing Execution

Perform end-to-end tests using MCP tools:

Available MCP tool categories:

  • Input automation: click, type_text, fill, fill_form, hover, press_key, drag, upload_file, handle_dialog, click_at
  • Navigation: navigate_page, new_page, select_page, close_page, list_pages, wait_for
  • Emulation: emulate, resize_page
  • Performance: performance_start_trace, performance_stop_trace, performance_analyze_insight
  • Network: list_network_requests, get_network_request
  • Debugging: take_screenshot, take_snapshot, evaluate_script, list_console_messages, get_console_message, lighthouse_audit, screencast_start, screencast_stop

Testing best practices:

  • Use wait_for to ensure elements are present before interaction
  • Take screenshots at key test steps for documentation
  • Check console messages for JavaScript errors
  • Verify network requests complete successfully
  • Use evaluate_script for custom assertions
  • Run Lighthouse audits for performance and accessibility checks

6. Cleanup

After testing completion:

  • Close browser pages/tabs
  • Stop the application server
  • Clean up any temporary files or data
  • Report test results with screenshots and logs

Exit Criteria

  • Port 3000 is successfully managed (freed if needed)
  • Application launches and runs without errors
  • Browser successfully connects and navigates to the application
  • Login flow completes successfully
  • All specified test cases execute via MCP tools
  • Test results are documented with screenshots and logs
  • Application server is stopped and port is freed

MCP Tool Reference

Key tools for testing:

  • navigate_page - Navigate to URLs
  • click - Click on elements
  • type_text - Type text into inputs
  • fill - Fill form fields
  • wait_for - Wait for conditions
  • take_screenshot - Capture screenshots
  • list_console_messages - Check for errors
  • evaluate_script - Run custom JavaScript
  • lighthouse_audit - Performance/accessibility audits

Error Handling

Port conflicts:

  • If port cannot be freed, report error and suggest alternative port
  • Document the process occupying the port for manual intervention

Application launch failures:

  • Check application logs for errors
  • Verify dependencies and configuration
  • Report to user with specific error details

Browser automation failures:

  • Use MCP debugging tools to diagnose issues
  • Check console messages for JavaScript errors
  • Verify element selectors are correct
  • Take screenshots at failure points for debugging

Login failures:

  • Verify credentials are correct
  • Check for CAPTCHA or 2FA requirements
  • Inspect network requests for authentication errors
  • Report specific failure reason to user

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Orchestrates a multi-agent loop involving planning, development, review, and publishing sub-agents to implement and publish features test-first and with high standards compliance.

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

Generates comprehensive AI context, AGENTS.md, and structured documentation in a context/ directory for any brownfield codebase using Tree-sitter AST extraction, dependency analysis, predefined python scripts, and orchestrated subagents.

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

Progressively investigate PRs, commits, releases, and project evolution. Start with a lightweight assessment, dynamically deepen analysis based on complexity and risk, use subagents for independent investigations, and maintain evidence-backed project knowledge.

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

Creates a new feature branch from current git changes, commits them, pushes to the remote, and opens a github pull request using the `gh` cli. Use this skill when asked to create a github pull request

中文简介正在准备中。当前显示原文说明。

larchanka/skills302026年10月27日 更新

查看 larchanka 的全部技能

报告此技能的问题