feat: add health check command for system diagnostics #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a
dylan healthcommand to the Dylan CLI that performs comprehensive system diagnostics and health checks on the development environment. This command verifies that all required dependencies (Git, GitHub CLI, Claude Code) are properly installed and configured, checks the current project state, and provides actionable feedback to users about any issues that need attention.The health check command serves as a first-stop diagnostic tool for users experiencing issues with Dylan utilities, reducing troubleshooting time and improving the overall user experience. Results are displayed in a visually appealing format using Rich's table and panel components, consistent with Dylan's existing UI theme.
Changes
Modified Files:
PRPs/features/completed/add-health-check-command.md- Product Requirement Prompt with full implementation detailsdylan/cli.py- Registered new health commanddylan/utility_library/dylan_health/__init__.py- Health check module initializationdylan/utility_library/dylan_health/checks.py- Individual health check implementationsdylan/utility_library/dylan_health/dylan_health_cli.py- CLI interface for health commanddylan/utility_library/dylan_health/dylan_health_runner.py- Core health check orchestration logicdylan/utility_library/dylan_health/tests/- Comprehensive test suite with >90% coveragepyproject.toml- Updated dependenciesuv.lock- Locked dependency versionsImplementation Details
See:
PRPs/features/completed/add-health-check-command.mdThe implementation follows Dylan's existing architectural patterns and includes:
Key Features:
Testing
Test Files Added:
dylan/utility_library/dylan_health/tests/__init__.pydylan/utility_library/dylan_health/tests/conftest.pydylan/utility_library/dylan_health/tests/test_checks.pydylan/utility_library/dylan_health/tests/test_dylan_health_cli.pydylan/utility_library/dylan_health/tests/test_dylan_health_runner.pyUsage Examples