---
name: nginx-glasspane
description: Configure the ai.clawdie.si operator surface as a static tmux glasspane served by nginx. Use when defining the ai.clawdie.si vhost, latest screenshot routing, UUID archive viewer paths, cache behavior, and static file layout for PNG/TXT/JSON screenshot artifacts.
---

# Nginx Glasspane

Use this skill for the operator-facing static web surface on `ai.clawdie.si`.

## Scope

This skill covers:

- nginx vhost intent for `ai.clawdie.si`
- static site root and screenshot artifact layout
- `latest.json` / `latest.png` / `latest.txt` model
- archive viewer by UUID
- basic cache strategy for HTML vs artifacts

This skill does not replace:

- `tmux-screenshot` for capture generation
- `warden-bootstrap` for jail creation
- `warden-pf` for host firewall/NAT

## Canonical glasspane model

- `https://ai.clawdie.si/` shows the latest glasspane
- `https://ai.clawdie.si/viewer.html?u=<uuid>` opens an archived capture
- static artifacts live as:
  - `<uuid>.png`
  - `<uuid>.txt`
  - `<uuid>.json`
- `latest.json` points to the current UUID

## Workflow

1. Read `references/site-layout.md`
2. Read `references/nginx-shape.md`
3. If caching matters, read `references/cache-policy.md`
4. Prefer the scripts in `scripts/` to render starter nginx blocks and `latest.json`

