general_preferences.json•4.17 kB
{
"tool_category": "general_preferences",
"description": "Cross-tool preferences and general context rules",
"auto_convert": false,
"global_preferences": {
"date_format": "YYYY-MM-DD",
"time_format": "24h",
"timezone": "UTC",
"language": "en-US",
"encoding": "utf-8"
},
"code_style": {
"indent_style": "spaces",
"indent_size": 2,
"max_line_length": 100,
"trailing_whitespace": "remove",
"final_newline": true,
"quote_style": "double"
},
"documentation": {
"format": "markdown",
"include_examples": true,
"include_troubleshooting": true,
"auto_generate_toc": true,
"link_validation": true
},
"security": {
"no_hardcoded_secrets": true,
"use_environment_variables": true,
"enable_2fa_where_possible": true,
"regular_key_rotation": true,
"principle_of_least_privilege": true
},
"collaboration": {
"code_review_required": true,
"pair_programming_encouraged": true,
"knowledge_sharing": true,
"documentation_updates": "mandatory_with_code_changes"
},
"development_workflow": {
"version_control": "git",
"branching_strategy": "feature_branches",
"testing_required": true,
"ci_cd_enabled": true,
"automated_deployment": "staging_first"
},
"common_patterns": {
"error_handling": {
"log_errors": true,
"graceful_degradation": true,
"user_friendly_messages": true,
"include_context": true
},
"logging": {
"levels": ["DEBUG", "INFO", "WARN", "ERROR"],
"structured_logging": true,
"include_timestamps": true,
"include_request_ids": true
},
"configuration": {
"environment_based": true,
"externalized": true,
"validated_on_startup": true,
"hot_reload_when_possible": true
}
},
"quality_standards": {
"code_coverage": {
"minimum": 80,
"target": 90,
"exclude_patterns": ["**/test/**", "**/mock/**"]
},
"performance": {
"response_time_target": "< 200ms",
"uptime_target": "99.9%",
"load_testing": "required_before_production"
},
"accessibility": {
"wcag_compliance": "AA",
"keyboard_navigation": true,
"screen_reader_compatible": true
}
},
"naming_conventions": {
"files": {
"lowercase": true,
"use_hyphens": true,
"descriptive": true,
"avoid": ["spaces", "special_chars", "abbreviations"]
},
"variables": {
"camelCase": "javascript_typescript",
"snake_case": "python_rust",
"descriptive": true,
"avoid_abbreviations": true
},
"functions": {
"verb_based": true,
"descriptive": true,
"single_responsibility": true
}
},
"communication": {
"commit_messages": {
"clear_and_descriptive": true,
"explain_why": true,
"reference_tickets": true
},
"pr_descriptions": {
"context_provided": true,
"testing_notes": true,
"breaking_changes_highlighted": true
},
"documentation": {
"keep_updated": true,
"include_examples": true,
"audience_appropriate": true
}
},
"environment_specific": {
"development": {
"verbose_logging": true,
"debug_mode": true,
"auto_reload": true,
"mock_external_services": true
},
"staging": {
"production_like": true,
"performance_monitoring": true,
"end_to_end_testing": true
},
"production": {
"minimal_logging": false,
"monitoring_enabled": true,
"alerting_configured": true,
"backup_strategy": true
}
},
"tools_integration": {
"preferred_tools": {
"ide": "vscode",
"terminal": "cross_platform_compatible",
"version_control": "git",
"ci_cd": "github_actions",
"monitoring": "application_insights"
},
"extensions": {
"linting": true,
"formatting": true,
"testing": true,
"debugging": true
}
},
"metadata": {
"version": "1.0.0",
"last_updated": "2025-01-08",
"applies_to_tools": [
"*"
],
"priority": "low",
"inheritance": "fallback_for_unspecified_tools"
}
}