creating-actions

creating-actions is a skill for Claude Code, Codex from Lykhoyda/rn-dev-agent. It costs 127 tokens per session (3,540 once invoked), scanned A, original, MIT.

A guide for saving a tested Maestro user-interface flow as a reusable action. Maestro is a tool that describes app interactions, such as tapping buttons and entering text, in YAML files.

In plain words
What is it for?
Use it to save verified app journeys for later replay, including login, setup, navigation, locale or theme changes, and test-data preparation.
Why use it?
It avoids repeating the same login, setup, or navigation steps by hand. It also helps prevent duplicate actions for flows that already exist.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the rn-dev-agent plugin — 11 skills, 16 commands, 5 agents, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lykhoyda/rn-dev-agent/creating-actions
Any agent
npx skills add Lykhoyda/rn-dev-agent --skill creating-actions
Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/rn-dev-agent

Made for: Claude Code, Codex.

Or install rn-dev-agent, the plugin that ships this one along with the rest of its 11 skills, 16 commands, 5 agents, 6 hooks.

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 creating-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/rn-dev-agent/creating-actions.svg)](https://agentmods.dev/skills/lykhoyda/rn-dev-agent/creating-actions)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/rn-dev-agent/creating-actions"><img src="https://agentmods.dev/badge/skills/lykhoyda/rn-dev-agent/creating-actions.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00127 $0.03540
Opus 5 $0.00063 $0.01770
Sonnet 5 $0.00025 $0.00708
Haiku 4.5 $0.00013 $0.00354

Measured 3d ago against content hash ae277b1abd1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-actions 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 3d ago.

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.

packages/claude-plugin/skills/creating-actions/SKILL.md · 218 lines

How it starts

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

creating-actions — Author a Reusable Maestro Action

An action is a parameterised Maestro flow at <project>/.rn-agent/actions/<id>.yaml with an M7 metadata header, replayable via /rn-dev-agent:run-action or cdp_run_action (auto-repair-aware). A well-authored action turns a ~minutes interactive walk into a ~seconds deterministic replay. Authoring one well means: dedup first, ground every selector in evidence, design the flow as an ASCII diagram before writing YAML, validate, then replay to promote.

When to Use

  • A verified flow is worth replaying: login, navigation prologue, multi-step setup, locale/theme switching, data seeding.
  • /rn-dev-agent:test-feature verification passed and the walk should be persisted.
  • The user asks to make a flow replayable / save an action.

When NOT to author an action:

  • A one-off check — use maestro_run with inlineYaml and throw it away.
  • An existing action already covers the flow — extend or parameterise it instead of forking a near-duplicate.
  • The flow spans two apps — actions are single-appId by contract.

Step 0 — Scan the Inventory First (dedup)

Before authoring anything, check what already exists:

node "${CLAUDE_PLUGIN_ROOT}/rn-dev-agent-core/dist/learned-actions.js" --json --section b \
  --workspace-root "$PWD" --memory-cwd "$PWD" --filter <keyword>

(or /rn-dev-agent:list-learned-actions <keyword>). Listing is read-only and grants no replay authority: if a match covers the goal, run the Step 6 ownership pre-flight first — call rn_session({action: "status"}), and if state is blocked, stop and follow recoveryRequirement.nextAction verbatim instead of replaying. Only then replay the match. If a near-match exists (same flow, hardcoded values), parameterise THAT action with ${VAR} placeholders rather than creating a sibling — duplicate actions rot independently and split the repair history.

Step 1 — Pick the Creation Path

Situation Path
About to walk the flow live on a device anyway Recorder: cdp_record_test_start → drive UI (cdp_interact / device_*) → cdp_record_test_stopcdp_record_test_save_as_action (writes header + sidecar; pass intent/tags/mutates/produces yourself — the recorder cannot infer them)
Flow and selectors already known (prior exploration, existing test) Direct authoring — Steps 2–6 below
Structured steps in hand, want generated YAML maestro_generate — then verify the M7 header per Step 4 and continue with Steps 5–6

Read the full file on GitHub · 218 lines

Files

What ships with it

2 files 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. 3d ago First seen · 218 lines · 127 tokens per session scan A ae277b1abd1b

Subscribe to this mod's changes

creating-actions is a skill published in the GitHub repository Lykhoyda/rn-dev-agent (11 stars, last pushed yesterday), licensed MIT. It adds 127 tokens to every session and 3,540 once invoked, about $0.0006 per session on Opus 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-08-30.