Free for developers

Cursor safe-AI rules

Ready-made project rules so IDE assistants help you ship without requesting raw secrets. Copy into .cursorrules or your Cursor rules settings.

Project rules

# OmniShield — safe AI coding rules for Cursor
# Copy into .cursorrules or project rules. Adjust to your stack.

## Secret handling
- Never ask the user to paste raw API keys, passwords, tokens, private keys, or database connection strings.
- If credentials are needed for examples, use placeholders like [api_key_openai], [db_password], process.env.SECRET_NAME.
- Prefer environment variables, secret managers, and .env.example over hard-coded secrets.
- When reviewing code, flag hard-coded secrets and suggest safe refactors without requesting the real values.

## Logging & debugging
- Do not recommend logging Authorization headers, cookies, or full DSNs.
- Redact tokens in sample logs (Bearer [auth_token], sk-***, etc.).
- When asking for error context, request redacted stack traces and config *shapes*, not secret values.

## AI / LLM integrations
- Treat model providers as untrusted for secrets: never embed production keys in prompts or committed notebooks.
- Suggest server-side key usage for OpenAI/Anthropic/etc., not client-exposed keys.
- If the user pastes something that looks like a secret, warn them and continue with a placeholder.

## Pull requests & docs
- Keep README/examples on fake credentials only.
- Remind to rotate any credential that may have been exposed in chat or git history.

## Response style
- Be practical and security-conscious without being alarmist.
- Ask clarifying questions that do not require secret material.

How to use in Cursor

  • Paste into a project .cursorrules file, or
  • Add under Cursor Settings → Rules for AI / project rules
  • Commit the file so the whole team gets the same guardrails

Pair with the secret scrubber for chat prompts, and OmniShield for automatic masking on ChatGPT, Claude, and other AI sites.

IDE rules + browser masking

Rules guide the assistant. OmniShield stops secrets at send time in the browser.

Add OmniShield — Free

Also see safe prompt templates and the full tools list.