docs: add JSON Schema and documentation for evals #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add IDE support and comprehensive documentation for the skills eval framework:
eval.schema.jsonwith definitions for all 9 check typesREADME.mdwith detailed check type reference and examples$schemareference to all 7 fixtureeval.jsonfilesThe Evals System
The evals framework tests Claude's ability to correctly use skills when responding to prompts. It validates that Claude can:
Architecture
Running Evals
Check Types
containsvaluefile-existsfilePathfile-contentfilePath,patternorvaluevalid-jsonfilePathcommand-passescommandjson-schemaschemaentity-configfilePath,targetagent-configfilePath,targetfunction-deffilePath,targetExample eval.json
With the new schema reference, VS Code provides autocomplete and validation:
{ "$schema": "../../eval.schema.json", "name": "create-support-agent", "description": "Test creating an AI agent configuration with entity access", "prompt": "Create a support agent called 'support_agent' that helps users...", "expectedSkills": ["base44-cli"], "checks": [ { "type": "file-exists", "description": "Agent config file created", "filePath": "base44/agents/support_agent.jsonc" }, { "type": "valid-json", "description": "Agent config is valid JSON", "filePath": "base44/agents/support_agent.jsonc" }, { "type": "file-content", "description": "Has correct agent name", "filePath": "base44/agents/support_agent.jsonc", "pattern": "\"name\"\\s*:\\s*\"support_agent\"" }, { "type": "contains", "description": "Mentions agents push command", "value": "agents push" } ] }Example Run Output
Single Eval Run
Comparison Run (A/B Testing)
Generated Report (Markdown)
Test plan
eval.jsonin VS Code - should get autocomplete for check typesnpm run eval🤖 Generated with Claude Code