knowledgeindexskill
SkillDev toolsLets your agent find directories with .knowledge.yaml files using a cached index instead of scanning the filesystem.
Then ask your AI: use the knowledgeindexskill skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.
About this skill
"Skill for using the KnowledgeIndex registry to discover which directories\
What this skill tells your AI
The instructions your AI receives, as published by npc-worldwide/npcpy in skills/knowledge_index_skill/SKILL.md and read by Ahel’s review.
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"}
Signals
- GitHub stars
- 2k
- Forks
- 124
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
knowledge-index-skill- Source
- github.com/npc-worldwide/npcpy
github.com/npc-worldwide/npcpy
Related picks
Skill · mukul975
The pick for SQLitesqlite-ops
Skill · aiskillstore
The pick for SQLitedbos-python
Skill · sickn33
The pick for Pythonpython-design-patterns
Skill · wshobson
The pick for Pythonteach
Skill · mattpocock
More in Dev toolsimplement
Skill · mattpocock
More in Dev tools