rf-python-library

rf-python-library is a skill for Claude Code from manykarim/robotframework-agentskills. It costs 23 tokens per session (3,144 once invoked), scanned A, original, Apache-2.0.

A guide for writing Robot Framework keyword libraries and listeners in Python. Keywords are reusable test actions, while listeners react to test events such as results or logging.

In plain words
What is it for?
It is for creating or fixing Python libraries around APIs, databases, or devices, and for building listeners that report or react to test results.
Why use it?
It helps avoid Robot Framework-specific mistakes involving library scope, arguments, state, failures, logging, and generated documentation. It separates Python code from test steps written in Robot Framework files.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Part of the rf-agentskills plugin — 12 skills, 4 agents, 4 hooks shipped together

Good fit It is for creating or fixing Python libraries around APIs, databases, or devices, and for building listeners that report or react to test results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/manykarim/robotframework-agentskills/rf-python-library
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.

Any agent
npx skills add manykarim/robotframework-agentskills --skill rf-python-library
Clone the repo
git clone --depth 1 https://github.com/manykarim/robotframework-agentskills

Made for: Claude Code.

Or install rf-agentskills, the plugin that ships this one along with the rest of its 12 skills, 4 agents, 4 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 rf-python-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/manykarim/robotframework-agentskills/rf-python-library/github.svg)](https://agentmods.dev/skills/manykarim/robotframework-agentskills/rf-python-library)
Your own site
<a href="https://agentmods.dev/skills/manykarim/robotframework-agentskills/rf-python-library"><img src="https://agentmods.dev/badge/skills/manykarim/robotframework-agentskills/rf-python-library/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 rf-python-library

Your own site · 80×15
<a href="https://agentmods.dev/skills/manykarim/robotframework-agentskills/rf-python-library"><img src="https://agentmods.dev/badge/skills/manykarim/robotframework-agentskills/rf-python-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,144 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.00023 $0.03144
Opus 5.5 $0.00009 $0.01258
Sonnet 5.5 $0.00005 $0.00629
Haiku 4.5 $0.00002 $0.00314

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

Security

Grade A, and why

rf-python-library 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 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/examples/converters.py, assets/examples/ExampleLibrary.py, assets/examples/ResultListener.py, …), 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.

plugins/rf-agentskills/skills/rf-python-library/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.

Robot Framework Python Library

Writing and fixing keyword libraries and listeners in Python: the default library shape, scope, argument conversion, failures, logging and the checks that catch Robot Framework-specific defects before a test runs. Tests, user keywords and .resource files belong to rf-language; using an existing library (Browser, RequestsLibrary, …) belongs to that library's skill. Rule of thumb: logic goes into Python, composition of existing keywords into a user keyword.

When to use

Load this skill first, before exploring the project, reading or creating .py files, or answering from memory, when Robot Framework keywords, libraries or listeners are written in Python:

  • a new keyword library (around an API, database or device client), @keyword and @library decorators;
  • ROBOT_LIBRARY_SCOPE and state kept between tests (a library that loses its state, a connection scope);
  • argument conversion from type hints (Enum, Literal, custom converters), failures and logging via robot.api, libdoc docs;
  • a library that "contains no keywords";
  • a listener that reacts to or reports results (chat, dashboards).

Not this skill: keywords in .robot/.resource files use rf-language; using an existing library such as Browser or RequestsLibrary uses its library skill.

Quick reference and version gate

Check the version in the project environment first (robot --version exits 251 even on success):

uv run python -c "import robot; print(robot.__version__)"
Feature Min RF
async def keywords, BuiltIn().dry_run_active 6.1
Literal conversion, embedded plus normal arguments in one library keyword, listener API v3 as the default 7.0
ROBOT_LISTENER_PRIORITY 7.1
@library selects the decorated class in a module whose name differs 7.2
robot.errors.TimeoutExceeded (named TimeoutError before 7.3) 7.3
Secret (robot.api.types) and object type hints 7.4
Markdown doc format (doc_format="MARKDOWN"); RF timeouts no longer derive from Exception 7.5

Read the full file on GitHub · 218 lines

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. 11d ago Changed · -2 tokens per session e84b8fff1eb8
  2. 17d ago First seen · 218 lines · 25 tokens per session scan A c52fbd97c338

Subscribe to this mod's changes

rf-python-library is a skill published in the GitHub repository manykarim/robotframework-agentskills (38 stars, last pushed 5d ago), licensed Apache-2.0. It adds 23 tokens to every session and 3,144 once invoked, about $0.0001 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-10-01.

Related

Other skills, from other repositories

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 68 tokens

python-providers

Create, modify, test, or package Python provider adapters under python/providers, including framework-specific dependencies, public imports, type inference, and provider metadata. Use for Python provider work only; use python-sdk for core SDK changes.

ComposioHQ/composio · 49 tokens

adk-verify-snippets

Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail report with per-snippet coverage. Use when the user asks to verify, test, or validate the code samples in a README, a guide…

google/adk-python · 149 tokens

adk-setup

Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test run. Runs only when explicitly requested, never on its own. Use when asked to set up, bootstrap, or repair a development…

google/adk-python · 146 tokens

maintaining-python-tests

Maintains existing pytest and Django test suites without weakening correctness. Use when asked to reduce Python test runtime or CI work, investigate slow pytest families, remove stale migration tests, consolidate repeated setup, improve Python test ownership, or measure whether a test optimization worked after merge.…

PostHog/posthog-foss · 110 tokens