Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

tdesign-vue-next-unit-test

Skill by Tencent

Writes, extends, migrates or reviews Vue component unit tests following the tdesign-vue-next spec, then runs Vitest to verify them. It is for contributors working on components under packages/components in the TDesign Vue Next repository.

  • Score 81
  • 2.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tdesign-vue-next-unit-test

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Tencent/tdesign-vue-next /tmp/tdesign-vue-next && mkdir -p ~/.claude/skills && cp -r /tmp/tdesign-vue-next/.agents/skills/unit-test ~/.claude/skills/tdesign-vue-next-unit-test

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install tdesign-vue-next-unit-test in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through writing or reviewing Vue component unit tests for the tdesign-vue-next project. It tells the assistant to read the unit test spec in packages/tdesign-vue-next/test/README.md first and to treat that file as the only source of rules. The assistant then reads the component source, API definition and existing tests before changing anything.

Tests are grouped under the component's top-level describe block into props, events, slots, instanceFunctions and scenarios. The skill also covers regression tests for fixed issues, which must include the full issue URL, and separate file rules for hooks and utils. Verification runs through pnpm test scripts for Vitest, with an optional coverage run. It is intended for developers maintaining TDesign Vue Next component tests.

Written from the project's SKILL.md and checked against it.

What it can do

  • Spec-driven test writingWrites component tests that follow the unit test spec in the project's test README.
  • Test groupingOrganizes tests into props, events, slots, instanceFunctions and scenarios subgroups.
  • Issue regression testsAdds regression tests for fixed issues with a full issue URL comment above each test.
  • Test migration and reviewReviews or migrates existing component tests without changing unrelated cases.
  • Hooks and utils testsCovers hooks tests in *.hooks.test.tsx files and utils tests in *.utils.test.tsx files.
  • Vitest verificationRuns the target component test suite with pnpm test:unit and optionally checks coverage.

What you need

  • Local clone of the tdesign-vue-next repository
  • pnpm
  • Vitest test setup from the repository

Try asking

  • Write unit tests for the Button component following the project spec
  • Add a regression test for a fixed Tooltip issue with the issue URL
  • Review the existing Table component tests and list uncovered props

Good to know

  • Scoped to components under packages/components and related hooks and utils
  • Does not batch-migrate unrelated existing tests unless the task asks for it
  • Coverage check runs only when the user asks for coverage

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/unit-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to tdesign-vue-next-unit-test

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

tdesign-vue-next-unit-test: common questions

Where does the skill get its testing rules?

It reads the unit test spec in packages/tdesign-vue-next/test/README.md and treats it as the only source of rules.

How are regression tests for issues marked?

A comment in the form // Issue: followed by the full issue URL is placed directly above the it or test block. The skill does not guess URLs.

Which command runs the tests?

It runs pnpm -C packages/tdesign-vue-next/test test:unit with the component name, and test:unit-coverage when coverage is requested.

How do I install tdesign-vue-next-unit-test?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is tdesign-vue-next-unit-test free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is tdesign-vue-next-unit-test safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to tdesign-vue-next-unit-test?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

tdesign-vue-next-unit-test Install

Add to stack

Loading.