/qfs:qfs-gitfrom qfs
Use when a task needs git through qfs — read a repo's versioned file tree and history over /git, list commits/refs/tags, read a directory as of a tag or branch with the @<ref> coordinate, and record a commit.
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.
A git repo is both a versioned file tree and a history — qfs makes both queryable through the same pipe-SQL language you already use on a mailbox, a database, or a folder of files. Commits are rows, refs are rows, and the tree at any tag or branch is a directory you can list.
Show me the history — every commit as a row, newest work at the top:
/git/myrepo/commits
|> select sha, message
sha | message
---------------------------------------- | ---------------
4d3a66d9a60ed9f255d1779ffd01f495f1dd93b9 | add feature
b91002fbb81daeb44649f0350ed2f32a68eb2491 | initial commit
(2 row(s))
That read runs today, with no cloud account — qfs reads your local repo directly, both loose and packed objects. Now the write side — one statement records a commit, and previews the exact object writes before touching anything:
insert into /git/myrepo/commits
values ('add feature', 'main')
PREVIEW: 4 effect(s)
#0 INSERT -> git:/git/myrepo/commits [affected 1]
#1 INSERT -> git:/git/myrepo/commits [affected 1]
#2 UPDATE -> git:/git/myrepo/commits [affected 1]
#3 UPDATE -> git:/git/myrepo/commits [affected 1]
total affected: 4
::: tip Reads run now; writes preview
Every read over a registered repo returns rows immediately — no account, no network. Every
write (recording a commit) previews by default and changes nothing; add --commit to apply it.
Paste any recipe below and safely watch what it would do first.
:::
The one coordinate that makes this a versioned tree: @<ref> in the path
(/git/myrepo@v1/src) reads the tree as of a tag, branch, or commit — see
Read the tree at a ref.
::: tip Prerequisite for a connected source
A local file / repo needs no passphrase. A remote / connected source stores a login behind your
QFS_PASSPHRASE — set it up once in The QFS passphrase.
:::
git needs almost no setup — there's no account to connect. You just tell qfs where the repo lives by
connecting it once, then read it at /git/<repo>/…:
qfs connect /git/myrepo TO git AT '/path/to/repo' # a working tree, or a bare .git directory
The <repo> segment you name (lowercased) becomes the repo segment in the path — here /git/myrepo
mounts the repo at /git/myrepo. Connect as many as you like; each qfs connect /git/<name> adds a
/git/<name> repo. Both loose and packed objects are read, so a freshly cloned or long-lived repo
both work.
Once registered, /git/<repo> is your repository mapped onto a filesystem shape:
| git thing | qfs path | it is a… |
|---|---|---|
| the history | /git/myrepo/commits | table of commits |
| refs & tags | /git/myrepo/refs | table of refs |
| the tree at a ref | /git/myrepo@<ref>/<dir> | directory listing as of that point |
| a file at a ref | /git/myrepo@<ref>/<path> | file (byte reads coming soon) |
Commit columns: sha, tree, parents, author, committer, time, message. Ref columns:
name, oid. Tree columns: name, mode, oid, kind. Run qfs describe /git/myrepo/commits
for the exact schema and verbs of any node.
The @<ref> coordinate travels in the path itself: /git/myrepo@v1/src is the src directory
as it stood at tag v1. A branch name or commit sha works just as well as a tag.
List the commit history — the commits facet is a plain table you shape with select:
/git/myrepo/commits
|> select sha, message
Filter the history — every commit column (sha, tree, parents, author, committer,
time, message) filters like any table, so a WHERE narrows it down:
/git/myrepo/commits
|> where message LIKE 'add%'
|> select sha, message
List refs and tags — branches, HEAD, and tags, each with the object it points at:
/git/myrepo/refs
|> select name, oid
name | oid
----------------- | ----------------------------------------
HEAD | 4d3a66d9a60ed9f255d1779ffd01f495f1dd93b9
master | 4d3a66d9a60ed9f255d1779ffd01f495f1dd93b9
refs/heads/master | 4d3a66d9a60ed9f255d1779ffd01f495f1dd93b9
refs/tags/v1 | 4d3a66d9a60ed9f255d1779ffd01f495f1dd93b9
(4 row(s))
List a directory as of a tag — the @<ref> coordinate reads the tree at that point in history,
without checking anything out:
/git/myrepo@v1/src
|> select name, kind
name | kind
------- | ----
main.rs | blob
(1 row(s))
::: tip Reading file bytes at a ref is coming soon
@<ref> tree listing works today (name, mode, oid, kind). Reading the content of a
single blob at a ref — e.g. /git/myrepo@v1/src/main.rs — is not wired yet (it returns
invalid_path). Use the tree listing to navigate, and read the file from /local for now.
:::
History is append-only. Recording a commit is an INSERT into the commits facet — it previews
the effect and applies nothing until --commit:
insert into /git/myrepo/commits
values ('add feature', 'main')
PREVIEW: 4 effect(s)
#0 INSERT -> git:/git/myrepo/commits [affected 1]
#1 INSERT -> git:/git/myrepo/commits [affected 1]
#2 UPDATE -> git:/git/myrepo/commits [affected 1]
#3 UPDATE -> git:/git/myrepo/commits [affected 1]
total affected: 4
(Recording a commit fans out into several object writes — the blob, the tree, the commit, and the ref update — which is why the plan lists four effects.)
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.