All authors

Claude Skills by JanSzewczyk
github.com/JanSzewczyk65 skills1 installs207 views
- Component Test RulesRules for testing React components with React Testing Library, Vitest and MSW, and for deciding what to test at which layer: rendering, queries, user-event, jest-dom, waitFor, act warnings, mocking the network, flat test files, custom hooks, coverage. Use when writing, fixing or reviewing a *.test.tsx component test or planning a test strategy. Background knowledge that agents preload; not a command.Votes: 0GitHub stars: 2
- Create StoriesCreates or updates the Storybook file for a React component — a CSF 4 factory `.stories.tsx` with one story per visual state and browser-run `.test()` interaction tests; on an existing file it fills missing states and fixes convention violations instead of starting over. Works with no arguments — picks the components changed in this session or the diff. Use for any test of a React component (`.tsx`) — "test this component", "add tests for Button.tsx", "write stories", "add interaction tests",...Votes: 0GitHub stars: 2
- Storybook RulesRules for writing Storybook stories and interaction tests for React components in CSF 4 factories: how to query, awaiting interactions, when to use .test() or play, portals, mocks, naming and file setup. Use when writing, fixing or reviewing a .stories.tsx file. Background knowledge that agents preload; not a command.Votes: 0GitHub stars: 2
- Builder FactoryUse this skill to create typed test data builders with mimicry-js and Faker for any TypeScript interface or type. Invoke whenever the user asks to generate mock data, create test fixtures, build factory functions, produce seed data, or construct fake objects for unit tests, Storybook stories, or E2E scenarios. Also use when migrating from test-data-bot or Fishery to mimicry-js, or when the user mentions builders, factories, or typed mock/fake/test/seed data generation — even if they describe ...Votes: 0GitHub stars: 2
- Builder Rules TsRules for building test data in TypeScript with mimicry-js builders: explicit values for everything a test asserts on, .one() and .many() with overrides and traits, generator placement, fixed() for functions, resetting state. Use when creating or using a builder in a test or story. Background knowledge that agents preload; not a command.Votes: 0GitHub stars: 2
- HumanizeWrites, edits or reviews prose so it is short, consistent and does not read as AI-generated, with no padding, stock phrases, staged contrasts or chatbot residue, and the writer's voice kept. Use whenever the user asks for text meant for people (a message, email, Slack or Teams reply, post, announcement, update, bio, note), asks to shorten, tighten, humanize or change the tone of a draft, or asks whether something sounds like AI, even if they never mention style: 'write a message to the team',...Votes: 0GitHub stars: 2
- Run Python TaskRun one already-planned task in a Python (FastAPI) project through developer, tester and reviewer, with no planning and no questions, and report back to whoever handed it over. Use when a task orchestrator such as the SDD implement flow hands over a task brief or a task id, when `skill:python:run-python-task` is configured as the implementation flow, or the user says 'run this task', 'implement task T2 with tests and review', 'wykonaj to zadanie z briefu'. The plan, the branch and the pull re...Votes: 0GitHub stars: 2
- Nextjs RulesTeam conventions for Next.js App Router apps: Server Components and the client boundary, page and layout data loading, feature folders and layer order, interrupts, error boundaries and route handler errors. Use when writing, fixing or reviewing a page, layout, route handler or service. Server actions, logging and env have their own skills. Background knowledge that agents preload; not a command.Votes: 0GitHub stars: 2
- Run Nextjs TaskRun one already-planned task in a Next.js (App Router, React, TypeScript) project through developer, tester and reviewer, with no planning and no questions, and report back to whoever handed it over. Use when a task orchestrator such as the SDD implement flow hands over a task brief or a task id, when `skill:nextjs:run-nextjs-task` is configured as the implementation flow, or the user says 'run this task', 'implement task T2 with tests and review', 'wykonaj to zadanie z briefu' for a Next.js ...Votes: 0GitHub stars: 2
- Setup App InfrastructureSets up shared infrastructure in a Next.js App Router project: T3 Env validation, LogLayer logging, ServiceError plus retry helper, server action result types, cookie toasts. Use when adding or checking this infrastructure in a Next.js project; NOT for the rules (nextjs-rules) or feature scaffolding (generate-feature-package).Votes: 0GitHub stars: 2
- React RulesTeam conventions for React components and hooks (React 19): namespace import, ternary conditional rendering, stable list keys, no manual memoization under the React Compiler and its four exceptions, hooks at the top level, one context per file, hooks folder, a stories file for every component. Use when writing, fixing or reviewing a React component or hook. Background knowledge that agents preload; not a command.Votes: 0GitHub stars: 2
- Typescript RulesTeam conventions for TypeScript code: named functions with the function keyword, inline arrow callbacks, Array<T>, method signatures in object types, closed string sets as const objects instead of enums, unknown instead of any, the ~/ import alias, JSDoc comments that explain only a non-obvious why, and error handling: [error, data] Result tuples, the ServiceError template, API client functions, retries and timeouts. Use when writing, fixing or reviewing TypeScript or TSX. Background knowledg...Votes: 0GitHub stars: 2
- Env RulesTeam conventions for environment variables in a Next.js app with T3 Env: separate server and client schemas, NEXT_PUBLIC_ only for public values, coerced booleans and numbers, defaults, no process.env outside the env module, env in tests. Use when adding, reading or reviewing an environment variable or the env module. Background knowledge that agents preload or load on demand; not a command.Votes: 0GitHub stars: 2
- Loglayer RulesTeam conventions for logging in a TypeScript app through LogLayer and Pino: one module logger per file, constant messages with values in withMetadata, errors through withError and logged once, levels, redaction, the request id, stdout in production. Use when adding, fixing or reviewing logging, or wiring the logger. Background knowledge that agents preload or load on demand; not a command.Votes: 0GitHub stars: 2
- Nextjs Server Action RulesTeam conventions for Next.js server actions: auth and permission checks inside every action, Zod validation with coerced FormData, the shared ActionResponse<T> result, revalidation, business logic kept in services, and how forms call actions. Use when writing, fixing or reviewing a server action or a form that submits to one. Background knowledge that agents preload or load on demand; not a command.Votes: 0GitHub stars: 2