nightscout-cgmlisted
Install: claude install-skill shanselman/nightscout-cgm-skill
# Nightscout CGM Analysis Skill
This skill provides tools for fetching and analyzing Continuous Glucose Monitor (CGM) data from Nightscout.
## ⚠️ Before Making Changes
**Always run tests before and after modifying `cgm.py`:**
```bash
cd <skill-path>
python -m pytest tests/ -q # Quick check (255+ tests)
python -m pytest tests/ --cov=scripts # With coverage
```
## Available Commands
Run the `cgm.py` script from this skill's `scripts/` directory:
```bash
python <skill-path>/scripts/cgm.py <command> [options]
```
Where `<skill-path>` is the location where this skill is installed (e.g., `~/.copilot/skills/nightscout-cgm`, `.github/skills/nightscout-cgm`, or `.claude/skills/nightscout-cgm`).
### Commands
| Command | Description |
|---------|-------------|
| `current` | Get the latest glucose reading |
| `analyze [--days N]` | Analyze CGM data (default: 90 days) |
| `report [--days N] [--open]` | Generate interactive HTML report with charts |
| `compare --period1 P1 --period2 P2` | Compare two time periods side-by-side |
| `alerts [--days N]` | Get trend alerts for recurring patterns |
| `refresh [--days N]` | Fetch latest data from Nightscout |
| `patterns [--days N]` | Find interesting patterns (best/worst times, problem areas) |
| `query [options]` | Query with filters (day of week, time range) |
| `day <date> [options]` | View all readings for a specific date |
| `worst [options]` | Find your worst days for glucose control |
| `chart [options]` | Terminal vi