Skip to content
Machine Learning
Skill

/app-capture

Deterministically drive a first-party Civitai App Block in the operator's browser and produce store-ready screenshots, machine-analysable per-state evidence (DOM + console + failed requests + a11y + testids), or attach media to a listing. Use when the user asks to capture /

From plugin
civitai
7.3k52 skills17 agents3 commands

Claude Code

$ npx -y skills add civitai/civitai --skill app-capture --agent claude-code

SKILL.md

app-capture.SKILL.md
name: app-capture
description: Deterministically drive a first-party Civitai App Block in the operator's browser and produce store-ready screenshots, machine-analysable per-state evidence (DOM + console + failed requests + a11y + testids), or attach media to a listing. Use when the user asks to capture / screenshot / re-shoot an app's store images, to add a screenshot / icon / cover / caption to an app listing, to add a new app to the capture set, to FIND DEFECTS in a running App Block or diff a before/after fix, or to run a scripted App Block action (including the spend path behind an explicit flag).
argument-hint: "[capture <slug> | evidence <slug> | attach <slug> | discover <slug> | test]"
allowed-tools: Bash, Read, Edit, Write, Grep, Glob

app-capture โ€” scripted App Block runs + store screenshots

Two verbs, deliberately separate:

| verb | mutates? | entry point | |---|---|---| | `capture` | no โ€” never spends, never touches a listing | `.claude/skills/app-capture/scripts/capture.sh` | | `attach` | **yes** โ€” opens a moderator-reviewed shadow revision | `.claude/skills/app-capture/scripts/attach.sh` |

The logic lives in three **pure** scripts under `.claude/skills/app-capture/scripts/`, so it tests with no browser: `plan.py` turns *recipe + observed state* into an ordered list of bridge commands, `frame.py` measures/crops/gates an image, `evidence.py` turns *DOM + drained probe* into a per-state artifact. `capture.sh` executes what they print and decides nothing.

Run it

SK=.claude/skills/app-capture/scripts
$SK/capture.sh $SK/recipes/custom-generators.json --instance work --out /tmp/cg

Add an app = add a recipe. Nothing else changes. `--tab <id>` attaches to a tab the operator already has in front (no `open`, never closes it); `--no-foreground` is diagnostics only.

๐Ÿ”ด **Two founding claims are RETRACTED โ€” do not re-derive them.** An App Block *does* boot hidden (4/4), and the screenshot discriminator is *not* occlusion: `captureVisibleTab` can **HANG** rather than reject, so the `catch` that falls through to CDP never ran. โœ… Fixed in the BRIDGE (devrc #797) โ€” **nothing here changed**, so `ACTIVATE_REASONS`, G11 and M59โ€“M64 are the shipped design, not dead code. ๐Ÿ”ด **Deployed โ‰  running:** the MV3 worker serves old code until Brave FULLY restarts (โ†ป often no-ops), so a run can still hit the 18 s hang; `browser --instance <key> ping` โ†’ **`buildMarker`** is the only field describing RUNNING code, and staleness is **per profile**.

๐Ÿ”ด **The raise is withheld, but `activate` is NOT a no-op.** Every capture-path activate passes `--no-focus`, so the i3 raise answers `i3: "withheld"` (a **fourth** value beside `applied|skipped|failed`) โ€” and that gate covers the `i3-msg` ONLY. ๐Ÿ”ด **Corrected 2026-08-28: OMITTING the flag would not withhold anything** โ€” the CLI defaults it ON when stdout is a TTY, so the old "`capture.sh` never passes `--focus`" derivation was wrong and the property rested on `run_step`'s command substitution. Now declared and gated (`activate_unconsented`); `spend` is exempt. The extension also calls `chrome.windows.update({focused: true})`, granted under i3's default `smart` from a window on the **active** workspace: a **residual** screen-take whenever Brave is already on the visible workspace, **unmeasured in both directions**. `activate` also makes the tab its window's **ACTIVE TAB** โ€” what routes a capture onto `captureVisibleTab`, where a background tab takes CDP. Removing the steps is optional cleanup, not a fix.

Measurements, corrections, and what was NOT established: the private infra repo's occlusion write-up (2026-08-24) (the hang, the raise) ยท the private infra repo's hidden-tab-boot write-up (2026-08-24) (hidden boot 4/4)

๐Ÿ”ด **Foregrounding is NOT the spend path โ€” two separate guards, neither able to cover the other.** `activate` is confined to four declared positions (`ACTIVATE_REASONS`); `plan.py` separately refuses **any** step carrying `xdotool`/`--clearmodifiers` without `--trusted` (`actuation_without_trusted`), a check deliberately blind to `activate`. Each placement clause raises its OWN code, or a mutant dies to its neighbour and the battery records coverage that does not exist. Gates **G2** and **G11** prove it.

๐Ÿ”ด **Every state opens with an APP-READY gate** โ€” a recipe must declare a `ready` anchor (`no_ready_gate`), and it must be something only the **booted** app renders. Without one, a click fired into a still-booting app is discarded and the *next* wait times out naming the control: a defect report about the wrong component.

**One failure, one exit code, one sentence** โ€” a code once carried several, twice. All of them, because a partial list sends you reading the script: `2` refused before anything was driven (a `plan.py` REFUSE, an unknown flag, no such recipe) ยท `3` the **bridge or the tab**, never the app ยท `4` a recipe action failed ยท `5` a state's crop was REFUSED ยท `6` every state measured the **same box** โ€” the cropper is reading page furniture ยท `7` render failed ยท `8` the candidates violate the store bounds ยท `9` the app-frame probe could not be **BUILT** (`guard_rect_js`) ยท `10` evidence refused ยท `11` the app never booted (**CONFOUND** only when the anchor is ABSENT *and* the tab is not visible) ยท `12` the screenshot op returned no path โ€” a **bridge** failure, never the recipe's ยท `13` the host-side window raise reported `failed` ยท `14` the **browser window is not the one this recipe's `crop.rect` was measured in**. Gate **D8** pins the **5/9/14** split (a bad crop vs a probe that could not be built vs a wrong window โ€” 5 and 9 were once one code). โš ๏ธ `0` is not always a shoot: no imagemagick, and `--no-frame`, both exit 0 unrendered.

๐Ÿ”ด **14 is not a defect report โ€” it is the one code that says nothing is broken.** It carries two refusals, `viewport_of_record` and `frame_of_record`, because they ask the operator for the same thing (restore the geometry, or re-measure). A declared `crop.rect` is ABSOLUTE

Read more
@civitai
Ships withcivitai

A repository of models, textual inversions, and more

7.3k52 skills17 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7.3k
Star history of civitai/civitai on GitHub, a chart by star-history.com

Other skills on civitai.

add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,โ€ฆ

@civitai@civitaiInstall Skill
add-generation-support

add-generation-support

Wire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph andโ€ฆ

@civitai@civitaiInstall Skill
add-prompt-enhancement-guide

add-prompt-enhancementโ€ฆ

Author a prompt-enhancement system prompt for a new ecosystem and register/update it on the orchestrator's prompt-analysisโ€ฆ

@civitai@civitaiInstall Skill
add-trainer-model

add-trainer-model

Add a new trainable base model to BOTH trainers end-to-end โ€” the in-app trainer (main Next.js app, src/) and the Training Studioโ€ฆ

@civitai@civitaiInstall Skill
add-training-support

add-training-support

Wire an existing ecosystem into the LoRA training system so it appears as a trainable base model in the training form. Adds theโ€ฆ

@civitai@civitaiInstall Skill
app-taste

app-taste

Take a first-party Civitai App Block from functional to considered โ€” the repeatableโ€ฆ

@civitai@civitaiInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with rootโ€ฆ

mlflow4d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, andโ€ฆ

skills2w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase โ€” how each component works, where the key abstractions live, and the data flow through theโ€ฆ

feast8d7.4k
@feast-dev@feast-devInstall Skill
accessing-mlflow

accessing-mlflow

Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metricsโ€ฆ

@nvidia@nvidiaInstall Skill

Questions about app-capture.

Which coding agents can use app-capture?
app-capture installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.