> ## Documentation Index
> Fetch the complete documentation index at: https://drevon.trysudosu.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# drevon doctor

> Diagnose workspace issues and suggest fixes.

## Usage

```bash theme={null}
drevon doctor
```

## Description

Runs a comprehensive diagnostic check on your workspace, verifying that all expected files exist and are in good shape.

## Checks Performed

| Check                 | What It Verifies                                |
| --------------------- | ----------------------------------------------- |
| **Agent configs**     | Each enabled agent's output files exist on disk |
| **Memory files**      | All configured memory files are present         |
| **Skills lock**       | `skills-lock.json` exists and is valid          |
| **Prompts directory** | `.drevon/prompts/` directory exists             |

## Output Example

```
  Running diagnostics...

  Agents:
    ✓ copilot — .github/copilot-instructions.md exists
    ✓ claude — CLAUDE.md exists
    ✗ cursor — .cursor/rules/core.mdc missing

  Memory:
    ✓ INDEX.md exists (~266 tokens, budget 2,000)
    ✓ topics/user.md exists
    ✓ topics/projects.md exists
    ✓ topics/systems.md exists
    ✓ log/ exists

  Skills:
    ✓ skills-lock.json exists

  Prompts:
    ✓ .drevon/prompts/ exists

  1 issue found. Run 'drevon sync' to fix.
```

## Fixing Issues

Most issues can be resolved by running:

```bash theme={null}
drevon sync
```

If files are missing from the memory system, you may need to re-initialize:

```bash theme={null}
# Re-create memory files only
drevon init
```
