تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

test-sentinel

بواسطة guifav

Coding Agents & IDEs
476التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Writes and runs tests (unit, integration, E2E), performs linting, and auto-fixes failures.

الوصف

ما الذي تفعله هذه المهارة

A QA agent for Next.js App Router projects. Writes unit, integration, and E2E tests using Vitest and Playwright, runs them, and autonomously fixes both test bugs and source code bugs it uncovers. Covers linting, type checking, and coverage reporting as part of the same pass.

It closes the loop between writing tests and fixing failures without requiring the developer to manually context-switch between test output, source code, and the linter.

متى تستخدمها

  • Adding Vitest unit tests to an untested utility function
  • Writing Playwright E2E tests for a login and redirect flow
  • Running the full test suite before opening a pull request
  • Auto-fixing lint and Prettier errors before a commit
  • Generating integration tests for a Supabase API route with mocked client

مثال على سير العمل

الإدخال

User asks: Add tests for the formatCurrency utility in src/lib/utils.ts

الوكيل
  1. 1

    Read src/lib/utils.ts to understand the function signature and edge cases

  2. 2

    Check src/lib/__tests__/ for existing test patterns and utilities

  3. 3

    Build a test plan covering happy path, zero, negative values, and invalid currency codes

  4. 4

    Write colocated Vitest tests in src/lib/__tests__/utils.test.ts

  5. 5

    Run npx vitest run src/lib/__tests__/utils.test.ts, analyze any failures, fix source or test code, then run npx vitest run --coverage to confirm no regression

الإخراج

Passing test file with full edge case coverage and an updated coverage report

التثبيت

clawhub install guifav/test-sentinel

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط