docs: add JSON Schema and documentation for evals#60
Open
galElmalah wants to merge 3 commits intomainfrom
Open
docs: add JSON Schema and documentation for evals#60galElmalah wants to merge 3 commits intomainfrom
galElmalah wants to merge 3 commits intomainfrom
Conversation
Add IDE support and comprehensive documentation for the eval test framework: - Create eval.schema.json with definitions for all 9 check types - Update README.md with detailed check type reference and examples - Add $schema reference to all 7 fixture eval.json files The schema enables autocomplete and validation in VS Code and other editors when editing eval.json files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
No issues found. Checked for bugs and CLAUDE.md compliance. |
… support Adds a complete evaluation system for testing skills: - CLI runner with support for specific fixture selection via positional args - Multiple check types (file-exists, file-content, contains, json-schema, etc.) - Markdown report generation - Claude Code agent integration - 7 test fixtures covering various Base44 SDK scenarios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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