Toolverse
All skills

antfu

by antfu

Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
antfu
Category
Security
Views
29

About this skill

Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.

How to use

  1. Zainstaluj narzędzie @antfu/ni, które upraszcza zarządzanie zależnościami niezależnie od menedżera pakietów (npm, yarn, pnpm). Uruchom ni, aby zainstalować zależności projektu, lub ni -D pakiet, aby dodać paczkę jako devDependency.

  2. Organizuj kod zgodnie z zasadą single responsibility — każdy plik powinien mieć jasny, skoncentrowany cel. Gdy plik rośnie, podziel go na mniejsze moduły. Wydziel typy do pliku types.ts lub folderu types/*.ts, a stałe do constants.ts.

  3. Pisz kod isomorphic, który działa w Node.js, przeglądarce i workers. Gdy kod jest specyficzny dla środowiska, oznacz to komentarzem na górze pliku: // @env node lub // @env browser.

  4. W TypeScript zawsze deklaruj jawnie typy zwracane przez funkcje i wydzielaj złożone typy do dedykowanych deklaracji type lub interface zamiast definiować je inline.

  5. Dodawaj komentarze, które wyjaśniają "dlaczego", a nie "jak" — kod powinien być samowyjaśniający się. Unikaj zbędnych komentarzy opisujących oczywiste operacje.

  6. Testuj z Vitest — umieszczaj testy w tym samym katalogu co kod (foo.tsfoo.test.ts), używaj API describe/it, a dla złożonych wyników stosuj toMatchSnapshot lub toMatchFileSnapshot z jawną ścieżką.

Related skills

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

google-analytics

by davila7

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

Security
1260

ui-audit

by openclaw

AI skill for automated UI audits. Evaluate interfaces against proven UX principles for visual hierarchy, accessibility, cognitive load, navigation, and more. Based on Making UX Decisions by Tommy Geoco.

Security
1223

qmd

by tobi

Search personal markdown knowledge bases, notes, meeting transcripts, and documentation using QMD - a local hybrid search engine. Combines BM25 keyword search, vector semantic search, and LLM re-ranking. Use when users ask to search notes, find documents, look up information in

Security
1951

payload

by payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

Security
50171

gmail-manager

by jeffvincent

Manage Gmail - send, read, search emails, manage labels and drafts. Use when user wants to interact with their Gmail account for email operations.

Security
17128