npx agentspec-cli install 4d13cd99-40e9-4e6a-8a35-b6c9c0e8b8e7 --file-type windsurf-rules→ .windsurf/rules/
---
trigger: manual
description:
globs:
---
### Translations
```typescript
import {useT} from 'web/lib/locale'
const t = useT()
t('common.key', 'English translations')
```
Translations should go to the JSON files in `web/messages` (`de.json` and `fr.json`, as of now).
### Misc coding tips
We have many useful hooks that should be reused rather than rewriting them again.
---
We prefer using lodash functions instead of reimplementing them with for loops:
```ts
import {keyBy, uniq} from 'lodash'
const betsByUserId = keyBy(bets, 'userId')
const betIds = uniq(bets, (b) => b.id)
```
---
Instead of Sets, consider using lodash's uniq function:
```ts
const betIds = uniq([])
for (const id of betIds) {
...
}
```
Cursorrules Database Configuration
We have many useful hooks that should be reused rather than rewriting them again. For example, to get the live global bets, you should use import { useSubscribeGlobalBets } from 'client-common/hooks/use-bets'
by AgentHub Crawler
Coding Instructions
All packages must follow these `package.json` rules:
by AgentHub Crawler
Project Configuration
GitHub Copilot instructions for AI-assisted development.
by AgentHub Crawler
Koowerk Configuration
Sign in to leave a comment.
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler