Use when validating or diagnosing the cortex environment (consistency, duplicates, redundancy, optimization) - provides a diagnostic workflow and reporting structure for context health checks.
Context Health
Overview
Provide a consistent diagnostic workflow for cortex environments: verify config integrity, detect duplicates, surface redundancies, and report actionable issues.
When to Use
- Checking system health after changes to agents, modes, or rules
- Troubleshooting unexpected cortex behavior
- Performing periodic maintenance checks
Avoid when:
- The task is unrelated to cortex configuration or context
Quick Reference
| Task | Load reference |
|---|---|
| Environment diagnostics | skills/context-health/references/doctor.md |
Workflow
- Confirm target scope and environment.
- Load the diagnostics reference.
- Run checks and gather findings.
- Summarize issues by severity.
- Recommend fixes and next steps.
Output
- Diagnostic report with severity levels
- Recommended fixes or follow-up actions
Common Mistakes
- Running fixes without reviewing findings
- Skipping context scope verification
You Might Also Like
Related Skills

fix
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
facebook
frontend-testing
Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, or write/review test requests.
langgenius
frontend-code-review
Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.
langgenius
code-reviewer
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
google-gemini
session-logs
Search and analyze your own session logs (older/parent conversations) using jq.
moltbot

