Agent Skills Library
View source
Metric dictionary

Skills Metric Dictionary

Canonical Skills analytics metric definitions, source precedence, edge cases, and dashboard rules.

Skills Metric Dictionary

This dictionary defines the MVP Skills analytics metrics before API, dashboard, and recommendation work hard-code local meanings. It is forward-looking from the configured analytics start date and is scoped to agent-touched Azure Boards PBIs/tasks plus their immediate parent/child context.

See Agent Analytics Metadata Contract for the metadata fields and Analytics Data Governance for field-level privacy rules.

Source Priority

Use the narrowest reliable source for each metric:

  1. Valid agent-analytics:v1 metadata blocks parsed from Azure Boards comments.
  2. Normalized collector records emitted by scripts/agent-analytics-collector-lib.mjs.
  3. Azure Boards snapshot fields for title, type, state, parent ID, URL, changed date, and limited revision context.
  4. Collector run records for freshness, parse failures, and pre-collection counts.
  5. Recommendation records generated from normalized or aggregate dashboard evidence.

Do not infer agent work from Azure Boards identity alone. Agents often write through a human user's Azure DevOps identity, so explicit metadata wins when it exists.

Cross-Cutting Rules

Metric Definitions

MetricSource Of TruthCalculation RuleGrainMissing Or Zero RuleKnown Limitation
Metadata events collectedCollector run recordacceptedBlocks after parser validation and dedupe.Run, project, date rangeZero means no accepted metadata blocks in the queried run/window.Does not count rejected or malformed comments.
Parse failuresCollector run record and parseFailuresCount rejected metadata blocks by safe error code.Run, project, work itemZero means parser saw no invalid blocks in scope.Failure records must not include raw comment text.
PBI count with Skills metadataNormalized recordsUnique latest work items where workItemType is Product Backlog Item.Work item, project, date rangeNo record means no valid Skills metadata was collected for that PBI.Not a total Azure Boards PBI count.
Task count with Skills metadataNormalized recordsUnique latest work items where workItemType is Task.Work item, project, date rangeNo record means no valid Skills metadata was collected for that task.Not a total Azure Boards task count.
Touched by agentNormalized recordsWork item has at least one valid metadata event whose actorKind, createdByKind, completedByKind, or inferred attributionKind is agent or mixed.Work item, PBI, taskUnknown attribution remains unknown, not human.A human-created item can still be agent-touched.
Agent-createdMetadata payload plus normalized recordCount work items with createdByKind=agent or a work_item.created/task.started event whose actor is agent and creation evidence is explicit.Work itemMissing createdByKind is unknown.Does not use Azure Boards created-by identity alone.
Human-createdMetadata payload plus revision contextCount work items with createdByKind=human or clear revision evidence outside the agent workflow.Work itemMissing evidence is unknown.Conservative because agent and human may share the same board identity.
Mixed workflowNormalized recordCount work items whose attributionKind is mixed, or whose metadata and revision context show both human and agent participation.Work itemDo not split one mixed item into one human and one agent item.Mixed does not explain direction of handoff by itself.
Unknown attributionNormalized recordCount work items whose attributionKind is unknown.Work itemUnknown is a first-class category.High unknown counts usually indicate missing or unsupported metadata.
Pre-collection workCollector preCollectionWorkItemsCount related work items with changedAt before analyticsStartAt.Work item, projectPre-collection never counts as no agent usage.Does not reconstruct historical agent activity.
Completed by agentMetadata payloadCount explicit task.completed or workflow completion evidence with completedByKind=agent or actorKind=agent.Event, taskMissing completion metadata is unknown.Current MVP does not infer completion from board state alone.
Token estimate totalMetadata tokenEstimateSum totalTokens only where tokenEstimate.available=true.Event, model, agent host, skill versionUnavailable token estimates are excluded from totals and counted separately.Estimates are not billing records and may be uneven across hosts.
Token estimate unavailableMetadata tokenEstimateCount records where tokenEstimate.available=false or token support is absent.Event, host, modelThis is a support/coverage signal, not a usage number.A host with no token counters can still be fully supported for metadata.
Cost estimateDerived from tokens and approved pricing tableMultiply available token components by a versioned pricing table when one is approved.Event, model, date rangeIf tokens or pricing are unavailable, cost is unknown.No MVP cost value is an official invoice or billing record.
Cycle impactAzure Boards iteration/state fields plus normalized eventsCompare accepted metadata activity and completion outcomes within a sprint/cycle once iteration data is available.Sprint, team, projectBefore iteration fields exist, report unavailable.Do not use pre-collection gaps as process problems.
Recommendation confidenceRecommendation recordUse stored confidence from the deterministic or LLM recommendation job, with cited evidence.Recommendation, date rangeMissing confidence is unknown.Confidence is an evidence-quality signal, not probability of correctness.
Collector freshnessCollector run recordDifference between current time and latest successful run or watermark.Project, collector scopeMissing run means collector status is unknown.Requires scheduled collector run history.

Edge Cases

Agent-created PBI with human-edited tasks: count the PBI as agent-created, count each task according to its own metadata/revision evidence, and count the parent workflow as mixed only when dashboard rollup explicitly combines parent and child activity.

Human-created PBI with agent-created tasks: keep the PBI human-created or unknown, count agent-created tasks separately, and mark the PBI as agent-touched when child activity is included in the rollup.

Agent-touched work with missing token estimates: keep attribution metrics, set token support to unavailable, and exclude the item from token totals. Do not show zero tokens.

Malformed metadata: count a parse failure, omit the malformed block from normalized dashboard records, and surface safe error codes for operators.

Related pre-collection work item: show pre-collection when it appears through a parent/child relation, and do not include it in forward-looking agent adoption rates.

API And Dashboard Requirements