general_preferences_context.json•6.16 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-09-18T10:45:10.309433",
"applies_to_tools": [
"*"
],
"priority": "low",
"inheritance": "fallback_for_unspecified_tools"
},
"auto_store_triggers": {
"user_preferences": {
"tags": [
"preference",
"user-setting",
"personal"
],
"action": "store_with_metadata",
"patterns": [
"I prefer",
"I like to",
"always use",
"my preference is",
"I want",
"please always"
],
"confidence_threshold": 0.8
},
"workflow_patterns": {
"tags": [
"workflow",
"preference",
"process"
],
"action": "store_with_metadata",
"patterns": [
"my workflow",
"I usually",
"the way I work",
"my process is",
"I typically"
],
"confidence_threshold": 0.7
}
},
"auto_retrieve_triggers": {
"workflow_queries": {
"action": "search_and_suggest",
"patterns": [
"my usual workflow",
"how I typically",
"my process for"
],
"search_tags": [
"workflow",
"preference"
],
"confidence_threshold": 0.7
},
"preference_queries": {
"action": "search_and_suggest",
"patterns": [
"what's my preference",
"how do I usually",
"my default",
"my standard"
],
"search_tags": [
"preference",
"user-setting"
],
"confidence_threshold": 0.8
}
},
"session_initialization": {
"enabled": true,
"actions": {
"on_startup": [
{
"action": "search_memory",
"store_as": "user_preferences",
"parameters": {
"tags": [
"preference",
"user-setting"
],
"n_results": 10
}
},
{
"action": "notify",
"message": "General preferences loaded. Found {user_preferences.count} preferences."
}
]
}
}
}