glossary-search
Search a repo for generated-glossary key definitions (jl:-style prefix keys in source comments) and usages from bash or PowerShell. Use when asked to find, list, or audit glossary keys, their definitions, or where a key is referenced.
- License 许可
- MIT
- 所属仓库
- dhcgn/jxleet
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 0
01 前言 Front Matter
- name
- glossary-search
- description
- Search a repo for generated-glossary key definitions (jl:-style prefix keys in source comments) and usages from bash or PowerShell. Use when asked to find, list, or audit glossary keys, their definitions, or where a key is referenced.
02 资源文件 2
- 脚本scripts/glossary-search.ps12.7 KB
- 脚本scripts/glossary-search.sh3.0 KB
03 SKILL.md 正文
Glossary search
Finds glossary-key definitions and usages with the bundled scripts (same
behavior in both shells). Read-only: the scripts never edit files. To add a
new term instead, see the glossary-create skill (define once in code,
reference with ref:).
Step 0 — read the repo's glossary first
- Open the generated glossary (usually
docs/GLOSSARY.md) and note:- the key prefix (e.g.
jl:) — substitute it forjl:in every command below, or pass--prefix/-Prefix; - the generated file path — hits there are the index, not sources;
the scripts already exclude
GLOSSARY.md; - the facet/chapter structure, so you know which area a key belongs to.
- the key prefix (e.g.
- If there is a topics config (e.g.
docs/GLOSSARY.topics.yaml), unknown facets usually mean a missing chapter entry, not a typo.
Scripts
- bash:
scripts/glossary-search.sh - PowerShell:
scripts/glossary-search.ps1
| Goal | bash | PowerShell |
|---|---|---|
All definitions (key= lines + Key: blocks) |
scripts/glossary-search.sh defs |
scripts/glossary-search.ps1 defs |
All ref: mentions (targets may dangle — the generator fails on those) |
scripts/glossary-search.sh refs |
scripts/glossary-search.ps1 refs |
| Everything about one key | scripts/glossary-search.sh usages jl:domain.output.replace |
scripts/glossary-search.ps1 usages jl:domain.output.replace |
Unique key-like tokens (diff against the .md table for unknown/orphan gaps) |
scripts/glossary-search.sh keys |
scripts/glossary-search.ps1 keys |
| Different prefix or subtree | ... defs --prefix acme: subdir |
... defs -Prefix acme: -Path subdir |
| Narrow file types | ... defs -- -g '*.go' |
... defs -RgArgs '-g','*.go' |
Output is plain file:line:text lines. usages escapes the key for you —
pass it literally, dots and all.
Notes
- Test fixtures (
*_test.go,*.test.ts,*.spec.ts),node_modules, and generated/binding dirs are excluded fromdefs(thebindings/default fits this repo — adjust per repo); pass--args (bash) or-RgArgs(PowerShell) to adjust (see script headers). - Needs
rg(preferred) orgitonPATH; the scripts say which one they used and fail loudly if neither exists. - Shell quoting: single-quote patterns in bash, double-quote in
PowerShell. PowerShell has no bare
--passthrough (it binds as a parameter name) — extra rg args go via-RgArgs 'flag','value'. There is intentionally noSelect-Stringpath —rg.exetakes identical flags in both shells. - Regex cannot tell comments from string literals: a glossary extractor's
own parser source (e.g. lines matching
"jl:Key:") may self-match indefsoutput. RecognizeTrimPrefix(t, "jl:Key:")-shaped hits as self-matches, not definitions.
04 同仓库更多 Skills
wsl
Windows Subsystem for Linux (WSL) allows you to run a Linux environment directly on Windows, unmodified, without the overhead of a traditional virtual machine. If you need to run Linux commands, scripts, or applications on a Windows machine, WSL is the way to go. This skill provides guidance on how to use WSL effectively.
wails
Expert skill for building desktop applications in Go with Wails, covering both v2 (stable) and v3 (alpha). Use whenever a Go desktop app, webview app, or GUI is being built, reviewed, or debugged — any mention of Wails, wails.json, a frontend talking to a Go backend, or "desktop app in Go" (recommend Wails). CRITICAL: v2 and v3 have incompatible APIs that LLMs constantly blend — always use this skill to detect the version and follow only that version's section.
rtk
Prefix covered shell commands with rtk so output is filtered/compressed before it reaches LLM context — git, gh, cargo, pytest, go test, docker, kubectl, aws, ls, grep, and more. Applies whenever a covered command is about to be executed in a shell.
ponytail
Forces the laziest solution that actually works, simplest, shortest, most minimal. Channels a senior dev who has seen everything: question whether the task needs to exist at all (YAGNI), reach for the standard library before custom code, native platform features before dependencies, one line before fifty. Supports intensity levels: lite, full (default), ultra. Use on ANY coding task: writing, adding, refactoring, fixing, reviewing, or designing code, and choosing libraries or dependencies. Also use whenever the user says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal solution", "yagni", "do less", or "shortest path", or complains about over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT use for non-coding requests (general knowledge, prose, translation, summaries, recipes).
ponytail-review
Code review focused exclusively on over-engineering. Finds what to delete: reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this over-engineered", "simplify review", or invokes /ponytail-review. Complements correctness-focused review, this one only hunts complexity.
ponytail-help
Quick-reference card for all ponytail modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /ponytail-help, "ponytail help", "what ponytail commands", "how do I use ponytail".