{
"version": "1.0",
"last_updated": "",
"project": {
"name": "Your Project",
"version": "1.0.0",
"language": "javascript",
"framework": "none",
"type": "application"
},
"ai_behavior": {
"code_generation": {
"style": {
"prefer": [
"async/await over callbacks",
"const over let",
"descriptive variable names",
"single responsibility functions"
],
"avoid": [
"magic numbers",
"nested callbacks",
"hard-coded values",
"complex conditionals"
]
},
"error_handling": {
"prefer": [
"try/catch for async operations",
"custom error messages",
"meaningful error states"
],
"avoid": [
"silent errors",
"empty catch blocks",
"generic error messages"
]
},
"performance": {
"prefer": [
"lazy loading",
"debouncing and throttling for events",
"memoization for expensive calculations"
],
"avoid": [
"blocking synchronous code",
"large inline scripts",
"unnecessary re-renders"
]
}
},
"testing": {
"required": true,
"frameworks": ["jest"],
"coverage_threshold": 80,
"include": [
"unit tests for new functions",
"integration tests for critical workflows",
"edge case scenarios"
]
},
"security": {
"sensitive_patterns": [
"API_KEY",
"SECRET",
"PASSWORD",
"CREDENTIAL"
],
"protected_files": [
"config/*.json",
".env*"
],
"sanitize_input": true,
"validate_user_data": true,
"avoid_eval": true
},
"accessibility": {
"standards": ["WCAG 2.1"],
"require_alt_text": true,
"focus_indicators": true,
"aria_labels": true
}
},
"communication": {
"style": "step-by-step",
"level": "beginner-friendly",
"on_error": [
"log error details",
"suggest alternative solutions",
"ask for clarification if unsure"
],
"on_success": [
"summarize changes",
"provide context for future improvements",
"highlight any potential optimizations"
],
"confirmations": {
"required_for": [
"major changes",
"file deletions",
"dependency updates",
"structural changes"
]
}
},
"response_format": {
"always": [
"show file paths",
"explain changes simply",
"highlight modified sections only",
"provide next steps"
],
"never": [
"create new files without permission",
"remove existing code without confirmation",
"use technical jargon without explanation",
"show entire files unless requested"
]
}
}
golang
java
javascript
jest
less
nestjs
python
shell
First Time Repository
A lightweight tool that maintains a focused view of your project structure and environment. CursorFocus automatically tracks your project files, functions, and environment variables, updating every 60 seconds to keep you informed of changes.
Python
Languages:
Python: 98.9KB
Shell: 4.2KB
Created: 12/26/2024
Updated: 1/23/2025
All Repositories (1)
A lightweight tool that maintains a focused view of your project structure and environment. CursorFocus automatically tracks your project files, functions, and environment variables, updating every 60 seconds to keep you informed of changes.