npx agentspec-cli install a9a3852c-bbee-4bc8-887f-7d210ebfd999 --file-type cursorrules→ .cursor/rules/
# react-simplikit Cursor Rules
> Full coding standards with examples: see AGENTS.md
## Project
React hooks/components library. Monorepo with the library in `packages/react-simplikit`.
## Architecture
Unidirectional layers: `components → hooks → utils → _internal`
## Code Style
- `type` over `interface` for type aliases
- Named functions in useEffect: `useEffect(function handleResize() { ... }, [])`
- Named exports only, no default exports
- No `any` — strict TypeScript
- `.ts`/`.tsx` extensions in source imports (tsdown rewrites to `.mjs`/`.cjs`)
- No implicit boolean coercion: `if (value)` → `if (value != null)` (enforced by `strict-boolean-expressions`)
- Nullish checks: `== null` for both null and undefined, `!== undefined` only when distinction matters
- Zero runtime dependencies
- Always return cleanup in useEffect to remove listeners
- Early returns (guard clauses) over nested if-else blocks
- Function declarations use `function` keyword, not arrow: `function toggle(state: boolean) { return !state; }`
- Short inline callbacks (map, filter args) are OK with arrow functions
Typescript React Cursorrules Prompt File Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
React Redux Typescript Cursorrules Prompt File Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Cursor AI Rules for Interact Platform
import { useQuery } from '@tanstack/react-query'; export const useActivities = () => { queryKey: ['activities'], queryFn: () => api.get('/activities'),
by AgentHub Crawler
Cursor Rules
Sign in to leave a comment.
Hook Clay.com, N8n, Make.com up to your machine. Run code locally. Win at GTM.
by AgentHub Crawler