xiaohongshu
xiaohongshu
evaluation
Evaluate agent systems with quality gates and LLM-as-judge. Use when you need to measure component quality or implement quality gates. Not for simple unit testing or binary pass/fail checks without nuance.
Full skill instructions
<mission_control> <objective>Build quality gates and measure component quality using outcome-focused evaluation that accounts for non-determinism and multiple valid paths</objective> <success_criteria>Multi-dimensional rubric implemented with weighted scoring, evidence requirements, and threshold-based quality gates</success_criteria> </mission_control>
<trigger>When building quality gates, measuring component quality, or implementing LLM-as-judge. Not for: Simple unit testing or binary pass/fail checks without nuance.</trigger>
<interaction_schema> DEFINE_RUBRIC → BUILD_TEST_SET → IMPLEMENT_EVALUATION → TRACK_METRICS </interaction_schema>
Agent evaluation requires outcome-focused approaches that account for non-determinism and multiple valid paths. A robust framework enables continuous improvement, catches regressions, and validates that context engineering choices achieve intended effects.
Research on BrowseComp evaluation (which tests browsing agents' ability to locate hard-to-find information) found three factors explain 95% of performance variance:
| Factor | Variance Explained | Implication |
|---|---|---|
| Token usage | 80% | More tokens = better performance |
| Number of tool calls | ~10% | More exploration helps |
| Model choice | ~5% | Better models multiply efficiency |
Critical Insight: Model upgrades often provide larger gains than doubling token budgets. Claude Sonnet 4.5 > 2× tokens on previous Sonnet.
Non-Determinism and Multiple Valid Paths
Context-Dependent Failures
Composite Quality Dimensions
Design Principles:
Core Dimensions:
Factual Accuracy
Completeness
Portability (Seed System Specific)
Context Efficiency (Seed System Specific)
Tool Efficiency
Individual Dimension Scores: 0.0 to 1.0 for each dimension
Weighted Overall Score:
overall_score = sum(score[dim] * weight[dim] for dim in dimensions)
Pass Threshold: Set based on use case
Direct Scoring
Prompt Template:
Task: [Description]
Agent Output: [Output]
Evaluation Criteria: [Rubric]
Evaluate the agent output on each dimension:
1. Factual Accuracy (0.0-1.0): [Score] - [Evidence]
2. Completeness (0.0-1.0): [Score] - [Evidence]
3. Portability (0.0-1.0): [Score] - [Evidence]
4. Context Efficiency (0.0-1.0): [Score] - [Evidence]
5. Tool Efficiency (0.0-1.0): [Score] - [Evidence]
Overall Score: [Weighted average]
Pass/Fail: [Threshold-based]
Pairwise Comparison
Position Swapping:
def evaluate_pairwise(output_a, output_b):
# First comparison: A vs B
result_1 = judge_evaluate(output_a, output_b)
# Second comparison: B vs A (swapped)
result_2 = judge_evaluate(output_b, output_a)
# Combine results
return reconcile_comparisons(result_1, result_2)
Sample Selection
Complexity Stratification
Testing Context Strategies
Degradation Testing
Evaluation Pipeline
Production Monitoring
Step 1: Define quality dimensions relevant to use case Step 2: Create rubrics with clear level descriptions Step 3: Build test sets from real patterns and edge cases Step 4: Implement automated evaluation pipelines Step 5: Establish baseline metrics before changes Step 6: Run evaluations on all significant changes Step 7: Track metrics over time Step 8: Supplement with human review
def evaluate_component(component, test_set):
"""Evaluate a Seed System component"""
rubric = {
"factual_accuracy": {"weight": 0.25},
"completeness": {"weight": 0.25},
"portability": {"weight": 0.25},
"context_efficiency": {"weight": 0.15},
"tool_efficiency": {"weight": 0.10}
}
scores = {}
for test in test_set:
result = run_test(component, test)
for dimension in rubric:
scores[dimension] = assess_dimension(result, dimension)
overall = weighted_average(scores, rubric)
passed = overall >= 0.7
return {
"passed": passed,
"scores": scores,
"overall": overall,
"threshold": 0.7
}
❌ Overfitting to specific paths
❌ Ignoring edge cases
❌ Single-metric obsession
❌ Neglecting context effects
❌ Skipping human evaluation
Phase 1: Component Generation
Phase 2: Multi-Dimensional Evaluation
Phase 3: Quality Gate
Phase 4: Evidence Collection
# Validation Report
component: my-skill
timestamp: 2026-01-26
overall_score: 0.82
threshold: 0.70
passed: true
dimensions:
factual_accuracy: 0.90
evidence: "All technical claims verified"
completeness: 0.85
evidence: "Covers all requirements with minor gaps"
portability: 0.80
evidence: "Self-contained, zero external dependencies"
context_efficiency: 0.75
evidence: "Good progressive disclosure, some optimization possible"
tool_efficiency: 0.85
evidence: "Optimal tool selection, minimal redundant calls"
recommendations:
- "Consider further context optimization for large components"
- "Add more examples to references/"
<routing_table> Skills referenced for related evaluation capabilities.
| When You Need To... | Use This Skill | Routing Command |
|---|---|---|
| Implement progressive disclosure | filesystem-context | Skill("filesystem-context") |
| Validate component quality | quality-standards | Skill("quality-standards") |
| Build evaluation rubrics and scoring | (this skill) | (current context) |
Research References:
Key Principle: Evaluation should be outcome-focused, multi-dimensional, and continuously validated. Judge whether components achieve right outcomes while following reasonable processes. </routing_table>
This component carries essential Seed System principles for context: fork isolation:
<critical_constraint> MANDATORY: All components MUST be self-contained (zero .claude/rules dependency) MANDATORY: Achieve 80-95% autonomy (0-5 AskUserQuestion rounds per session) MANDATORY: Description MUST use What-When-Not format in third person MANDATORY: No component references another component by name in description MANDATORY: Progressive disclosure - references/ for detailed content MANDATORY: Use XML for control (mission_control, critical_constraint), Markdown for data No exceptions. Portability invariant must be maintained. </critical_constraint>
Delta Standard: Good Component = Expert Knowledge − What Claude Already Knows
Recognition Questions:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience