Logo van Rf Restinstance

Rf Restinstance

Community
manykarim
rf-restinstance

Use first, before answering, for RF API tests with RESTinstance: JSON Schema. Not installs: rf-setup.

Overzicht

Uitgevermanykarim
Repositoryrobotframework-agentskills
Skillnaamrf-restinstance
Sterren
40
Forks
2
Meegeleverde bestanden
7
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.

  • 7 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 Restinstance 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-restinstance
  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-restinstance .claude/skills/rf-restinstance
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Rf Restinstance 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 Restinstance 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 Restinstance 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.

RESTinstance Library Skill

RESTinstance (Library REST) sends JSON requests and asserts the last response with typed, path-based keywords that also build a JSON Schema of it. Prefer it over rf-requests when the contract matters more than single values: schema files, learned schemas, OpenAPI specs, types and constraints. For plain request/response checks, form posts, sessions or file uploads use rf-requests. Verified against RESTinstance 1.8.0, Robot Framework 7.4.

When to use

Load this skill first, before exploring the project or answering from memory, when a Robot Framework API test uses RESTinstance (Library REST):

  • typed assertions on the JSON response (Integer, String, Object, Array);
  • JSON Schema validation, generating a schema from a response, OpenAPI/Swagger spec checks;
  • a test fails on a type mismatch in the response body ("Expected integer, but got string"), or the user mentions RESTinstance or wants schema-driven API tests.

Not this skill: suites that import RequestsLibrary, or generic API tests with no library named, use rf-requests.

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 RESTinstance

Requires Python ≥ 3.11; the SyntaxWarning lines printed on import (from flex) are harmless.

Import and defaults

Import with the base URL, send paths, and assert the status first on every request:

robotframework
*** Settings ***
Library    REST    ${API_URL}

*** Test Cases ***
Get User
    GET        /users/1
    Integer    response status    200
    Object     response body    required=["id", "name"]
    String     response body name    Alice
    Integer    response body id    minimum=1

${API_URL} has to exist when the library is imported (*** Variables *** or --variable). A URL without scheme gets http://. Escape hatch: when the base URL is only known at run time (a Suite Setup starts the server), import REST without a URL and send full URLs (GET ${API_URL}/users/1). Schema files and OpenAPI specs: see references/schema-validation.md.

Which keyword for which situation

SituationUseDetails
Send a requestGET / POST /users {"name": "Bo"} / PUT / PATCH / DELETEreferences/json-handling.md
Query string, per-request headers, timeoutGET /users query={"page": "2"} headers={...} timeout=5—
Assert statusInteger response status 200 (several values = any of them)—
Assert a field's type, value or constraintString response body email format=email, Integer $[*].id minimum=1references/json-handling.md
Assert a field is absent or nullMissing response body error, Null response body deleted_at—
Read a value for the next request${id}= Output response body id also_console=falsereferences/json-handling.md
Validate against a schema fileExpect Response Body ${CURDIR}/schemas/user.json before the requestreferences/schema-validation.md
Learn a schema from a real responseOutput Schema response body file_path=...references/schema-validation.md
Stop schema validationClear Expectations, or validate=false on one requestreferences/schema-validation.md
Headers for all later requestsSet Headers {"Authorization": "Bearer ${TOKEN}"}references/authentication.md
Basic/digest auth, client certificateSet Client Authentication, Set Client Certreferences/authentication.md
Self-signed TLS in a test environmentSet SSL Verify falsereferences/troubleshooting.md
See what the response looks likeOutput response body, Output Schema—
Dump every request and response of the suiteREST Instances ${OUTPUT DIR}/instances.jsonreferences/troubleshooting.md

Paths start at the last instance: response status, response body user name, response body items 0 id, response headers Content-Type, or JSONPath rooted at the body ($.items[*].id).

Agent workflow

  1. Look up each keyword before you use it: robotcode doc keyword REST "<Keyword>"; find names with robotcode doc keywords REST "<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

  • Error statuses pass silently — GET returns normally on 404 or 500, because RESTinstance only records the response as a new instance. Assert Integer response status 200 (or the expected error status) after every request.
  • Values after the path are exact allowed values, not patterns — String response body name Ali* fails on Alice, and /regex/ is compared literally, because extra arguments become the schema's enum. Write String response body name pattern=^Ali, or list every allowed value (Integer response status 200 201).
  • String arguments are decoded as JSON — values and validation arguments get quotes added and go through json.loads, so pattern=^\\d+ fails with Input not is valid JSON, and a single-quoted body ({'a': 1}) is sent as one JSON string. Write pattern=^\\\\d+ (or [0-9]) and bodies as double-quoted JSON or a &{dict}.
  • A JSON Schema passed as a value is an enum too — Object response body {"type": "object"} compares the body with that dict and fails. Use validation arguments (Object response body required=["id"]) or Expect Response Body with a schema.
  • Expectations leak into later tests — Expect Response Body, Expect Response and Expect Request change the library instance, which lives for the whole suite (ROBOT_LIBRARY_SCOPE = "TEST SUITE"), so every later request in the suite is validated against them and fails the HTTP keyword itself. Set them in the test that needs them and end it with Clear Expectations (or use them on purpose in Suite Setup).
  • Headers and auth persist for the suite — Set Headers and Set Client Authentication update the instance's request defaults, so a token set in one test is sent by all later tests. Use headers= on a single request, or reset with Set Client Authentication ${NONE}.
  • Type keywords return a list — ${id}= Integer response body id stores [1], because the keyword returns every match of the path. Use ${id}= Output response body id also_console=false for a single value (or ${id}[0]).
  • Output and Output Schema print to the console — also_console=True by default, which floods CI logs. Pass also_console=false once the paths are known.

When to read the references

ReadWhen
references/json-handling.mdWriting field paths, JSONPath, validation arguments, or chaining values between requests
references/schema-validation.mdUsing schema files, learning schemas with Output Schema, expectations, or an OpenAPI spec=
references/authentication.mdAdding tokens, API keys, basic/digest auth or client certificates
references/troubleshooting.mdA request or assertion fails with an error you don't understand

Examples in assets/examples/: basic-rest.robot (requests, paths, chaining, negative status), schema-validation.robot (learned schema, schema file, expectations).

Companion Skills

NeedSkill
API tests with RequestsLibraryrf-requests
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 Restinstance?

Use first, before answering, for RF API tests with RESTinstance: JSON Schema. Not installs: rf-setup.

Waarom Rf Restinstance gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Rf Restinstance 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 Restinstance 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-restinstance. 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 Restinstance 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 Restinstance gebruiken?

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

Is de AI-skill Rf Restinstance 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 👇