flushcachelisted
Install: claude install-skill y-a-v-a/skills
# flushcache — purge Akamai edge cache
Wrapper around `akamai purge` (Akamai CLI). One invocation purges one set of
targets on one network.
## Invocation contract
Arguments provided: $ARGUMENTS
Parse into four things:
| Part | How it is decided | Default |
| --- | --- | --- |
| Targets | every non-flag token | — (required) |
| Target type | URL / CP code / cache tag — see below | URL |
| Operation | `invalidate`, or `delete` if `--delete` is present | `invalidate` |
| Network | `--staging` if present, else production | production |
Target type is inferred from the tokens, and **all targets must be the same
type** — the CLI takes one flag for the whole call:
- Starts with `http://` or `https://` → URL.
- All-digit token (e.g. `1234567`) → CP code, pass `--cpcode`.
- Anything else → cache tag, pass `--tag`.
Overrides win over inference: `--cpcode`, `--tag`, or `--url` (a skill-level
override — the CLI has no `--url` flag, URLs are the unflagged default, so
never pass it through). If the tokens are mixed types, stop and ask which the
user meant — do not split into two calls.
Reject, with one line and no command run:
- **No targets** → `Need a URL, CP code, or cache tag.`
- **Bare hostname** (`example.com`, `www.example.com/path`) → say a URL target
must include the scheme, and offer `https://example.com`. Do not add the
scheme silently: a wrong guess purges nothing and reports success.
## Preflight
Run `<skill-dir>/scripts/preflight.sh` before the first purge of