Cursor rule
.cursor/rules/default.mdc[object Object]
Cursor rules
Quality
94/100
Scores the file, not the repository.Length
255 words
5 headings · 0 code blocksRepository
30
— · pushed 395 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Agent Guidelines for OpenSearch Project78## Build/Test Commands9- **Run dev**: `bun run dev` (watches src/index.ts)10- **Run CLI**: `bun run cli` (starts interactive CLI)11- **Run tests**: `bun test` (runs all tests)12- **Run single test**: `bun test <test-file>` (e.g., `bun test test/generate-query.test.ts`)13- **Format/Lint**: Use Biome via `bunx biome format .` and `bunx biome lint .`1415## Code Style & Conventions16- **Runtime**: Use Bun instead of Node.js/npm/pnpm (see .cursor/rules)17- **Formatting**: Tabs for indentation, single quotes for strings (biome.json)18- **Imports**: Organize imports enabled, use path aliases `@/*` for src, `@baml-client` for BAML19- **Types**: Strict TypeScript, interfaces for data structures, explicit return types20- **Naming**: PascalCase for React components/BAML functions, camelCase for variables/functions21- **Files**: .tsx for React components, .ts for utilities, .baml for BAML functions2223## BAML Integration24- **Source files**: Only edit files in `baml_src/` directory (*.baml files)25- **Generated code**: `baml_client/` is auto-generated from `baml_src/` - never edit directly26- **Functions**: Import and call via `import { b } from '@baml-client'; await b.SomeFunction(...)`27- **Types**: All classes/enums exported from `@baml-client` (e.g., `import { SearchResult } from '@baml-client'`)28- **Naming**: BAML functions use PascalCase (e.g., `GenerateQuery`, `Reflect`)29- **Prompts**: Include `{{ ctx.output_format }}` and `{{ _.role("user") }}` for user inputs30- **Schema**: Prefer enums over confidence numbers, use classes for structured outputs3132## Error Handling & Testing33- Use Bun's built-in test framework with `import { test, expect } from "bun:test"`34- Async/await for BAML function calls and API interactions35- Type-safe error handling with proper TypeScript types
Also in K-Mistele/opensearch
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| K-Mistele/opensearchAGENTS.md · 30 | AGENTS.md | buildtestlint-formatstyle+2 | 94/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/baml.mdc · 30 | Cursor rules | style | 44/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/opensearch-project-structure.mdc · 30 | Cursor rules | setupteststylearch+4 | 81/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc · 30 | Cursor rules | setupteststyle | 73/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago |
