Files
agent-skills/evals/cases/planning-and-task-breakdown.json
Zlobin-KandClaude Sonnet 5 6ff91e06e8 fix(evals): add missing owner to negative trigger tests
Six negative-trigger prompts across six case files declared no `owner`,
so per evals/README.md and scripts/run-evals.js they could only pass
vacuously (skip the pairwise routing assertion) instead of asserting
that the correct skill actually outranks the tested one.

Added owner for the prompts where a real, unambiguous owner exists and
verified against scripts/run-evals.js that it outranks the tested skill
with a non-zero score:

- code-simplification: "Add a feature flag system to the app" -> incremental-implementation
- deprecation-and-migration: "Add dark mode to the settings page" -> frontend-ui-engineering
- doubt-driven-development: "Write the changelog entry for the release" -> git-workflow-and-versioning
- frontend-ui-engineering: "Tag and publish the release" -> git-workflow-and-versioning
- planning-and-task-breakdown: "Encode the output so it is safe against XSS" -> security-and-hardening
- using-agent-skills: "Make the modal accessible for keyboard users" -> frontend-ui-engineering

Left four other owner-less negatives untouched (doubt-driven-development's
"Format this file with prettier", git-workflow-and-versioning's "Add a
loading spinner to the submit button", observability-and-instrumentation's
"Draft the PRD for the referral program", and shipping-and-launch's "Why
is this function so slow on large inputs?") because no skill scores above
zero against them under the current TF-IDF scorer, so declaring an owner
there would either fail CI or force a misleading pick.

Verified: node scripts/run-evals.js still passes (127 checks, 0 errors,
86% rank-1) and node scripts/validate-commands.js passes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 23:31:17 +03:00

46 lines
1.2 KiB
JSON

{
"skill_name": "planning-and-task-breakdown",
"trigger": {
"positive": [
{
"prompt": "Break this spec into small verifiable tasks with acceptance criteria",
"top_k": 3
},
{
"prompt": "Turn the PRD into an ordered task list we can execute",
"top_k": 3
},
{
"prompt": "Plan the work into implementable chunks before we start coding",
"top_k": 3
}
],
"negative": [
{
"prompt": "Debug the crash on startup",
"owner": "debugging-and-error-recovery"
},
{
"prompt": "Encode the output so it is safe against XSS",
"owner": "security-and-hardening"
}
]
},
"evals": [
{
"id": 1,
"prompt": "Break the attached notifications spec into an executable plan.",
"expected_output": "Ordered tasks in tasks/plan.md, each small, verifiable, with acceptance criteria and dependencies",
"files": [
"planning-and-task-breakdown"
],
"expectations": [
"Every task has acceptance criteria",
"Tasks are ordered by dependency",
"Tasks are vertical slices rather than horizontal layers",
"No implementation code is written during planning"
]
}
]
}