RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/contentstack/contentstack-ios

Cursor rule

.cursor/rules/ios.mdc

Objective-C standards and Contentstack iOS SDK layout for CDA sources

Cursor rules

Quality

52/100

Scores the file, not the repository.

Length

268 words

7 headings · 0 code blocks

Repository

3

— · pushed 5 days ago

Last changed

3 days ago

First indexed 3 days ago.
contentstack/contentstack-ios/.cursor/rules/ios.mdcRawGitHub
1---
2description: Objective-C standards and Contentstack iOS SDK layout for CDA sources
3globs:
4 - "Contentstack/**/*.{h,m}"
5 - "ContentstackInternal/**/*.{h,m}"
6 - "ThirdPartyExtension/**/*.{h,m}"
7---
8 
9# iOS SDK Standards – Contentstack iOS CDA SDK
10 
11Apply these conventions when editing Objective-C code in the SDK (not test targets).
12 
13## Language and runtime
14 
15- **Objective-C** with Apple’s modern conventions: use `NS_ASSUME_NONNULL_BEGIN` / `END` (or explicit `nullable` / `nonnull`) on public headers where the project already does.
16- **Swift consumers** import the module; avoid breaking Swift names without good reason (Objective-C names map to Swift automatically).
17 
18## Layout and modules
19 
20- **Public API** lives under **`Contentstack/`** (headers shipped via `public_header_files` in the podspec).
21- **Internal implementation** lives under **`ContentstackInternal/`** (HTTP, URLs, constants, extensions). Do not expose internal headers as public API without an explicit decision.
22- **Vendored / shared code** under **`ThirdPartyExtension/`** (e.g. `CSURLSessionManager`, markdown, ISO8601). Keep changes minimal and consistent with upstream vendoring policy.
23 
24## Naming
25 
26- **Classes:** Prefix or unprefixed names as established in this SDK (`Stack`, `Config`, `CSIOCoreHTTPNetworking`, etc.); do not introduce conflicting generic names.
27- **Methods:** Objective-C style, descriptive selectors; match existing patterns for “fetch”, “callback”, “withConfig:”, etc.
28- **Categories:** Use project prefixes on category methods to avoid collisions (`cs_` or existing project convention).
29- **Test classes:** See **testing.mdc** (`*Test` XCTest case naming).
30 
31## Headers
32 
33- Public declarations belong in **`Contentstack/*.h`**; import umbrella patterns consistent with **`Contentstack.h`**.
34- Use forward declarations (`@class`) in headers when possible to reduce compile coupling.
35 
36## Documentation
37 
38- Public API should retain or extend the existing block-comment style in headers (parameters, return value, Obj-C / Swift snippets where already used).
39 
40## General
41 
42- Prefer explicit error handling over silent failure when adding new async or network paths.
43- Match existing memory management (ARC); avoid introducing non-ARC patterns.
44 

Sections

  • iOS SDK Standards – Contentstack iOS CDA SDK
  • Language and runtime
  • Layout and modules
  • Naming
  • Headers
  • Documentation
  • General

What it covers

code-stylearchitecturedocs

Stack — with the evidence

swift

(0.60)

github-actions

(0.60)

Glob targeting

  • Contentstack/**/*.{h,m}
  • ContentstackInternal/**/*.{h,m}
  • ThirdPartyExtension/**/*.{h,m}

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

All configs in this repo

Also in contentstack/contentstack-ios

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
contentstack/contentstack-ios.cursor/rules/code-review.mdc · 3Cursor rulesswiftgithub-actionstestgitsecuritydependencies+148/1003 days ago
contentstack/contentstack-ios.cursor/rules/contentstack-ios-cda.mdc · 3Cursor rulesswiftgithub-actionsstyledo-not55/1003 days ago
contentstack/contentstack-ios.cursor/rules/testing.mdc · 3Cursor rulesswiftgithub-actionsteststylearchtesting-strategy+163/1003 days ago
contentstack/contentstack-iosAGENTS.md · 3AGENTS.mdswiftgithub-actionsdo-notagent-behaviour63/1003 days ago
Diff against .cursor/rules/code-review.mdc Diff against .cursor/rules/contentstack-ios-cda.mdc Diff against .cursor/rules/testing.mdc Diff against AGENTS.md

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