robotframework-keyword-builder
Robot Framework Keyword Builder
Create user keywords in Robot Framework syntax from structured input. Output JSON only.
Input (JSON)
Provide input via --input or stdin. Example:
{
"keyword_name": "Create User",
"description": "Creates a new user via the UI.",
"arguments": [
{"name": "username", "type": "str"},
{"name": "role", "default": "viewer"}
],
"tags": ["ui", "smoke"],
"setup": {"keyword": "Open Browser", "args": ["${URL}", "chromium"]},
"teardown": {"keyword": "Close Browser"},
"style": "simple",
"steps": [
{"keyword": "Click", "args": ["Add User"]},
{"keyword": "Input Text", "args": ["Username", "${username}"]},
{"keyword": "Click", "args": ["Save"]}
]
}
Command
python scripts/keyword_builder.py --input keyword.json
Detect embedded-argument style from an existing project:
python scripts/keyword_builder.py --input keyword.json --project-root . --detect-embedded
Return values
Use "return_value" to add a RETURN statement at the end of the keyword:
{
"keyword_name": "Get Full Name",
"arguments": [{"name": "first"}, {"name": "last"}],
"steps": [{"assign": ["${result}"], "keyword": "Catenate", "args": ["${first}", "${last}"]}],
"return_value": "${result}"
}
Multiple return values:
"return_value": ["${var1}", "${var2}"]
Notes
- RF 7+ type annotations: Robot Framework 7 and later support type annotations
in
[Arguments]using${name}: typesyntax (e.g.${count}: int). This builder does not yet generate that syntax; type information is recorded in[Documentation]only.
Output (JSON)
artifact: keyword blockwarningsandsuggestionsmeta: any detected project conventions
More from manykarim/robotframework-agentskills
robotframework-appium-skill
Guide AI agents in creating AppiumLibrary tests for iOS and Android native apps, hybrid apps, and mobile browsers. Load when asked about mobile testing, Appium, or mobile app automation.
13robotframework-selenium-skill
Generate Robot Framework tests using SeleniumLibrary for browser automation with Selenium WebDriver. Use when asked to create web UI tests, automate browsers, interact with forms, handle multiple windows/frames, or execute JavaScript.
10robotframework-testcase-builder
Generate Robot Framework test cases from structured requirements or scenarios. Use when asked to create test cases, apply tags/setup/teardown/templates, or produce keyword-driven tests.
9robotframework-browser-skill
Guide AI agents in creating Browser Library tests using Playwright-powered automation with auto-waiting, assertion engine, and modern web features. Use when asked to create web tests with Browser Library, handle locators, assertions, iframes, Shadow DOM, or multi-tab scenarios.
9robotframework-requests-skill
Guide AI agents in creating REST API tests using RequestsLibrary. Use when building HTTP client tests, JSON/XML API testing, session management, authentication, file uploads, and response validation.
6robotframework-libdoc-search
Search Robot Framework library/resource/suite documentation to find matching keywords for a use case. Use when asked to find keywords, search libdoc, match a use case to keywords, or scan multiple libraries/resources for relevant keywords.
6