Skip to content
Back to skills

Wiki Search

ASecurity

Search the local LLM wiki for matching pages, titles, and content snippets.

  • 6 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added November 26, 2026
toolsbash

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill wiki-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wiki Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wiki Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-wiki-search/badge)](https://www.skillsdirectory.com/skills/jleechanorg-wiki-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wiki-search
description: Search the local LLM wiki for matching pages, titles, and content snippets.
---

# /wiki-search — Search the LLM Wiki

## Usage
```
/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`).

## Execution

### Phase 1: Resolve wiki path
```bash
# 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
```

### Phase 2: Grep search
```bash

# 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)
```

### Phase 3: Extract context
For each result, extract:
- File path (relative to wiki/)
- Title from frontmatter
- First matching line snippet (50 chars context around match)

### Phase 4: Output
```
## 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>".`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.