CodeGuard: Files in documentation not working inside Cursor / not recognized as valid rule files #73
Replies: 2 comments 1 reply
-
|
Have you read the documentation or followed this? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Parveen-Birthaliya , Specifically, the following: Direct link here. InstallationOption 1: Download Pre-built Rules (Recommended)
!!! tip "Repository Level Installation" !!! note "Hidden Files on macOS/Linux" Claude Code PluginClaude Code uses a plugin system instead of manual file installation: # Add the Project CodeGuard marketplace
/plugin marketplace add project-codeguard/rules
# Install the security plugin
/plugin install codeguard-security@project-codeguardThe plugin will be automatically loaded and apply security rules to your code. See the Claude Code Plugin documentation for more details. Option 2: Build from SourceIf you want to customize or contribute to the rules: # Clone the repository
git clone https://github.com/project-codeguard/rules.git
cd rules
# Install dependencies (requires Python 3.11+)
uv sync
# Validate rules
uv run python src/validate_unified_rules.py sources/
# Convert rules (default: core rules only)
uv run python src/convert_to_ide_formats.py
# Or include all rules (core + owasp supplementary)
uv run python src/convert_to_ide_formats.py --source core owasp
# Copy the generated rules to your project
cp -r dist/.cursor/ /path/to/your/project/
cp -r dist/.windsurf/ /path/to/your/project/
cp -r dist/.github/ /path/to/your/project/Verify InstallationAfter installation, your project structure should include: |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi @santosomar,
I’m integrating CodeGuard rules into Cursor and also exploring adding support in Antigravity.
I followed all instructions from the README and documentation, including copying the example rule files into my project. After testing them, I noticed an issue:
Issue Observed
The files shown in the documentation appear to be only documentation examples, not actual rule files that Cursor recognizes.
They don’t contain the required fields such as:
Because of that, Cursor treats them as non-functional docs, not executable rules.
Beta Was this translation helpful? Give feedback.
All reactions