windsurf-data-handling
Implement Windsurf PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for Windsurf integrations. Trigger with phrases like "windsurf data", "windsurf PII", "windsurf GDPR", "windsurf data retention", "windsurf privacy", "windsurf CCPA".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- windsurf-data-handling
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Implement Windsurf PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for Windsurf integrations. Trigger with phrases like "windsurf data", "windsurf PII", "windsurf GDPR", "windsurf data retention", "windsurf privacy", "windsurf CCPA".
- allowed-tools
- Read, Write, Edit
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Windsurf Data Handling
Overview
Control what code and data Windsurf (Codeium) Cascade AI can access in your workspace. Covers file exclusion patterns, sensitive content filtering, telemetry management, and workspace privacy configuration.
Prerequisites
- Windsurf IDE installed
- Understanding of Codeium data processing
- Repository with sensitive files identified
- Team agreement on AI data boundaries
Instructions
Step 1: Exclude Sensitive Files from AI Indexing
// .windsurf/settings.json - Privacy configuration
{
"codeium.indexing.excludePatterns": [
"**/.env*",
"**/credentials*",
"**/secrets/**",
"**/*.pem",
"**/*.key",
"**/*.p12",
"**/serviceAccountKey*",
"**/.aws/**",
"**/.gcloud/**",
"**/terraform.tfstate*",
"**/*.tfvars",
"**/vault-config*"
],
"codeium.indexing.maxFileSize": 524288, # 524288 = configured value
"codeium.enableTelemetry": false
}
Step 2: Create Workspace Ignore File
# .codeiumignore - Files Codeium/Windsurf will never process
# Similar to .gitignore syntax
# Secrets and credentials
.env
.env.*
credentials.json
serviceAccountKey.json
*.pem
*.key
*.p12
# Customer data
data/customers/**
exports/**
backups/**
# Sensitive configuration
config/production.json
config/secrets.yaml
# Large binary files (waste of indexing)
*.zip
*.tar.gz
*.sqlite
*.db
Step 3: Environment Variable Safety
// Prevent secrets from appearing in Cascade suggestions
// .windsurf/patterns.md
/**
* IMPORTANT: Environment Variable Patterns
*
* When Cascade suggests code with environment variables:
* - Always use process.env.VARIABLE_NAME, never hardcode values
* - For local development, use .env files (which are excluded from AI)
* - Never paste actual secret values into Cascade chat
*
* Safe pattern:
* ```
* const apiKey = process.env.API_KEY!;
* ```
*
* Unsafe pattern (never do this):
* ```
* const apiKey = "sk-abc123..."; // NEVER
* ```
*/
Step 4: Telemetry and Data Controls
// .windsurf/settings.json - Telemetry controls
{
"codeium.enableTelemetry": false,
"codeium.enableSnippetTelemetry": false,
"telemetry.telemetryLevel": "off",
"codeium.autocomplete": {
"enable": true,
"languages": {
"plaintext": false,
"markdown": false,
"json": false,
"yaml": false,
"env": false
}
}
}
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Secret in AI suggestion | Secret was in indexed file | Add to .codeiumignore |
| Large file slowing AI | Binary indexed | Add file extension to exclude patterns |
| Telemetry sending data | Not disabled | Set enableTelemetry: false |
| AI suggests hardcoded key | No workspace rules | Add patterns about env vars to rules file |
Examples
Quick Privacy Audit
# Check what files Windsurf would index
find . -type f \
-not -path '*/node_modules/*' \
-not -path '*/.git/*' \
-name '*.env*' -o -name '*.key' -o -name '*.pem' \
| head -20
# All found files should be in .codeiumignore
Resources
Output
- Configuration files or code changes applied to the project
- Validation report confirming correct implementation
- Summary of changes made and their rationale
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.