Agent skill

Libretto Readonly

by cashew-labs in cashew-labs/libretto

Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.

MITAuto-check passedDevelopment

Install Libretto Readonly

skills CLI
$ npx skills add cashew-labs/libretto --skill libretto-readonly -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cashew-labs/libretto libretto-readonly --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/libretto-readonly .claude/skills/libretto-readonly && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
libretto-readonly
GitHub stars
904
Token cost
~1.1k tokens
SKILL.md length
441 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.

  • Development work in your project
  • SKILL.md covers How Libretto Read-Only Works, Working Rules and Commands
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Libretto Readonly is an agent skill from cashew-labs/libretto. Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: The AI toolkit for building reliable browser automations. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/libretto-readonly”

What it can do on your machine

Read from SKILL.md and the folder at commit 41ab782. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Libretto Readonly loads about 1.1k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cashew-labs/libretto at commit 41ab782, republished under its MIT licence (© cashew-labs). 441 words, ~1,083 tokens.

Download SKILL.mdSave it as .claude/skills/libretto-readonly/SKILL.md (or your agent's skills folder).
name
libretto-readonly
description
Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.
license
MIT
metadata.author
saffron-health
metadata.version
0.6.45

How Libretto Read-Only Works

  • Use this skill when the browser session must stay strictly read-only.
  • Libretto stores read-only vs write-access on the session itself.
  • The primary inspection tools are snapshot and readonly-exec.
  • readonly-exec reuses Libretto's normal execution pipeline, but it only exposes read-only helpers and denies mutating Playwright methods.
  • Only a user can change the session mode for an existing session. Never change a session's mode on your own — the user must change it themselves manually.

Working Rules

  • Announce which session you are using and what page you are inspecting.
  • Do not use exec, run, or any direct Playwright action that could change browser or application state.
  • Do not click, type, submit forms, navigate, upload files, dispatch DOM events, or send non-GET requests.
  • Prefer snapshot first when the visible page state is unclear.
  • Use readonly-exec for focused inspection: titles, HTML, locator text, counts, visibility checks, and GET requests.
  • Keep snippets small and purpose-built. Do not run multiple readonly-exec commands at the same time.
  • Close disposable sessions before your final response once inspection is complete. Open browsers keep consuming local or hosted resources.
  • End with diagnosis and handoff guidance, not an attempted in-browser repair.

Commands

connect
  • Use connect to attach to an existing CDP endpoint for a preserved browser session.
  • Use --read-only when creating the Libretto session handle for a preserved browser session.
  • Libretto read-only mode is enforced through Libretto commands; direct CDP clients that skip Libretto are outside this boundary.
bash
libretto connect http://127.0.0.1:9222 --read-only --session failed-job-debug
pages
  • Use pages when a popup, new tab, or second page exists.
  • If readonly-exec or snapshot complains about multiple pages, list ids first and then pass --page.
bash
libretto pages --session failed-job-debug
Show full SKILL.md (174 more words)Show less
snapshot
  • Use snapshot as the first high-level observation tool.
  • Run snapshot <ref> to inspect a subtree from the latest full snapshot.
readonly-exec
  • Use readonly-exec for narrow inspection code only.
  • Denied operations fail with ReadonlyExecDenied: ....
Helpers
  • page — a read-only Playwright Page proxy. Standard Playwright read methods work normally (url(), title(), content(), frames(), getByRole(), locator(), textContent(), isVisible(), count(), scrollIntoViewIfNeeded(), etc.). frames() returns read-only Frame proxies, including from childFrames() and parentFrame(). Anything that mutates a page or frame (click, fill, goto, evaluate, keyboard, mouse) is blocked.
  • state — the current Libretto session state object.
  • get(url, options?) — HTTP client restricted to GET and HEAD requests. Replaces fetch, which is blocked in readonly mode. Any request with a body or a non-GET/HEAD method throws ReadonlyExecDenied.
  • scrollBy(deltaX, deltaY) — scroll the viewport by pixel offset. Use this to inspect content below the fold without targeting a specific element.

Standard JS globals console, URL, Buffer, setTimeout, and setInterval are also available.

Examples
bash
libretto readonly-exec "return page.url()" --session failed-job-debug
libretto readonly-exec "return await page.getByRole('heading').first().textContent()" --session failed-job-debug
libretto readonly-exec "return await page.frames()[1]?.getByRole('heading').textContent()" --session failed-job-debug

# HTTP GET inspection
echo "const r = await get('https://api.example.com/status'); return await r.json()" \
  | libretto readonly-exec - --session failed-job-debug

# Scroll down to inspect below-the-fold content
libretto readonly-exec "await scrollBy(0, 500)" --session failed-job-debug
close
  • Use close when the inspection session is no longer needed, unless the user explicitly asks to keep the browser open.
bash
libretto close --session failed-job-debug

© cashew-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/libretto-readonly of cashew-labs/libretto.

Open the folder on GitHubat commit 41ab782

Compare with similar skills

Libretto Readonly next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Libretto Readonly compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Libretto Readonly this skillcashew-labs/libretto904—~1.1kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from cashew-labs/libretto

All 21 skills in this repo
  • System Prompt Writing Guide

    cashew-labs/libretto

    Lays out a minimal, iteration-first approach to writing system prompts for LLM agents, with model-specific notes for Claude, GPT, Gemini, and Codex.

    904 GitHub stars~570 tokensUpdated 1 mo ago
    Auto-check passed
  • Address PR Review Comments

    cashew-labs/libretto

    Works through the review comments on a pull request one by one: fetches the threads, makes the fixes, runs type-check, build and lint, pushes, and resolves the threads.

    904 GitHub stars~532 tokensUpdated 1 mo ago
    Auto-check passed
  • CLI Development

    cashew-labs/libretto

    Design rules for command-line tools: subcommand-scoped help, actionable success output, debuggable failures, stable output, meaningful exit codes and a --json mode.

    904 GitHub stars~781 tokensUpdated 1 mo ago
    Auto-check passed
  • Drives desktop Electron apps already installed on your machine, such as Slack, Discord or VS Code, by relaunching them with a debugging port and using the Libretto CLI.

    904 GitHub stars~967 tokensUpdated 1 mo ago
    Auto-check passed
  • Merge Conflict Resolver

    cashew-labs/libretto

    Resolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash.

    904 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Feature Spec Generator

    cashew-labs/libretto

    Researches the codebase and relevant docs, asks clarifying questions, then writes a spec sheet in specs/ for a significant feature or complex fix.

    904 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Libretto Readonly

What does Libretto Readonly do?

Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests. Libretto Readonly is an agent skill from cashew-labs/libretto. Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.

When should I use Libretto Readonly?

Libretto Readonly fits situations like: development work in your project.

How do I install Libretto Readonly in Claude Code?

Run `npx skills add cashew-labs/libretto --skill libretto-readonly -a claude-code`. Or copy the skill folder (.agents/skills/libretto-readonly in cashew-labs/libretto) into .claude/skills/libretto-readonly in your project. Claude Code loads it when a task matches its description.

How do I install Libretto Readonly in Codex?

Run `npx skills add cashew-labs/libretto --skill libretto-readonly -a codex`. Or copy the skill folder (.agents/skills/libretto-readonly in cashew-labs/libretto) into .agents/skills/libretto-readonly in your project. Codex loads it when a task matches its description.

Can I use Libretto Readonly in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cashew-labs/libretto --skill libretto-readonly -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/libretto-readonly, .gemini/skills/libretto-readonly, .github/skills/libretto-readonly and .opencode/skills/libretto-readonly in your project.

What does Libretto Readonly need to run?

SKILL.md names no scripts, command-line tools or credentials: Libretto Readonly is instructions for the agent only.

Does Libretto Readonly access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Libretto Readonly safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Libretto Readonly use?

Libretto Readonly is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Libretto Readonly use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Libretto Readonly?

Skills that share tags, products or a category with Libretto Readonly: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Libretto Readonly?

cashew-labs (a GitHub organization) maintains it in cashew-labs/libretto, which has 904 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 21, 2026.

Source: cashew-labs/libretto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.