RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/K-Mistele/opensearch

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 blocks

Repository

30

— · pushed 395 days ago

Last changed

3 days ago

First indexed 3 days ago.
K-Mistele/opensearch/.cursor/rules/default.mdcRawGitHub
1---
2description:
3globs:
4alwaysApply: true
5---
6# Agent Guidelines for OpenSearch Project
7 
8## Build/Test Commands
9- **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 .`
14 
15## Code Style & Conventions
16- **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 BAML
19- **Types**: Strict TypeScript, interfaces for data structures, explicit return types
20- **Naming**: PascalCase for React components/BAML functions, camelCase for variables/functions
21- **Files**: .tsx for React components, .ts for utilities, .baml for BAML functions
22 
23## BAML Integration
24- **Source files**: Only edit files in `baml_src/` directory (*.baml files)
25- **Generated code**: `baml_client/` is auto-generated from `baml_src/` - never edit directly
26- **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 inputs
30- **Schema**: Prefer enums over confidence numbers, use classes for structured outputs
31 
32## Error Handling & Testing
33- Use Bun's built-in test framework with `import { test, expect } from "bun:test"`
34- Async/await for BAML function calls and API interactions
35- Type-safe error handling with proper TypeScript types

Commands it names

  • bun run dev
  • bun run cli
  • bun test
  • bun test <test-file>
  • bun test test/generate-query.test.ts
  • bunx biome format .
  • bunx biome lint .

Sections

  • Agent Guidelines for OpenSearch Project
  • Build/Test Commands
  • Code Style & Conventions
  • BAML Integration
  • Error Handling & Testing

What it covers

buildtestlint-formatcode-styledo-notagent-behaviour

Stack — with the evidence

typescript

(1.00)

bun

(0.85)

react

(0.70)

javascript

(0.60)

biome

(0.60)

Glob targeting

  • [object Object]

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
K-Mistele
Language
—
License
—
Archived
no

All configs in this repo

Also in K-Mistele/opensearch

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
K-Mistele/opensearchAGENTS.md · 30AGENTS.mdtypescriptbun+3buildtestlint-formatstyle+294/1003 days ago
K-Mistele/opensearch.cursor/rules/baml.mdc · 30Cursor rulestypescriptreact+3style44/1003 days ago
K-Mistele/opensearch.cursor/rules/opensearch-project-structure.mdc · 30Cursor rulestypescriptbun+3setupteststylearch+481/1003 days ago
K-Mistele/opensearch.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc · 30Cursor rulestypescriptbun+4setupteststyle73/1003 days ago
Diff against AGENTS.md Diff against .cursor/rules/baml.mdc Diff against .cursor/rules/opensearch-project-structure.mdc Diff against .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack