dogfood
它能做什么
这项技能让你的 AI 像测试人员一样点击网络应用,寻找错误并记录证据。适合希望对网站进行有结构的初步测试的产品团队和质量测试人员。
适用场景
- ✓你想让 AI 探索网络应用并报告它发现的错误的时候。
- ✓你想为每个问题保存截图和操作步骤作为证据的时候。
- ✓你需要针对网站某个特定区域的结构化错误报告的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/dogfood/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请测试我们预发布网站上的结账流程,找出错误,并写一份附有截图的报告。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能设定了五个阶段:规划范围、探索页面、记录证据、对问题分类,以及撰写报告。AI 使用浏览器工具点击网站并保存截图。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Dogfood: Systematic Web Application QA Testing
Overview
This skill guides you through systematic exploratory QA testing of web applications with browser_exec. You will navigate the application, interact with elements, capture evidence of issues, and produce a structured bug report.
Prerequisites
- The
browsertoolset must be enabled (browser_exec).browser_execruns Python with pre-imported helpers (new_tab,goto_url,wait_for_load,page_info,js,fill_input,click_at_xy,capture_screenshot,cdp); browser state persists across calls, Python variables do not. - A target URL and testing scope from the user
Inputs
The user provides:
- Target URL — the entry point for testing
- Scope — what areas/features to focus on (or "full site" for comprehensive testing)
- Output directory (optional) — where to save screenshots and the report (default:
./dogfood-output)
Workflow
Follow this 5-phase systematic workflow:
Phase 1: Plan
- Create the output directory structure:
{output_dir}/ ├── screenshots/ # Evidence screenshots └── report.md # Final report (generated in Phase 5) - Identify the testing scope based on user input.
- Build a rough sitemap by planning which pages and features to test:
- Landing/home page
- Navigation links (header, footer, sidebar)
- Key user flows (sign up, login, search, checkout, etc.)
- Forms and interactive elements
- Edge cases (empty states, error pages, 404s)
Phase 2: Explore
Batch each step's actions into one browser_exec call. For each page or feature in your plan:
Navigate with a console hook installed. Register the hook on the tab before navigating so errors thrown during page load are captured too:
# Open page with console-error capture HOOK = """window.__qa_errors = []; const _e = console.error; console.error = (...a) => { window.__qa_errors.push(a.map(String).join(' ')); _e(...a); }; addEventListener('error', e => window.__qa_errors.push('uncaught: ' + e.message)); addEventListener('unhandledrejection', e => window.__qa_errors.push('rejection: ' + String(e.reason)));""" new_tab('about:blank') # first call only: the hook binds to the current tab cdp('Page.addScriptToEvaluateOnNewDocument', source=HOOK) goto_url("https://example.com/page") wait_for_load() print(page_info()) print(js('window.__qa_errors || []'))Re-register the hook at the start of any later call that navigates. Silent JS errors are high-value findings.
Read the page structure — list visible interactive elements with their viewport centres (use
cdp('Accessibility.getFullAXTree')and filter in Python when you need roles/names):# List interactive elements print(js("""(() => [...document.querySelectorAll('a,button,input,select,textarea,[role=button]')] .filter(e => e.offsetParent).slice(0, 80).map((e, i) => { const r = e.getBoundingClientRect(); return {i, tag: e.tagName, text: (e.innerText || e.value || e.getAttribute('aria-label') || '').trim().slice(0, 60), id: e.id, name: e.name, x: Math.round(r.x + r.width / 2), y: Math.round(r.y + r.height / 2)}; }))()"""))Visually assess the page: call
capture_screenshot()and inspect the attached image for layout issues, broken elements, or accessibility concerns. If your model cannot view images, pass the printed path tovision_analyze.Test interactive elements systematically:
- Click buttons and links:
js("document.querySelector('#submit').click()"), orclick_at_xy(x, y)with a centre from step 2 - Fill forms:
fill_input('input[name=email]', 'test input') - Test keyboard navigation:
cdp('Input.dispatchKeyEvent', type='keyDown', key='Tab', code='Tab', windowsVirtualKeyCode=9)followed by the matchingkeyUp, thenjs('document.activeElement.outerHTML.slice(0, 200)')to see where focus landed; same pattern withkey='Enter',code='Enter',windowsVirtualKeyCode=13 - Scroll through content:
js('window.scrollBy(0, 800)') - Go back:
js('history.back()'), thenwait_for_load() - Test form validation with invalid inputs
- Test empty submissions
- Click buttons and links:
After each interaction, in the same call, check for:
- Console errors:
print(js('window.__qa_errors || []')) - Visual changes:
capture_screenshot()and compare with the previous one - Expected vs actual behavio
- Console errors:
常见问题
开始需要准备什么?
需要启用浏览器工具,并提供一个带有测试范围的目标网址。
结果保存在哪里?
技能将截图和报告保存在输出文件夹中,默认文件夹为 dogfood-output。
它能取代自动化测试吗?
技能描述的是探索式测试,因此它是对脚本化测试的补充,而不是替代。
详情
热度
- GitHub 星标
- 260k
- 排名
- #620
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。