[feat]add Agent Skill graders and skills evaluation cookbook #162
Merged
XiaoBoAI merged 4 commits intoagentscope-ai:mainfrom Apr 7, 2026
Merged
[feat]add Agent Skill graders and skills evaluation cookbook #162XiaoBoAI merged 4 commits intoagentscope-ai:mainfrom
XiaoBoAI merged 4 commits intoagentscope-ai:mainfrom
Conversation
Introduce SkillThreatAnalysisGrader, SkillDeclarationAlignmentGrader, SkillDesignGrader, and refresh completeness/relevance graders. Remove legacy comprehensive, pairwise, safety, and structure skill graders and their tests. Add cookbooks/skills_evaluation with SkillsGradingRunner, loader models, and README. Document skill graders in docs/built_in_graders/skills.md and link from overview. Announce Skill Graders in README and README_zh. Made-with: Cursor
- completeness/design/relevance: suppress W0613 for script_contents and reference_contents kept for API parity (consumed via SkillsGradingRunner) - declaration_alignment: disable too-many-lines (1138 lines) and move unused injection_fix into the findings dict (was W0612) - test_skill_completeness: catch openai.RateLimitError in consistency test and skip rather than fail - test_skill_design: gate test_accuracy_vs_expected behind RUN_ACCURACY_TESTS (strong-model-only) to prevent false failures with qwen3.5-plus; add RateLimitError skip guard to both quality tests - .pre-commit-config.yaml: use .venv/bin/python -m pytest so pre-commit picks up the project venv where pytest is installed Made-with: Cursor
- Reorder imports and wrap SkillDeclarationAlignmentGrader imports - Reflow textwrap.dedent prompt strings in threat_analysis grader - Apply Black-style line breaks in runner, skill_models, evaluate_skills - Expand long literals in declaration_alignment and threat_analysis tests Made-with: Cursor
Restore `python -m pytest` instead of `.venv/bin/python -m pytest`. Made-with: Cursor
XiaoBoAI
approved these changes
Apr 7, 2026
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.
OpenJudge Version
[The version of OpenJudge you are working on, e.g.
import openjudge; print(openjudge.__version__)]Description
[Please describe the background, purpose, changes made, and how to test this PR]
Checklist
Please check the following items before code is ready to be reviewed.
pre-commit run --all-filescommand