Agent skill

Add Missing Unit Test

by flutter in flutter/flutter-intellij

Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

BSD-3-ClauseAuto-check passedTesting & QA

Install Add Missing Unit Test

skills CLI
$ npx skills add flutter/flutter-intellij --skill add-missing-unit-test -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install flutter/flutter-intellij add-missing-unit-test --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/flutter/flutter-intellij.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-missing-unit-test .claude/skills/add-missing-unit-test && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-missing-unit-test
GitHub stars
2k
Token cost
~591 tokens
SKILL.md length
321 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

  • Works in 5 steps: Identify Target → Establish Baseline → Implement Test → …
  • Tasks that involve Unit testing
  • SKILL.md covers Objective and Workflow Instructions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Missing Unit Test is an agent skill from flutter/flutter-intellij. Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing and Test generation. It works with Flutter. The repository describes itself as: Flutter Plugin for IntelliJ. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve Unit testing
  • Tasks that involve Test generation

Example prompts

  • “/add-missing-unit-test”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Identify Target
  2. Establish Baseline
  3. Implement Test
  4. Verify
  5. Report & Review

What it can do on your machine

Read from SKILL.md and the folder at commit 6d5ab33. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Missing Unit Test loads about 591 tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 321 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~591

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from flutter/flutter-intellij at commit 6d5ab33, republished under its BSD-3-Clause licence (© flutter). 321 words, ~591 tokens.

Download SKILL.mdSave it as .claude/skills/add-missing-unit-test/SKILL.md (or your agent's skills folder).
name
add-missing-unit-test
description
Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

Skill: Add Missing Unit Test

You are tasked with adding a new unit test for a class that currently lacks one, or adding a new test case to an existing test file, to improve code coverage and reliability.

Objective

Add a new unit test for a class that currently lacks one, or add a new test case to an existing test file, to improve code coverage and reliability.

Workflow Instructions

1. Identify Target
  • Choose a class in src/ that has complex logic but logic coverage is missing or incomplete.
2. Establish Baseline
  • Run ./gradlew testClasses to compile all sources (production and test) and ensure the project is in a valid state.
  • Run ./gradlew verifyPlugin to ensure no plugin verification issues exist.
  • Run ./gradlew test (or specific test if it exists) to establish current pass/fail status.
  • Run tests with Kover (./gradlew koverHtmlReport or ./gradlew koverXmlReport) to determine current coverage percentage for target class.
3. Implement Test
  • Create a new test class ([ClassName]Test) in testSrc/ if it doesn't exist.
  • Add test cases to cover specific methods, edge cases, and branches.
  • Ensure the test follows project testing conventions (naming, mocking, assertions).
4. Verify
  • Run ./gradlew testClasses to ensure new test compiles.
  • Run new test (and related tests) to ensure it passes.
  • Run ./gradlew verifyPlugin to ensure no regressions in plugin verification.
  • Run Kover again to confirm coverage improvement.
5. Report & Review
  • Summarize test added and coverage improvement.
  • Test Location: Explicitly state where in the IDE user should go to test changed functionality (e.g., "Run the new test file [TestFileName]").
  • Action: Ask user to review new test closely. Validate that code being tested is actively used (e.g., check that it is not dead code/0 references).
  • Do not commit or push.
  • Provide a suggested Git commit message, explicitly including the Kover coverage improvement:
    • Example Pattern: Add unit tests for [Class Name]. Coverage verified using Kover. Coverage improvement: [Class Name]: ~[X]% line coverage ([Y] covered, [Z] uncovered).

© flutter, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/add-missing-unit-test of flutter/flutter-intellij.

Open the folder on GitHubat commit 6d5ab33

Compare with similar skills

Add Missing Unit Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Missing Unit Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Missing Unit Test this skillflutter/flutter-intellij2k—~591Automated safety check: PassBSD-3-Clause
Adk Verify Snippetsgoogle/adk-python22k—~1.4kAutomated safety check: PassApache-2.0
Hermetic Python Unit TestsdimensionalOS/dimos4.6k—~1.4kAutomated safety check: PassCustom licence
OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD3.2k—~1.8kAutomated safety check: PassBSD-3-Clause
Concept Page Test Writerleonardomso/33-js-concepts67k—~5.5kAutomated safety check: PassMIT
ScottPlot Test RunnerScottPlot/ScottPlot6.8k—~308Automated safety check: PassMIT

Similar skills

  • Adk Verify Snippets

    google/adk-python

    Official

    Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail…

    22k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Hermetic Python Unit Tests

    dimensionalOS/dimos

    Rules for writing, fixing and reviewing pytest unit tests that are hermetic: behavior-focused, deterministic, isolated and cheap to run.

    4.6k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • OpenROAD Module Test Adder

    The-OpenROAD-Project/OpenROAD

    Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.

    3.2k GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Concept Page Test Writer

    leonardomso/33-js-concepts

    Generates Vitest tests for every runnable code example on a JavaScript concept documentation page, following a four-phase extraction and conversion process.

    67k GitHub stars~5.5k tokensUpdated 27 days ago
    Testing & QAAuto-check passed
  • ScottPlot Test Runner

    ScottPlot/ScottPlot

    Run or add ScottPlot 5 tests. Use for unit-test and cookbook-test work; unless explicitly asked otherwise, restrict manual test execution to the Unit Tests…

    6.8k GitHub stars~308 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Testing iOS Code

    bitwarden/ios

    Official

    Write tests, add test coverage, unit test, or add missing tests for Bitwarden iOS.

    694 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from flutter/flutter-intellij

All 14 skills in this repo
  • Release Plugin

    flutter/flutter-intellij

    Prepare and execute a new release for the flutter-intellij plugin, including updating dependencies, compatibility bounds, changelogs, and verification.

    2k GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Audit Accessibility

    flutter/flutter-intellij

    Ensure the plugin's custom UI components are accessible to users with screen readers and other assistive technologies.

    2k GitHub stars~520 tokensUpdated 3 days ago
    Auto-check passed
  • Audit Dependencies

    flutter/flutter-intellij

    Optimize plugin size and security by removing unused dependencies and updating outdated libraries.

    2k GitHub stars~475 tokensUpdated 3 days ago
    Auto-check passed
  • Audit UI Thread Safety

    flutter/flutter-intellij

    Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

    2k GitHub stars~518 tokensUpdated 3 days ago
    Auto-check passed
  • Cleanup Code Inspections

    flutter/flutter-intellij

    Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

    2k GitHub stars~429 tokensUpdated 3 days ago
    Auto-check passed
  • Code Review

    flutter/flutter-intellij

    Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices.

    2k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Add Missing Unit Test

What does Add Missing Unit Test do?

Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover. Add Missing Unit Test is an agent skill from flutter/flutter-intellij. Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

When should I use Add Missing Unit Test?

Add Missing Unit Test fits situations like: tasks that involve Unit testing; tasks that involve Test generation.

How do I install Add Missing Unit Test in Claude Code?

Run `npx skills add flutter/flutter-intellij --skill add-missing-unit-test -a claude-code`. Or copy the skill folder (.agents/skills/add-missing-unit-test in flutter/flutter-intellij) into .claude/skills/add-missing-unit-test in your project. Claude Code loads it when a task matches its description.

How do I install Add Missing Unit Test in Codex?

Run `npx skills add flutter/flutter-intellij --skill add-missing-unit-test -a codex`. Or copy the skill folder (.agents/skills/add-missing-unit-test in flutter/flutter-intellij) into .agents/skills/add-missing-unit-test in your project. Codex loads it when a task matches its description.

Can I use Add Missing Unit Test in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add flutter/flutter-intellij --skill add-missing-unit-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-missing-unit-test, .gemini/skills/add-missing-unit-test, .github/skills/add-missing-unit-test and .opencode/skills/add-missing-unit-test in your project.

What does Add Missing Unit Test need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Missing Unit Test is instructions for the agent only.

Does Add Missing Unit Test access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Missing Unit Test safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Missing Unit Test use?

Add Missing Unit Test is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Missing Unit Test use?

About 591 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Missing Unit Test?

Skills that share tags, products or a category with Add Missing Unit Test: Adk Verify Snippets (google/adk-python, 22k stars), Hermetic Python Unit Tests (dimensionalOS/dimos, 4.6k stars), OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars) and Concept Page Test Writer (leonardomso/33-js-concepts, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Missing Unit Test?

flutter (a GitHub organization) maintains it in flutter/flutter-intellij, which has 2,016 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 5, 2026.

Source: flutter/flutter-intellij on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.