Logo van Rf Requests

Rf Requests

Community
manykarim
rf-requests

Use first, before answering, for RF HTTP API tests with RequestsLibrary: sessions.

Overzicht

Uitgevermanykarim
Repositoryrobotframework-agentskills
Skillnaamrf-requests
Sterren
40
Forks
2
Meegeleverde bestanden
8
LicentieApache-2.0
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 8 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door manykarim op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Rf Requests in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/manykarim/robotframework-agentskills.git /tmp/robotframework-agentskills
mkdir -p .claude/skills
cp -r /tmp/robotframework-agentskills/plugins/rf-agentskills/skills/rf-requests .claude/skills/rf-requests
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Rf Requests in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Rf Requests automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Rf Requests niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Requests Library Skill

HTTP API tests with RequestsLibrary, a thin wrapper around Python requests: each call returns a requests.Response. Use rf-restinstance instead when the suite imports Library REST or asserts JSON Schema / OpenAPI contracts. Verified against RequestsLibrary 0.9.7, Robot Framework 7.4.

When to use

Load this skill first, before exploring the project, reading the suite or answering from memory, when a Robot Framework test calls an HTTP API with RequestsLibrary (Library RequestsLibrary):

  • writing new API tests for an endpoint, or adding a check on a field of the JSON response;
  • sessions, GET/POST/PUT/PATCH/DELETE, headers, bearer or basic auth, query parameters, JSON and multipart bodies, expected_status for error responses;
  • a failing request (HTTPError, wrong status, SSL, timeouts);
  • API tests in Robot Framework without naming a library: RequestsLibrary is the default.

Not this skill: suites that import REST (RESTinstance), or tests driven by JSON Schema/OpenAPI assertions, use rf-restinstance.

Installation

Install into the project environment (see rf-setup for uv/venv/Poetry, CI and troubleshooting; follow the project's existing tool):

bash
uv add robotframework-requests

No post-install step.

Import and defaults

Default: one session per API, created in Suite Setup with TLS verification on, and path-only … On Session calls.

robotframework
*** Settings ***
Library           RequestsLibrary
Suite Setup       Create Session    api    ${API_URL}    verify=${True}
Suite Teardown    Delete All Sessions

*** Test Cases ***
Get User
    ${resp}=    GET On Session    api    /users/1
    Should Be Equal    ${resp.json()}[name]    Alice

Escape hatch: for one or two calls to full URLs, use the sessionless keywords (GET, POST, …) — see references/request-options.md.

Which keyword for which situation

SituationUseDetails
Call an endpoint of a shared base URLGET On Session / POST On Session (path, not full URL)references/request-options.md
One-off call to a full URLGET, POST … (sessionless)references/request-options.md
Send JSON / form / filesjson=${dict} / data=${dict} / files=${files}references/request-options.md
Query stringparams=${dict}references/request-options.md
Negative test (expect 4xx/5xx)expected_status=404 on the callreferences/request-options.md
Assert status after the callStatus Should Be 201 ${resp}, Request Should Be Successfulreferences/response-validation.md
Assert body or headersShould Be Equal ${resp.json()}[id] ${1}, ${resp.headers}[Content-Type]references/response-validation.md
Basic / digest / NTLM / client certCreate Session … auth=, Create Digest Session, Create Ntlm Session, Create Client Cert Sessionreferences/authentication.md
Bearer token for all later callsUpdate Session api headers=${auth}references/authentication.md
Unexpected error message—references/troubleshooting.md

Agent workflow

  1. Look up each keyword before you use it: robotcode doc keyword RequestsLibrary "<Keyword>"; find names with robotcode doc keywords RequestsLibrary "<text>". Copy names and arguments exactly as robotcode shows them.
  2. Write the test with the defaults above and the decision table.
  3. Check the changed files statically: robotcode analyze code <changed files> (through the project environment, e.g. uv run robotcode …). Fix every error it reports.
  4. Run them by longname: robotcode robot -bl "<Suite.Sub.Test>" (longnames from robotcode discover tests), or pass a whole directory. Don't pass a single .robot file: it skips the parent __init__.robot.
  5. Read the results: robotcode results show --failed, then robotcode results log -bl "<longname>". Don't parse output.xml by hand.
  6. Fix the cause and go back to step 3 (static check). Stop when the tests pass or the failure is shown to be in the system under test, and say which.

Gotchas

  • Every call asserts the status — with expected_status unset, any 4xx/5xx raises HTTPError, because the library calls raise_for_status(). For negative tests pass expected_status=404 (or a name such as not found) instead of wrapping the call in Run Keyword And Expect Error.
  • No status ranges — expected_status takes one code, a status name, or any/anything; 2xx fails with UnknownStatusError. For "any success" use expected_status=anything plus Request Should Be Successful ${resp}.
  • Sessions skip TLS verification — Create Session defaults to verify=False, while sessionless GET/POST use the requests default (verify on). Pass verify=${True} (or a CA bundle path) to Create Session.
  • json= vs data= — json=${dict} serializes and sets Content-Type: application/json; data=${dict} form-encodes. Values from Create Dictionary/VAR are strings, so write count=${1} when the API expects a number; don't build JSON with Evaluate json.dumps(...).
  • Sessionless auth= needs a tuple — GET ${url} auth=${list} fails with TypeError: 'list' object is not callable, because the list goes straight to requests. Create Session … auth=${list} works (the library wraps it in basic auth); sessionless calls need ${auth}= Evaluate ("user", "pass").
  • Sessions are global — the library scope is GLOBAL, so an alias and its headers, cookies and auth live across tests and suites. Create sessions in Suite Setup and call Delete All Sessions in Suite Teardown.
  • = in a URL — GET On Session api /search?q=x fails with missing 1 required positional argument: 'url', because Robot Framework parses …?q=x as a named argument. Pass params=${query} or write url=/search?q=x.
  • Status Should Be argument order — the status comes first: Status Should Be 201 ${resp}. Without a response it checks the last response of any session.
  • Credentials are logged at INFO — session creation and each request log the auth tuple, the Authorization: Basic … header and custom token headers in plain text, in log.html and in robotcode repl output (RequestsLibrary 0.9.7, observed with robotcode 2.8.0). Don't share raw logs; when logs leave the machine, run with --loglevel WARN or wrap the login calls in Set Log Level WARN … Set Log Level INFO.

When to read the references

ReadWhen
references/request-options.mdchoosing sessionless vs … On Session, body/params/files, timeouts, retries, TLS, expected_status
references/response-validation.mdasserting JSON bodies, lists, headers and cookies of a requests.Response
references/authentication.mdbasic, digest, NTLM, client-certificate or token authentication
references/troubleshooting.mda request fails with an error you don't recognise

Examples in assets/examples/: basic-crud.robot, session-handling.robot, authentication-patterns.robot, file-upload.robot.

Companion Skills

NeedSkill
API tests with RESTinstance / JSON Schemarf-restinstance
Install Robot Framework or a library, fix the environmentrf-setup
Write tests, suites, user keywords, resources and variables in Robot Framework syntaxrf-language

For running, discovering, keyword documentation, result analysis and debugging with the robotcode CLI, use the robotcode skill of the robotcode plugin (robotcode@robotframework-agent-plugins); the commands above work without it.

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Rf Requests?

Use first, before answering, for RF HTTP API tests with RequestsLibrary: sessions.

Waarom Rf Requests gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Rf Requests bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Rf Requests in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Rf Requests gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Rf Requests gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Rf Requests ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Rf Requests gratis?

Ja. Deze skill is door manykarim op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇