Comprehensive integrity validation and automatic recovery for missing components
Detects missing components and validates plugin integrity with automatic recovery. Use this when commands disappear, after file operations, or for routine system health checks to restore lost components from backups.
/plugin marketplace add bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude/plugin install bejranonda-autonomous-agent@bejranonda/LLM-Autonomous-Agent-Plugin-for-Claudevalidate/The integrity validation command provides comprehensive analysis of plugin integrity with automatic recovery capabilities. It detects missing components, validates system structure, and can automatically restore lost components using multiple recovery strategies.
This command prevents issues like the missing /monitor:dashboard command by maintaining continuous integrity monitoring and providing immediate recovery options.
/validate:integrity --auto-recover # Validate and auto-recover missing components
/validate:integrity --dry-run # Validate without making changes
/validate:integrity --critical-only # Check only critical components
/validate:integrity --detailed # Show detailed validation results
/validate:integrity --backup-check # Check backup system integrity
Automatically attempt to recover any missing components found during validation.
/validate:integrity --auto-recoverPerform validation without executing any recovery operations.
/validate:integrity --dry-runOnly validate critical components (core agents, essential commands, key configs).
/validate:integrity --critical-onlyShow detailed validation results including all issues and recommendations.
/validate:integrity --detailedValidate the backup system integrity and check for available backups.
/validate:integrity --backup-check/validate:integrity
Output:
š Plugin Integrity Validation
ā
Overall Integrity: 92/100
š Components: 56/58 present
[WARN]ļø Issues: 2 non-critical
š¦ Backups: 3 recent backups available
š” Recommendations: 2 improvement suggestions
/validate:integrity --auto-recover
Output:
š Automatic Recovery Mode
š Missing Components Found:
* /monitor:dashboard (CRITICAL)
* /commands/workspace/archive (WARNING)
š§ Recovery Attempting:
ā
/monitor:dashboard restored from backup (backup_20250127_143022)
ā /commands/workspace:archive recovery failed (no template available)
š Final Integrity: 98/100 (+6 points)
/validate:integrity --critical-only
Output:
š Critical Components Validation
ā
All critical components present
š Critical Inventory:
* Commands: 22/22 present
* Agents: 7/7 present
* Core Skills: 6/6 present
* Plugin Config: 1/1 present
The integrity score is calculated based on:
Score Interpretation:
The validation system uses multiple recovery strategies in order of preference:
Backup Restore (95% success rate)
Git Recovery (85% success rate)
Template Creation (70% success rate)
Pattern-Based (60% success rate)
Manual Guidance (100% guidance rate)
Automatically triggered before:
/workspace:improve - Plugin modifications/dev:release - Release preparationAutomatically triggered after:
When auto-recovery fails:
/validate:integrity --backup-checkgit statusCommon validation issues:
If validation is slow:
--critical-only for faster checks/validate:commands - Command-specific validation/validate:all - Full system validation/workspace:organize - File organization fixes/dev:auto "validate integrity" - Automated integrity management{
"validation": {
"auto_recover": true,
"critical_threshold": 70,
"backup_check_interval": "daily",
"notification_level": "warning"
}
}
{
"recovery": {
"preferred_strategies": ["backup_restore", "git_recovery"],
"max_recovery_attempts": 3,
"require_confirmation": false,
"create_backup_before_recovery": true
}
}
# Create custom validation profile
/validate:integrity --profile production --critical-only
# Validate specific categories
/validate:integrity --categories commands,agents --detailed
# Validate with custom thresholds
/validate:integrity --threshold 85 --strict-mode
# Validate and create recovery plan
/validate:integrity --dry-run --save-plan
# Execute recovery from saved plan
/validate:integrity --execute-plan recovery_plan_20250127.json
The integrity validation maintains comprehensive analytics:
Use /learn:performance to view detailed analytics and /learn:analytics for comprehensive reporting.