/wikimedia-data-collection:phabricator-conduitfrom wikimedia-data-collection
Collect tasks, comments, and project data from Wikimedia Phabricator via the Conduit API (maniphest.search, transaction.search, project.search, user.search) — filter tasks by project/status/assignee/date, page through results, and pull history. Use whenever you need data from phabricator.wikimedia.org instead of scraping the task web UI.
Ships in wikimedia-data-collection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Query Phabricator's API, not its HTML. Prefer the modern *.search methods
(paginated, constraint-based) over legacy maniphest.query.
Prerequisites (Cowork): network access enabled; /outputs/ mounted; a Conduit
API token available to the task as an env var (do NOT hardcode it). Token
comes from Phabricator → Settings → Conduit API Tokens.
https://phabricator.wikimedia.org/api/<method>, POST form-encoded, JSON back.
Auth: pass api.token. Response: {result:{data:[{id,phid,fields:{…}}], cursor:{after}}}.
maniphest.search — tasks. Constraints: projects[], statuses[],
assigned[], authorPHIDs[], priorities[], query (fulltext),
modifiedStart/createdStart (unix ts). order=newest. attachments[projects]=1
to get tags inline.transaction.search — a task's comments/history (objectIdentifier=Txxxx).project.search / user.search — resolve a project/user name → PHID
(you filter by PHID, not name, so resolve first).phid.lookup — map Txxxx/names → PHIDs.limit max 100; loop passing result.cursor.after until it's null.
import os, json, urllib.parse, urllib.request, time
BASE = "https://phabricator.wikimedia.org/api"
TOK = os.environ["PHABRICATOR_TOKEN"] # provided to the task; never hardcode
UA = "WikimediaResearch/1.0 ([email protected]; collecting task data)"
def conduit(method, **params):
params["api.token"] = TOK
rows, after = [], None
while True:
p = dict(params)
if after: p["after"] = after
body = urllib.parse.urlencode(p, doseq=True).encode()
req = urllib.request.Request(f"{BASE}/{method}", data=body,
headers={"User-Agent": UA})
d = json.load(urllib.request.urlopen(req, timeout=30))
if d.get("error_code"):
raise RuntimeError(f"{d['error_code']}: {d['error_info']}")
res = d["result"]; rows += res["data"]
after = res.get("cursor", {}).get("after")
if not after: break
time.sleep(0.3)
return rows
# open tasks in a project (resolve the project PHID first via project.search)
tasks = conduit("maniphest.search",
**{"constraints[projects][]": "PHID-PROJ-xxxxxxxx",
"constraints[statuses][]": "open", "order": "newest", "limit": 100})
json.dump([{ "id": t["id"], **t["fields"] } for t in tasks],
open("/outputs/open_tasks.json", "w"), indent=2, default=str)
-d api.token=… exposes the token in the process list — prefer feeding it
from an env var as above (or arc call-conduit, which reads ~/.arcrc).phabricator.wikimedia.org/Txxxxx HTML — use maniphest.search.*.query methods. Don't print/commit the token. Don't ignore
the cursor (you'll miss most results).Reference: Conduit · maniphest.search.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lgelauff/wikimedia-coding-agent-lessons --plugin wikimedia-data-collection4 skills in this plugin
/mediawiki-action-apiCollect content and metadata from any Wikimedia wiki (Wikipedia, Commons, Wiktionary, Meta…) via the MediaWiki Action API — article wikitext, revisions and revision history, page metadata, categories, links, backlinks, and search results. Use whenever you need data FROM a wiki page or set of pages and would otherwise be tempted to open/scrape the article HTML. API-first, never scrape./wikidata-sparqlCollect structured facts from Wikidata via the Wikidata Query Service (WDQS) SPARQL endpoint — entities matching criteria, properties, relationships, cross-wiki identifiers, counts. Use whenever you need STRUCTURED/queryable data ("all X that are Y", "the population/coordinates/identifiers of …") rather than prose from an article. The structured-data counterpart to the Action API./wikimedia-analytics-apiCollect Wikimedia traffic and contribution metrics via the public REST Analytics (AQS) API — per-article and aggregate pageviews, unique devices, edits, editors, and registered-user counts, by project / time range / granularity / access method. Use whenever you need quantitative time-series about wiki readership or editing, instead of any dashboard scraping.