id: "dart-add-unit-test"
kind: "skill"
name: "dart-add-unit-test"
title: "Dart Add Unit Test"
description: "Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free."
category: "testing"
source:
  repository: "dart-lang/skills"
  path: "skills/dart-add-unit-test/SKILL.md"
  commit: "f84b16872b5d186f4e877511b49b93c204a1c4ef"
  url: "https://github.com/dart-lang/skills/tree/f84b16872b5d186f4e877511b49b93c204a1c4ef/skills/dart-add-unit-test"
license:
  spdx: "BSD-3-Clause"
  from: "repository"
  redistributable: true
stars: 560
updated_at: "2026-11-16T22:26:36Z"
score: 0.8001
rank: 258
files_count: 1
bytes: 4709
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:35:00Z"
  model: "claude-sonnet-5-5"
  score: 0.8001
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.71
    smoke: "not_run"
    popularity: 0.506
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 4
    scope: 5
    instructions: 3
    safety: 5
    injection: 5
    references: 5
    overall: 6
    verdict: "keep"
    rationale: "The skill is focused on one job, Dart unit testing, and it is safe with no injection. The file layout, runner commands, integration_test caveat and mockito codegen example are concrete and correct. Most of the content is basic package:test usage a strong model already knows. The mockito example has the @GenerateNiceMocks annotation placed above an import, which is slightly awkward. It is useful but not distinctive."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: []
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "chat-mcp"
    status: "full"
    reasons: ["ok"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 4709
    sha256: "02428fa20c2cb90afcaf17a52c559641b85eb04f2765a54da2bc72ca858c1fce"
    url: "https://raw.githubusercontent.com/dart-lang/skills/f84b16872b5d186f4e877511b49b93c204a1c4ef/skills/dart-add-unit-test/SKILL.md"
alternates:
  - name: "dart-add-unit-test"
    repository: "flutter/agent-plugins"
    path: "skills/dart-add-unit-test/SKILL.md"
    commit: "ff6d472ee66dbed566c4500edee460c94fde0a02"
    url: "https://github.com/flutter/agent-plugins/tree/ff6d472ee66dbed566c4500edee460c94fde0a02/skills/dart-add-unit-test"
    license: "BSD-3-Clause"
    stars: 3199
    score: 0.6709
    similarity: 1.0
    reason: "identical content"
icon: "https://versatile.sh/avatars/dart-lang.png"
