Agent skill

Generate Testcase

by alibaba in alibaba/neug

Analyze new commits and generate related test cases. An agent skill from alibaba/neug.

Apache-2.0Auto-check passedTesting & QA

Install Generate Testcase

skills CLI
$ npx skills add alibaba/neug --skill generate-testcase -a claude-code

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

GitHub CLI
$ gh skill install alibaba/neug generate-testcase --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/alibaba/neug.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/generate-testcase .claude/skills/generate-testcase && 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
generate-testcase
GitHub stars
168
Token cost
~287 tokens
SKILL.md length
159 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyze new commits and generate related test cases. An agent skill from alibaba/neug.

  • Works in 4 steps: Find all commits after this branch is… → Compare two commits and extract all new… → Locate the test directory. The test file… → …
  • Tasks that involve Test generation
  • SKILL.md covers User Input, Preparation, Generation and Test
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Generate Testcase is an agent skill from alibaba/neug. Analyze new commits and generate related test cases.

Its SKILL.md is about 290 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 Test generation. The repository describes itself as: The one data index for your agentic applications. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Test generation

Example prompts

  • “/generate-testcase”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Find all commits after this branch is forked.
  2. Compare two commits and extract all new files.
  3. Locate the test directory. The test file should be saved in this directory.
  4. Locate the spec directory, often ./specs/.

What it can do on your machine

Read from SKILL.md and the folder at commit 6ef9f08. 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

Generate Testcase loads about 287 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 159 words of instructions outside code blocks.

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

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 alibaba/neug at commit 6ef9f08, republished under its Apache-2.0 licence (© alibaba). 159 words, ~287 tokens.

Download SKILL.mdSave it as .claude/skills/generate-testcase/SKILL.md (or your agent's skills folder).
name
generate-testcase
description
Analyze new commits and generate related test cases.
disable-model-invocation
true

User Input

text
$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Preparation

  1. Find all commits after this branch is forked.
  2. Compare two commits and extract all new files.
  3. Locate the test directory. The test file should be saved in this directory.
  4. Locate the spec directory, often ./specs/.

Generation

  1. Think about some user scenarios (From basic usage with default setting, to different formats and parameters). These scenarios MUST related to the new feature.
  2. Ask users to choose. Wait for users response.
  3. For each user scenario, create a test function to confirm.
  4. Build and run test cases. Fix problems until all test passed.

Test

  1. Check the installation test coverage packages, including fastcov and lcov.
  2. Build and run test cases. Note to enable ENABLE_GCOV and BUILD_TEST.
  3. Fix problems until all test passed.
  4. Report and analyze the coverage result. Highlight files that the function coverage rate is not 100%.

© alibaba, Apache-2.0. 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 .agent/skills/generate-testcase of alibaba/neug.

Open the folder on GitHubat commit 6ef9f08

Compare with similar skills

Generate Testcase 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.

Generate Testcase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Testcase this skillalibaba/neug168—~287Automated safety check: PassApache-2.0
Emcaklofas/kicad-happy1.3k1 repos~2.8kAutomated safety check: PassMIT
Swig Testswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Generate Test Cases342164796/generate-test-cases1191 repos~2.9kAutomated safety check: PassNone
Verify Cc Safety Netkenryu42/cc-safety-net1.6k—~2kAutomated safety check: PassMIT
Wioworkersio/skills180—~5.8kAutomated safety check: PassMIT

Similar skills

  • Emc

    aklofas/kicad-happy

    EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching harmonics, clock routing, differential pair…

    1.3k GitHub starsUsed in 1 repo~2.8k tokens
    Testing & QAAuto-check passed
  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Generate Test Cases

    342164796/generate-test-cases

    自主学习型测试文档生成器。从需求文档(Markdown)生成测试用例 XMind 文件,支持持久化记忆和持续学习。当用户提到"生成测试用例"、"根据需求生成测试"时触发。

    119 GitHub starsUsed in 1 repo~2.9k tokens
    Testing & QAAuto-check passed
  • Verify Cc Safety Net

    kenryu42/cc-safety-net

    Launch and drive the real cc-safety-net CLI — the hook decision path, explain, status/doctor, logs, and the local policy GUI — against an isolated home, capturing evidence.

    1.6k GitHub stars~2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    180 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • File Server

    microsoft/WindowsProtocolTestSuites

    Official

    ALWAYS LOAD THIS SKILL when working with FileServer, SMB, SMB2, SMB3, CIFS, file sharing, MS-SMB2, MS-FSCC, MS-FSA, MS-DFSC, MS-FSRVP, MS-RSVD, MS-SQOS, or any file server protocol test…

    567 GitHub stars~4.1k tokensUpdated 22 days ago
    Testing & QAAuto-check passed

More from alibaba/neug

  • Sync Modules

    alibaba/neug

    Cerate or Update a GitHub Issue for each Module in the task document.

    168 GitHub stars~575 tokensUpdated 7 days ago
    Auto-check passed
  • Sync Tasks

    alibaba/neug

    Cerate or Update a GitHub Issue for each Task in the task document.

    168 GitHub stars~487 tokensUpdated 7 days ago
    Auto-check passed
  • Create PR

    alibaba/neug

    Submit a new Pull Request to the project. An agent skill from alibaba/neug.

    168 GitHub stars~303 tokensUpdated 7 days ago
    Auto-check passed
  • Check comments from the Pull Request on the GitHub and update code.

    168 GitHub stars~386 tokensUpdated 7 days ago
    Auto-check passed
  • Create Issue

    alibaba/neug

    Submit a new issue to the project.

    168 GitHub stars~736 tokensUpdated 7 days ago
    Auto-check passed

Categories

Questions about Generate Testcase

What does Generate Testcase do?

Analyze new commits and generate related test cases. An agent skill from alibaba/neug. Generate Testcase is an agent skill from alibaba/neug. Analyze new commits and generate related test cases.

When should I use Generate Testcase?

Generate Testcase fits situations like: tasks that involve Test generation.

How do I install Generate Testcase in Claude Code?

Run `npx skills add alibaba/neug --skill generate-testcase -a claude-code`. Or copy the skill folder (.agent/skills/generate-testcase in alibaba/neug) into .claude/skills/generate-testcase in your project. Claude Code loads it when a task matches its description.

How do I install Generate Testcase in Codex?

Run `npx skills add alibaba/neug --skill generate-testcase -a codex`. Or copy the skill folder (.agent/skills/generate-testcase in alibaba/neug) into .agents/skills/generate-testcase in your project. Codex loads it when a task matches its description.

Can I use Generate Testcase 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 alibaba/neug --skill generate-testcase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-testcase, .gemini/skills/generate-testcase, .github/skills/generate-testcase and .opencode/skills/generate-testcase in your project.

What does Generate Testcase need to run?

SKILL.md names no scripts, command-line tools or credentials: Generate Testcase is instructions for the agent only.

Does Generate Testcase 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 Generate Testcase 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 Generate Testcase use?

Generate Testcase is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Testcase use?

About 287 tokens (SKILL.md is roughly 1.1k 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 Generate Testcase?

Skills that share tags, products or a category with Generate Testcase: Emc (aklofas/kicad-happy, 1.3k stars), Swig Test (swig/swig, 6.3k stars), Generate Test Cases (342164796/generate-test-cases, 119 stars) and Verify Cc Safety Net (kenryu42/cc-safety-net, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Testcase?

alibaba (a GitHub organization) maintains it in alibaba/neug, which has 168 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 30, 2026.

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