m365-agent-evaluator
Use this skill when a user wants to create, run, or analyze evaluation suites for Microsoft 365 Copilot declarative agents with the public @microsoft/m365-copilot-eval CLI. Trigger on intents such as "evaluate my agent", "test my agent", "run my evals", "create eval prompts", "add multi-turn tests",
- 0
- Installs
- —
- Rating
- —
- Success rate
- 17
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 c0a896ab05e0797f… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
M365 Agent Evaluator
Use this skill to help users evaluate Microsoft 365 Copilot declarative agents with @microsoft/m365-copilot-eval. The skill designs schema-compatible eval datasets, runs the public preview CLI, analyzes results, and recommends targeted fixes.
Default to Microsoft 365 Agents Toolkit (ATK) projects when detected, but do not hard-stop solely because the current directory is not ATK. The CLI can also evaluate deployed agents with an explicit M365_AGENT_ID or --m365-agent-id.
Always use this CLI invocation
npx -y --package @microsoft/m365-copilot-eval@latest runevals
Do not recommend the old private aka.ms installer, global installs, bare runevals, bare npx runevals, --input, or --html.
Activation workflow
- Identify the user goal: setup, dataset authoring, running evals, analyzing results, or updating an existing eval suite.
- Load only the reference needed for the current goal:
references/workflow.mdfor the end-to-end operator workflow and CLI commands.references/azure-setup.mdfor prerequisites, env files, and secret handling.references/eval-templates.mdwhen creating or editing eval datasets.references/pra-framework.mdwhen deciding what scenarios to generate.references/result-analysis.mdafter JSON/CSV/HTML results exist.references/guardrails.mdbefore writing files, handling secrets, clearing cache, signing out, or troubleshooting.
- Detect project shape:
- ATK:
.env.local,.env.local.user,env\.env.local.user,m365agents.yml, orappPackage\declarativeAgent.json. - Non-ATK: an eval dataset plus
M365_AGENT_ID,--m365-agent-id, or a named environment file such asenv\.env.dev.
- ATK:
- Verify prerequisites without exposing values:
- Node.js 24.12.0 or newer.
- Microsoft 365 Copilot license and a deployed M365 Copilot agent.
- Tenant admin consent for the WorkIQ Client App.
TENANT_ID, Azure OpenAI in Foundry Models endpoint/key, and recommended/defaultgpt-4o-minideployment.
- Choose the workflow:
- No dataset: create
evals\evals.json. - Existing dataset: run, analyze prior results, or propose changes.
- Quick check: use inline prompts.
- Exploration: use interactive mode.
- No dataset: create
Current dataset contract
Generate schema version 1.2.0 documents with a root items array. Do not generate the old PromptsObject or root prompts format.
Minimum shape:
{
"schemaVersion": "1.2.0",
"metadata": {
"name": "Agent evaluation suite",
"tags": ["starter"]
},
"default_evaluators": {
"Relevance": {},
"Coherence": {}
},
"items": [
{
"prompt": "What can this agent help me with?",
"expected_response": "The agent explains its supported scope without inventing unsupported capabilities."
}
]
}
Use references\prompts-schema.json as the local schema source and references\eval-templates.md for copyable single-turn, multi-turn, evaluator, and threshold examples.
Public evaluator names
Evaluator names are case-sensitive. Use only the public configurable evaluator names unless a newer authoritative source proves otherwise.
| Evaluator | Semantics |
|---|---|
Relevance | LLM score from 1-5; default threshold 3. |
Coherence | LLM score from 1-5; default threshold 3. |
Groundedness | LLM score from 1-5 against context/expected evidence; default threshold 3. |
Similarity | LLM score from 1-5 against expected_response; default threshold 3. |
Citations | Count-based citation check; default threshold 1. |
ExactMatch | Boolean exact string match. |
PartialMatch | String similarity from 0.0-1.0; default threshold 0.5. |
Treat ToolCallAccuracy as legacy/private for authoring. Do not add it to generated datasets unless current public CLI/schema documentation explicitly reintroduces it.
Common commands
# Version/help checks
npx -y --package @microsoft/m365-copilot-eval@latest runevals --version
npx -y --package @microsoft/m365-copilot-eval@latest runevals --help
# First-time setup / EULA
npx -y --package @microsoft/m365-copilot-eval@latest runevals accept-eula
npx -y --package @microsoft/m365-copilot-eval@latest runevals --init-only
# Batch run with explicit JSON output
npx -y --package @microsoft/m365-copilot-eval@latest runevals --prompts-file evals\evals.json --output .evals\results.json
# Human-review HTML or spreadsheet-friendly CSV
npx -y --package @microsoft/m365-copilot-eval@latest runevals --prompts-file evals\evals.json --output .evals\results.html
npx -y --package @microsoft/m365-copilot-eval@latest runevals --prompts-file evals\evals.json --output .evals\results.csv
# Quick checks
npx -y --package @microsoft/m365-copilot-eval@latest runevals --prompts "What can you help me with?" --expected "The agent describes its supported scope."
# Non-ATK or named environment
npx -y --package @microsoft/m365-copilot-eval@latest runevals --prompts-file evals\evals.json --m365-agent-id <agent-id> --env dev
Use --concurrency only with values 1-5. Start with 1 for debugging and increase only after setup is stable.
Version and PATH safety
Before diagnosing agent behavior, confirm which executable is running:
Get-Command runevals -All
npm list -g @microsoft/m365-copilot-eval --depth=0
npm view @microsoft/m365-copilot-eval version
npx -y --package @microsoft/m365-copilot-eval@latest runevals --version
npx -y --package @microsoft/m365-copilot-eval@latest where runevals
If bare runevals prints This version of the M365 Evals CLI has stopped working and must be updated, treat it as a stale PATH/global install. Re-run with the npx --package ...@latest command above, then ask before removing global shims with npm uninstall -g @microsoft/m365-copilot-eval.
File conventions
| Path | Purpose |
|---|---|
.env.local | Non-secret ATK config such as M365_TITLE_ID. |
.env.local.user or env\.env.local.user | Local secrets such as tenant ID and Azure OpenAI key. |
env\.env.<environment> | Named environment config for non-ATK or explicit --env workflows. |
evals\evals.json | Source-controlled eval dataset if the user wants it committed. |
.evals\ | Local run outputs; usually gitignored. |
Never print or commit secrets, prompts containing sensitive data, retrieved content, debug logs, or raw result files unless the user explicitly asks and confirms the data is safe to share.
Generation guidance
Use PRA as a scenario-design framework:
- Perceive: retrieval, grounding, and source coverage.
- Reason: instruction adherence, synthesis, ambiguity handling, and refusal behavior.
- Act: declared capability/action behavior. Score with public evaluators such as
Relevance,Coherence,Similarity,ExactMatch, orPartialMatch; do not use legacyToolCallAccuracy.
Ask before overwriting an existing dataset. When writing generated evals, write to a temporary file first and rename on success.
Result analysis guidance
Analyze only evaluator keys that are present. Missing score keys usually mean the evaluator was not configured for that item, not that it failed.
Use current score keys when present: relevance, coherence, groundedness, similarity, citations, exactMatch, and partialMatch. Group failures into likely root causes: instruction issue, grounding issue, citation issue, expected-answer mismatch, capability gap, auth/environment issue, or eval-quality issue.
Do not run real tenant-dependent evals unless the user has provided or approved the necessary tenant, agent, and Azure OpenAI configuration.
Files
17- SKILL.md
5a1da9a6207.9 KB - examples/analyze-failures.md
01eb1ab5281.5 KB - examples/basic-generation.md
30b227fd8e1.8 KB - examples/iterate-on-changes.md
56f41fc11c1.3 KB - examples/missing-instructions.md
8617159c451.5 KB - examples/not-atk-project.md
561b687fae1.4 KB - examples/run-and-analyze.md
c1994a14d91.6 KB - references/azure-setup.md
da2a31e3555.8 KB - references/eval-templates.md
d7fabdbcbe5.1 KB - references/guardrails.md
e128ebdd344.1 KB - references/output-schema.json
2e420f92914.0 KB - references/output-schema.md
75a84a0d912.6 KB - references/pra-framework.md
443e5195cb3.2 KB - references/prompts-schema.json
726a8726dd15.4 KB - references/remediation-patterns.md
064b50aadf3.6 KB - references/result-analysis.md
5bcf4a35fb4.4 KB - references/workflow.md
aeb5eab90a6.5 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from microsoft/skills8
Build Azure AI Foundry agents using the Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Use when creating persistent agents with AzureAIAgentsProvider, using hosted tools (code interpreter, file search, web search), integrating MCP servers, managing conversation threads, or implemen
Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: \"setup AI Runway\", \"onboard AKS cluster\", \"install AI Runway\", \"airunway setup\", \"deploy model to AKS\", \"GPU inference
Diagnose Day-2 AKS GPU and KAITO incidents using profile-aware, read-only evidence. WHEN: 'Insufficient nvidia.com/gpu', GPU pod Pending, model-load OOM, DCGM/VRAM, KAITO Workspace not ready, or GPU autoscaling. DO NOT USE FOR: setup (airunway-aks-setup), non-GPU incidents (aks-troubleshooting), sta
Lookup documented AKS fixes only when the prompt includes an exact catalog signature and all of its qualifiers: VMCannotFitEphemeralOSDisk; NodePoolMcVersionIncompatible; 'NodeImageVersion is not accepted'; AKS SkuNotAvailable with size, location, and zone; ZonalAllocationFailed with insufficient zo
Collects bounded packet captures from AKS nodes and Azure network configuration for wire-level evidence. WHEN: \"capture packets on an AKS node\", \"take a pcap\", \"run tcpdump on AKS\", \"prove where packets drop\". Use for explicit packet-capture intent after read-only diagnostics, not general AK
Debug live Azure Kubernetes Service (AKS) incidents with a read-only, evidence-first investigation. WHEN: pod crashes or Pending, CrashLoopBackOff, OOMKilled, ImagePullBackOff, node NotReady, DNS or ingress failure, connectivity timeout, network policy, SNAT exhaustion, node-pool scaling blocked by
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practic
Instrument browser/web apps with the Application Insights JavaScript SDK (@microsoft/applicationinsights-web). Use for Real User Monitoring (RUM) — page views, clicks, AJAX/fetch dependencies, exceptions, custom events, and browser-side GenAI agent traces correlated to backend OpenTelemetry traces.
Related tooling skillsscan passed
Translate visa document images (bank deposit, employment, income, and retirement certificates; HEIC, PNG, or JPG) into English via OCR and produce a bilingual PDF pairing the original image with a formatted certified-style translation. Use when a visa application needs a document translated to Engli
Web performance regression detection. (gstack)
This skill should be used when the user asks to "demonstrate skills", "show skill format", "create a skill template", or discusses skill development patterns. Provides a reference template for creating Claude Code plugin skills.
Helps you build and check a color system for your project. It generates palettes, names semantic tokens, converts between formats and measures contrast.
Creates a new Angular app using the Angular CLI. This skill should be used whenever a user wants to create a new Angular application and contains important guidelines for how to effectively create a modern Angular application.
Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.