Work with a stepcap recording folder (steps.json + annotated screenshots). Use when the user gives you a stepcap session directory and asks either (A) to title, describe, clean up or translate the recorded procedure, how-to, manual or SOP for people - you write the step texts in steps.json and run `stepcap build`; or (B) to turn the recording into an Agent Skill / SKILL.md so an agent can repeat the task - you run `stepcap skill` for a draft and generalise it.
Ships in stepcap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two workflows. Pick by what the user asked for:
A stepcap session folder looks like this:
SESSION_DIR/
steps.json <- the only file you edit
images/ step-001.webp ... (annotated: numbered frame or ring on the click)
work/ screenshots without markers (blurred copies live here)
raw/ original screenshots - never modify, never copy elsewhere
events.jsonl raw event log - read only
guide.md / guide.html / checklist.html generated - never edit by hand
SESSION_DIR/steps.json or
SESSION_DIR/images/ is missing, run:
stepcap build SESSION_DIR
SESSION_DIR/steps.json. Relevant fields per step:
id, kind (click / type / drag / scroll / key / manual), click_type,
title, description, rendered (annotated image, e.g. images/step-003.webp),
window_title, app_name, keys, direction, and element (name / role of the
clicked control when the OS reported it, source: "ocr" when read from the screenshot -
check OCR names against the image). Top level: title, lang.rendered; if it is null, use image and the
pixel position point.img_x / point.img_y). A numbered frame surrounds the clicked
element (box in steps.json); a numbered ring marks the click when no element was
detected; an arrow marks a drag or scroll; a key-cap label marks a shortcut.
Identify the UI element (button label, menu item, field name) and what happens.title: imperative, one line, at most ~70 characters, names the element:
Click "New project", Enter the project name, Drag the card to "In progress".
Plain text only: no Markdown, no step number (stepcap adds "Step N —").description: 1-2 sentences: where the element is and/or what the reader
should see next. Use "" when the title says it all.title for the whole guide.lang from steps.json (en or ja) unless the user asks
otherwise. Japanese style: 「新規プロジェクト」をクリックします。python -c "import json,sys;json.load(open(sys.argv[1],encoding='utf-8'))" SESSION_DIR/steps.json
steps.json kept:
stepcap build SESSION_DIR
Open SESSION_DIR/guide.md and skim it. Tell the user where guide.html is
(single file, can be printed to PDF from a browser).stepcap skill SESSION_DIR -o OUT_DIR --agent none
It prints the skill folder (OUT_DIR/<name>/: SKILL.md + references/step-NN.png).
Use --name kebab-case-name if the user gave a name. If the user recorded the same task
several times, pass all folders (stepcap skill RUN1 RUN2 ... -o OUT_DIR): the first is the
reference, and the draft marks optional steps and lists the values typed in each run.SKILL.md, the step images in references/, and
SESSION_DIR/steps.json / SESSION_DIR/events.jsonl (app switches, URLs, clipboard and
terminal events are there when they were recorded).SKILL.md into a reusable skill:
{{snake_case_name}} under ## Inputs.## Goal, ## Inputs, ## Steps, ## Checks, ## Notes for the agent.name unchanged (it must equal the folder name); description <= 1024 characters
saying what the skill does and when to use it; under 500 lines.stepcap check-skill OUT_DIR/<name> --session SESSION_DIR
It checks the frontmatter, the 500-line / ~5000-token limits, every references/... link
and secret patterns, and lists what the recording showed but your text no longer mentions
(apps, buttons / fields, inputs, URLs, commands, notes). Put back anything that was lost by
mistake; items you generalised on purpose can stay out. Also make sure no e-mail address
or customer name is in the text..claude/skills/ (Claude Code) or .agents/skills/ (Codex), or regenerate with
--install claude|agents|gemini|cursor --scope project|user (agents = the shared
.agents/skills folder read by Codex, Gemini CLI and Cursor; stepcap agents lists all).The user can also let their own agent do step 3 in one go:
stepcap skill SESSION_DIR -o OUT_DIR --agent claude (or codex, gemini, or an agent from
agents.toml - stepcap agents lists them). stepcap shows the files the agent will read and
asks before running it.
title, description and the top-level title. Never change id,
kind, screenshot, point, from, to, auto, image, rendered, box,
box_source or arrows, nor the guide-wide marker, spotlight and auto_arrows
(the user sets those in stepcap edit).Typed 12 characters (content not recorded)).
Describe the intent ("Enter your employee ID") - never guess or invent the value,
and never write passwords, tokens or personal data into the guide even if visible.stepcap build blurs API keys, tokens and labelled passwords that OCR reads on screen
(detection-skill) and prints Blurred N secret(s) seen on screen with each step and kind.
Relay that list to the user (kinds only, never a value) and ask them to check the images;
if the build warns that screenshots were not checked, say so. OCR misses small text, so
other sensitive data (customer names, e-mail addresses, anything left) still needs a look:
tell the user and suggest stepcap edit SESSION_DIR → "Blur area".
Do not upload screenshots or guides anywhere; everything stays local.guide.md, guide.html or files under raw/: they are regenerated or
immutable. stepcap build --reset discards all text edits - only use it if asked.Before (automatic):
{"id": "s0002", "kind": "click", "title": "Click in \"New project - Acme Tasks\"",
"description": "", "rendered": "images/step-002.webp"}
After:
{"id": "s0002", "kind": "click", "title": "Click the \"Project name\" field",
"description": "It is the first field in the New project dialog.",
"rendered": "images/step-002.webp"}
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/stepcap:stepcapfrom stepcap
stepcap@velisa is listed by kajisho5/velisa — review the source before installing
npx claudepluginhub kajisho5/velisa --plugin stepcap