Logo von Rf Requests

Rf Requests

Community
manykarim
rf-requests

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

Übersicht

Herausgebermanykarim
Repositoryrobotframework-agentskills
Skill-Namerf-requests
Sterne
40
Forks
2
Mitgelieferte Dateien
8
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 8 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von manykarim auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Rf Requests in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Rf Requests in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Rf Requests automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Rf Requests nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Rf Requests?

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

Warum Rf Requests in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Rf Requests besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Rf Requests in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Rf Requests nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Rf Requests verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Rf Requests damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Rf Requests kostenlos?

Ja. Der Skill wird von manykarim auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇