Logo vun Quickstatements

Quickstatements

Communautéit
fuzheado
quickstatements

Build and run QuickStatements (QS) batches for Wikidata and Commons - the V1 command grammar (statements, qualifiers, references, ranks, item creation), value formatting (dates, quantities, coordinates, monolingual text), multilingual labels/descriptions/aliases, the QS 2.0 and QS 3.0 tools and their web UI/URL/API entry points, plus validation and best practices

Iwwersiicht

Editeurfuzheado
RepositoryWikipedia-AI-Skills
Skill-Nummquickstatements
Stären
27
Forks
10
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum fuzheado op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Quickstatements an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/quickstatements
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/quickstatements .claude/skills/quickstatements
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Quickstatements an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Quickstatements automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Quickstatements net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

QuickStatements

Build and run QuickStatements (QS) batches: batch edits to Wikidata items (and, via QS 2.0, to Commons Structured Data) written as plain text commands. The full grammar lives in references/quickstatements-syntax.md; canonical upstream docs are Help:QuickStatements and the QS 3.0 User guide.

When to use this skill

Use QuickStatements when you need to apply the same shape of edit to many entities (or many statements to one entity): adding a property to a whole category's worth of items, setting labels/descriptions in several languages, creating person items in a batch, or removing statements after cleanup.

Prefer the Wikibase API (see the wikidata skill) when the batch needs per-item branching logic, or when you need control QS does not offer (ranks in QS 2.0, calendar, coordinate globe/precision). Prefer Pywikibot for data-driven loops. QuickStatements' strength is the reviewable, plain-text batch: you can read exactly what will be edited, run it from a URL, and roll it back as one edit group.

Pick the version first

NeedUse
New Wikidata statement workQS 3.0 (qs-dev.toolforge.org) - ranks, forced duplicates, grouped edits
Commons Structured Data (M IDs)QS 2.0 (quickstatements.toolforge.org) - QS 3.0 cannot (REST API limit)
MERGE items, lexemesQS 2.0
Programmatic submissionQS 2.0 api.php token interface

V1 commands are compatible across versions, so a batch like the New-Q5 person example runs unchanged in both.

Standard operating procedure

1. Decide the edits, not the code

List the entity IDs and the exact property/value pairs. Fetch labels and QIDs you need (Wikidata search or SPARQL - see the wikidata skill). Search before CREATE: duplicate items are the most common QS disaster.

2. Write V1 commands

One command per line, fields separated by |:

Q42|P31|Q5
Q42|P21|Q6581097
Q42|P569|+1952-03-11T00:00:00Z/11|S854|"https://example.com/source"|S813|+2026-06-24T00:00:00Z/11
  • Strings, URLs, filenames, external IDs must be double-quoted - "...".
  • Time values: +1967-01-17T00:00:00Z/11 (/9 year, /10 month, /11 day; + CE, - BCE; /J for Julian).
  • Quantity: 5.5U11574 or -80~1.5 (no spaces).
  • Coordinates: @43.26193/10.92708.
  • Monolingual text: en:"Some text".
  • Qualifiers follow the value: |P1545|"1".
  • References use S properties after the value: |S854|"url"|S813|+...; a new reference group starts with !S248.
  • New items: CREATE then LAST|... for every subsequent command on that item.
  • QS 3.0 extras: rank tokens R+/R0/R- (or Rpreferred/Rnormal/ Rdeprecated), +Qid|... to force a duplicate, REMOVE_QUAL, REMOVE_REF, SWITCH_VALUE, SWITCH_PROPERTY.
  • Edit summaries: append /* comment */ to a command.

3. Multilingual labels, descriptions, aliases

This is where person and entity batches get their translations:

LAST|Lmul|"Jane Doe"                 # label in every language
LAST|Len|"Jane Doe"                  # explicit per-language labels
LAST|Lde|"Jane Doe"
LAST|Lfr|"Jane Doe"
LAST|Lnl|"Jane Doe"
LAST|Den|"person"                    # description is per-language (no Dmul)
LAST|Amul|"Jane D."                  # alias for all languages
  • Proper nouns (names, brands) are not translated - Lmul plus explicit Lxx rows is the New-Q5 pattern.
  • Descriptions have no mul: write Den, Dnl, ... individually.
  • QS 3.0: multiple aliases per language as separate columns |Aen|"Gandhi"|"Mohandas Gandhi"; QS 2.0: pipe-separated inside one quoted value (and not during item creation).

4. Validate before running

python .claude/skills/quickstatements/scripts/qs_batch.py --file batch.txt

The script checks entity/property shapes, value formats (dates, quantities, coordinates, quotes), qualifier/source pairs, CREATE/LAST pairing, and the QS 3.0 commands, and can also build a person batch and produce clickable URLs:

python .claude/skills/quickstatements/scripts/qs_batch.py \
  --person "Jane Doe" --description "person" --dob 1980-01-02 \
  --gender Q6581097 --url --version 3

5. Run

  • Web UI: paste into "New batch", preview (QS converts to human-readable form), then run. Watch the first few commands; hit STOP on a problem.
  • Background (QS 2.0 "Run in background"): server-side execution, batch URL with DONE/ERROR/INIT/RUN counters, revertible as an edit group. Use normal mode for ~10 or fewer statements.
  • By URL: https://quickstatements.toolforge.org/#/v1=<encoded> (QS 2) or https://qs-dev.toolforge.org/batch/new?v1=<encoded> (QS 3).
  • API (QS 2.0): POST https://quickstatements.toolforge.org/api.php?action=import with username, token (from your QS user page), data, submit=1, openpage=1, batchname, and site=commons for SDC. You must have run one server-side batch manually before the token works.

6. Verify and clean up

  • Check the batch status page for ERROR lines; re-run only the failed commands (fix the cause first).
  • A batch is one edit group - roll back the whole thing with EditGroups if it was wrong.
  • For large or contested runs, follow the Wikidata:Bots approval process.

Guardrails

  • Autoconfirmed account + OAuth login required; QS edits are public.
  • No duplicate items: always search/resolve QIDs before CREATE.
  • Reference claims per Help:Sources (identifiers are the exception).
  • QS 2.0 does not honor maxlag; large runs are rate-limited by edit limits.
  • Never run a batch whose commands you could not read back and explain; the whole point of QS is reviewability.

Related skills

  • wikidata - data model, SPARQL, and API for gathering IDs and labels.
  • wikimedia-commons-sdc - QS 2.0 batch mode for Commons M IDs.
  • wikimedia-api-access - User-Agent and rate-limit conventions.
  • wikimedia-auth-oauth - OAuth setup for editing tools.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Quickstatements?

Build and run QuickStatements (QS) batches for Wikidata and Commons - the V1 command grammar (statements, qualifiers, references, ranks, item creation), value formatting (dates, quantities, coordinates, monolingual text), multilingual labels/descriptions/aliases, the QS 2.0 and QS 3.0 tools and their web UI/URL/API entry points, plus validation and best practices

Firwat Quickstatements op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Quickstatements besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Quickstatements an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/quickstatements an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Quickstatements benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Quickstatements benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Quickstatements domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Quickstatements gratis?

Jo. De Skill gëtt vum fuzheado ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇