meridiananalyze-depslisted
Install: claude install-skill mattjaikaran/meridian
# /meridian:analyze-deps — Dependency Analysis
Detect phase ordering constraints within a milestone. Analyzes file overlap, semantic
name references, and sequence gaps to suggest `depends_on` entries for phases that are
missing explicit ordering. Optionally writes suggestions back to the DB.
## Arguments
- (no args) — analyze active milestone, print findings, write report (read-only)
- `--apply` — write suggested `depends_on` entries back to the DB
- `--milestone <id>` — target a specific milestone by ID instead of the active one
## Keywords
dependencies, ordering, depends_on, phase ordering, file overlap, coupling, analysis
## Procedure
### Analyze (default — read-only)
```bash
PYTHONPATH=$MERIDIAN_HOME uv run --project $MERIDIAN_HOME -- python -c "
import json
from pathlib import Path
from scripts.analyze_deps import run_analysis, write_report
report = run_analysis(Path('.'))
path = write_report(report, Path('.'))
report['report_path'] = str(path)
print(json.dumps(report, indent=2))
"
```
### Analyze and apply suggestions
```bash
PYTHONPATH=$MERIDIAN_HOME uv run --project $MERIDIAN_HOME -- python -c "
import json
from pathlib import Path
from scripts.analyze_deps import run_analysis, write_report
report = run_analysis(Path('.'), apply=True)
path = write_report(report, Path('.'))
report['report_path'] = str(path)
print(json.dumps(report, indent=2))
"
```
### Target a specific milestone
```bash
PYTHONPATH=$MERIDIAN_HOME uv run --project $MERIDIAN_HOME -- python -c "
im