Set up Cursor IDE integration for clarc — creates .cursor/rules/ files for all installed languages and generates .cursorrules from common rules.
From clarcnpx claudepluginhub marvinrichter/clarc --plugin clarcThis command installs clarc language rules into your project for use with Cursor IDE.
.cursor/rules/<lang>-*.md files into your project's .cursor/rules/.cursorrules (global rules) into the project rootRun this in the root of your project (where you want Cursor to pick up the rules):
# Detect languages automatically and install matching rules
/cursor-setup
# Or install specific languages manually:
./install.sh --target cursor typescript python go
The setup detects the following languages by file pattern:
| Extension | Language |
|---|---|
.ts, .tsx, .js, .mjs | typescript |
.py | python |
.go | go |
.java | java |
.swift | swift |
.rs | rust |
.cpp, .cc, .h, .hpp | cpp |
.c | c |
.cs, .razor | csharp |
.kt, .kts | kotlin |
.scala, .sc | scala |
.php | php |
.rb, .rake | ruby |
.ex, .exs | elixir |
.R, .Rmd, .qmd | r |
.sh, .bash, .zsh | bash |
.sql | sql |
Detect project languages — run find . -type f \( -name "*.ts" -o -name "*.py" -o -name "*.go" \) -not -path "*/node_modules/*" -not -path "*/.git/*" | head -100 and determine which language sets are needed
Check clarc is available — verify install.sh exists in the current directory or a parent directory
Run install for each detected language:
./install.sh --target cursor <lang1> <lang2> ...
Example: ./install.sh --target cursor typescript python go
Verify output — confirm .cursor/rules/ contains the expected files and .cursorrules is present
Report — show a summary of installed language rule sets
your-project/
.cursor/
rules/
common-coding-style.md
common-testing.md
common-patterns.md
common-security.md
common-hooks.md
common-git-workflow.md
common-performance.md
common-agents.md
typescript-coding-style.md
typescript-testing.md
...
.cursorrules # Global Cursor config
.cursor/rules/*.md automatically for files matching the paths: frontmatter.cursorrules provides global project context to Cursor.cursor/ and .cursorrules to your .gitignore or commit them for team sharing/doctor — verify clarc installation health/quickstart — run interactive onboarding