knowledge_store_skill
Skill for working with local .knowledge.yaml files via KnowledgeStore.
Skill by NPC-Worldwide
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/npc-worldwide-knowledge-store-skill
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, ml, writing, agent-building, agent-memory, knowledge-base
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/knowledge-store-skill
What's inside
- Skill name
knowledge_store_skill- Description
- Skill for working with local .knowledge.yaml files via KnowledgeStore. Use this when you need to recall, search, or manage directory-local memories and knowledge links stored in plain YAML alongside the user's project files. KnowledgeStore is directory-scoped. Each directory that contains a `.knowledge.yaml` file maintains its own append-only memory graph. There is no global database — the YAML IS the source of truth. Key operations: - Load a directory's store: `npcpy.memory.knowledge_store.get_store_for_path(path)` - Append a memory: `store.append_memory(initial_memory="...", status="pending_approval", ...)` - Update a memory (approve/reject/edit): `store.update_memory(mem_id, status, final_memory)` - Search memories (keyword substring): `store.search_memories("query", limit=20)` - Get approved context for LLM prompts: `store.build_context(max_memories=10)` - Get links for a memory: `store.get_links_for_memory(mem_id)` - Create a link between memories: `store.append_link(from_mem, to_mem, relation="refines", agent="your_name")` - Aggregate across a tree: `KnowledgeStore.aggregate(root_directory, max_depth=3)` Memory statuses: - `pending_approval` — raw extraction, needs human review - `human-approved` — confirmed and available for context injection - `human-rejected` — discard, can be used as negative examples - `human-edited` — corrected version supersedes initial_memory When answering questions, prefer `build_context()` for recently approved local knowledge, and `search_memories()` for targeted recall. Always respect `human-rejected` memories — do not repeat them.
- License
- MIT
- Instructions
- 28 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- description: longer than 1024 characters
Files (2)
- SKILL.md
- instruct.py
SKILL.md (first lines)
# knowledge_store_skill
Skill for working with local .knowledge.yaml files via KnowledgeStore. Use this when you need to recall, search, or manage directory-local memories and knowledge links stored in plain YAML alongside the user's project files.
KnowledgeStore is directory-scoped. Each directory that contains a `.knowledge.yaml` file maintains its own append-only memory graph. There is no global database — the YAML IS the source of truth.
Key operations: - Load a directory's store: `npcpy.memory.knowledge_store.get_store_for_path(path)` - Append a memory: `store.append_memory(initial_memory="...", status="pending_approval", ...)` - Update a memory (approve/reject/edit): `store.update_memory(mem_id, status, final_memory)` - Search memories (keyword substring): `store.search_memories("query", limit=20)` - Get approved context for LLM prompts: `store.build_context(max_memories=10)` - Get links for a memory: `store.get_links_for_memory(mem_id)` - Create a link between memories: `store.append_link(from_mem, to_mem, relation="refines", agent="your_name")` - Aggregate across a tree: `KnowledgeStore.aggregate(root_directory, max_depth=3)`
Memory statuses: - `pending_approval` — raw extraction, needs human review - `human-approved` — confirmed and available for context injection - `human-rejected` — discard, can be used as negative examples - `human-edited` — corrected version supersedes initial_memory
When answering questions, prefer `build_context()` for recently approved local knowledge, and `search_memories()` for targeted recall. Always respect `human-rejected` memories — do not repeat them.
## Inputs
- `name` (default: `'action'`)
- `description` (default: `'load | search | append | update | link | context | aggregate'`)
- `name` (default: `'directory_path'`)
- `description` (default: `'Absolute path of the directory containing .knowledge.yaml'`)
- `name` (default: `'query_or_memory'`)
- `description` (default: `'Search query, memory text, or JSON params depending on action'`)
## Steps
- `instruct` → [`instruct.py`](./instruct.py)
## Usage
```
/run_jinx jinx_ref=knowledge_store_skill input_values={"name": "query_or_memory", "description": "Search query, memory text, or JSON params depending on action"}
```From NPC-Worldwide/npcpy, MIT.
More from NPC-Worldwide/npcpy
- 0.823score
natural
NPC-Worldwide
Render the provided prompt template with Jinja context and send it to the active NPC's LLM.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.822score
run_jinx
NPC-Worldwide
Execute a jinx by name (already loaded on the team) or by filesystem path (e.g.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.822score
create_jinx
NPC-Worldwide
Write a new .jinx file from inputs (name, description, inputs spec as JSON list of strings, python body).
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.817score
knowledge_sememolution_skill
NPC-Worldwide
Skill for population-based Knowledge Graph evolution via Sememolution.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.817score
knowledge_graph_skill
NPC-Worldwide
Skill for searching and evolving the SQLite-backed Knowledge Graph.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.812score
knowledge_index_skill
NPC-Worldwide
Skill for using the KnowledgeIndex registry to discover which directories contain `.knowledge.yaml` files without walking the filesystem.
SkillAFreshness: A★ 1.5KClaude Code +9
Signals
- Stars
- 1,519
- Forks
- 130
- Open issues
- 6
- Last commit (this folder)
- Jun 20, 2026 (4 months ago)
- Last release
- Oct 12, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NPC-Worldwide/npcpy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NPC-Worldwide
- 0.823score
natural
NPC-Worldwide
Render the provided prompt template with Jinja context and send it to the active NPC's LLM.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.822score
create_jinx
NPC-Worldwide
Write a new .jinx file from inputs (name, description, inputs spec as JSON list of strings, python body).
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.822score
run_jinx
NPC-Worldwide
Execute a jinx by name (already loaded on the team) or by filesystem path (e.g.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.817score
knowledge_graph_skill
NPC-Worldwide
Skill for searching and evolving the SQLite-backed Knowledge Graph.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.817score
knowledge_sememolution_skill
NPC-Worldwide
Skill for population-based Knowledge Graph evolution via Sememolution.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.812score
knowledge_index_skill
NPC-Worldwide
Skill for using the KnowledgeIndex registry to discover which directories contain `.knowledge.yaml` files without walking the filesystem.
SkillAFreshness: A★ 1.5KClaude Code +9
Cite this page
knowledge_store_skill. Agent Mart. https://agentmart.dev/skills/npc-worldwide-knowledge-store-skill (last updated 2026-10-24)