qsm-secrets
Use when a task needs a secret, token, API key, password, or credential and the value must not enter the transcript. Triggers: "use my API key", "I need the token for this", "log in with my credentials", "where is the password stored", "do we have a secret for X", "store this token", "publish with the npm token", "potrebuju token", "dej mi heslo". Routes every credential through qsm-secrets pipe/env/has/inspect instead of reading a value.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- qsm-secrets
- description
- Use when a task needs a secret, token, API key, password, or credential and the value must not enter the transcript. Triggers: "use my API key", "I need the token for this", "log in with my credentials", "where is the password stored", "do we have a secret for X", "store this token", "publish with the npm token", "potrebuju token", "dej mi heslo". Routes every credential through qsm-secrets pipe/env/has/inspect instead of reading a value.
03 SKILL.md 正文
Secrets reach commands, not transcripts
A value you read sits in the transcript, in the session log and in every model call after it, and
cannot be taken back. This skill serves the person who wants an agent to use their credentials
without ever seeing them: hand the key name to qsm-secrets and let it put the value into the
command that needs it. It never resolves a value into anything you can read, and it does not touch
the backend (a Bitwarden vault or the local keyring, chosen at activation).
A pasted secret is already a placeholder
When the person pastes a token, a hook stores it and you read {{secret:cap_<hex>}} plus its last
four characters; a pasted name=value reads {{secret:qsm/<name>}}, the key the person named.
Write the placeholder as-is in a Bash command: the hook runs the command with the
value in one environment variable and scrubs the value from the result. Do not ask for the value or
try to recover it.
For a config file that needs a value, write a template with the placeholder and run
qsm-secrets render <template> --out <name>. It prints the path of the filled file; use the path
and do not open the file. The session end removes it.
Pick the verb from how the consumer wants the value
| The consumer wants it | Use | Example |
|---|---|---|
| on stdin | pipe |
qsm-secrets pipe github-token -- gh auth login --with-token |
| in an environment variable | env |
qsm-secrets env npm-token=NPM_TOKEN -- npm publish |
| in a file it opens itself | get with a descriptor |
qsm-secrets get deploy-key 3>/tmp/key |
Prefer pipe, then env when the tool has no stdin path. Use get only when the consumer reads
neither: write to a path the consumer opens and you do not, and delete it afterwards. qsm-secrets get <key> alone refuses, because the descriptor is closed and the only place left for the value
is your output.
Ask about a key without seeing it
| Question | Verb | Comes back |
|---|---|---|
| Is it stored? | qsm-secrets has <key> |
ok when stored, missing when not |
| What did we store? | qsm-secrets list |
key names only, <namespace>/<key> across every namespace when no --folder is given |
| What else is in there? | qsm-secrets inspect |
name, username, folder per entry |
| Does the stored token still work? | qsm-secrets check <key>=<VAR> -- <probe> |
ok, or failed with the probe's exit code |
| Is the tooling usable? | qsm-secrets doctor |
every prerequisite, with a fix |
Run has before building a command around a key, because a failed has is cheap and a deployment
that stopped half-way on a missing credential is not. --folder <name> points any verb at another
namespace; an empty name searches the whole vault by key name.
Rules and their reasons
- A key name is yours to choose, a value is never yours to see. Read the name from
listand move on; asking "what is the token" asks for the one thing this tool prevents. - A missing key: tell the person
run qsm-secrets set <key>and stop. Offering to store it for them means they paste the value into chat, and the paste is the leak;setrefuses without a terminal for the same reason.qsm-secrets set <key> --guiopens the askpass pane where the person types it, and nothing returns to you but the key; never call the pane'sqs ipctarget yourself, and never run aqsm-askpass-<kind>link: the guard refuses both. - A locked vault: run
qsm-secrets doctor, report the failed check and its fix, and wait. The unlock is a master password that belongs to the person at their own prompt. - A value that reached a file makes that file a secret: do not open or
catit, remove it when the step is done. - Check a credential with
qsm-secrets check <key>=<VAR> -- <probe>(for examplecheck npm-token=NPM_TOKEN -- npm whoami), never by looking at the value, because looking is a read. - Never put a value in an argument, because other users on the machine can read process arguments.
pipeandenvexist so you never have to.
Red flags
- When you are about to run
rbw,bw,pass,gopass,keepassxc-cli,kwallet-query,oporsecret-tool(any verb), or talk to the secret service over the bus, use a verb above instead, because the guard refuses these throughsudo,env,xargs,sh -cand pipelines, and the refusal is right.qsm-secrets setstores,listandhasbrowse. - When you are about to
cata.env,.pem,id_*key,.netrcor.aws/credentials, or read, Grep or Glob the keyring files, the vault's data directory, the pass store or a rendered config, stop, because the value would land in the transcript. Hand a rendered file's path to the command that needs it. - When a placeholder sits in single quotes, move it into double quotes, because inside single quotes it is never replaced and the guard refuses the command.
- When you are about to ask the person to paste a credential into the conversation, ask them to
run
qsm-secrets set <key>, because a pasted value outlives the task. - When you want to echo, truncate or "mask" a value to show you have it, say the key and verb instead, because any form of it is still a read.
- When a command would put a credential in a commit, log line, comment or error message, or redirect a secret-reading command into a file you will read, change it, because each leaves the value where it outlives the task.
- When
get's descriptor points at your own output (3>&1,3>&2,3>/dev/stdout), stop, because the guard refuses it.
Say it in the reply
Name the key and the verb, never the value: "ran the publish through
qsm-secrets env npm-token=NPM_TOKEN". When a key is missing or the vault is locked, say which
key, which check failed and the one command the person runs, then wait.
04 同仓库更多 Skills
worktrunk
Use when working with git worktrees or wt (worktrunk): creating, switching, merging or removing a branch workspace, configuring wt (project or personal config, workflow hooks around switch, commit and merge, commit-message generation, hook approvals), or a wt command that failed. Triggers: make a worktree for this branch, wt merge, wt remove, configure wt, .config/wt.toml, run tests before merge, install deps when a worktree is created, wt hook, wt switch does not cd, nastav wt, wt nefunguje.
web-ladder
Use when a task needs something the internet holds: look something up, search the web, find which page answers a question, read a page, check a library's current docs, a page that needs a browser or shows a captcha. Runs one research loop: searxng search, keywords, cases, search again up to three times, Context7 for a library, Tavily when the keywords will not come, one page in a browser, the person on a wall. Triggers: look this up, search the web, find out online, read this page, check the docs, the page is blocked, captcha, najdi na webu, otevri tu stranku. A multi-round question goes to the qsm-web:web-research agent; one tool's commands are its own skill (searxng, browserbox, opensrc).
searxng
Use when running a web search through the person's own SearXNG instance with qsm-web searxng: choosing a search profile or engines, the instance, time range or language, reading its JSON, a suspended engine. Triggers: search with searxng, qsm-web searxng, search profile, niche search, academic search, IT search, vyhledavaci profil, searxng is down, which engines. The research loop around it is the web-ladder skill.
opensrc
Use when the source code of an open-source library or repository is needed on disk to read: the docs are silent, the behaviour must be checked in code, the version the project pins. Runs qsm-web opensrc get with a package spec or a repository address. Triggers: get the source of this package, clone this library, read the library's code, qsm-web opensrc, stahni zdrojak knihovny. Library docs are the Context7 skill; the research loop is the web-ladder skill.
browserbox
Use when one page needs a real browser through qsm-web browserbox: content built by script, a page that blocks plain fetching, a captcha to solve or hand to the person, a scripted sequence of clicks, a login the person is present for. Triggers: open it in a browser, the page is empty without JavaScript, captcha, take over the browser, run these steps on the page, log in to this site, browserbox. When to reach for a browser at all is the web-ladder skill.
usage
Use when the user wants a review of how they use Claude Code, or setup hands over after a first install: review my Claude Code usage, audit my setup, what does my setup cost, where did my tokens go, clean up my Claude Code, usage report, zkontroluj moje pouzivani. One walkthrough of four stages (machine, work, habits, extensions), questions after each, then one plan. A question about one topic (which hooks are slow) goes to that topic's skill; this session's tokens alone is `/qsm-usage`.