reeflisted
Install: claude install-skill kangig94/coral
# Coral Reef Dashboard
Launch the coral-reef dashboard. Handles installation, updates, builds, and startup automatically.
The runtime injects `Base directory for this skill:` which resolves to this skill's installed path.
From there, the plugin root is two levels up, and `coral-reef/` sits as a sibling directory.
## Constants
```
REPO_URL = "https://github.com/kangig94/coral-reef"
REEF_DATA_DIR = ~/.claude/coral-reef/
REEF_PORT = 3100
```
## Protocol
### Step 1 — Resolve Paths
Derive the plugin root from the base directory injected by the framework:
```
PLUGIN_ROOT = resolve(base_directory, "../..")
REEF_DIR = resolve(PLUGIN_ROOT, "coral-reef")
```
Verify `PLUGIN_ROOT` contains `package.json` with `"name": "coral"` as a sanity check.
### Step 2 — Ensure Data Directory
```bash
mkdir -p ~/.claude/coral-reef
```
This is coral-reef's permanent SQLite storage location, surviving `/tmp` reboots.
### Step 3 — Clone or Update
Check if `REEF_DIR` exists:
- **Not exists**: `git clone ${REPO_URL} ${REEF_DIR}`
- **Exists with `.git/`**: `cd ${REEF_DIR} && git pull --ff-only`
- **Exists without `.git/`**: warn user and skip update (manual install)
### Step 4 — Dependency Resolution
Detect the install layout by checking if this is a nested plugin install or a dev workspace:
```bash
# Read coral-reef's package.json
cd ${REEF_DIR}
```
Check if the `coral` dependency in `package.json` points to the correct location:
- **Dev workspace layout** (`~/workspace/coral-reef` sibl