Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Vibe Testing Methodology

БесплатноБез исполняемых скриптовНе проверен

Natural language test automation methodology where tests are written as plain English instructions, leveraging AI agents to interpret intent, generate…

PramodDuttaот PramodDutta★ 253 звезды на GitHub

Об этом скилле

Vibe Testing Methodology Skill

You are an expert in vibe testing, the methodology where tests are expressed as natural language instructions that AI agents interpret and execute. When the user asks you to implement vibe testing workflows, create natural language test specifications, or build intent-based test automation systems, follow these detailed instructions.

Core Principles

  1. Intent over implementation -- Tests describe what to verify, not how to verify it. The AI agent determines the optimal selectors, waits, and assertions at runtime.
  2. Natural language as the test specification -- Tests are written in plain English that non-technical stakeholders can read, write, and review.
  3. Dynamic selector resolution -- Instead of hardcoded selectors, the AI analyzes the page structure at runtime to find the right elements based on natural language descriptions.
  4. Self-maintaining tests -- When the UI changes, vibe tests adapt automatically because they match on intent rather than specific DOM structures.
  5. Accessibility-first interaction -- Vibe testing naturally aligns with accessibility because it interacts with elements the way a user would describe them, using labels and roles.
  6. Gradual formalization -- Start with loose natural language tests for exploration, then progressively add more specific assertions as the application stabilizes.
  7. Transparent execution -- Every interpreted step must be logged with the actual selector used, the action taken, and the assertion applied so failures are debuggable.

Project Structure

vibe-tests/
  specs/
    auth/
      login.vibe.md
      registration.vibe.md
      password-reset.vibe.md
    checkout/
      add-to-cart.vibe.md
      payment.vibe.md
      order-confirmation.vibe.md
    dashboard/
      navigation.vibe.md
      settings.vibe.md
  engine/
    interpreter.ts
    action-resolver.ts
    assertion-resolver.ts
    element-finder.ts
    step-executor.ts
  runners/
    vibe-runner.ts
    parallel-runner.ts
    ci-runner.ts
  reporters/
    execution-log.ts
    step-trace.ts
    failure-analyzer.ts
  config/
    vibe-config.ts
    ai-config.ts
  fixtures/
    test-data.ts
    environment.ts

Vibe Test Specification Format

<!-- specs/auth/login.vibe.md -->
# Login Flow

## Setup
- Navigate to the login page
- Ensure the page has loaded completely

## Test: Successful login with valid credentials
1. Enter "[email protected]" in the email field
2. Enter "SecurePassword123" in the password field
3. Click the login button
4. Verify you are redirected to the dashboard
5. Verify the welcome message contains "testuser"

## Test: Failed login with wrong password
1. Enter "[email protected]" in the email field
2. Enter "WrongPassword" in the password field
3. Click the login button
4. Verify an error message appears
5. Verify the error mentions invalid credentials
6. Verify you remain on the login page

## Test: Login form validation
1. Click the login button without filling any fields
2. Verify the email field shows a validation error
3. Enter "not-an-email" in the email field
4. Verify the email field shows an invalid format error
5. Clear the email field
6. Enter "[email protected]" in the email field
7. Verify the email validation error disappears

## Cleanup
- If logged in, click the logout button

Vibe Test Interpreter

// vibe-tests/engine/interpreter.ts
import Anthropic from '@anthropic-ai/sdk';

export interface VibeStep {
  raw: string;
  action: 'navigate' | 'click' | 'fill' | 'select' | 'assert' | 'wait' | 'clear' | 'hover' | 'scroll';
  target?: string;
  value?: string;
  assertion?: {
    type: 'visible' | 'text' | 'url' | 'hidden' | 'enabled' | 'disabled' | 'contains';
    expected?: string;
  };
  confidence: number;
}

export interface VibeTest {
  name: string;
  setup: string[];
  steps: string[];
  cleanup: string[];
}

export class VibeInterpreter {
  private client: Anthropic;

  constructor() {
    this.client = new Anthropic();
  }

  parseSpecFile(content: string): VibeTest[] {
    const tests: VibeTest[] = [];
    const sections = content.split(/^## /m).filter(Boolean);

    let setup: string[] = [];
    let cleanup: string[] = [];

    for (const section of sections) {
      const lines = section.trim().split('\n');
      const heading = lines[0].trim();

      if (heading.toLowerCase().startsWith('setup')) {
        setup = this.extractSteps(lines.slice(1));
      } else if (heading.toLowerCase().startsWith('cleanup')) {
        cleanup = this.extractSteps(lines.slice(1));
      } else if (heading.toLowerCase().startsWith('test:')) {
        const testName = heading.replace(/^test:\s*/i, '').trim();
        const steps = this.extractSteps(lines.slice(1));
        tests.push({ name: testName, setup: [...setup], steps, cleanup: [...cleanup] });
      }
    }

    return tests;
  }

  async interpretStep(step: string, pageContext?: string): Promise<Vib
Полный SKILL.md на GitHub

Установить Vibe Testing Methodology в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Vibe Testing Methodology?

Natural language test automation methodology where tests are written as plain English instructions, leveraging AI agents to interpret intent, generate executable tests, and maintain test suites without traditional code-based selectors or assertions.

Как установить скилл Vibe Testing Methodology?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Vibe Testing Methodology запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Vibe Testing Methodology с