/qfs:qfsfrom qfs
Use 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.
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.
qfs exposes every external service as a filesystem of paths queried with one small pipe-SQL
language. Mail is /mail/inbox, a database table is /sql/pg/orders, a repo's pull requests are
/github/acme/web/pulls, a Drive folder is /drive/Reports, a bucket object is /s3/bucket/key.
The same grammar reads, joins, transforms, and writes across all of them.
Prefer one-shot commands (qfs run '<statement>', qfs describe <path>) — each runs once and
exits, which is what you want as an agent. The interactive shell (qfs with no args) exists but you
generally won't use it.
This plugin supplies instructions, not a fixed inventory of connected services. Its examples and
the binary's qfs skill describe shipped capabilities; the user's installed declarations can add
paths that are absent from those examples or this repository.
qfs --version and qfs connect --list. Use the actual connection path and its account;
example names such as /slack or /mail are not guaranteed mounts. If accounts and mounts
appear inconsistent, qfs account list lists account labels without revealing tokens.qfs describe <connection> --json. Follow its children, substituting concrete values for
parameter segments, and describe the parent namespace before selecting a leaf. For Slack,
read qfs-slack and describe <connection>/<workspace>: that is where
public and private channel collections can be discovered.qfs describe /sys/drivers --json and a targeted SELECT name, kind, body over /sys/drivers.
Repository assets are not the installed registry. Do not create or replace a declaration merely
because it was missing from an example.An empty result means no matches in the collection actually queried. Before reporting that a resource is unavailable or requesting its ID from the user, check the relevant sibling collections, the listing's filters/pagination, and the exact error. A public-only listing cannot establish that a private resource is absent; a generic evaluation error does not establish a permission failure.
The binary. Use an installed qfs, or build it: cd packages/qfs && cargo build --release
→ packages/qfs/target/release/qfs. qfs --version confirms it runs.
Existing setup. Live reads and writes need the service's authorized account. A compiled
describe can work offline even when a write preview fails because its path is not mounted.
Previewing a write is not a substitute for connection setup. Reuse the existing account and
unlock session; do not initialize or reconnect an already working environment. For new setup,
the user authorizes an account once
and mounts it at a path (ADR 0008: the mount carries the account). This needs
QFS_PASSPHRASE exported first — the master passphrase that unlocks the local encrypted
vault (an argon2id KDF over the at-rest store, NOT a service credential) — and reads the
credential VALUE from stdin, never argv (argv leaks into the process table + shell history):
read -rs QFS_PASSPHRASE; export QFS_PASSPHRASE # unlock the vault, no shell-history leak
qfs init [email protected] # one-time: vault + operator identity
printf %s "$TOKEN" | qfs account add github work # token via stdin, never argv
qfs connect /github --driver github --account work # the mount carries the account
A valid unlock mechanism (session, keychain, or QFS_PASSPHRASE) must be available. Labels are
safe to print; the secret is never echoed. qfs account list shows authorized accounts and
qfs connect --list the mounted paths. Two accounts of one service coexist as two mounts
(/mail and /mail2).
qfs describe <path> — learn the node's archetype, columns, supported verbs, CALL
procedures, and which filters push down. Pure: no creds, no network. Always read this first.qfs run '<statement>' — reads execute immediately; writes preview by default, printing
the effect-plan (paths, affected counts, and an irreversible flag) before committing effects.--commit to apply, once the preview looks right.With a configured /mail mount:
qfs describe /mail/drafts --json # 1: the contract
qfs run "insert into /mail/drafts values ('[email protected]','Hi','Body')" # 2+3: PREVIEW
qfs run "insert into /mail/drafts values ('[email protected]','Hi','Body')" --commit # 4: apply
/); there is no working directory in one-shot mode.qfs describe shows them):
SELECT, UPSERT, REMOVESELECT, JOIN, INSERT, UPDATE, UPSERTSELECT (read tail), INSERT (append)SELECT, INSERT, UPDATE, REMOVE, CALL/git/[email protected]/src/main.rs reads as of a ref.SELECT/INSERT/UPSERT/UPDATE/REMOVE are the only verbs. ls/cp/mv/rm are just shell
aliases for them (ls=SELECT listing, cp=UPSERT, rm=REMOVE) — interactive shell only.A statement is a source followed by stages joined by |> (a pipe). Write multi-stage
statements one stage per line:
/sql/pg/orders
|> where total > 100 AND status IN ('open', 'pending')
|> select id, total, status
|> order by total DESC
|> limit 5
The source is a leading /path (a LET-bound name also works); there is no FROM keyword — it
was removed from the closed core. Bind with =, compare with ==. Read/transform stages:
where <cond> (==, <>, <, >, <=, >=, LIKE, IN, BETWEEN, AND/OR),
select <cols> (rename with as), extend <col> = <expr>, join <path> on <cond> (works
across services), aggregate <fn>(<col>) as <name> (+ group by), order by <col> [DESC],
limit <n>, distinct, and union/except/intersect <path>.
Effect (write) stages and statements:
insert into /slack/acme/general/messages values ('Deploy done')
upsert into /drive/my/Reports/report.pdf values ('…bytes…') -- retry-safe blob write
update /sql/pg/orders set status = 'shipped' where id == 7
remove /mail/inbox where subject LIKE '%spam%' -- REMOVE takes a path + WHERE
/github/acme/web/pulls/42 |> call github.merge(method => 'squash')
Codecs convert formats — decode/encode with json, jsonl, yaml, toml, csv, md:
/local/config.json
|> decode json
|> encode yaml
Cross-service join (qfs pushes each side's filters down, then joins locally):
/sql/pg/orders
|> join /github/acme/web/issues on id == issue_id
|> select id, title
See docs/cookbook/ in the repo for many more recipes.
qfs prints a human table on a TTY and JSON when piped; force it with --json (or
--format json). Parse the JSON rather than scraping the table:
qfs describe /mail/drafts --json | jq '.verbs, .procedures'
qfs run "/sql/pg/orders |> where total > 100 |> select id" --json
A preview's JSON includes preview.rows (each with verb, target, affected, irreversible),
total_affected, and committed: false. After --commit, committed: true.
qfs run preview by default; reads execute immediately. Apply a write only
when the user's request authorizes it, using --commit after checking its preview.CALL mail.send), merging a PR (CALL github.merge),
deleting/trashing (REMOVE) — are flagged irreversible: true in the preview. In a one-shot,
applying them needs both --commit and --commit-irreversible; without the extra flag qfs
refuses (fails closed). Treat these as gates: preview, confirm intent, then commit.UPSERT is the retry-safe default for writes (create-or-replace; re-running converges).# Reversible: --commit is enough
qfs run "insert into /mail/drafts values ('[email protected]','Hi','Body')" --commit
# Irreversible: needs the explicit ack
qfs run "/mail/drafts |> call mail.send" --commit --commit-irreversible
0 = success. Non-zero = failure; the error body goes to stderr as JSON with a kind:
parse (bad syntax), usage (e.g. a relative path), capability (unknown/unsupported
source or verb), auth, internal.capability error on a read often just means no account/backend is connected for that
service yet — the statement's syntax is fine.describe, not in logs, not in errors).cd, no relative paths.remove is remove <path> where …, not a pipe stage.update on an append log) — it's rejected.from — a leading /path is the source. Bind with =, compare with ==.create job nightly every '1h' do ….create endpoint|trigger|job|view|policy) are statements too — preview them to
see the exact plan they'd install before qfs serve runs them./sys/* is administration as paths. Query the deployment's own state with the same grammar:
/sys/{users,projects,audit,connections,policies,metrics,settings,billing} (e.g.
/sys/audit |> order by seq desc |> limit 20). /sys/audit is append-only + hash-chained;
/sys/connections is names/metadata only./sys/settings, above the always-on floor (preview default +
the irreversible ack) — you never bypass it; preview, then commit, and let the gate decide.qfs invite create → qfs invite redeem adds a member; a POLICY / the ACL (not
membership) is what authorizes an action (default-deny).qfs account rotate|revoke for offboarding, qfs vault rekey for key hygiene.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qmu/qfs --plugin qfs14 skills in this plugin
/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-cloudflareOther plugins' skills for the same job