用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill wiki-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | wiki-search |
| description | Search the local LLM wiki for matching pages, titles, and content snippets. |
/wiki-search <query> [--wiki <wiki_dir>]
Search the wiki for pages matching a query. Searches titles, content, and tags.
--wiki <wiki_dir> overrides the default wiki location (~/llm_wiki/wiki).
# Parse args: query is first positional; --wiki <path> overrides default
WIKI="$HOME/llm_wiki/wiki"
QUERY="<first positional arg>"
if args contain "--wiki <path>"; then
WIKI="<path>"
fi
# Search titles and content
results=$(grep -rl "$QUERY" "$WIKI"/**/*.md 2>/dev/null | head -20)
# Also search frontmatter titles
title_results=$(grep -rl "title:" "$WIKI"/**/*.md 2>/dev/null | xargs grep -l -i "$QUERY" 2>/dev/null | head -10)
# Combine and deduplicate
combined=$(echo "$results"$'\n'"$title_results" | sort -u | head -20)
For each result, extract:
## Wiki Search: "<query>"
Found N results:
1. **[Page Title](path/to/page.md)**
~path/to/page.md~
> ...snippet of matching content...
2. **[Page Title](path/to/page.md)**
...
If no results: No wiki pages match "<query>".