knowledge_index_skill
"Skill for using the KnowledgeIndex registry to discover which directories\
pinned to #631aad0updated 2 weeks ago
Ask your AI client: “install skills/knowledge-index-skill”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/knowledge-index-skillmetahub onboarded this repo on the author's behalf.
If you own github.com/NPC-Worldwide/npcpy on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
1,424
Last commit
2 weeks ago
Latest release
published
- #agents
- #ai
- #llm
- #mcp
- #mcp-client
- #mcp-server
- #ollama
- #perplexity
- #python
- #sql
- #yaml
About this skill
Pulled from SKILL.md at publish time.
Skill for using the KnowledgeIndex registry to discover which directories contain `.knowledge.yaml` files without walking the filesystem. KnowledgeIndex is a lightweight SQLite cache. It maps directory paths to file metadata (mtime, memory_count, link_count). The database path is caller-provided — npcpy does not hardcode a default. Key operations: - Upsert a directory after writing to its YAML: `upsert_directory(db_path, directory, memory_count, link_count)` - List known directories: `get_known_directories(db_path, min_mtime=None)` - Full rescan of a tree: `scan_root(db_path, root, max_dept…
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.631aad0· 2 weeks ago
Documentation
41Description qualitywarn
10 words · 75 chars — skills use the description as their trigger; aim higher
Aim for 15+ words and include trigger phrases like “use this skill when …”.
README is present and substantial
38,856 chars · 16 sections · 47 code blocks
Tags / topics declared
11 total — agents, ai, llm, mcp, mcp-client, mcp-server (+5)
README has usage / example sections
found: Example · Example · Installation
Homepage / docs URL declared
no homepage declared (registry will use the repo URL) — info-only, not blocking
Release history
1- releasecurrent631aad0warn2 weeks ago
Contents
Skill for using the KnowledgeIndex registry to discover which directories contain .knowledge.yaml files without walking the filesystem.
KnowledgeIndex is a lightweight SQLite cache. It maps directory paths to file metadata (mtime, memory_count, link_count). The database path is caller-provided — npcpy does not hardcode a default.
Key operations: - Upsert a directory after writing to its YAML:
upsert_directory(db_path, directory, memory_count, link_count)
- List known directories:
get_known_directories(db_path, min_mtime=None)- Full rescan of a tree:scan_root(db_path, root, max_depth=5)- Remove a stale directory:remove_directory(db_path, directory)Typical flow: 1. Callscan_root(db_path, root="/home/user/projects", max_depth=5)to populate the index with every.knowledge.yamlfound.
- Query
get_known_directories(db_path)to get a list of directories with memory/link counts. - For each directory of interest, instantiate
KnowledgeStore(directory)and callload()orbuild_context().
The index is a cache, not the source of truth. If a .knowledge.yaml is deleted or modified outside the app, re-run scan_root to refresh.
Inputs
name(default:'action')description(default:'scan | list | upsert | remove')name(default:'db_path')description(default:'Path to the knowledge index SQLite file')name(default:'root_or_directory')description(default:'Root to scan or specific directory to upsert/remove')
Steps
instruct→instruct.py
Usage
/run_jinx jinx_ref=knowledge_index_skill input_values={"name": "root_or_directory", "description": "Root to scan or specific directory to upsert/remove"}
Reviews
No reviews yet. Be the first.
Related
Gpt Researcher
An autonomous agent that conducts deep research on any data using any LLM providers
Browser Use
🌐 Make websites accessible for AI agents. Automate tasks online with ease.
React Doctor
Your agent writes bad React. This catches it
mh install skills/knowledge-index-skill