Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

dust-test防尘测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

1,296

周安装

54

GitHub Stars

1,332

下载量

432
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dust-test(防尘测试)
来源仓库:https://github.com/dust-tt/dust
仓库路径:skills/dust-test
安装命令:
npx skills add https://github.com/dust-tt/dust --skill dust-test
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dust-tt/dust --skill dust-test

简介

dust-test 用于辅助测试设计、自动化测试和回归验证,帮助编写单元测试或端到端用例。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要提升代码质量或定位问题时使用。
  • 可通过 npx skills add 命令从 GitHub 安装,需确认权限范围和维护状态后再使用。
  • 使用前建议核验是否会触发联网、命令执行或文件读写操作。
  • 可结合来源仓库和原始 README 进一步了解具体用法和限制条件。

SKILL.md

Creating automated tests for Dust codebases

Write focused, practical tests for the current file following the 80/20 principle.

Instructions

When writing tests for a file:

  1. Identify the core functionality: Focus on the most important paths and edge cases that provide 80% of the value
  2. Keep it simple: Write straightforward tests that are easy to understand and maintain
  3. Minimal mocking:

- DO NOT mock the database - Only mock external services (APIs, third-party services) - Prefer real implementations when possible

  1. Use factories: Leverage test factories to set up data efficiently
  2. Focus on behavior: Test what the code does, not how it does it

For Front (TypeScript/Next.js)

Setup

  • Import factories from front/tests/utils/factories
  • Import utilities from front/tests/utils/utils
  • Use the test database (no mocking)

Structure

import {describe, it, expect} from "vitest";
import {makeTestWorkspace, makeTestUser} from "tests/utils/factories";

describe ("ComponentName or FunctionName", () => {
    it ("should handle the main happy path", async () => {
        // Arrange: Set up using factories
        const {workspace} = createResourceTest ()

        // Act: Execute the code
        const result = await functionUnderTest (workspace);

        // Assert: Verify behavior
        expect (result).toBeDefined ();
    });

    it ("should handle the most common edge case", async () => {
        // Test the second most important scenario
    });
});

What to test (80/20 focus)

  • Main success paths
  • Most common error conditions
  • Critical edge cases (null/undefined, empty arrays, etc.)
  • Permission checks (if applicable)

What to skip (diminishing returns)

  • Exhaustive parameter combinations
  • Unlikely edge cases
  • Internal implementation details
  • UI component rendering (unless critical)

For Connectors/Core

Follow similar principles:

  • Use factories appropriate to the service
  • Focus on integration points
  • Mock external APIs only (Slack, Notion, GitHub, etc.)
  • Test the database interactions directly

Example Pattern

describe ("createConversation", () => {
    it ("creates conversation with valid params", async () => {
        const {workspace, user} = createResourceTest ()

        const conversation = await createConversation ({
            workspace,
            userId: user.id,
            title: "Test"
        });

        expect (conversation.sId).toBeDefined ();
        expect (conversation.title).toBe ("Test");
    });

    it ("fails without required permissions", async () => {
        const {workspace, user} = createResourceTest ()

        await expect (
            createConversation ({workspace, userId: user.id})
        ).rejects.toThrow ("Permission denied");
    });
});

Execution Steps

  1. Read the file to understand its purpose and main exports
  2. Check if a test file already exists (e.g., file.test.ts)
  3. Identify the 2-4 most important functions/behaviors to test
  4. Find or create appropriate factories for test data
  5. Write concise, focused tests
  6. Run tests with npm test to verify they pass

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.29%
按下载量换算127

windsurf

24.48%
按下载量换算106

trae

18.04%
按下载量换算78

OpenCode

13.19%
按下载量换算57

Codex

6.9%
按下载量换算30

Antigravity

3.35%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills