Toolverse
All skills

middleware-gen

by openclaw

Generate Express middleware from plain English. Use when building API middleware.

Installation

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

Installation

Quick info

Author
openclaw
Category
Backend

About this skill

Generate Express middleware from plain English. Use when building API middleware.

How to use

  1. Upewnij się, że masz zainstalowany Node.js 18 lub nowszy oraz ustawioną zmienną środowiskową OPENAI_API_KEY z kluczem do API OpenAI.

  2. Otwórz terminal i uruchom narzędzie za pomocą npx – nie wymaga instalacji. Podstawowa składnia to npx ai-middleware "Twój opis", gdzie zamiast "Twój opis" wpisujesz, jakie middleware chcesz wygenerować.

  3. Spróbuj najpierw prostego przykładu: npx ai-middleware "rate limit 100 req/min per IP". Narzędzie wygeneruje kod middleware, który ogranicza liczbę żądań do 100 na minutę dla każdego adresu IP.

  4. Jeśli chcesz wygenerować kod w TypeScript, dodaj flagę -t na końcu komendy, na przykład npx ai-middleware "JWT auth with role-based access" -t. Możesz też określić nazwę pliku wyjściowego flagą -o, np. -o auth.ts.

  5. Skopiuj wygenerowany kod do swojego projektu Express. Pamiętaj o kolejności – middleware autentykacji powinno być umieszczone przed obsługą tras, a każde middleware powinno mieć jedną, jasno określoną funkcję.

  6. Przetestuj middleware przed wdrożeniem na produkcję, szczególnie jeśli obsługuje błędy – middleware, które się wysypią, mogą zablokować całą aplikację.

Related skills

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

youtube-transcribe-skill

by feiskyer

Extract subtitles/transcripts from a YouTube video URL and save as a local file. Use when you need to extract subtitles from a YouTube video.

Backend
24178

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218