/qfs:qfs-githubfrom qfs
Use when a task needs GitHub through qfs — list and filter pull requests and issues over /github, and merge a PR with a CALL procedure behind the irreversible gate. Covers connecting a GitHub account.
Ships in qfs. 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.
Every pull request, issue, review, and release in a repo becomes a queryable path. One pipe-SQL language filters your open PRs, reports throughput, tags stale issues, and merges a PR — the same verbs you already use on a mailbox, a database, or a folder of files.
Show me the open pull requests, newest first — the ones actually waiting on someone:
/github/acme/web/pulls
|> where state == 'open'
|> select number, title
|> order by number DESC
|> limit 10
number title
128 Cache invalidation for the search index
127 Bump axum to 0.7
125 Fix flaky auth integration test
… 10 rows
That read runs the instant you connect an account. Now the decisive part — one statement squash-merges a PR, and previews the one-way door before it touches anything:
/github/acme/web/pulls/42
|> call github.merge(method => 'squash')
PREVIEW: 1 effect(s)
#0 CALL github.merge -> github:/github/acme/web/pulls/42 [affected 1] (!)
(!) irreversible: 1 node(s) [#0]
total affected: 1
The (!) marks the irreversible gate: a merge can't be undone.
::: tip Reads run now; writes preview
Every read returns rows immediately. Every write (update, insert, call) previews by
default and changes nothing — add --commit to apply it, --commit-irreversible for the ones that
can't be undone (merging a PR, dispatching a workflow run). Paste any recipe below and safely watch
what it would do first.
:::
GitHub isn't reachable until you connect an account to it — one command, once, in Setup. After that every recipe on this page works verbatim.
::: tip Prerequisites — an operator, an account, a mount
Reaching a cloud service takes three one-time steps: a signed-in operator (qfs init —
The operator identity), an authorized account (qfs account add …), and a
mount binding that account to a path (qfs connect …). The happy path below is exactly those
three.
:::
qfs pre-mounts nothing for GitHub. A read (and the CALL that targets a PR) needs a token-backed
account bound to a mount:
qfs init [email protected] # 1. the operator + the vault (once per machine)
printf '%s' "$GITHUB_TOKEN" | qfs account add github work # 2. the token, labeled `work`
qfs connect /github --driver github --account work # 3. mount it at /github
The token comes in on stdin, never argv, and is sealed in qfs's encrypted credential store; the
label defaults to default if you omit it. Until the mount is bound, a read fails with an
actionable hint naming the qfs account add github … / qfs connect … to run. Once bound, every
/github/<owner>/<repo>/… path resolves against the GitHub API. qfs account list and
qfs connect --list show the account and the mount.
Once connected, a repo is /github/<owner>/<repo> and its collections hang off it as directories of
rows:
| GitHub thing | qfs path | it is a… |
|---|---|---|
| a repo | /github/acme/web | directory of collections |
| pull requests | /github/acme/web/pulls | directory of PRs |
| one pull request | /github/acme/web/pulls/42 | file (the CALL target) |
| a PR's reviews | /github/acme/web/pulls/42/reviews | directory of reviews |
| issues | /github/acme/web/issues | directory of issues |
| an issue's comments | /github/acme/web/issues/87/comments | directory of comments |
| releases | /github/acme/web/releases | directory of releases |
| branches | /github/acme/web/branches | directory of branch refs |
The columns are exactly these — nothing else is queryable, and a where on a name that is not on
this list is refused (a structured unknown_column at a non-zero exit), not answered with zero
rows:
| collection | columns |
|---|---|
pulls | number, title, body, state, user, head_ref, head_sha, base_ref, merged, created_at |
issues | number, title, body, state, user, assignees, labels, created_at, updated_at |
comments | id, user, body, created_at |
reviews | id, user, state, body |
releases | id, tag_name, name, body, draft, prerelease, created_at |
branches | name, sha, protected |
user is the author login (there is no author column); assignees and labels are text
arrays you expand to get one row per element. Run qfs describe /github/acme/web/pulls for the
exact schema and verbs of any node.
Open pull requests authored by the platform team, oldest first — the review queue for a group:
/github/acme/web/pulls
|> where state == 'open'
AND user IN ('rin', 'kenji', 'sora', 'mei')
|> select number, title, user, created_at
|> order by created_at ASC
Who has already reviewed PR 42, and what they said — reviews are a sub-collection of the PR itself, so the PR number is part of the path:
/github/acme/web/pulls/42/reviews
|> where state == 'CHANGES_REQUESTED'
|> select id, user, body
|> order by id ASC
Which branch each open PR targets — head_ref/base_ref are plain columns:
/github/acme/web/pulls
|> where state == 'open' AND base_ref == 'main'
|> select number, title, head_ref, head_sha
|> order by number DESC
Read the open issues — number, assignees, and labels, lowest number first:
/github/acme/web/issues
|> where state == 'open'
|> select number, title, assignees, labels
|> order by number ASC
assignees is a text array. expand explodes it into one row per assignee, so a per-person
queue is one stage away:
/github/acme/web/issues
|> where state == 'open'
|> expand assignees
|> select number, title, assignees
|> order by number ASC
GROUP BY then AGGREGATE … AS … rolls raw rows into a report — the same two-stage shape you use on
any other source.
PR throughput — count merged pull requests per author since a date. merged is a boolean
column; there is no merged_at, so bound the window with created_at:
/github/acme/web/pulls
|> where merged == true AND created_at >= '2026-03-28'
|> group by user
|> aggregate count(number) as merged_prs
|> order by merged_prs DESC
Issue load per label — labels is an array, so expand it into one row per label first, then
group:
/github/acme/web/issues
|> where state == 'open'
|> expand labels
|> group by labels
|> aggregate count(number) as open_issues
|> order by open_issues DESC
Field updates on issues preview like any write and only apply on --commit; the preview lists the
affected issue numbers first.
Tag every stale open issue so a backlog-grooming bot picks it up. The writable issue fields are
state, title, body, and labels (a label set that replaces the existing one):
/github/acme/web/issues
|> where state == 'open' AND updated_at < '2026-03-26'
|> update set labels = 'stale'
A comment is an INSERT into an issue's (or PR's) comments sub-collection, so the number it
attaches to is part of the path, and the only field is body:
insert into /github/acme/web/issues/87/comments
values (body)
('CI is red on this PR - please take a look.')
It previews like any write and posts on --commit. A POST is at-least-once: if the request
times out the driver never silently retries, because the comment may already have landed.
CALL procedures/github declares exactly three procedures: merge, dispatch, and review. merge and
dispatch are irreversible; review is not (a later review supersedes it).
| procedure | params | irreversible |
|---|---|---|
github.merge | method, sha | yes |
github.dispatch | workflow, ref, inputs | yes |
github.review | event, body | no |
Squash-merge one PR — merge takes the PR number from the path, not from an argument, and
github.merge is a one-way door:
/github/acme/web/pulls/42
|> call github.merge(method => 'squash')
Merge only if nobody pushed since you looked — pass the head_sha you read as the sha
precondition, and GitHub refuses the merge if the branch moved:
/github/acme/web/pulls/42
|> call github.merge(method => 'squash', sha => 'a1b2c3d4e5f60718293a4b5c6d7e8f9012345678')
To bulk-merge, read the candidates first and then merge each by its own path — a CALL addressed at
a collection has no PR number to act on:
/github/acme/web/pulls
|> where user == 'dependabot[bot]' AND state == 'open'
|> select number, title, head_sha
Request changes on a PR — a submitted review, reversible in the sense that a later review supersedes it:
/github/acme/web/pulls/87
|> call github.review(event => 'REQUEST_CHANGES', body => 'CI is red on this PR - please take a look.')
::: warning Irreversible
CALL github.merge and CALL github.dispatch can't be undone. In a one-shot each needs
--commit --commit-irreversible; the (!) in the PREVIEW marks the gate. Reads, comments,
github.review, and the preview of a merge run with no extra flags once the account is connected.
:::
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub qmu/qfs --plugin qfs14 skills in this plugin
/qfsUse when the user asks to use QFS or its connected services. Discover the live connections and available paths before reading or writing through the qfs CLI; covers pipe-SQL, preview, and commit. For Slack channel discovery and threads, also read qfs-slack./qfs-automationUse when a task needs the qfs SERVER side — scheduled jobs, triggers, HTTP endpoints, and cached views created with CREATE bindings over queries you already write./qfs-chatworkUse when a task needs Chatwork through qfs — installing and querying the DECLARED /chatwork driver (rooms, a room's latest messages, a room's unread messages, room file listings, file download, and file upload) written in the query language itself, and posting a message to a room. Covers installing the chatwork.qfs declaration, connecting it to a stored Chatwork API token, reading the latest messages versus the unread-only ones, posting a message via ENCODE form, downloading a file's bytes via the FOLLOW stage, and uploading via ENCODE multipart./qfs-cloudflareUse when a task needs Cloudflare through qfs — installing and querying the DECLARED /cloudflare driver (zones, DNS records, account-scoped KV/Queues/D1 listings, plus D1 SQL, KV get/put, queue push and queue pull) written in the query language itself. Covers installing the cloudflare.qfs declaration, connecting it to the stored Cloudflare token, reading, consuming a queue with the read-over-POST pull view, and the declared D1 SQL surface. For Artifacts Git repositories use the compiled /cf driver instead./qfs-cookbookUse for an overview of what qfs can do and which qfs cookbook skill fits a task — reading, searching, transforming, or writing across Gmail, Google Drive, databases, files, git, GitHub, Slack, and automation with one pipe-SQL language. Routes to the per-service skills./qfs-cross-serviceUse when a task spans MORE THAN ONE service in a single qfs query — joining a database to GitHub, a file to a table, or federating several services with one JOIN or UNION over their paths.