Skip to content

borghei/Claude-Skills / engineering/senior-qa

senior-qa

Verified

Testing for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E tests, configuring Jest, or improving test quality.

assets/sample_components/Button.tsx

View on GitHub
import React, { useState } from 'react';

interface ButtonProps {
  label: string;
  onClick: () => void;
  variant?: 'primary' | 'secondary';
  disabled?: boolean;
  count: number;
}

export function Button({ label, onClick, variant = 'primary', disabled = false, count }: ButtonProps) {
  const [pressed, setPressed] = useState(false);
  return (
    <button
      className={`btn btn-${variant}`}
      disabled={disabled}
      aria-pressed={pressed}
      onClick={() => {
        setPressed(!pressed);
        onClick();
      }}
    >
      {label} ({count})
    </button>
  );
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall