mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
refactor: Complete V4 Beta framework restructuring
Major reorganization of SuperClaude V4 Beta directories: - Moved SuperClaude-Lite content to Framework-Hooks/ - Renamed SuperClaude/ directories to Framework/ for clarity - Created separate Framework-Lite/ for lightweight variant - Consolidated hooks system under Framework-Hooks/ This restructuring aligns with the V4 Beta architecture: - Framework/: Full framework with all features - Framework-Lite/: Lightweight variant - Framework-Hooks/: Hooks system implementation Part of SuperClaude V4 Beta development roadmap. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
314
Framework-Hooks/config/compression.yaml
Normal file
314
Framework-Hooks/config/compression.yaml
Normal file
@@ -0,0 +1,314 @@
|
||||
# SuperClaude-Lite Compression Configuration
|
||||
# Token efficiency strategies and selective compression patterns
|
||||
|
||||
# Compression Levels and Strategies
|
||||
compression_levels:
|
||||
minimal: # 0-40% compression
|
||||
symbol_systems: false
|
||||
abbreviation_systems: false
|
||||
structural_optimization: false
|
||||
quality_threshold: 0.98
|
||||
use_cases: ["user_content", "low_resource_usage", "high_quality_required"]
|
||||
|
||||
efficient: # 40-70% compression
|
||||
symbol_systems: true
|
||||
abbreviation_systems: false
|
||||
structural_optimization: true
|
||||
quality_threshold: 0.95
|
||||
use_cases: ["moderate_resource_usage", "balanced_efficiency"]
|
||||
|
||||
compressed: # 70-85% compression
|
||||
symbol_systems: true
|
||||
abbreviation_systems: true
|
||||
structural_optimization: true
|
||||
quality_threshold: 0.90
|
||||
use_cases: ["high_resource_usage", "user_requests_brevity"]
|
||||
|
||||
critical: # 85-95% compression
|
||||
symbol_systems: true
|
||||
abbreviation_systems: true
|
||||
structural_optimization: true
|
||||
advanced_techniques: true
|
||||
quality_threshold: 0.85
|
||||
use_cases: ["resource_constraints", "emergency_compression"]
|
||||
|
||||
emergency: # 95%+ compression
|
||||
symbol_systems: true
|
||||
abbreviation_systems: true
|
||||
structural_optimization: true
|
||||
advanced_techniques: true
|
||||
aggressive_optimization: true
|
||||
quality_threshold: 0.80
|
||||
use_cases: ["critical_resource_constraints", "emergency_situations"]
|
||||
|
||||
# Selective Compression Patterns
|
||||
selective_compression:
|
||||
content_classification:
|
||||
framework_exclusions:
|
||||
patterns:
|
||||
- "/SuperClaude/SuperClaude/"
|
||||
- "~/.claude/"
|
||||
- ".claude/"
|
||||
- "SuperClaude/*"
|
||||
- "CLAUDE.md"
|
||||
- "FLAGS.md"
|
||||
- "PRINCIPLES.md"
|
||||
- "ORCHESTRATOR.md"
|
||||
- "MCP_*.md"
|
||||
- "MODE_*.md"
|
||||
- "SESSION_LIFECYCLE.md"
|
||||
compression_level: "preserve" # 0% compression
|
||||
reasoning: "Framework content must be preserved for proper operation"
|
||||
|
||||
user_content_preservation:
|
||||
patterns:
|
||||
- "project_files"
|
||||
- "user_documentation"
|
||||
- "source_code"
|
||||
- "configuration_files"
|
||||
- "custom_content"
|
||||
compression_level: "minimal" # Light compression only
|
||||
reasoning: "User content requires high fidelity preservation"
|
||||
|
||||
session_data_optimization:
|
||||
patterns:
|
||||
- "session_metadata"
|
||||
- "checkpoint_data"
|
||||
- "cache_content"
|
||||
- "working_artifacts"
|
||||
- "analysis_results"
|
||||
compression_level: "efficient" # 40-70% compression
|
||||
reasoning: "Session data can be compressed while maintaining utility"
|
||||
|
||||
compressible_content:
|
||||
patterns:
|
||||
- "framework_repetition"
|
||||
- "historical_session_data"
|
||||
- "cached_analysis_results"
|
||||
- "temporary_working_data"
|
||||
compression_level: "compressed" # 70-85% compression
|
||||
reasoning: "Highly compressible content with acceptable quality trade-offs"
|
||||
|
||||
# Symbol Systems Configuration
|
||||
symbol_systems:
|
||||
core_logic_flow:
|
||||
enabled: true
|
||||
mappings:
|
||||
"leads to": "→"
|
||||
"implies": "→"
|
||||
"transforms to": "⇒"
|
||||
"converts to": "⇒"
|
||||
"rollback": "←"
|
||||
"reverse": "←"
|
||||
"bidirectional": "⇄"
|
||||
"sync": "⇄"
|
||||
"and": "&"
|
||||
"combine": "&"
|
||||
"separator": "|"
|
||||
"or": "|"
|
||||
"define": ":"
|
||||
"specify": ":"
|
||||
"sequence": "»"
|
||||
"then": "»"
|
||||
"therefore": "∴"
|
||||
"because": "∵"
|
||||
"equivalent": "≡"
|
||||
"approximately": "≈"
|
||||
"not equal": "≠"
|
||||
|
||||
status_progress:
|
||||
enabled: true
|
||||
mappings:
|
||||
"completed": "✅"
|
||||
"passed": "✅"
|
||||
"failed": "❌"
|
||||
"error": "❌"
|
||||
"warning": "⚠️"
|
||||
"information": "ℹ️"
|
||||
"in progress": "🔄"
|
||||
"processing": "🔄"
|
||||
"waiting": "⏳"
|
||||
"pending": "⏳"
|
||||
"critical": "🚨"
|
||||
"urgent": "🚨"
|
||||
"target": "🎯"
|
||||
"goal": "🎯"
|
||||
"metrics": "📊"
|
||||
"data": "📊"
|
||||
"insight": "💡"
|
||||
"learning": "💡"
|
||||
|
||||
technical_domains:
|
||||
enabled: true
|
||||
mappings:
|
||||
"performance": "⚡"
|
||||
"optimization": "⚡"
|
||||
"analysis": "🔍"
|
||||
"investigation": "🔍"
|
||||
"configuration": "🔧"
|
||||
"setup": "🔧"
|
||||
"security": "🛡️"
|
||||
"protection": "🛡️"
|
||||
"deployment": "📦"
|
||||
"package": "📦"
|
||||
"design": "🎨"
|
||||
"frontend": "🎨"
|
||||
"network": "🌐"
|
||||
"connectivity": "🌐"
|
||||
"mobile": "📱"
|
||||
"responsive": "📱"
|
||||
"architecture": "🏗️"
|
||||
"system structure": "🏗️"
|
||||
"components": "🧩"
|
||||
"modular": "🧩"
|
||||
|
||||
# Abbreviation Systems Configuration
|
||||
abbreviation_systems:
|
||||
system_architecture:
|
||||
enabled: true
|
||||
mappings:
|
||||
"configuration": "cfg"
|
||||
"settings": "cfg"
|
||||
"implementation": "impl"
|
||||
"code structure": "impl"
|
||||
"architecture": "arch"
|
||||
"system design": "arch"
|
||||
"performance": "perf"
|
||||
"optimization": "perf"
|
||||
"operations": "ops"
|
||||
"deployment": "ops"
|
||||
"environment": "env"
|
||||
"runtime context": "env"
|
||||
|
||||
development_process:
|
||||
enabled: true
|
||||
mappings:
|
||||
"requirements": "req"
|
||||
"dependencies": "deps"
|
||||
"packages": "deps"
|
||||
"validation": "val"
|
||||
"verification": "val"
|
||||
"testing": "test"
|
||||
"quality assurance": "test"
|
||||
"documentation": "docs"
|
||||
"guides": "docs"
|
||||
"standards": "std"
|
||||
"conventions": "std"
|
||||
|
||||
quality_analysis:
|
||||
enabled: true
|
||||
mappings:
|
||||
"quality": "qual"
|
||||
"maintainability": "qual"
|
||||
"security": "sec"
|
||||
"safety measures": "sec"
|
||||
"error": "err"
|
||||
"exception handling": "err"
|
||||
"recovery": "rec"
|
||||
"resilience": "rec"
|
||||
"severity": "sev"
|
||||
"priority level": "sev"
|
||||
"optimization": "opt"
|
||||
"improvement": "opt"
|
||||
|
||||
# Structural Optimization Techniques
|
||||
structural_optimization:
|
||||
whitespace_optimization:
|
||||
enabled: true
|
||||
remove_redundant_spaces: true
|
||||
normalize_line_breaks: true
|
||||
preserve_code_formatting: true
|
||||
|
||||
phrase_simplification:
|
||||
enabled: true
|
||||
common_phrase_replacements:
|
||||
"in order to": "to"
|
||||
"it is important to note that": "note:"
|
||||
"please be aware that": "note:"
|
||||
"it should be noted that": "note:"
|
||||
"for the purpose of": "for"
|
||||
"with regard to": "regarding"
|
||||
"in relation to": "regarding"
|
||||
|
||||
redundancy_removal:
|
||||
enabled: true
|
||||
remove_articles: ["the", "a", "an"] # Only in high compression levels
|
||||
remove_filler_words: ["very", "really", "quite", "rather"]
|
||||
combine_repeated_concepts: true
|
||||
|
||||
# Quality Preservation Standards
|
||||
quality_preservation:
|
||||
minimum_thresholds:
|
||||
information_preservation: 0.95
|
||||
semantic_accuracy: 0.95
|
||||
technical_correctness: 0.98
|
||||
user_content_fidelity: 0.99
|
||||
|
||||
validation_criteria:
|
||||
key_concept_retention: true
|
||||
technical_term_preservation: true
|
||||
code_example_accuracy: true
|
||||
reference_link_preservation: true
|
||||
|
||||
quality_monitoring:
|
||||
real_time_validation: true
|
||||
effectiveness_tracking: true
|
||||
user_feedback_integration: true
|
||||
adaptive_threshold_adjustment: true
|
||||
|
||||
# Adaptive Compression Strategy
|
||||
adaptive_compression:
|
||||
context_awareness:
|
||||
user_expertise_factor: true
|
||||
project_complexity_factor: true
|
||||
domain_specific_optimization: true
|
||||
|
||||
learning_integration:
|
||||
effectiveness_feedback: true
|
||||
user_preference_learning: true
|
||||
pattern_optimization: true
|
||||
|
||||
dynamic_adjustment:
|
||||
resource_pressure_response: true
|
||||
quality_threshold_adaptation: true
|
||||
performance_optimization: true
|
||||
|
||||
# Performance Targets
|
||||
performance_targets:
|
||||
processing_time_ms: 150
|
||||
compression_ratio_target: 0.50 # 50% compression
|
||||
quality_preservation_target: 0.95
|
||||
token_efficiency_gain: 0.40 # 40% token reduction
|
||||
|
||||
# Cache Configuration
|
||||
caching:
|
||||
compression_results:
|
||||
enabled: true
|
||||
cache_duration_minutes: 30
|
||||
max_cache_size_mb: 50
|
||||
invalidation_strategy: "content_change_detection"
|
||||
|
||||
symbol_mappings:
|
||||
enabled: true
|
||||
preload_common_patterns: true
|
||||
learning_based_optimization: true
|
||||
|
||||
pattern_recognition:
|
||||
enabled: true
|
||||
adaptive_pattern_learning: true
|
||||
user_specific_patterns: true
|
||||
|
||||
# Integration with Other Systems
|
||||
integration:
|
||||
mcp_servers:
|
||||
morphllm: "coordinate_compression_with_editing"
|
||||
serena: "memory_compression_strategies"
|
||||
|
||||
modes:
|
||||
token_efficiency: "primary_compression_mode"
|
||||
task_management: "session_data_compression"
|
||||
|
||||
learning_engine:
|
||||
effectiveness_tracking: true
|
||||
pattern_learning: true
|
||||
adaptation_feedback: true
|
||||
70
Framework-Hooks/config/logging.yaml
Normal file
70
Framework-Hooks/config/logging.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
# SuperClaude-Lite Logging Configuration
|
||||
# Simple logging configuration for hook execution monitoring
|
||||
|
||||
# Core Logging Settings
|
||||
logging:
|
||||
enabled: true
|
||||
level: "INFO" # ERROR, WARNING, INFO, DEBUG
|
||||
|
||||
# File Settings
|
||||
file_settings:
|
||||
log_directory: "cache/logs"
|
||||
retention_days: 30
|
||||
rotation_strategy: "daily"
|
||||
|
||||
# Hook Logging Settings
|
||||
hook_logging:
|
||||
log_lifecycle: true # Log hook start/end events
|
||||
log_decisions: true # Log decision points
|
||||
log_errors: true # Log error events
|
||||
log_timing: true # Include timing information
|
||||
|
||||
# Performance Settings
|
||||
performance:
|
||||
max_overhead_ms: 1 # Maximum acceptable logging overhead
|
||||
async_logging: false # Keep simple for now
|
||||
|
||||
# Privacy Settings
|
||||
privacy:
|
||||
sanitize_user_content: true
|
||||
exclude_sensitive_data: true
|
||||
anonymize_session_ids: false # Keep for correlation
|
||||
|
||||
# Hook-Specific Configuration
|
||||
hook_configuration:
|
||||
pre_tool_use:
|
||||
enabled: true
|
||||
log_tool_selection: true
|
||||
log_input_validation: true
|
||||
|
||||
post_tool_use:
|
||||
enabled: true
|
||||
log_output_processing: true
|
||||
log_integration_success: true
|
||||
|
||||
session_start:
|
||||
enabled: true
|
||||
log_initialization: true
|
||||
log_configuration_loading: true
|
||||
|
||||
pre_compact:
|
||||
enabled: true
|
||||
log_compression_decisions: true
|
||||
|
||||
notification:
|
||||
enabled: true
|
||||
log_notification_handling: true
|
||||
|
||||
stop:
|
||||
enabled: true
|
||||
log_cleanup_operations: true
|
||||
|
||||
subagent_stop:
|
||||
enabled: true
|
||||
log_subagent_cleanup: true
|
||||
|
||||
# Development Settings
|
||||
development:
|
||||
verbose_errors: true
|
||||
include_stack_traces: false # Keep logs clean
|
||||
debug_mode: false
|
||||
367
Framework-Hooks/config/modes.yaml
Normal file
367
Framework-Hooks/config/modes.yaml
Normal file
@@ -0,0 +1,367 @@
|
||||
# SuperClaude-Lite Modes Configuration
|
||||
# Mode detection patterns and behavioral configurations
|
||||
|
||||
# Mode Detection Patterns
|
||||
mode_detection:
|
||||
brainstorming:
|
||||
description: "Interactive requirements discovery and exploration"
|
||||
activation_type: "automatic"
|
||||
confidence_threshold: 0.7
|
||||
|
||||
trigger_patterns:
|
||||
vague_requests:
|
||||
- "i want to build"
|
||||
- "thinking about"
|
||||
- "not sure"
|
||||
- "maybe we could"
|
||||
- "what if we"
|
||||
- "considering"
|
||||
|
||||
exploration_keywords:
|
||||
- "brainstorm"
|
||||
- "explore"
|
||||
- "discuss"
|
||||
- "figure out"
|
||||
- "work through"
|
||||
- "think through"
|
||||
|
||||
uncertainty_indicators:
|
||||
- "maybe"
|
||||
- "possibly"
|
||||
- "perhaps"
|
||||
- "could we"
|
||||
- "would it be possible"
|
||||
- "wondering if"
|
||||
|
||||
project_initiation:
|
||||
- "new project"
|
||||
- "startup idea"
|
||||
- "feature concept"
|
||||
- "app idea"
|
||||
- "building something"
|
||||
|
||||
behavioral_settings:
|
||||
dialogue_style: "collaborative_non_presumptive"
|
||||
discovery_depth: "adaptive"
|
||||
context_retention: "cross_session"
|
||||
handoff_automation: true
|
||||
|
||||
integration:
|
||||
command_trigger: "/sc:brainstorm"
|
||||
mcp_servers: ["sequential", "context7"]
|
||||
quality_gates: ["requirements_clarity", "brief_completeness"]
|
||||
|
||||
task_management:
|
||||
description: "Multi-layer task orchestration with delegation and wave systems"
|
||||
activation_type: "automatic"
|
||||
confidence_threshold: 0.8
|
||||
|
||||
trigger_patterns:
|
||||
multi_step_operations:
|
||||
- "build"
|
||||
- "implement"
|
||||
- "create"
|
||||
- "develop"
|
||||
- "set up"
|
||||
- "establish"
|
||||
|
||||
scope_indicators:
|
||||
- "system"
|
||||
- "feature"
|
||||
- "comprehensive"
|
||||
- "complete"
|
||||
- "entire"
|
||||
- "full"
|
||||
|
||||
complexity_indicators:
|
||||
- "complex"
|
||||
- "multiple"
|
||||
- "several"
|
||||
- "many"
|
||||
- "various"
|
||||
- "different"
|
||||
|
||||
auto_activation_thresholds:
|
||||
file_count: 3
|
||||
directory_count: 2
|
||||
complexity_score: 0.4
|
||||
operation_types: 2
|
||||
|
||||
delegation_strategies:
|
||||
files: "individual_file_analysis"
|
||||
folders: "directory_level_analysis"
|
||||
auto: "intelligent_auto_detection"
|
||||
|
||||
wave_orchestration:
|
||||
enabled: true
|
||||
strategies: ["progressive", "systematic", "adaptive", "enterprise"]
|
||||
|
||||
behavioral_settings:
|
||||
coordination_mode: "intelligent"
|
||||
parallel_optimization: true
|
||||
learning_integration: true
|
||||
analytics_tracking: true
|
||||
|
||||
token_efficiency:
|
||||
description: "Intelligent token optimization with adaptive compression"
|
||||
activation_type: "automatic"
|
||||
confidence_threshold: 0.75
|
||||
|
||||
trigger_patterns:
|
||||
resource_constraints:
|
||||
- "context usage >75%"
|
||||
- "large-scale operations"
|
||||
- "resource constraints"
|
||||
- "memory pressure"
|
||||
|
||||
user_requests:
|
||||
- "brief"
|
||||
- "concise"
|
||||
- "compressed"
|
||||
- "short"
|
||||
- "efficient"
|
||||
- "minimal"
|
||||
|
||||
efficiency_needs:
|
||||
- "token optimization"
|
||||
- "resource optimization"
|
||||
- "efficiency"
|
||||
- "performance"
|
||||
|
||||
compression_levels:
|
||||
minimal: "0-40%"
|
||||
efficient: "40-70%"
|
||||
compressed: "70-85%"
|
||||
critical: "85-95%"
|
||||
emergency: "95%+"
|
||||
|
||||
behavioral_settings:
|
||||
symbol_systems: true
|
||||
abbreviation_systems: true
|
||||
selective_compression: true
|
||||
quality_preservation: 0.95
|
||||
|
||||
introspection:
|
||||
description: "Meta-cognitive analysis and framework troubleshooting"
|
||||
activation_type: "automatic"
|
||||
confidence_threshold: 0.6
|
||||
|
||||
trigger_patterns:
|
||||
self_analysis:
|
||||
- "analyze reasoning"
|
||||
- "examine decision"
|
||||
- "reflect on"
|
||||
- "thinking process"
|
||||
- "decision logic"
|
||||
|
||||
problem_solving:
|
||||
- "complex problem"
|
||||
- "multi-step"
|
||||
- "meta-cognitive"
|
||||
- "systematic thinking"
|
||||
|
||||
error_recovery:
|
||||
- "outcomes don't match"
|
||||
- "errors occur"
|
||||
- "unexpected results"
|
||||
- "troubleshoot"
|
||||
|
||||
framework_discussion:
|
||||
- "SuperClaude"
|
||||
- "framework"
|
||||
- "meta-conversation"
|
||||
- "system analysis"
|
||||
|
||||
behavioral_settings:
|
||||
analysis_depth: "meta_cognitive"
|
||||
transparency_level: "high"
|
||||
pattern_recognition: "continuous"
|
||||
learning_integration: "active"
|
||||
|
||||
# Mode Coordination Patterns
|
||||
mode_coordination:
|
||||
concurrent_modes:
|
||||
allowed_combinations:
|
||||
- ["brainstorming", "token_efficiency"]
|
||||
- ["task_management", "token_efficiency"]
|
||||
- ["introspection", "token_efficiency"]
|
||||
- ["task_management", "introspection"]
|
||||
|
||||
coordination_strategies:
|
||||
brainstorming_efficiency: "compress_non_dialogue_content"
|
||||
task_management_efficiency: "compress_session_metadata"
|
||||
introspection_efficiency: "selective_analysis_compression"
|
||||
|
||||
mode_transitions:
|
||||
brainstorming_to_task_management:
|
||||
trigger: "requirements_clarified"
|
||||
handoff_data: ["brief", "requirements", "constraints"]
|
||||
|
||||
task_management_to_introspection:
|
||||
trigger: "complex_issues_encountered"
|
||||
handoff_data: ["task_context", "performance_metrics", "issues"]
|
||||
|
||||
any_to_token_efficiency:
|
||||
trigger: "resource_pressure"
|
||||
activation_priority: "immediate"
|
||||
|
||||
# Performance Profiles
|
||||
performance_profiles:
|
||||
lightweight:
|
||||
target_response_time_ms: 100
|
||||
memory_usage_mb: 25
|
||||
cpu_utilization_percent: 20
|
||||
token_optimization: "standard"
|
||||
|
||||
standard:
|
||||
target_response_time_ms: 200
|
||||
memory_usage_mb: 50
|
||||
cpu_utilization_percent: 40
|
||||
token_optimization: "balanced"
|
||||
|
||||
intensive:
|
||||
target_response_time_ms: 500
|
||||
memory_usage_mb: 100
|
||||
cpu_utilization_percent: 70
|
||||
token_optimization: "aggressive"
|
||||
|
||||
# Mode-Specific Configurations
|
||||
mode_configurations:
|
||||
brainstorming:
|
||||
dialogue:
|
||||
max_rounds: 15
|
||||
convergence_threshold: 0.85
|
||||
context_preservation: "full"
|
||||
|
||||
brief_generation:
|
||||
min_requirements: 3
|
||||
include_context: true
|
||||
validation_criteria: ["clarity", "completeness", "actionability"]
|
||||
|
||||
integration:
|
||||
auto_handoff: true
|
||||
prd_agent: "brainstorm-PRD"
|
||||
command_coordination: "/sc:brainstorm"
|
||||
|
||||
task_management:
|
||||
delegation:
|
||||
default_strategy: "auto"
|
||||
concurrency_limit: 7
|
||||
performance_monitoring: true
|
||||
|
||||
wave_orchestration:
|
||||
auto_activation: true
|
||||
complexity_threshold: 0.4
|
||||
coordination_strategy: "adaptive"
|
||||
|
||||
analytics:
|
||||
real_time_tracking: true
|
||||
performance_metrics: true
|
||||
optimization_suggestions: true
|
||||
|
||||
token_efficiency:
|
||||
compression:
|
||||
adaptive_levels: true
|
||||
quality_thresholds: [0.98, 0.95, 0.90, 0.85, 0.80]
|
||||
symbol_systems: true
|
||||
abbreviation_systems: true
|
||||
|
||||
selective_compression:
|
||||
framework_exclusion: true
|
||||
user_content_preservation: true
|
||||
session_data_optimization: true
|
||||
|
||||
performance:
|
||||
processing_target_ms: 150
|
||||
efficiency_target: 0.50
|
||||
quality_preservation: 0.95
|
||||
|
||||
introspection:
|
||||
analysis:
|
||||
reasoning_depth: "comprehensive"
|
||||
pattern_detection: "continuous"
|
||||
bias_recognition: "active"
|
||||
|
||||
transparency:
|
||||
thinking_process_exposure: true
|
||||
decision_logic_analysis: true
|
||||
assumption_validation: true
|
||||
|
||||
learning:
|
||||
pattern_recognition: "continuous"
|
||||
effectiveness_tracking: true
|
||||
adaptation_suggestions: true
|
||||
|
||||
# Learning Integration
|
||||
learning_integration:
|
||||
mode_effectiveness_tracking:
|
||||
enabled: true
|
||||
metrics:
|
||||
- "activation_accuracy"
|
||||
- "user_satisfaction"
|
||||
- "task_completion_rates"
|
||||
- "performance_improvements"
|
||||
|
||||
adaptation_triggers:
|
||||
effectiveness_threshold: 0.7
|
||||
user_preference_weight: 0.8
|
||||
performance_impact_weight: 0.6
|
||||
|
||||
pattern_learning:
|
||||
user_specific: true
|
||||
project_specific: true
|
||||
context_aware: true
|
||||
cross_session: true
|
||||
|
||||
# Quality Gates
|
||||
quality_gates:
|
||||
mode_activation:
|
||||
pattern_confidence: 0.6
|
||||
context_appropriateness: 0.7
|
||||
performance_readiness: true
|
||||
|
||||
mode_coordination:
|
||||
conflict_resolution: "automatic"
|
||||
resource_allocation: "intelligent"
|
||||
performance_monitoring: "continuous"
|
||||
|
||||
mode_effectiveness:
|
||||
real_time_monitoring: true
|
||||
adaptation_triggers: true
|
||||
quality_preservation: true
|
||||
|
||||
# Error Handling
|
||||
error_handling:
|
||||
mode_activation_failures:
|
||||
fallback_strategy: "graceful_degradation"
|
||||
retry_mechanism: "adaptive"
|
||||
error_learning: true
|
||||
|
||||
coordination_conflicts:
|
||||
resolution_strategy: "priority_based"
|
||||
resource_arbitration: "intelligent"
|
||||
performance_preservation: true
|
||||
|
||||
performance_degradation:
|
||||
detection: "real_time"
|
||||
mitigation: "automatic"
|
||||
learning_integration: true
|
||||
|
||||
# Integration Points
|
||||
integration_points:
|
||||
commands:
|
||||
brainstorming: "/sc:brainstorm"
|
||||
task_management: ["/task", "/spawn", "/loop"]
|
||||
reflection: "/sc:reflect"
|
||||
|
||||
mcp_servers:
|
||||
brainstorming: ["sequential", "context7"]
|
||||
task_management: ["serena", "morphllm"]
|
||||
token_efficiency: ["morphllm"]
|
||||
introspection: ["sequential"]
|
||||
|
||||
hooks:
|
||||
session_start: "mode_initialization"
|
||||
pre_tool_use: "mode_coordination"
|
||||
post_tool_use: "mode_effectiveness_tracking"
|
||||
stop: "mode_analytics_consolidation"
|
||||
195
Framework-Hooks/config/orchestrator.yaml
Normal file
195
Framework-Hooks/config/orchestrator.yaml
Normal file
@@ -0,0 +1,195 @@
|
||||
# SuperClaude-Lite Orchestrator Configuration
|
||||
# MCP routing patterns and intelligent coordination strategies
|
||||
|
||||
# MCP Server Routing Patterns
|
||||
routing_patterns:
|
||||
ui_components:
|
||||
triggers: ["component", "button", "form", "modal", "dialog", "card", "input", "design", "frontend", "ui", "interface"]
|
||||
mcp_server: "magic"
|
||||
persona: "frontend-specialist"
|
||||
confidence_threshold: 0.8
|
||||
priority: "high"
|
||||
performance_profile: "standard"
|
||||
capabilities: ["ui_generation", "design_systems", "component_patterns"]
|
||||
|
||||
deep_analysis:
|
||||
triggers: ["analyze", "complex", "system-wide", "architecture", "debug", "troubleshoot", "investigate", "root cause"]
|
||||
mcp_server: "sequential"
|
||||
thinking_mode: "--think-hard"
|
||||
confidence_threshold: 0.75
|
||||
priority: "high"
|
||||
performance_profile: "intensive"
|
||||
capabilities: ["complex_reasoning", "systematic_analysis", "hypothesis_testing"]
|
||||
context_expansion: true
|
||||
|
||||
library_documentation:
|
||||
triggers: ["library", "framework", "package", "import", "dependency", "documentation", "docs", "api", "reference"]
|
||||
mcp_server: "context7"
|
||||
persona: "architect"
|
||||
confidence_threshold: 0.85
|
||||
priority: "medium"
|
||||
performance_profile: "standard"
|
||||
capabilities: ["documentation_access", "framework_patterns", "best_practices"]
|
||||
|
||||
testing_automation:
|
||||
triggers: ["test", "testing", "e2e", "end-to-end", "browser", "automation", "validation", "verify"]
|
||||
mcp_server: "playwright"
|
||||
confidence_threshold: 0.8
|
||||
priority: "medium"
|
||||
performance_profile: "intensive"
|
||||
capabilities: ["browser_automation", "testing_frameworks", "performance_testing"]
|
||||
|
||||
intelligent_editing:
|
||||
triggers: ["edit", "modify", "refactor", "update", "change", "fix", "improve"]
|
||||
mcp_server: "morphllm"
|
||||
confidence_threshold: 0.7
|
||||
priority: "medium"
|
||||
performance_profile: "lightweight"
|
||||
capabilities: ["pattern_application", "fast_apply", "intelligent_editing"]
|
||||
complexity_threshold: 0.6
|
||||
file_count_threshold: 10
|
||||
|
||||
semantic_analysis:
|
||||
triggers: ["semantic", "symbol", "reference", "find", "search", "navigate", "explore"]
|
||||
mcp_server: "serena"
|
||||
confidence_threshold: 0.8
|
||||
priority: "high"
|
||||
performance_profile: "standard"
|
||||
capabilities: ["semantic_understanding", "project_context", "memory_management"]
|
||||
|
||||
multi_file_operations:
|
||||
triggers: ["multiple files", "batch", "bulk", "project-wide", "codebase", "entire"]
|
||||
mcp_server: "serena"
|
||||
confidence_threshold: 0.9
|
||||
priority: "high"
|
||||
performance_profile: "intensive"
|
||||
capabilities: ["multi_file_coordination", "project_analysis"]
|
||||
|
||||
# Hybrid Intelligence Selection
|
||||
hybrid_intelligence:
|
||||
morphllm_vs_serena:
|
||||
decision_factors:
|
||||
- file_count
|
||||
- complexity_score
|
||||
- operation_type
|
||||
- symbol_operations_required
|
||||
- project_size
|
||||
|
||||
morphllm_criteria:
|
||||
file_count_max: 10
|
||||
complexity_max: 0.6
|
||||
preferred_operations: ["edit", "modify", "update", "pattern_application"]
|
||||
optimization_focus: "token_efficiency"
|
||||
|
||||
serena_criteria:
|
||||
file_count_min: 5
|
||||
complexity_min: 0.4
|
||||
preferred_operations: ["analyze", "refactor", "navigate", "symbol_operations"]
|
||||
optimization_focus: "semantic_understanding"
|
||||
|
||||
fallback_strategy:
|
||||
- try_primary_choice
|
||||
- fallback_to_alternative
|
||||
- use_native_tools
|
||||
|
||||
# Auto-Activation Rules
|
||||
auto_activation:
|
||||
complexity_thresholds:
|
||||
enable_sequential:
|
||||
complexity_score: 0.6
|
||||
file_count: 5
|
||||
operation_types: ["analyze", "debug", "complex"]
|
||||
|
||||
enable_delegation:
|
||||
file_count: 3
|
||||
directory_count: 2
|
||||
complexity_score: 0.4
|
||||
|
||||
enable_validation:
|
||||
is_production: true
|
||||
risk_level: ["high", "critical"]
|
||||
operation_types: ["deploy", "refactor", "delete"]
|
||||
|
||||
# Performance Optimization
|
||||
performance_optimization:
|
||||
parallel_execution:
|
||||
file_threshold: 3
|
||||
estimated_speedup_min: 1.4
|
||||
max_concurrency: 7
|
||||
|
||||
caching_strategy:
|
||||
enable_for_operations: ["documentation_lookup", "analysis_results", "pattern_matching"]
|
||||
cache_duration_minutes: 30
|
||||
max_cache_size_mb: 100
|
||||
|
||||
resource_management:
|
||||
memory_threshold_percent: 85
|
||||
token_threshold_percent: 75
|
||||
fallback_to_lightweight: true
|
||||
|
||||
# Quality Gates Integration
|
||||
quality_gates:
|
||||
validation_levels:
|
||||
basic: ["syntax_validation"]
|
||||
standard: ["syntax_validation", "type_analysis", "code_quality"]
|
||||
comprehensive: ["syntax_validation", "type_analysis", "code_quality", "security_assessment", "performance_analysis"]
|
||||
production: ["syntax_validation", "type_analysis", "code_quality", "security_assessment", "performance_analysis", "integration_testing", "deployment_validation"]
|
||||
|
||||
trigger_conditions:
|
||||
comprehensive:
|
||||
- is_production: true
|
||||
- complexity_score: ">0.7"
|
||||
- operation_types: ["refactor", "architecture"]
|
||||
|
||||
production:
|
||||
- is_production: true
|
||||
- operation_types: ["deploy", "release"]
|
||||
|
||||
# Fallback Strategies
|
||||
fallback_strategies:
|
||||
mcp_server_unavailable:
|
||||
context7: ["web_search", "cached_documentation", "native_analysis"]
|
||||
sequential: ["native_step_by_step", "basic_analysis"]
|
||||
magic: ["manual_component_generation", "template_suggestions"]
|
||||
playwright: ["manual_testing_suggestions", "test_case_generation"]
|
||||
morphllm: ["native_edit_tools", "manual_editing"]
|
||||
serena: ["basic_file_operations", "simple_search"]
|
||||
|
||||
performance_degradation:
|
||||
high_latency: ["reduce_analysis_depth", "enable_caching", "parallel_processing"]
|
||||
resource_constraints: ["lightweight_alternatives", "compression_mode", "minimal_features"]
|
||||
|
||||
quality_issues:
|
||||
validation_failures: ["increase_validation_depth", "manual_review", "rollback_capability"]
|
||||
error_rates_high: ["enable_pre_validation", "reduce_complexity", "step_by_step_execution"]
|
||||
|
||||
# Learning Integration
|
||||
learning_integration:
|
||||
effectiveness_tracking:
|
||||
track_server_performance: true
|
||||
track_routing_decisions: true
|
||||
track_user_satisfaction: true
|
||||
|
||||
adaptation_triggers:
|
||||
effectiveness_threshold: 0.6
|
||||
confidence_threshold: 0.7
|
||||
usage_count_min: 3
|
||||
|
||||
optimization_feedback:
|
||||
performance_degradation: "adjust_routing_weights"
|
||||
user_preference_detected: "update_server_priorities"
|
||||
error_patterns_found: "enhance_fallback_strategies"
|
||||
|
||||
# Mode Integration
|
||||
mode_integration:
|
||||
brainstorming:
|
||||
preferred_servers: ["sequential", "context7"]
|
||||
thinking_modes: ["--think", "--think-hard"]
|
||||
|
||||
task_management:
|
||||
coordination_servers: ["serena", "morphllm"]
|
||||
delegation_strategies: ["files", "folders", "auto"]
|
||||
|
||||
token_efficiency:
|
||||
optimization_servers: ["morphllm"]
|
||||
compression_strategies: ["symbol_systems", "abbreviations"]
|
||||
346
Framework-Hooks/config/performance.yaml
Normal file
346
Framework-Hooks/config/performance.yaml
Normal file
@@ -0,0 +1,346 @@
|
||||
# SuperClaude-Lite Performance Configuration
|
||||
# Performance targets, thresholds, and optimization strategies
|
||||
|
||||
# Hook Performance Targets
|
||||
hook_targets:
|
||||
session_start:
|
||||
target_ms: 50
|
||||
warning_threshold_ms: 75
|
||||
critical_threshold_ms: 100
|
||||
optimization_priority: "critical"
|
||||
|
||||
pre_tool_use:
|
||||
target_ms: 200
|
||||
warning_threshold_ms: 300
|
||||
critical_threshold_ms: 500
|
||||
optimization_priority: "high"
|
||||
|
||||
post_tool_use:
|
||||
target_ms: 100
|
||||
warning_threshold_ms: 150
|
||||
critical_threshold_ms: 250
|
||||
optimization_priority: "medium"
|
||||
|
||||
pre_compact:
|
||||
target_ms: 150
|
||||
warning_threshold_ms: 200
|
||||
critical_threshold_ms: 300
|
||||
optimization_priority: "high"
|
||||
|
||||
notification:
|
||||
target_ms: 100
|
||||
warning_threshold_ms: 150
|
||||
critical_threshold_ms: 200
|
||||
optimization_priority: "medium"
|
||||
|
||||
stop:
|
||||
target_ms: 200
|
||||
warning_threshold_ms: 300
|
||||
critical_threshold_ms: 500
|
||||
optimization_priority: "low"
|
||||
|
||||
subagent_stop:
|
||||
target_ms: 150
|
||||
warning_threshold_ms: 200
|
||||
critical_threshold_ms: 300
|
||||
optimization_priority: "medium"
|
||||
|
||||
# System Performance Targets
|
||||
system_targets:
|
||||
overall_session_efficiency: 0.75
|
||||
mcp_coordination_efficiency: 0.70
|
||||
compression_effectiveness: 0.50
|
||||
learning_adaptation_rate: 0.80
|
||||
user_satisfaction_target: 0.75
|
||||
|
||||
resource_utilization:
|
||||
memory_target_mb: 100
|
||||
memory_warning_mb: 150
|
||||
memory_critical_mb: 200
|
||||
|
||||
cpu_target_percent: 40
|
||||
cpu_warning_percent: 60
|
||||
cpu_critical_percent: 80
|
||||
|
||||
token_efficiency_target: 0.40
|
||||
token_warning_threshold: 0.20
|
||||
token_critical_threshold: 0.10
|
||||
|
||||
# MCP Server Performance
|
||||
mcp_server_performance:
|
||||
context7:
|
||||
activation_target_ms: 150
|
||||
response_target_ms: 500
|
||||
cache_hit_ratio_target: 0.70
|
||||
quality_score_target: 0.90
|
||||
|
||||
sequential:
|
||||
activation_target_ms: 200
|
||||
response_target_ms: 1000
|
||||
analysis_depth_target: 0.80
|
||||
reasoning_quality_target: 0.85
|
||||
|
||||
magic:
|
||||
activation_target_ms: 120
|
||||
response_target_ms: 800
|
||||
component_quality_target: 0.85
|
||||
generation_speed_target: 0.75
|
||||
|
||||
playwright:
|
||||
activation_target_ms: 300
|
||||
response_target_ms: 2000
|
||||
test_reliability_target: 0.90
|
||||
automation_efficiency_target: 0.80
|
||||
|
||||
morphllm:
|
||||
activation_target_ms: 80
|
||||
response_target_ms: 400
|
||||
edit_accuracy_target: 0.95
|
||||
processing_efficiency_target: 0.85
|
||||
|
||||
serena:
|
||||
activation_target_ms: 100
|
||||
response_target_ms: 600
|
||||
semantic_accuracy_target: 0.90
|
||||
memory_efficiency_target: 0.80
|
||||
|
||||
# Compression Performance
|
||||
compression_performance:
|
||||
target_compression_ratio: 0.50
|
||||
quality_preservation_minimum: 0.95
|
||||
processing_speed_target_chars_per_ms: 100
|
||||
|
||||
level_targets:
|
||||
minimal:
|
||||
compression_ratio: 0.15
|
||||
quality_preservation: 0.98
|
||||
processing_time_factor: 1.0
|
||||
|
||||
efficient:
|
||||
compression_ratio: 0.40
|
||||
quality_preservation: 0.95
|
||||
processing_time_factor: 1.2
|
||||
|
||||
compressed:
|
||||
compression_ratio: 0.60
|
||||
quality_preservation: 0.90
|
||||
processing_time_factor: 1.5
|
||||
|
||||
critical:
|
||||
compression_ratio: 0.75
|
||||
quality_preservation: 0.85
|
||||
processing_time_factor: 1.8
|
||||
|
||||
emergency:
|
||||
compression_ratio: 0.85
|
||||
quality_preservation: 0.80
|
||||
processing_time_factor: 2.0
|
||||
|
||||
# Learning Engine Performance
|
||||
learning_performance:
|
||||
adaptation_response_time_ms: 200
|
||||
pattern_detection_accuracy: 0.80
|
||||
effectiveness_prediction_accuracy: 0.75
|
||||
|
||||
learning_rates:
|
||||
user_preference_learning: 0.85
|
||||
operation_pattern_learning: 0.80
|
||||
performance_optimization_learning: 0.75
|
||||
error_recovery_learning: 0.90
|
||||
|
||||
memory_efficiency:
|
||||
learning_data_compression_ratio: 0.30
|
||||
memory_cleanup_efficiency: 0.90
|
||||
cache_hit_ratio: 0.70
|
||||
|
||||
# Quality Gate Performance
|
||||
quality_gate_performance:
|
||||
validation_speed_targets:
|
||||
syntax_validation_ms: 50
|
||||
type_analysis_ms: 100
|
||||
code_quality_ms: 150
|
||||
security_assessment_ms: 200
|
||||
performance_analysis_ms: 250
|
||||
|
||||
accuracy_targets:
|
||||
rule_compliance_detection: 0.95
|
||||
principle_alignment_assessment: 0.90
|
||||
quality_scoring_accuracy: 0.85
|
||||
security_vulnerability_detection: 0.98
|
||||
|
||||
comprehensive_validation_target_ms: 500
|
||||
|
||||
# Task Management Performance
|
||||
task_management_performance:
|
||||
delegation_efficiency_targets:
|
||||
file_based_delegation: 0.65
|
||||
folder_based_delegation: 0.70
|
||||
auto_delegation: 0.75
|
||||
|
||||
wave_orchestration_targets:
|
||||
coordination_overhead_max: 0.20
|
||||
wave_synchronization_efficiency: 0.85
|
||||
parallel_execution_speedup: 1.50
|
||||
|
||||
task_completion_targets:
|
||||
success_rate: 0.90
|
||||
quality_score: 0.80
|
||||
time_efficiency: 0.75
|
||||
|
||||
# Mode-Specific Performance
|
||||
mode_performance:
|
||||
brainstorming:
|
||||
dialogue_response_time_ms: 300
|
||||
convergence_efficiency: 0.80
|
||||
brief_generation_quality: 0.85
|
||||
user_satisfaction_target: 0.85
|
||||
|
||||
task_management:
|
||||
coordination_overhead_max: 0.15
|
||||
delegation_efficiency: 0.70
|
||||
parallel_execution_benefit: 1.40
|
||||
analytics_generation_time_ms: 500
|
||||
|
||||
token_efficiency:
|
||||
compression_processing_time_ms: 150
|
||||
efficiency_gain_target: 0.40
|
||||
quality_preservation_target: 0.95
|
||||
user_acceptance_rate: 0.80
|
||||
|
||||
introspection:
|
||||
analysis_depth_target: 0.80
|
||||
insight_quality_target: 0.75
|
||||
transparency_effectiveness: 0.85
|
||||
learning_value_target: 0.70
|
||||
|
||||
# Performance Monitoring
|
||||
performance_monitoring:
|
||||
real_time_tracking:
|
||||
enabled: true
|
||||
sampling_interval_ms: 100
|
||||
metric_aggregation_window_s: 60
|
||||
alert_threshold_breaches: 3
|
||||
|
||||
metrics_collection:
|
||||
execution_times: true
|
||||
resource_utilization: true
|
||||
quality_scores: true
|
||||
user_satisfaction: true
|
||||
error_rates: true
|
||||
|
||||
alerting:
|
||||
performance_degradation: true
|
||||
resource_exhaustion: true
|
||||
quality_threshold_breach: true
|
||||
user_satisfaction_drop: true
|
||||
|
||||
reporting:
|
||||
hourly_summaries: true
|
||||
daily_analytics: true
|
||||
weekly_trends: true
|
||||
monthly_optimization_reports: true
|
||||
|
||||
# Optimization Strategies
|
||||
optimization_strategies:
|
||||
caching:
|
||||
intelligent_caching: true
|
||||
cache_warming: true
|
||||
predictive_loading: true
|
||||
cache_invalidation: "smart"
|
||||
|
||||
parallel_processing:
|
||||
auto_detection: true
|
||||
optimal_concurrency: "dynamic"
|
||||
load_balancing: "intelligent"
|
||||
resource_coordination: "adaptive"
|
||||
|
||||
resource_management:
|
||||
memory_optimization: true
|
||||
cpu_optimization: true
|
||||
token_optimization: true
|
||||
storage_optimization: true
|
||||
|
||||
adaptive_performance:
|
||||
dynamic_target_adjustment: true
|
||||
context_aware_optimization: true
|
||||
learning_based_improvement: true
|
||||
user_preference_integration: true
|
||||
|
||||
# Performance Thresholds
|
||||
performance_thresholds:
|
||||
green_zone: # 0-70% resource usage
|
||||
all_optimizations_available: true
|
||||
proactive_caching: true
|
||||
full_feature_set: true
|
||||
normal_verbosity: true
|
||||
|
||||
yellow_zone: # 70-85% resource usage
|
||||
efficiency_mode_activation: true
|
||||
cache_optimization: true
|
||||
reduced_verbosity: true
|
||||
non_critical_feature_deferral: true
|
||||
|
||||
orange_zone: # 85-95% resource usage
|
||||
aggressive_optimization: true
|
||||
compression_activation: true
|
||||
feature_reduction: true
|
||||
essential_operations_only: true
|
||||
|
||||
red_zone: # 95%+ resource usage
|
||||
emergency_mode: true
|
||||
maximum_compression: true
|
||||
minimal_features: true
|
||||
critical_operations_only: true
|
||||
|
||||
# Fallback Performance
|
||||
fallback_performance:
|
||||
graceful_degradation:
|
||||
feature_prioritization: true
|
||||
quality_vs_speed_tradeoffs: "intelligent"
|
||||
user_notification: true
|
||||
automatic_recovery: true
|
||||
|
||||
emergency_protocols:
|
||||
resource_exhaustion: "immediate_compression"
|
||||
timeout_protection: "operation_cancellation"
|
||||
error_cascade_prevention: "circuit_breaker"
|
||||
|
||||
recovery_strategies:
|
||||
performance_restoration: "gradual"
|
||||
feature_reactivation: "conditional"
|
||||
quality_normalization: "monitored"
|
||||
|
||||
# Benchmarking and Testing
|
||||
benchmarking:
|
||||
performance_baselines:
|
||||
establish_on_startup: true
|
||||
regular_recalibration: true
|
||||
environment_specific: true
|
||||
|
||||
load_testing:
|
||||
synthetic_workloads: true
|
||||
stress_testing: true
|
||||
endurance_testing: true
|
||||
|
||||
regression_testing:
|
||||
performance_regression_detection: true
|
||||
quality_regression_detection: true
|
||||
feature_regression_detection: true
|
||||
|
||||
# Integration Performance
|
||||
integration_performance:
|
||||
cross_hook_coordination: 0.90
|
||||
mcp_server_orchestration: 0.85
|
||||
mode_switching_efficiency: 0.80
|
||||
learning_engine_responsiveness: 0.85
|
||||
|
||||
end_to_end_targets:
|
||||
session_initialization: 500 # ms
|
||||
complex_operation_completion: 5000 # ms
|
||||
session_termination: 1000 # ms
|
||||
|
||||
system_health_indicators:
|
||||
overall_efficiency: 0.75
|
||||
user_experience_quality: 0.80
|
||||
system_reliability: 0.95
|
||||
adaptation_effectiveness: 0.70
|
||||
351
Framework-Hooks/config/session.yaml
Normal file
351
Framework-Hooks/config/session.yaml
Normal file
@@ -0,0 +1,351 @@
|
||||
# SuperClaude-Lite Session Configuration
|
||||
# SessionStart/Stop lifecycle management and analytics
|
||||
|
||||
# Session Lifecycle Configuration
|
||||
session_lifecycle:
|
||||
initialization:
|
||||
performance_target_ms: 50
|
||||
auto_project_detection: true
|
||||
context_loading_strategy: "selective"
|
||||
framework_exclusion_enabled: true
|
||||
|
||||
default_modes:
|
||||
- "adaptive_intelligence"
|
||||
- "performance_monitoring"
|
||||
|
||||
intelligence_activation:
|
||||
pattern_detection: true
|
||||
mcp_routing: true
|
||||
learning_integration: true
|
||||
compression_optimization: true
|
||||
|
||||
termination:
|
||||
performance_target_ms: 200
|
||||
analytics_generation: true
|
||||
learning_consolidation: true
|
||||
session_persistence: true
|
||||
cleanup_optimization: true
|
||||
|
||||
# Project Type Detection
|
||||
project_detection:
|
||||
file_indicators:
|
||||
nodejs:
|
||||
- "package.json"
|
||||
- "node_modules/"
|
||||
- "yarn.lock"
|
||||
- "pnpm-lock.yaml"
|
||||
|
||||
python:
|
||||
- "pyproject.toml"
|
||||
- "setup.py"
|
||||
- "requirements.txt"
|
||||
- "__pycache__/"
|
||||
- ".py"
|
||||
|
||||
rust:
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- "src/main.rs"
|
||||
- "src/lib.rs"
|
||||
|
||||
go:
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- "main.go"
|
||||
|
||||
web_frontend:
|
||||
- "index.html"
|
||||
- "public/"
|
||||
- "dist/"
|
||||
- "build/"
|
||||
- "src/components/"
|
||||
|
||||
framework_detection:
|
||||
react:
|
||||
- "react"
|
||||
- "next.js"
|
||||
- "@types/react"
|
||||
|
||||
vue:
|
||||
- "vue"
|
||||
- "nuxt"
|
||||
- "@vue/cli"
|
||||
|
||||
angular:
|
||||
- "@angular/core"
|
||||
- "angular.json"
|
||||
|
||||
express:
|
||||
- "express"
|
||||
- "app.js"
|
||||
- "server.js"
|
||||
|
||||
# Intelligence Activation Rules
|
||||
intelligence_activation:
|
||||
mode_detection:
|
||||
brainstorming:
|
||||
triggers:
|
||||
- "new project"
|
||||
- "not sure"
|
||||
- "thinking about"
|
||||
- "explore"
|
||||
- "brainstorm"
|
||||
confidence_threshold: 0.7
|
||||
auto_activate: true
|
||||
|
||||
task_management:
|
||||
triggers:
|
||||
- "multiple files"
|
||||
- "complex operation"
|
||||
- "system-wide"
|
||||
- "comprehensive"
|
||||
file_count_threshold: 3
|
||||
complexity_threshold: 0.4
|
||||
auto_activate: true
|
||||
|
||||
token_efficiency:
|
||||
triggers:
|
||||
- "resource constraint"
|
||||
- "brevity"
|
||||
- "compressed"
|
||||
- "efficient"
|
||||
resource_threshold_percent: 75
|
||||
conversation_length_threshold: 100
|
||||
auto_activate: true
|
||||
|
||||
mcp_server_activation:
|
||||
context7:
|
||||
triggers:
|
||||
- "library"
|
||||
- "documentation"
|
||||
- "framework"
|
||||
- "api reference"
|
||||
project_indicators:
|
||||
- "external_dependencies"
|
||||
- "framework_detected"
|
||||
auto_activate: true
|
||||
|
||||
sequential:
|
||||
triggers:
|
||||
- "analyze"
|
||||
- "debug"
|
||||
- "complex"
|
||||
- "systematic"
|
||||
complexity_threshold: 0.6
|
||||
auto_activate: true
|
||||
|
||||
magic:
|
||||
triggers:
|
||||
- "component"
|
||||
- "ui"
|
||||
- "frontend"
|
||||
- "design"
|
||||
project_type_match: ["web_frontend", "react", "vue", "angular"]
|
||||
auto_activate: true
|
||||
|
||||
playwright:
|
||||
triggers:
|
||||
- "test"
|
||||
- "automation"
|
||||
- "browser"
|
||||
- "e2e"
|
||||
project_indicators:
|
||||
- "has_tests"
|
||||
- "test_framework_detected"
|
||||
auto_activate: false # Manual activation preferred
|
||||
|
||||
morphllm:
|
||||
triggers:
|
||||
- "edit"
|
||||
- "modify"
|
||||
- "quick change"
|
||||
file_count_max: 10
|
||||
complexity_max: 0.6
|
||||
auto_activate: true
|
||||
|
||||
serena:
|
||||
triggers:
|
||||
- "navigate"
|
||||
- "find"
|
||||
- "search"
|
||||
- "analyze"
|
||||
file_count_min: 5
|
||||
complexity_min: 0.4
|
||||
auto_activate: true
|
||||
|
||||
# Session Analytics Configuration
|
||||
session_analytics:
|
||||
performance_tracking:
|
||||
enabled: true
|
||||
metrics:
|
||||
- "operation_count"
|
||||
- "tool_usage_patterns"
|
||||
- "mcp_server_effectiveness"
|
||||
- "error_rates"
|
||||
- "completion_times"
|
||||
- "resource_utilization"
|
||||
|
||||
effectiveness_measurement:
|
||||
enabled: true
|
||||
factors:
|
||||
productivity: "weight: 0.4"
|
||||
quality: "weight: 0.3"
|
||||
user_satisfaction: "weight: 0.2"
|
||||
learning_value: "weight: 0.1"
|
||||
|
||||
learning_consolidation:
|
||||
enabled: true
|
||||
pattern_detection: true
|
||||
adaptation_creation: true
|
||||
effectiveness_feedback: true
|
||||
insight_generation: true
|
||||
|
||||
# Session Persistence
|
||||
session_persistence:
|
||||
enabled: true
|
||||
storage_strategy: "intelligent_compression"
|
||||
retention_policy:
|
||||
session_data_days: 90
|
||||
analytics_data_days: 365
|
||||
learning_data_persistent: true
|
||||
|
||||
compression_settings:
|
||||
session_metadata: "efficient" # 40-70% compression
|
||||
analytics_data: "compressed" # 70-85% compression
|
||||
learning_data: "minimal" # Preserve learning quality
|
||||
|
||||
cleanup_automation:
|
||||
enabled: true
|
||||
old_session_cleanup: true
|
||||
max_sessions_retained: 50
|
||||
storage_optimization: true
|
||||
|
||||
# Notification Processing
|
||||
notifications:
|
||||
enabled: true
|
||||
just_in_time_loading: true
|
||||
pattern_updates: true
|
||||
intelligence_updates: true
|
||||
|
||||
priority_handling:
|
||||
critical: "immediate_processing"
|
||||
high: "fast_track_processing"
|
||||
medium: "standard_processing"
|
||||
low: "background_processing"
|
||||
|
||||
caching_strategy:
|
||||
documentation_cache_minutes: 30
|
||||
pattern_cache_minutes: 60
|
||||
intelligence_cache_minutes: 15
|
||||
|
||||
# Task Management Integration
|
||||
task_management:
|
||||
enabled: true
|
||||
delegation_strategies:
|
||||
files: "file_based_delegation"
|
||||
folders: "directory_based_delegation"
|
||||
auto: "intelligent_auto_detection"
|
||||
|
||||
wave_orchestration:
|
||||
enabled: true
|
||||
complexity_threshold: 0.4
|
||||
file_count_threshold: 3
|
||||
operation_types_threshold: 2
|
||||
|
||||
performance_optimization:
|
||||
parallel_execution: true
|
||||
resource_management: true
|
||||
coordination_efficiency: true
|
||||
|
||||
# User Experience Configuration
|
||||
user_experience:
|
||||
session_feedback:
|
||||
enabled: true
|
||||
satisfaction_tracking: true
|
||||
improvement_suggestions: true
|
||||
|
||||
personalization:
|
||||
enabled: true
|
||||
preference_learning: true
|
||||
adaptation_application: true
|
||||
context_awareness: true
|
||||
|
||||
progressive_enhancement:
|
||||
enabled: true
|
||||
capability_discovery: true
|
||||
feature_introduction: true
|
||||
learning_curve_optimization: true
|
||||
|
||||
# Performance Targets
|
||||
performance_targets:
|
||||
session_start_ms: 50
|
||||
session_stop_ms: 200
|
||||
context_loading_ms: 500
|
||||
analytics_generation_ms: 1000
|
||||
|
||||
efficiency_targets:
|
||||
productivity_score: 0.7
|
||||
quality_score: 0.8
|
||||
satisfaction_score: 0.7
|
||||
learning_value: 0.6
|
||||
|
||||
resource_utilization:
|
||||
memory_efficient: true
|
||||
cpu_optimization: true
|
||||
token_management: true
|
||||
storage_optimization: true
|
||||
|
||||
# Error Handling and Recovery
|
||||
error_handling:
|
||||
graceful_degradation: true
|
||||
fallback_strategies: true
|
||||
error_learning: true
|
||||
recovery_optimization: true
|
||||
|
||||
session_recovery:
|
||||
auto_recovery: true
|
||||
state_preservation: true
|
||||
context_restoration: true
|
||||
learning_retention: true
|
||||
|
||||
error_patterns:
|
||||
detection: true
|
||||
prevention: true
|
||||
learning_integration: true
|
||||
adaptation_triggers: true
|
||||
|
||||
# Integration Configuration
|
||||
integration:
|
||||
mcp_servers:
|
||||
coordination: "seamless"
|
||||
fallback_handling: "automatic"
|
||||
performance_monitoring: "continuous"
|
||||
|
||||
learning_engine:
|
||||
session_learning: true
|
||||
pattern_recognition: true
|
||||
effectiveness_tracking: true
|
||||
adaptation_application: true
|
||||
|
||||
compression_engine:
|
||||
session_data_compression: true
|
||||
quality_preservation: true
|
||||
selective_application: true
|
||||
|
||||
quality_gates:
|
||||
session_validation: true
|
||||
analytics_verification: true
|
||||
learning_quality_assurance: true
|
||||
|
||||
# Development and Debugging
|
||||
development_support:
|
||||
session_debugging: true
|
||||
performance_profiling: true
|
||||
analytics_validation: true
|
||||
learning_verification: true
|
||||
|
||||
metrics_collection:
|
||||
detailed_timing: true
|
||||
resource_tracking: true
|
||||
effectiveness_measurement: true
|
||||
quality_assessment: true
|
||||
291
Framework-Hooks/config/validation.yaml
Normal file
291
Framework-Hooks/config/validation.yaml
Normal file
@@ -0,0 +1,291 @@
|
||||
# SuperClaude-Lite Validation Configuration
|
||||
# RULES.md + PRINCIPLES.md enforcement and quality standards
|
||||
|
||||
# Core SuperClaude Rules Validation
|
||||
rules_validation:
|
||||
file_operations:
|
||||
read_before_write:
|
||||
enabled: true
|
||||
severity: "error"
|
||||
message: "RULES violation: No Read operation detected before Write/Edit"
|
||||
check_recent_tools: 3
|
||||
exceptions: ["new_file_creation"]
|
||||
|
||||
absolute_paths_only:
|
||||
enabled: true
|
||||
severity: "error"
|
||||
message: "RULES violation: Relative path used"
|
||||
path_parameters: ["file_path", "path", "directory", "output_path"]
|
||||
allowed_prefixes: ["http://", "https://", "/"]
|
||||
|
||||
validate_before_execution:
|
||||
enabled: true
|
||||
severity: "warning"
|
||||
message: "RULES recommendation: High-risk operation should include validation"
|
||||
high_risk_operations: ["delete", "refactor", "deploy", "migrate"]
|
||||
complexity_threshold: 0.7
|
||||
|
||||
security_requirements:
|
||||
input_validation:
|
||||
enabled: true
|
||||
severity: "error"
|
||||
message: "RULES violation: User input handling without validation"
|
||||
check_patterns: ["user_input", "external_data", "api_input"]
|
||||
|
||||
no_hardcoded_secrets:
|
||||
enabled: true
|
||||
severity: "critical"
|
||||
message: "RULES violation: Hardcoded sensitive information detected"
|
||||
patterns: ["password", "api_key", "secret", "token"]
|
||||
|
||||
production_safety:
|
||||
enabled: true
|
||||
severity: "error"
|
||||
message: "RULES violation: Unsafe operation in production context"
|
||||
production_indicators: ["is_production", "prod_env", "production"]
|
||||
|
||||
# SuperClaude Principles Validation
|
||||
principles_validation:
|
||||
evidence_over_assumptions:
|
||||
enabled: true
|
||||
severity: "warning"
|
||||
message: "PRINCIPLES: Provide evidence to support assumptions"
|
||||
check_for_assumptions: true
|
||||
require_evidence: true
|
||||
confidence_threshold: 0.7
|
||||
|
||||
code_over_documentation:
|
||||
enabled: true
|
||||
severity: "warning"
|
||||
message: "PRINCIPLES: Documentation should follow working code, not precede it"
|
||||
documentation_operations: ["document", "readme", "guide"]
|
||||
require_working_code: true
|
||||
|
||||
efficiency_over_verbosity:
|
||||
enabled: true
|
||||
severity: "suggestion"
|
||||
message: "PRINCIPLES: Consider token efficiency techniques for large outputs"
|
||||
output_size_threshold: 5000
|
||||
verbosity_indicators: ["repetitive_content", "unnecessary_detail"]
|
||||
|
||||
test_driven_development:
|
||||
enabled: true
|
||||
severity: "warning"
|
||||
message: "PRINCIPLES: Logic changes should include tests"
|
||||
logic_operations: ["write", "edit", "generate", "implement"]
|
||||
test_file_patterns: ["*test*", "*spec*", "test_*", "*_test.*"]
|
||||
|
||||
single_responsibility:
|
||||
enabled: true
|
||||
severity: "suggestion"
|
||||
message: "PRINCIPLES: Functions/classes should have single responsibility"
|
||||
complexity_indicators: ["multiple_purposes", "large_function", "many_parameters"]
|
||||
|
||||
error_handling_required:
|
||||
enabled: true
|
||||
severity: "warning"
|
||||
message: "PRINCIPLES: Error handling not implemented"
|
||||
critical_operations: ["write", "edit", "deploy", "api_calls"]
|
||||
|
||||
# Quality Standards
|
||||
quality_standards:
|
||||
code_quality:
|
||||
minimum_score: 0.7
|
||||
factors:
|
||||
- syntax_correctness
|
||||
- logical_consistency
|
||||
- error_handling_presence
|
||||
- documentation_adequacy
|
||||
- test_coverage
|
||||
|
||||
security_compliance:
|
||||
minimum_score: 0.8
|
||||
checks:
|
||||
- input_validation
|
||||
- output_sanitization
|
||||
- authentication_checks
|
||||
- authorization_verification
|
||||
- secure_communication
|
||||
|
||||
performance_standards:
|
||||
response_time_threshold_ms: 2000
|
||||
resource_efficiency_min: 0.6
|
||||
optimization_indicators:
|
||||
- algorithm_efficiency
|
||||
- memory_usage
|
||||
- processing_speed
|
||||
|
||||
maintainability:
|
||||
minimum_score: 0.6
|
||||
factors:
|
||||
- code_clarity
|
||||
- documentation_quality
|
||||
- modular_design
|
||||
- consistent_style
|
||||
|
||||
# Validation Workflow
|
||||
validation_workflow:
|
||||
pre_validation:
|
||||
enabled: true
|
||||
quick_checks:
|
||||
- syntax_validation
|
||||
- basic_security_scan
|
||||
- rule_compliance_check
|
||||
|
||||
post_validation:
|
||||
enabled: true
|
||||
comprehensive_checks:
|
||||
- quality_assessment
|
||||
- principle_alignment
|
||||
- effectiveness_measurement
|
||||
- learning_opportunity_detection
|
||||
|
||||
continuous_validation:
|
||||
enabled: true
|
||||
real_time_monitoring:
|
||||
- pattern_violation_detection
|
||||
- quality_degradation_alerts
|
||||
- performance_regression_detection
|
||||
|
||||
# Error Classification and Handling
|
||||
error_classification:
|
||||
critical_errors:
|
||||
severity_level: "critical"
|
||||
block_execution: true
|
||||
examples:
|
||||
- security_vulnerabilities
|
||||
- data_corruption_risk
|
||||
- system_instability
|
||||
|
||||
standard_errors:
|
||||
severity_level: "error"
|
||||
block_execution: false
|
||||
require_acknowledgment: true
|
||||
examples:
|
||||
- rule_violations
|
||||
- quality_failures
|
||||
- incomplete_implementation
|
||||
|
||||
warnings:
|
||||
severity_level: "warning"
|
||||
block_execution: false
|
||||
examples:
|
||||
- principle_deviations
|
||||
- optimization_opportunities
|
||||
- best_practice_suggestions
|
||||
|
||||
suggestions:
|
||||
severity_level: "suggestion"
|
||||
informational: true
|
||||
examples:
|
||||
- code_improvements
|
||||
- efficiency_enhancements
|
||||
- learning_recommendations
|
||||
|
||||
# Effectiveness Measurement
|
||||
effectiveness_measurement:
|
||||
success_indicators:
|
||||
task_completion: "weight: 0.4"
|
||||
quality_achievement: "weight: 0.3"
|
||||
user_satisfaction: "weight: 0.2"
|
||||
learning_value: "weight: 0.1"
|
||||
|
||||
performance_metrics:
|
||||
execution_time: "target: <2000ms"
|
||||
resource_efficiency: "target: >0.6"
|
||||
error_rate: "target: <0.1"
|
||||
validation_accuracy: "target: >0.9"
|
||||
|
||||
quality_metrics:
|
||||
code_quality_score: "target: >0.7"
|
||||
security_compliance: "target: >0.8"
|
||||
principle_alignment: "target: >0.7"
|
||||
rule_compliance: "target: >0.9"
|
||||
|
||||
# Learning Integration
|
||||
learning_integration:
|
||||
pattern_detection:
|
||||
success_patterns: true
|
||||
failure_patterns: true
|
||||
optimization_patterns: true
|
||||
user_preference_patterns: true
|
||||
|
||||
effectiveness_feedback:
|
||||
real_time_collection: true
|
||||
user_satisfaction_tracking: true
|
||||
quality_trend_analysis: true
|
||||
adaptation_triggers: true
|
||||
|
||||
continuous_improvement:
|
||||
threshold_adjustment: true
|
||||
rule_refinement: true
|
||||
principle_enhancement: true
|
||||
validation_optimization: true
|
||||
|
||||
# Context-Aware Validation
|
||||
context_awareness:
|
||||
project_type_adaptations:
|
||||
frontend_projects:
|
||||
additional_checks: ["accessibility", "responsive_design", "browser_compatibility"]
|
||||
|
||||
backend_projects:
|
||||
additional_checks: ["api_security", "data_validation", "performance_optimization"]
|
||||
|
||||
full_stack_projects:
|
||||
additional_checks: ["integration_testing", "end_to_end_validation", "deployment_safety"]
|
||||
|
||||
user_expertise_adjustments:
|
||||
beginner:
|
||||
validation_verbosity: "high"
|
||||
educational_suggestions: true
|
||||
step_by_step_guidance: true
|
||||
|
||||
intermediate:
|
||||
validation_verbosity: "medium"
|
||||
best_practice_suggestions: true
|
||||
optimization_recommendations: true
|
||||
|
||||
expert:
|
||||
validation_verbosity: "low"
|
||||
advanced_optimization_suggestions: true
|
||||
architectural_guidance: true
|
||||
|
||||
# Performance Configuration
|
||||
performance_configuration:
|
||||
validation_targets:
|
||||
processing_time_ms: 100
|
||||
memory_usage_mb: 50
|
||||
cpu_utilization_percent: 30
|
||||
|
||||
optimization_strategies:
|
||||
parallel_validation: true
|
||||
cached_results: true
|
||||
incremental_validation: true
|
||||
smart_rule_selection: true
|
||||
|
||||
resource_management:
|
||||
max_validation_time_ms: 500
|
||||
memory_limit_mb: 100
|
||||
cpu_limit_percent: 50
|
||||
fallback_on_resource_limit: true
|
||||
|
||||
# Integration Points
|
||||
integration_points:
|
||||
mcp_servers:
|
||||
serena: "semantic_validation_support"
|
||||
morphllm: "edit_validation_coordination"
|
||||
sequential: "complex_validation_analysis"
|
||||
|
||||
learning_engine:
|
||||
effectiveness_tracking: true
|
||||
pattern_learning: true
|
||||
adaptation_feedback: true
|
||||
|
||||
compression_engine:
|
||||
validation_result_compression: true
|
||||
quality_preservation_verification: true
|
||||
|
||||
other_hooks:
|
||||
pre_tool_use: "validation_preparation"
|
||||
session_start: "validation_configuration"
|
||||
stop: "validation_summary_generation"
|
||||
Reference in New Issue
Block a user