encod3d-sec/torch/wiki
Claude Code and agent skill by encod3d-sec/torch
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Search, query, and maintain the qmd-indexed wiki - semantic search, keyword search, re-index after adding pages, check index status.
Install
npx vskill@latest install encod3d-sec/torch/wikiSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as encod3d-sec/torch/wiki.
Wiki Search and Maintenance
qmd is a CLI + MCP server that provides semantic and keyword search over wiki/. The MCP server (wiki-search) exposes two tools consumed by Claude Code directly. The CLI is used for maintenance (re-index, status).
All paths are relative to the vault root ($QMD_VAULT).
Prerequisites
QMD_VAULT must point to your vault root (no trailing slash). Export it in your shell profile:
If a new session does not inherit it, prefix commands with QMD_VAULT=... qmd ... or source your profile. qmd is installed as a bun global (bun install -g @qmd/cli); if the qmd command is not found, ensure ~/.bun/bin is on PATH.
Searching via MCP (preferred in-session path)
When the wiki-search MCP is active, prefer these tools over the CLI - they avoid the 3-4 second model load on every invocation:
| Tool | Purpose | |
|---|---|---|
mcp__wiki-search__qmd_query | Semantic (vector) search - use for concepts, techniques, intent | |
mcp__wiki-search__qmd_search | Keyword (substring) search - use for exact strings, tool names, CVE IDs |
CLAUDE.md rule: never read `wiki/index.md` to find pages - always search first.
Searching via CLI
Use when MCP is unavailable or for one-off maintenance.
Semantic query (5 results, default):
Semantic query (custom result count):
Keyword search:
Output format: [score] path/relative/to/wiki/ followed by a chunk of the matching content.
Maintenance
Re-index after adding or editing pages (run once after a bulk write, not per file):
Expected output: Indexing wiki... Done. N chunks indexed.
The CUDA warning about an old driver is harmless - the model runs on CPU.
Check index size:
Output: Collection: wiki Chunks: N
Integrity and catalog upkeep
These run automatically at SessionStart (via engagement-init.py); run them by hand after a bulk edit, rename, or before sharing:
lint-wiki.py exits non-zero on hard problems - use it as a pre-share / pre-commit gate. index.md and the *-moc.md hubs are generated; never hand-edit them.
Promote candidates
Generic, reusable knowledge found live during an engagement is staged to a review queue under targets/<eng>/wiki-candidates/ (gitignored) the moment it is confirmed, not at engagement end. It reaches wiki/ only through the leak-gated promoter.
--promote runs scripts/check-leaks.sh --file on the candidate BODY. If a client marker is present it refuses and writes nothing; if clean it merges into wiki/<target_page> (dedup by slug), sets status: promoted, archives the file to wiki-candidates/_promoted/, and re-indexes (gen_index.py + qmd update). Stage a new candidate with scripts/wiki-stage.py --kind <default-cred|api-pattern|technique> --slug <slug>. This is the only path that writes engagement-derived knowledge into wiki/, so the client-data boundary is enforced by code, not prose.
Broken install recovery
If qmd fails:
- Confirm the
qmdbinary is onPATH(command -v qmd); it installs to~/.bun/bin/qmdviabun install -g @qmd/cli. - Check
QMD_VAULTis set and points to the current vault path (no trailing slash, no spaces encoded). - The index lives under
~/.qmd/- if the collection is missing, runqmd updateto rebuild from scratch.
Files
| Path | Purpose | |
|---|---|---|
~/.bun/bin/qmd | qmd CLI + MCP binary (bun global) | |
~/.qmd/ | local search index | |
$QMD_VAULT/wiki/ | the markdown corpus that gets indexed |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wiki/SKILL.md
Popularity
- Repository stars
- 324
- Repository forks
- 46
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/encod3d-sec/torch/wiki)