OSAC-3968: add skill testing and evaluation framework - #297
Conversation
2ba21ca to
8df73d3
Compare
|
I found three issues while reviewing this:
|
74e1eff to
f2403de
Compare
f2403de to
c2f300b
Compare
c2f300b to
62d8ad9
Compare
a0b9b51 to
08c7720
Compare
Local test runner and LLM judge for evaluating Forge skills without the hosted beta. Uses deepagents + FilesystemBackend for exact parity with Forge's agent execution, with a legacy raw-API fallback. Components: - run.py: runs a skill against test cases using deepagents (default) or raw Anthropic API (--legacy). Supports single case or batch dataset. - evaluate.py: scores generated artifacts against gold standards using an LLM judge (Sonnet) with configurable per-skill criteria. - forge test-skill: CLI subcommand wrapping both tools. Features: - MLflow integration (--mlflow flag): auto-traces all API calls, logs metrics (scores, tokens, cost), links traces to runs. - Grade tiers (A/B/C/D) based on score percentage and critical failures. - JSON extraction fallback for judge responses. - Skill-agnostic: adding a new skill requires a prompt template and criteria YAML, no code changes. Includes generate-prd criteria (8 criteria, 3 critical + 5 important) validated across 7 OSAC features at 75% average score. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Itzik Ezra <iezra@redhat.com>
08c7720 to
0204f89
Compare
Summary
Local test runner and LLM judge for evaluating Forge skills without the hosted beta.
--legacyfallback to raw Anthropic APIforge test-skill— CLI subcommand wrapping both tools--mlflowflag auto-traces all API calls, logs metrics (scores, tokens, cost), links traces to runsSkill-agnostic — adding a new skill requires a prompt template and criteria YAML, no code changes.
What changed since the first draft
Based on feedback from @eranco74 and @EllaSh:
create_deep_agent()+FilesystemBackendfor exact parity with Forge's agent executionforge test-skill runandforge test-skill evalCLI subcommands--legacyflag for raw API fallbackValidation
Tested on 7 OSAC features (generate-prd skill):
Test plan
forge test-skill run --helpandforge test-skill eval --helpwork--mlflowflag provided--legacyfallback works when deepagents not available🤖 Generated with Claude Code