content-denylist
Use when the person wants to stop work or employer names leaking into a public repository: build or refresh the machine-local list of names and shapes the commit gate must refuse. Triggers: "keep our employer name out of the public repo", "make a denylist of internal names", "the commit gate should block client names", "scan my sessions for work-specific strings", "nastav blokovani firemnich nazvu". Not for credentials, which is the qsm-secrets skill.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- content-denylist
- description
- Use when the person wants to stop work or employer names leaking into a public repository: build or refresh the machine-local list of names and shapes the commit gate must refuse. Triggers: "keep our employer name out of the public repo", "make a denylist of internal names", "the commit gate should block client names", "scan my sessions for work-specific strings", "nastav blokovani firemnich nazvu". Not for credentials, which is the qsm-secrets skill.
03 SKILL.md 正文
A content denylist, generated on this machine, never committed
A public repository must not carry the names of an employer, a client, an internal service or a tenant, and a gate that checks for them needs the very strings it forbids. Committing that list publishes what it protects, so the list is built per device from what the person has already said and written here, and it lives outside every repository. The pre-commit secrets gate runs gitleaks a second time with this file when it exists, and prints one line saying it is not set up when it does not. This skill builds the list. It does not scan any repository, edit the gate, or handle credentials (the qsm-secrets skill does).
Where the file goes
${XDG_CONFIG_HOME:-$HOME/.config}/qsm/content-denylist.toml, one [[rules]] per name or shape.
Never put it, a copy or a sample of it inside a repository, because a committed list leaks. Check
whether it exists first: when it does, extend it, do not start over.
Look in the places the person already wrote down
| Source | How | Why this one |
|---|---|---|
| Claude Code transcripts | ~/.claude/projects/*/*.jsonl: grep for a candidate and count with grep -c, never open one |
the largest record of what work the person does |
| session archive | qsm-memory search <word> --limit 5 |
already indexed, answers "does this name recur" |
| instruction files | ~/.claude/CLAUDE.md, ~/.claude/rules/ |
the person writes the employer's context here on purpose |
| project memory | ~/.claude/projects/*/memory/ |
durable notes, names and ticket keys |
| git remotes | git -C <repo> remote -v for repos under the project directories |
host and organisation names |
Sample, do not dump: a transcript holds secrets and client text, and anything printed stays in the
model's context. Print counts and the matched token only, grep -ohE '[A-Z]{2,6}-[0-9]+' ... | sort | uniq -c | sort -rn | head, and read the few matches that decide a doubt.
What counts
| Kind | Shape to look for |
|---|---|
| employer or client name | a proper noun that recurs across many projects |
| internal product or service name | one the person calls by name and a public reader would not know |
| tracker key prefix | ACME-123: upper-case prefix, dash, digits, recurring |
| internal hostname or domain | a domain that is not a public product's |
| tenant or subscription id | a GUID next to words such as tenant, subscription, org |
| employer repository path | a path or remote URL under the employer's organisation |
| the home directory path | /home/<user>/, and the user name where it is not common |
A word that is also ordinary English or a public technology (Prometheus) fires on every commit
and trains the person to bypass the gate, so leave it out or write a regex that needs context.
Propose, then write
Show the person a table before writing anything:
| Pattern | Why | Example count |
|---|---|---|
(?i)\bacme\b |
employer name | 214 in 31 sessions |
\bACME-[0-9]+\b |
tracker key | 96 |
The counts are the only evidence you show; never print a credential, a token or a matched sentence. Wait for the person to approve, edit or drop rows, then write exactly the approved rows and nothing else. A name the person adds by hand is accepted without a count.
The file's form
Gitleaks TOML, one rule each, with keywords so a rule costs nothing on files that cannot match:
[[rules]]
id = "acme-name"
description = "employer name"
regex = '''(?i)\bacme\b'''
keywords = ["acme"]
[[rules]]
id = "acme-tracker-key"
description = "employer tracker key"
regex = '''\bACME-[0-9]+\b'''
keywords = ["acme-"]
The id and description are what the gate prints when a rule hits, so write them to say what
was found without containing it (employer-name, not acme). Use single-quoted literal strings so
a backslash needs no doubling, and keep each keyword lower-case.
Check it once
Run a real check before saying done: in a scratch directory stage a file holding one of the
approved names and run gitleaks git --staged --config <file> --no-banner --redact; it must report
the rule. A rule that never fires is worse than none, because the person trusts it.
Red flags
- When a candidate comes from a transcript you have not counted, count it before proposing it, because an uncounted name may be one mention and not worth a rule.
- When the file would land inside a repository, stop and use the config path above, because a committed list is the leak itself.
- When a proposed regex matches a common word, add context or drop it, because a noisy rule gets the whole gate bypassed.
- When you are about to print a matched line to justify a row, print the count instead, because the line may carry what the list is there to keep out.
Say it in the reply
The path written, the number of rules and their ids, the sources searched, and the result of the one real check. Say plainly what you did not look at.
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`.