Design a Benchmark Harness for Claude Code Agent Accuracy
Create a structured testing framework to evaluate coding agent performance on pull requests using deterministic ground-truth verification.
Agent prompt for Claude
Prompt
mkdir -p .agents/skills/design-a-benchmark-harness-for-claude-code-agent-accuracy && curl -sL "https://prompts-gpt.com/prompts/design-a-benchmark-harness-for-claude-code-agent-accuracy/raw" -o .agents/skills/design-a-benchmark-harness-for-claude-code-agent-accuracy/SKILL.md---
name: design-a-benchmark-harness-for-claude-code-agent-accuracy
description: "Create a structured testing framework to evaluate coding agent performance on pull requests using deterministic ground-truth verification."
---
# Design a Benchmark Harness for Claude Code Agent Accuracy
Create a structured testing framework to evaluate coding agent performance on pull requests using deterministic ground-truth verification.
## Prompt
```
Act as a Senior Software Engineer specializing in automated testing frameworks. Design a benchmark harness to evaluate the accuracy of Claude Code when performing refactoring or bug-fixing tasks on specific pull requests. Follow these rules: 1. Define a JSON schema for test cases including input file state, target function signature, and expected output. 2. Establish a scoring rubric with three distinct tiers: Functional correctness, adherence to existing code style, and maintainability. 3. Include a verification script that uses diff-based comparison against a ground-truth branch. 4. Ensure the output provides a clear pass/fail report for every test case. Output format: Section 1: Benchmark Architecture Overview. Section 2: Test Case JSON Schema. Section 3: Scoring Rubric Table. Section 4: Verification Logic Snippet. This is not professional software engineering services; consult your team lead for architectural standards.
```
## Usage Notes
Use this prompt in Claude or Claude Code to build a custom evaluation suite for your repository. Paste your specific project language requirements or target library versions after the prompt to tailor the test cases.
Act as a Senior Software Engineer specializing in automated testing frameworks. Design a benchmark harness to evaluate the accuracy of Claude Code when performing refactoring or bug-fixing tasks on specific pull requests. Follow these rules: 1. Define a JSON schema for test cases including input file state, target function signature, and expected output. 2. Establish a scoring rubric with three distinct tiers: Functional correctness, adherence to existing code style, and maintainability. 3. Include a verification script that uses diff-based comparison against a ground-truth branch. 4. Ensure the output provides a clear pass/fail report for every test case. Output format: Section 1: Benchmark Architecture Overview. Section 2: Test Case JSON Schema. Section 3: Scoring Rubric Table. Section 4: Verification Logic Snippet. This is not professional software engineering services; consult your team lead for architectural standards.Example output
Tips and common edits
Why this works
- Requires a strict JSON schema for consistent test inputs.
- Establishes a weighted rubric to quantify agent performance.
- Uses a diff-based comparison logic for objective verification.
Use this prompt in Claude or Claude Code to build a custom evaluation suite for your repository. Paste your specific project language requirements or target library versions after the prompt to tailor the test cases.
Common edits
- Adjust the scoring rubric weights to favor speed over style.
- Add specific library dependencies to the test case schema.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Design Mock Tool Fixtures for Agent Trajectory Testing
Generate deterministic mock tool responses to test agent decision trees, edge-case failures, and schema-breaking payloads without live API usage or costs.
Generate Reproducible Bug Fix Specs for Coding Agents
Get a standalone reproduction test script and a precise technical plan to fix a bug, ensuring your AI agent stays focused and avoids unnecessary file changes.
Create Selective Pre-Commit Hooks for Claude Code
This prompt generates a bash script that triggers specific tests and typechecks only for packages modified in your current git branch.
Sync Test Factories and Fixtures with Database Migrations
This prompt updates your test factories, JSON fixtures, and contract tests to match new database schema changes, ensuring your test suite remains consistent with production code.
Automated Dependency Upgrade and Rollback Protocol
Generate a safe, step-by-step dependency upgrade plan that includes strict semver validation, lockfile parity checks, and automated rollback triggers.
Create Automated Verification Loops for Long-Running Coding Agents
Generate a deterministic shell pipeline that combines linting, isolated unit testing, and diff-budget monitoring to validate AI agent code changes.
- Design a Sandbox Security Policy for Autonomous Coding Agents
- Optimize Hot Path Code for Zero Memory Allocation
- Verify the Coding Agent's 'Done' Claim Against the Diff and Test Output
- Rewrite a Vague Issue into a Copilot Coding Agent-Ready Issue
- Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps
- Typed Phase Handoff Contracts and Validator for Multi-Agent Pipelines