Create custom React hooks with proper cleanup, error handling, loading states, and TypeScript generics.
Create a custom React hook called use[HookName] for [purpose]. Requirements: - TypeScript with generic type parameters where appropriate - Return a typed tuple or object (not untyped array) - Include loading, error, and data states - Handle cleanup in useEffect return (abort controllers, unsubscribe) - Implement proper dependency arrays (no missing deps, no over-triggering) - Use useCallback for returned functions to prevent consumer re-renders - Use useRef for values that shouldn't trigger re-renders - Handle race conditions in async operations (stale closure prevention) - Support SSR (check typeof window !== 'undefined' if using browser APIs) - Add JSDoc with @example usage - Write companion test file using renderHook from @testing-library/react-hooks - Follow existing hook patterns in this codebase
Replace [HookName] and [purpose]. Example: use[Debounce] for [debouncing search input]. Cursor generates the hook, types, and tests.
Agent Library is a centralized collection of reusable AI agent skills, workflows, prompts, and specialized knowledge modules. Built for Claude Code, Codex, Cursor, and other AI coding agents with an efficient on-demand loading architecture.
An open-source collection of production-ready AI skills, prompts, templates, and workflows for Claude, ChatGPT, Gemini, Cursor, and other AI tools.
A collection of Skills (system prompts) for autonomous AI Agents and LLMs (Google Antigravity, Claude Code, GitHub Copilot, Codex, Cursor, AutoGPT, ChatGPT, Gemini).
许惟的 AI 工具合集 · A growing collection of practical AI tools & skills. First up: diagram-generator (one sentence → clean diagrams).
A curated collection of high-quality AI prompts for ChatGPT, Claude, Gemini, Cursor, and other AI assistants
A curated collection of ready-to-run automation prompts for real-world workflows.
Workflows from the Neura Market marketplace related to this Cursor resource