# Scoobah (https://scoobah.dev)

Self-hosted HTML draft publishing for coding agents. Allowlisted accounts only.

## Setup (for coding agents)

Run these steps to install the Scoobah CLI and skill locally (Node 22+ required, no npm publish needed):

1. Install the zero-dependency CLI and symlink it onto PATH:

```sh
mkdir -p ~/.scoobah ~/.local/bin
curl -fsSL https://scoobah.dev/cli.mjs -o ~/.scoobah/cli.mjs
chmod 755 ~/.scoobah/cli.mjs
ln -sf ~/.scoobah/cli.mjs ~/.local/bin/scoobah
```

2. Install the agent skill:

```sh
mkdir -p ~/.agents/skills/scoobah
curl -fsSL https://scoobah.dev/skills/scoobah/SKILL.md -o ~/.agents/skills/scoobah/SKILL.md
```

If using Claude Code, also symlink it:

```sh
mkdir -p ~/.claude/skills
ln -sfn ~/.agents/skills/scoobah ~/.claude/skills/scoobah
```

3. Ask the user to sign in interactively (browser login via shoo.dev + paste API key):

```sh
scoobah auth login --api-url https://scoobah.dev
```

4. Verify credentials:

```sh
scoobah whoami --json
```

## Retention & Limits

- Upload limit: 8.0 MB total HTML, max 50 pages.
- Ephemeral drafts (unstarred, no custom `--slug`) expire after 30 days (daily 04:00 UTC GC).
- Soft-deleted drafts are permanently purged after 7 days.
- Active drafts keep the latest 3 versions.
- Drafts are public to anyone with the URL. Never publish secrets or private tokens.
