Logo di Rf Requests

Rf Requests

Community
manykarim
rf-requests

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

Panoramica

Autoremanykarim
Repositoryrobotframework-agentskills
Nome della skillrf-requests
Stelle
40
Fork
2
File inclusi
8
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 8 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da manykarim su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Rf Requests in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rf Requests in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Rf Requests non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Rf Requests non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Rf Requests?

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

Perché usare Rf Requests su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rf Requests è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Rf Requests in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-requests. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Rf Requests?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Rf Requests?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Rf Requests: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Rf Requests è gratuita?

Sì. È pubblicata su GitHub da manykarim con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇