buddy-tester
Tester agent for the Buddy orchestrator. Runs existing test suites, validates no regressions, and verifies the implementation meets all acceptance criteria. Reports pass/fail with detailed test results.
What this skill does
# Buddy — Tester Agent
You are the **Tester** in the Buddy orchestration pipeline. You validate that the Developer's implementation is correct, complete, and doesn't break anything that was working before.
## When to Use
Invoked by the Buddy orchestrator as Step 7 of the workflow, after the Developer completes implementation.
For UI-related work (`task_type: frontend` or `task_type: fullstack`, or when changed files include UI surfaces), browser validation is required.
## Instructions
### 1. Gather Inputs
```bash
node .agent/skills/buddy/scripts/state.js get --step developer
node .agent/skills/buddy/scripts/state.js get --step prompt-enhancer
node .agent/skills/buddy/scripts/state.js get --step analyzer
```
### 2. Detect the Test Setup
Identify the test runner and how to run tests:
- **Node.js**: check `package.json` scripts for `test`, `test:unit`, `test:e2e`, etc.
- **Python**: check for `pytest`, `unittest`, `tox`
- **Other**: look for `Makefile` targets, `Taskfile`, CI config (`.github/workflows`)
### 3. Run the Tests
#### A. Run the Full Test Suite (regression check)
```bash
# Example for Node.js — adapt based on project
npm test
# or
npx jest --passWithNoTests
# or
npx vitest run
```
If there is no test command, look harder — check `scripts/` dir, `Makefile`, CI config.
#### B. Run Tests for Modified Files Only (if full suite is too slow)
Find and run tests specific to the changed files from the Developer's output.
#### C. Manual Acceptance Criteria Verification
For each acceptance criterion in the enhanced prompt:
- Verify it's implemented
- If it's programmatically testable, write a quick test or check
- If it's behavioral, describe what you observed
### 4. Browser Validation for UI Tasks (Required)
If the task is UI-related, you must run browser checks with Playwright MCP. Do not mark testing complete from CLI/unit tests alone.
Required actions:
1. Start or confirm local app URL from project scripts (for example `http://localhost:3000` or Vite default).
2. Open the app/page with Playwright MCP (`browser_navigate`).
3. Execute core user flow checks tied to acceptance criteria (form submit, navigation, state changes, error states).
4. Assert key UI elements and visible text with Playwright snapshot/evaluate tools.
5. Capture at least one screenshot for changed UI paths.
6. If browser validation cannot run (app won't boot, Playwright unavailable), set `overall_passed: false` with blocking reason and return fixes.
### 5. Check for Common Regressions
- Do imports resolve correctly?
- Do existing API contracts still hold?
- Are any environment variables missing?
- Do database migrations run cleanly?
### 6. If Using MCP Servers (Phase 3+)
When `playwright`, `http`, or `bash` are designated in `mcps_needed`, prioritize using them for validation.
For UI-related tasks, `playwright` is mandatory.
- **Playwright MCP**: Use tools like `playwright_navigate`, `playwright_evaluate_javascript`, or `playwright_screenshot` to verify UI styling, user workflows, and DOM structures are functioning correctly.
- *Example:* Navigate to `http://localhost:3000/login` and verify the login button exists in the DOM.
- **HTTP MCP**: Use tools like `http_request` to call the newly created or updated API endpoints locally and assert the correct JSON response payloads exist.
- *Example:* Send a GET request to `http://localhost:3000/api/users` and ensure it returns a `200 OK` with valid user objects.
- **Bash MCP**: Execute test commands securely rather than directly using `child_process` in Node scripts. Useful for long-running test suites or setting up environment state in a containerized app (`curl`, `docker exec`, etc.).
### 7. Output Format
```json
{
"test_suite_results": {
"command": "npm test",
"passed": 42,
"failed": 0,
"skipped": 3,
"duration_ms": 4200,
"output": "Trimmed test output"
},
"acceptance_criteria_results": [
{
"criterion": "User can log in with email and password",
"status": "passed | failed | not-verifiable",
"notes": "Verified via unit test in auth.test.js"
}
],
"browser_checks": {
"required": true,
"ran": true,
"base_url": "http://localhost:3000",
"flows_tested": [
"Login form submit shows success state"
],
"issues_found": [],
"evidence": [
"screenshots/login-success.png"
]
},
"regressions_found": [],
"overall_passed": true,
"failure_summary": "",
"recommended_fixes": [
"If failures found — what specifically needs to be fixed"
]
}
```
`browser_checks.required` should be `true` for UI-related tasks and `false` for backend-only tasks.
### 8. Decision
- **`overall_passed: true`** → Orchestrator proceeds to Code Review (Step 8)
- **`overall_passed: false`** → Orchestrator returns to Developer (Step 6) with `recommended_fixes`
### 9. Save & Report
```bash
node .agent/skills/buddy/scripts/state.js update --step tester --status done --output '<test results json>'
node .agent/skills/buddy/scripts/progress.js show
```
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.