RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/ClickHouse/ai-sdk-cpp

Cursor rule

.cursor/rules/cpp.mdc

[object Object]

Cursor rules

Quality

34/100

Scores the file, not the repository.

Length

182 words

0 headings · 0 code blocks

Repository

180

— · pushed 95 days ago

Last changed

3 days ago

First indexed 3 days ago.
ClickHouse/ai-sdk-cpp/.cursor/rules/cpp.mdcRawGitHub
1---
2description:
3globs:
4alwaysApply: true
5---
6 
7 
81. prefer one class per file.
92. use Google C++ coding styles.
103. make classes immutable as much as possible.
114. follow guidelines of effective modern c++.
12 
13 
14Name methods (casing, etc) like "is_valid", "stream_text"
15 
16Lean on auto. Let the compiler deduce obvious types and keep code DRY.
17 
18Use nullptr, never 0 or NULL. A unique keyword prevents overload ambiguities and makes pointer intent explicit.
19 
20Express ownership with smart-pointers (std::unique_ptr, std::shared_ptr, std::weak_ptr). Raw pointers say nothing about lifetime.
21 
22Move more, copy less. Pass/return by value when cheap-to-move; use std::move to convey transfer of resources.
23 
24Mark intent with keywords (const, constexpr, noexcept, override, delete). They document guarantees and enable optimisations.
25 
26Prefer brace initialisation. It prevents narrowing, works with std::initializer_list, and unifies syntax.
27 
28Capture carefully in lambdas; avoid default capture ([=], [&]). Explicit captures beat accidental lifetime bugs.
29 
30Think tasks, not threads. Launch work with std::async, std::future, or std::packaged_task; join or detach thoughtfully.
31 
32Use std::atomic for inter-thread data, not volatile. Atomics give ordering guarantees; volatile is for hardware registers.
33 
34Emplace instead of insert / push_back. Construct elements in place to avoid extra moves or copies.

What it covers

code-style

Stack — with the evidence

cpp

(1.00)

github-actions

(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
ClickHouse
Language
—
License
—
Archived
no

All configs in this repo

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
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4kCursor rulestypescriptnode+14teststylearchtypes+296/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126Cursor rulesgobiome+4buildlint-formatstylearch+396/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