Dogfood

From Dadmin88/hermes-profile-packs · View interactive version

Dogfood is an AI agent skill from the GitHub repository Dadmin88/hermes-profile-packs. Exploratory QA of web apps: find bugs, evidence, reports.

How to use this skill

Skill file

Profile Packs adaptation: load only for a matching task, never automatically preload. Resolve executable/template paths from skill_view, not the default profile. Preserve the active profile's tool restrictions, role boundaries and the user's scope. Inclusion does not authorize dependency installation, downloads, scheduling, publishing, deployment, purchases, uploads, credential access, or more agents. Missing prerequisites require a bounded fallback, never weakened safeguards. Use protected credential interfaces, not secrets in chat or command arguments.

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

Inputs

The user provides:

  1. Target URL — the entry point for testing
  2. Scope — what areas/features to focus on (or "full site" for comprehensive testing)
  3. Output directory (optional) — where to save screenshots and the report (default: ./dogfood-output)

Workflow

Follow this 5-phase systematic workflow:

Phase 1: Plan

  1. Create the output directory structure:

```

{output_dir}/

├── screenshots/ # Evidence screenshots

└── report.md # Final report (generated in Phase 5)

```

  1. Identify the testing scope based on user input.
  2. Build a rough sitemap by planning which pages and features to test:

Phase 2: Explore

Batch each step's actions into one browser_exec call. For each page or feature in your plan:

  1. Navigate with a console hook installed. Register the hook on the tab before navigating so errors thrown during page load are captured too:

```python

# 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.

  1. 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):

```python

# 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)}; }))()"""))

```

  1. 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.
  1. Test interactive elements systematically:
  1. After each interaction, in the same call, check for:

Phase 3: Collect Evidence

For every issue found:

  1. 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.
  1. Record the details:
  1. Classify the issue using the issue taxonomy (see references/issue-taxonomy.md):

Phase 4: Categorize

  1. Review all collected issues.
  2. De-duplicate — merge issues that are the same bug manifesting in different places.
  3. Assign final severity and category to each issue.
  4. Sort by severity (Critical first, then High, Medium, Low).
  5. Count issues by severity and category for the executive summary.

Phase 5: Report

Generate the final report using the template at templates/dogfood-report-template.md.

The report must include:

  1. Executive summary with total issue count, breakdown by severity, and testing scope
  2. Per-issue sections with:
  1. Summary table of all issues
  2. Testing notes — what was tested, what was not, any blockers

Save the report to {output_dir}/report.md.

Tools Reference

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 || []') |

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.