DU

Guides the creation of focused, maintainable tests for Dust codebases.

Install

mkdir -p .claude/skills/dust-test && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2372" && unzip -o skill.zip -d .claude/skills/dust-test && rm skill.zip

Installs to .claude/skills/dust-test

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Step-by-step guide for writing focused, practical tests for Dust codebases following the 80/20 principle.
105 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Identify core functionality and critical edge cases
  • →Use test factories for efficient data setup
  • →Mock external services while using real database connections
  • →Test behavior rather than implementation details
  • →Execute tests using npm test with file path arguments

How it works

It applies the 80/20 principle to identify the most valuable test paths, utilizes factories for data setup, and mandates minimal mocking to focus on behavior.

Inputs & outputs

You give it
A source file requiring test coverage
You get back
A focused test file following the 80/20 principle

When to use dust-test

  • →Writing unit tests for Dust services
  • →Refactoring test suites
  • →Setting up test factories

About dust-test

Instructs developers on writing effective tests by focusing on core functionality and edge cases. It emphasizes minimal mocking and the use of test factories.

Step-by-step guide for writing focused, practical tests for Dust codebases following the 80/20 principle.

When not to use it

  • →When testing UI component rendering details
  • →When exhaustive parameter combinations are required

Prerequisites

front/tests/utils/factoriesfront/tests/utils/utilsTest database access

Limitations

  • →Does not support mocking the database
  • →Focuses only on the most important 80% of functionality

How it compares

It prioritizes behavior-driven testing with minimal mocking, whereas generic approaches often rely on exhaustive mocking or UI-state verification.

Compared to similar skills

dust-test side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
dust-test (this skill)17moNo flagsIntermediate
epic-forms19moNo flagsIntermediate
code-review06moNo flagsIntermediate
verify04moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry