aktual: Skill for Claude Code

.claude/skills/pr-screenshots/SKILL.md

pr-screenshots is a skill for Claude Code from jonapoul/aktual. It costs 49 tokens per session (1,077 once invoked), scanned A, original, Apache-2.0.

A workflow that renders Jetpack Compose UI components, Android's Kotlin-based user-interface toolkit, into PNG images without opening a display.

In plain words
What is it for?
Use it to select changed composables, create a temporary desktop test, render one or two states, and add the resulting images to a pull request.
Why use it?
It makes it possible to capture changed screens in headless or cloud environments and attach visual evidence to a pull request.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is jonapoul/aktual's own configuration. It tells Claude Code how to work on aktual itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aktual configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jonapoul/aktual. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jonapoul/aktual/main/.claude/skills/pr-screenshots/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jonapoul/aktual

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-screenshots

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonapoul/aktual/pr-screenshots/github.svg)](https://agentmods.dev/skills/jonapoul/aktual/pr-screenshots)
Your own site
<a href="https://agentmods.dev/skills/jonapoul/aktual/pr-screenshots"><img src="https://agentmods.dev/badge/skills/jonapoul/aktual/pr-screenshots/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-screenshots

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonapoul/aktual/pr-screenshots"><img src="https://agentmods.dev/badge/skills/jonapoul/aktual/pr-screenshots.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01077
Opus 5.5 $0.00020 $0.00431
Sonnet 5.5 $0.00010 $0.00215
Haiku 4.5 $0.00005 $0.00108

Measured 5d ago against content hash 597de6cac385, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-screenshots scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (upload.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/pr-screenshots/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Grab images of changed UI and put them in the PR description. Works with no display, so it suits cloud sessions. It renders composables in a desktop Compose test, not the running app.

1. Pick what to capture

  • $ARGUMENTS says what to capture, if given. Otherwise take the composables changed on this branch (git diff origin/main --stat, then look in */ui/ and */components/ modules).
  • Prefer the scaffold/content composable that takes plain state (e.g. InfoScaffold(state, onAction)), not the Screen that needs a VM. Build the state from the file's @Preview functions, which are private, so copy their arguments.
  • Default to dark colors. Add LightColors (and MidnightColors) only when the change is about color, or when asked.
  • Keep it small: one or two images per changed screen or state.

2. Write a throwaway test

Create <module>/src/desktopTest/kotlin/<package>/ScreenshotTest.kt in the module that owns the composable, in the same package so internal composables are visible. Every compose module already has aktual-test:compose on its test classpath.

package aktual.about.ui.info

import aktual.core.theme.LightColors
import aktual.test.screenshot
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import kotlin.test.Test

class ScreenshotTest {
  // Full screen, phone size, dark colors
  @Test fun info() = screenshot("info") { InfoScaffold(buildState = STATE, onAction = {}) }

  // Cropped to the composable's own size, for components and dialogs
  @Test
  fun dialog() = screenshot("no-update-dialog", fitContent = true) {
    NoUpdateFoundDialogContent(onDismiss = {})
  }

  // Interact before capture
  @Test
  fun sortSheet() =
    screenshot("sort-sheet", colors = LightColors, interact = { onNodeWithText("Sort").performClick() }) {
      LicensesScaffold(...)
    }
}

screenshot() lives in aktual-test/compose/src/desktopMain/kotlin/aktual/test/Screenshots.kt. Parameters: colors, widthDp/heightDp (default phone, use MY_MONITOR_WIDTH_DP/MY_MONITOR_HEIGHT_DP for desktop layouts), density (default 2), fitContent, interact.

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 91 lines · 49 tokens per session scan A 597de6cac385

Subscribe to this mod's changes

pr-screenshots is a skill published in the GitHub repository jonapoul/aktual (43 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 1,077 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

pr-screenshots compared with skills from other repositories

pr-screenshots next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-screenshotsjonapoul/aktualSkill43yesterdayApache-2.0A49Claude Code
compose-component-designchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
maui-accessibilitydotnet/maui-labsSkill235yesterdayMITA60Claude Code, Codex
compose-uiMeet-Miyani/compose-skillSkill30314d agoMITA148Claude Code
compose-visuals-footgunsmaxrave-dev/kotlin-footgunsSkill2.0k8d agoGPL-3.0A65Claude Code
compose-screens-footgunsmaxrave-dev/kotlin-footgunsSkill2.0k8d agoGPL-3.0A57Claude Code
m3-expressiveTalissonVitorino/kmp-ios-skillsSkill162mo agoMITA41Claude Code, Codex