CommunityCodierung & Entwicklunggithub.com

pproenca/vitest

Vitest-Testframework-Patterns für Testaufbau, asynchrones Testen, Mocking mit vi.*, Snapshots und Testperformance. Dieses Skill wird beim Schreiben oder Debuggen von Vitest-Tests verwendet. Es deckt keine TDD-Methodik (dafür test-tdd-Skill verwenden), API-Mocking mit MSW (dafür test-msw-Skill verwenden) oder Jest-spezifische APIs ab.

Was ist vitest?

Dieses Skill, `pproenca/vitest`, bietet umfassende Unterstützung für das Vitest-Testframework im Kontext von KI-Assistenten wie Claude Code, Cursor oder Codex. Es enthält Patterns und Best Practices für Testaufbau (Setup), asynchrones Testen, Mocking mit der `vi.*`-API, Snapshots und Testperformance-Optimierung. Es ist speziell dafür ausgelegt, Entwickler beim Schreiben, Debuggen und Refactoren von Vitest-Tests zu unterstützen, indem es kontextspezifische Anleitungen und Codebeispiele bereitstellt. Das Skill ersetzt das vorherige `test-vitest`-Skill und ist plattformunabhängig (funktioniert in allen genannten KI-Entwicklungsumgebungen). Es grenzt sich bewusst von anderen Skills ab: Für TDD-Methodik sollte `test-tdd`, für API-Mocking mit MSW `test-msw` und für Jest-spezifische APIs ein separates Skill verwendet werden. Die Wartung erfolgt über das GitHub-Repository `pproenca/vitest`, wo Nutzer Feedback geben oder Beiträge leisten können.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pproenca/dot-skills/tree/main/skills/vitest

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht vitest?

Vitest-Testframework-Patterns für Testaufbau, asynchrones Testen, Mocking mit vi.*, Snapshots und Testperformance (ehemals test-vitest). Dieses Skill sollte beim Schreiben oder Debuggen von Vitest-Tests verwendet werden. Dieses Skill deckt nicht die TDD-Methodik ab (dafür das test-tdd-Skill verwenden), API-Mocking mit MSW (dafür das test-msw-Skill verwenden) oder Jest-spezifische APIs.

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

pproenca/clean-architecture

Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.

pproenca/code-simplifier

Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing complexity, cleaning up recent changes, applying refactoring patterns, or improving readability. Triggers on tasks involving code cleanup, simplification, refactoring, or readability improvements.

pproenca/emilkowal-animations

Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.

pproenca/nuqs

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.

pproenca/react-hook-form

React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, and the v7.55+ subscribe() API. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).

pproenca/typescript

TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.

pproenca/zod

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).

Verwandte Skills