Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

docs(cli): document automations in README skill and guide

Richie McIlroy66c0eebb0601
diff --git a/apps/cli/README.md b/apps/cli/README.md
index 02fa97474..2934dc22c 100644
--- a/apps/cli/README.md
+++ b/apps/cli/README.md
@@ -81,7 +81,18 @@ step.
- `cap upload` — upload a `.cap` project or video file and get a shareable link.
- `cap update` — download and install the latest Cap Desktop bundle, then repair the `cap` shim.
- `cap doctor` / `version` / `guide` — diagnostics, version info, and the agent capability manifest.
+- `cap automations list` — list the automation rules configured in Cap Desktop that the CLI honors.
- `cap desktop status|install-cli|uninstall-cli` — manage the `cap` shim on PATH.
- `cap completions <shell>` — shell completion scripts (bash/zsh/fish/powershell).
+## Automations
+
+Automations are `trigger → (conditions) → actions` rules authored in Cap Desktop (Settings →
+Automations) and persisted to its store. Because the CLI shares that store (and the `cap-automation`
+engine), it runs the same rules automatically after `cap screenshot`, a `cap record` finish, and
+`cap upload` — e.g. "on screenshot, save a copy to `~/Shots` and POST a webhook". Clipboard, OCR,
+notification, and open-editor actions are desktop-only and are skipped on the CLI; everything else
+(save, export, upload, run command, webhook, reveal, apply preset, delete) runs. Inspect the active
+rules with `cap automations list --json`.
+
Run `cap --help` or `cap <command> --help` for full flag documentation.
diff --git a/apps/cli/skill/cap/SKILL.md b/apps/cli/skill/cap/SKILL.md
index f01015d38..606a2c75f 100644
--- a/apps/cli/skill/cap/SKILL.md
+++ b/apps/cli/skill/cap/SKILL.md
@@ -71,6 +71,20 @@ cap upload out.mp4 --json # -> {"type":"uploaded","id","lin
or set `CAP_API_KEY` (a Cap auth key from Settings) for headless use. `cap upload <path.cap> --export
--json` exports then uploads in one step.
+## Automations
+
+Automations are `trigger -> (conditions) -> actions` rules authored in Cap Desktop (Settings →
+Automations) and shared with the CLI. After `cap screenshot`, a `cap record` finish, and `cap upload`,
+the CLI evaluates the matching rules and runs their actions (save to a folder, run a command, send a
+webhook, export, etc.).
+
+```sh
+cap automations list --json # the rules the CLI will honor
+```
+
+Desktop-only actions (copy to clipboard, OCR, notifications, open editor) are skipped on the CLI; all
+others run. `cap doctor --json` reports the configured rule count under `automations`.
+
## Conventions to rely on
- Add `--json` to any command; it overrides each command's `--format`.
diff --git a/apps/cli/src/guide.rs b/apps/cli/src/guide.rs
index 9f32a1a6c..32cc01e0a 100644
--- a/apps/cli/src/guide.rs
+++ b/apps/cli/src/guide.rs
@@ -255,6 +255,12 @@ fn build() -> Guide {
OutputMode::SingleJson,
&[],
),
+ cmd(
+ "automations list",
+ "List the automation rules configured in Cap Desktop (Settings > Automations) that the CLI honors after screenshot/record/upload.",
+ OutputMode::SingleJson,
+ &[],
+ ),
cmd(
"completions",
"Print a shell completion script for bash/zsh/fish/powershell.",
@@ -267,6 +273,9 @@ fn build() -> Guide {
ProjectConfiguration, export NDJSON) preserve their original field casing.",
"`cap completions <shell>` prints a shell completion script.",
"Recording without --duration requires either --detach or an interactive terminal.",
+ "Automations authored in Cap Desktop run automatically after `cap screenshot`, `cap record` \
+ finishes, and `cap upload`. Clipboard/OCR/notification/editor actions are desktop-only and \
+ are skipped on the CLI. List them with `cap automations list`.",
],
}
}