name: dogfood description: "Exploratory QA of web apps: find bugs, evidence, reports." version: 1.0.0 author: Teknium (teknium1), Hermes Agent license: MIT platforms: [linux, macos, windows] metadata: hermes:
tags: [qa, testing, browser, web, dogfood]
related_skills: []
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.
browser toolset must be enabled (browser_exec). browser_exec runs 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.The user provides:
./dogfood-output)Follow this 5-phase systematic workflow:
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:
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 to vision_analyze.
Test interactive elements systematically:
js("document.querySelector('#submit').click()"), or click_at_xy(x, y) with a centre from step 2fill_input('input[name=email]', 'test input')cdp('Input.dispatchKeyEvent', type='keyDown', key='Tab', code='Tab', windowsVirtualKeyCode=9) followed by the matching keyUp, then js('document.activeElement.outerHTML.slice(0, 200)') to see where focus landed; same pattern with key='Enter', code='Enter', windowsVirtualKeyCode=13js('window.scrollBy(0, 800)')js('history.back()'), then wait_for_load()After each interaction, in the same call, check for:
print(js('window.__qa_errors || []'))capture_screenshot() and compare with the previous onepage_info(), or js() reading the relevant element)For every issue found:
Take a screenshot showing the issue: capture_screenshot() prints the saved path. Copy it to {output_dir}/screenshots/ under a descriptive name (e.g. issue-03-broken-login.png) — you will reference it in the report.
Record the details:
Classify the issue using the issue taxonomy (see references/issue-taxonomy.md):
Generate the final report using the template at templates/dogfood-report-template.md.
The report must include:
MEDIA:<screenshot_path> for inline images)Save the report to {output_dir}/report.md.
All browser actions are browser_exec calls; these are the helpers and idioms used above.
| Action | browser_exec idiom |
|---|---|
| Go to a URL | new_tab(url) once (or new_tab('about:blank') before registering the hook), then goto_url(url); follow with wait_for_load() |
| Page state | page_info() |
| DOM / accessibility tree | js(...) extraction, or cdp('Accessibility.getFullAXTree') filtered in Python |
| Click | js("document.querySelector(sel).click()") or click_at_xy(x, y) |
| Type into an input | fill_input(selector, text) |
| Scroll | js('window.scrollBy(0, 800)') |
| Go back | js('history.back()') |
| Press a key | cdp('Input.dispatchKeyEvent', type='keyDown', key=..., code=..., windowsVirtualKeyCode=...) + keyUp |
| Screenshot | capture_screenshot() (image attached to the result; text-only models use vision_analyze on the path) |
| JS console errors | hook via cdp('Page.addScriptToEvaluateOnNewDocument', source=HOOK), read with `js('window.__qa_errors |
window.__qa_errors after navigating and after significant interactions. Silent JS errors are among the most valuable findings.browser_exec call (navigate, wait, extract, act, check errors) — fewer round-trips, and the hook stays in place.capture_screenshot() when you need to reason about element positions or when DOM extraction is ambiguous; click_at_xy takes the centres from the element listing.MEDIA:<screenshot_path> so they can see the evidence inline.