/windsurf-pack:windsurf-security-basicsfrom windsurf-pack
Applies Windsurf security best practices for workspace isolation, data privacy, and secret protection. Covers .codeiumignore setup, telemetry disabling, autocomplete exclusions, and security-focused .windsurfrules.
Ships in windsurf-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Security best practices for Windsurf AI IDE: controlling what code Cascade can see, preventing secrets from leaking into AI context, managing telemetry, and configuring workspace isolation for regulated environments.
Create .codeiumignore at project root (gitignore syntax):
# .codeiumignore — files Codeium/Windsurf will NEVER index or read
# Secrets and credentials
.env
.env.*
.env.local
credentials.json
serviceAccountKey.json
*.pem
*.key
*.p12
*.pfx
# Cloud provider configs
.aws/
.gcloud/
.azure/
# Infrastructure secrets
terraform.tfstate
terraform.tfstate.backup
*.tfvars
vault-config.*
# Customer data
data/customers/
exports/
backups/
*.sql.gz
Default exclusions (automatic): Files in .gitignore, node_modules/, hidden directories (. prefix).
Enterprise: Place a global .codeiumignore at ~/.codeium/ for org-wide exclusions.
// Windsurf Settings (settings.json)
{
"codeium.enableTelemetry": false,
"codeium.enableSnippetTelemetry": false,
"telemetry.telemetryLevel": "off"
}
Disable Supercomplete for file types that commonly contain secrets:
{
"codeium.autocomplete.languages": {
"plaintext": false,
"env": false,
"dotenv": false,
"properties": false,
"ini": false
}
}
<!-- .windsurfrules - security section -->
## Security Requirements
- Never suggest hardcoded secrets, API keys, or passwords in code
- Always use environment variables via process.env for secrets
- Never log PII (email, phone, SSN, credit card numbers)
- Use parameterized queries for all database operations
- Never suggest wildcard CORS origins in production code
- All user input must be validated before processing
- Use constant-time comparison for secret/token validation
#!/bin/bash
set -euo pipefail
echo "=== Windsurf Security Audit ==="
# Check if .codeiumignore exists
if [ ! -f .codeiumignore ]; then
echo "WARNING: No .codeiumignore — AI can index all non-gitignored files"
fi
# Check for secrets that AI could index
echo "--- Potentially exposed secret files ---"
find . -type f \
-not -path '*/node_modules/*' \
-not -path '*/.git/*' \
\( -name '*.env*' -o -name '*.key' -o -name '*.pem' \
-o -name 'credentials*' -o -name '*secret*' \
-o -name '*.tfvars' -o -name 'serviceAccount*' \) \
2>/dev/null | head -20
# Check if found files are in .codeiumignore
echo "--- Verify all above files are excluded ---"
# What Windsurf/Codeium processes:
data_processing:
indexed_locally:
- File contents for Supercomplete context
- Codebase structure for Cascade awareness
stored: "Local machine only (not sent to cloud for indexing)"
sent_to_cloud:
- Cascade prompts (for AI model inference)
- Code snippets around cursor (for Supercomplete)
stored: "Zero-data retention for paid plans"
never_processed:
- Files in .codeiumignore
- Files in .gitignore (by default)
- Files in node_modules/
compliance:
- SOC 2 Type II certified
- FedRAMP High accredited
- HIPAA BAA available (Enterprise)
- Zero-data retention on paid plans
.codeiumignore exists with secret file patterns.env files excluded from AI indexing.windsurfrules includes security coding standards| Security Issue | Detection | Mitigation |
|---|---|---|
| Secret in Cascade suggestion | Appears in AI output | Add source file to .codeiumignore, rotate secret |
| AI indexing .env files | Check .codeiumignore | Add .env* pattern |
| Telemetry sending code | Policy audit | Disable all telemetry settings |
| Dev pastes secret in chat | Cannot detect after the fact | Training + enterprise data retention = 0 |
# ~/.codeium/.codeiumignore (global, all workspaces)
*.pem
*.key
*.p12
*.env*
**/secrets/**
**/credentials/**
terraform.tfstate*
*.tfvars
# Verify critical files are excluded
echo ".env" | while read f; do
[ -f "$f" ] && grep -q "\.env" .codeiumignore 2>/dev/null && echo "$f: PROTECTED" || echo "$f: EXPOSED"
done
For production deployment, see windsurf-prod-checklist.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
windsurf, codeium, ai-security, workspace-isolation, secret-protection
30 skills in this plugin
/windsurf-advanced-troubleshootingAdvanced Windsurf debugging for hard-to-diagnose IDE, Cascade, and indexing issues.
Use when standard troubleshooting fails, Cascade produces consistently wrong output,
or investigating deep configuration problems.
Trigger with phrases like "windsurf deep debug", "windsurf mystery error",
"windsurf impossible to fix", "cascade keeps failing", "windsurf advanced debug".
/windsurf-architecture-variantsChoose workspace architectures for different project scales in Windsurf.
Use when deciding how to structure Windsurf workspaces for monorepos,
multi-service setups, or polyglot codebases.
Trigger with phrases like "windsurf workspace strategy", "windsurf monorepo",
"windsurf project layout", "windsurf multi-service", "windsurf workspace size".
/windsurf-ci-integrationIntegrate Windsurf Cascade workflows into CI/CD pipelines and team automation.
Use when automating Cascade tasks in GitHub Actions, enforcing AI code quality gates,
or setting up Windsurf config validation in CI.
Trigger with phrases like "windsurf CI", "windsurf GitHub Actions",
"windsurf automation", "cascade CI", "windsurf pipeline".
/windsurf-common-errorsDiagnose and fix common Windsurf IDE and Cascade errors.
Use when Cascade stops working, Supercomplete fails, indexing hangs,
or encountering Windsurf-specific issues.
Trigger with phrases like "windsurf error", "fix windsurf",
"windsurf not working", "cascade broken", "windsurf slow".
/windsurf-core-workflow-aExecute Windsurf's primary workflow: Cascade Write mode for multi-file agentic coding.
Use when building features, refactoring across files, or performing complex code tasks.
Trigger with phrases like "windsurf cascade write", "windsurf agentic coding",
"windsurf multi-file edit", "cascade write mode", "windsurf build feature".
/windsurf-core-workflow-bExecute Windsurf's secondary workflow: Workflows, Memories, and reusable automation.
Use when creating reusable Cascade workflows, managing persistent memories,
or automating repetitive development tasks.
Trigger with phrases like "windsurf workflow", "windsurf automation",
"windsurf memories", "cascade workflow", "windsurf slash command".
npx claudepluginhub flight505/skill-forge --plugin windsurf-packOther plugins' skills for the same job