[WIP] feat: add skill evaluation framework - #46
Closed
abhishekgarg18 wants to merge 1 commit into
Closed
abhishekgarg18 wants to merge 1 commit into
abhishekgarg18 wants to merge 1 commit into
Conversation
Add comprehensive skill evaluation system following agentskills.io patterns.
## Features
- **Automated testing** for Cloud Service and 6.5 LTS dispatcher skills
- **Local execution** with npm scripts for rapid iteration
- **CI/CD integration** via GitHub Actions on PRs
- **LLM-based grading** using Claude API for assertion validation
- **Variant-aware** testing with separate test cases for each AEM flavor
## Components
### Test Cases
- Cloud Service dispatcher config-authoring (3 test cases)
- 6.5 LTS dispatcher config-authoring (3 test cases)
- Assertions covering filters, vhosts, cache, security
### Eval Runner
- Node.js-based evaluation engine
- Sequential test execution with timing metrics
- Haiku grader for cost-efficient assertion validation
- Results saved to evals-workspace/ (git-ignored)
### GitHub Actions
- Triggered on PR when dispatcher skills change
- Path-based filtering for targeted execution
- Posts detailed results as PR comments
- Uploads full results as artifacts (30-day retention)
### Documentation
- README.md: comprehensive guide (writing evals, local testing, CI/CD)
- QUICKSTART.md: 5-minute getting started
- ARCHITECTURE.md: technical deep-dive and data flow
## Usage
### Local Testing
```bash
cd evals/runner
npm install
export ANTHROPIC_API_KEY=sk-ant-...
npm run eval -- --skill cloud-service/dispatcher/config-authoring
```
### CI/CD
Automatically runs on PRs when:
- skills/aem/cloud-service/skills/dispatcher/** changes
- skills/aem/6.5-lts/skills/dispatcher/** changes
- evals/skills/** changes
Requires: ANTHROPIC_API_KEY secret in repository settings
## Files Added
- evals/skills/cloud-service/dispatcher/config-authoring/evals.json
- evals/skills/6.5-lts/dispatcher/config-authoring/evals.json
- evals/runner/{package.json,eval-runner.js,.npmrc}
- .github/workflows/eval-skills.yml
- .github/scripts/generate-eval-report.js
- evals/{README.md,QUICKSTART.md,ARCHITECTURE.md}
## Files Modified
- package.json: added eval scripts
- .gitignore: exclude evals-workspace/
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
Add comprehensive skill evaluation system following agentskills.io patterns.
Features
Components
Test Cases
Eval Runner
GitHub Actions
Documentation
Usage
Local Testing
CI/CD
Automatically runs on PRs when:
Requires: ANTHROPIC_API_KEY secret in repository settings
Files Added
Files Modified
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: