knowledge_store_skill
/knowledge_store_skill
Odzyskuje i zarządza lokalnymi pamięciami w plikach .knowledge.yaml w katalogach projektu, z powiązaniami wiedzy.
- Autor
- npc-worldwide ↗
- Repozytorium
- npcpy ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: instruct.py
Co robi i kiedy
Odzyskuje i zarządza lokalnymi pamięciami w plikach .knowledge.yaml w katalogach projektu, z powiązaniami wiedzy.
Oryginalny opis (EN)
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.\nKnowledgeStore\ \ is directory-scoped. Each directory that contains a `.knowledge.yaml` file maintains\ \ its own append-only memory graph. There is no global database \u2014 the YAML\ \ IS the source of truth.\nKey operations: - Load a directory's store: `npcpy.memory.knowledge_store.get_store_for_path(path)`\ \ - Append a memory: `store.append_memory(initial_memor
Jak działa
- Inputs
- Steps
- Usage
Podgląd SKILL.md
---
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.\nKnowledgeStore\
\ is directory-scoped. Each directory that contains a `.knowledge.yaml` file maintains\
\ its own append-only memory graph. There is no global database \u2014 the YAML\
\ IS the source of truth.\nKey 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)`\nMemory statuses: - `pending_approval` \u2014 raw extraction, needs\
\ human review - `human-approved` \u2014 confirmed and available for context injection\
\ - `human-rejected` \u2014 discard, can be used as negative examples - `human-edited`\
\ \u2014 corrected version supersedes initial_memory\nWhen answering questions,\
\ prefer `build_context()` for recently approved local knowledge, and `search_memories()`\
\ for targeted recall. Always respect `human-rejected` memories \u2014 do not repeat\
\ them."
---
# 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"}
```
Pliki w paczce (2)
- SKILL.md 4 KB
- instruct.py 1 KB
Wersje
W bazie nie ma innych skilli o nazwie knowledge_store_skill.
Migawka bazy z 13.11.2026 · wersja paczki 42bb40beca18 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100memory-init
Tworzy w projekcie katalog pamięci, na przykład .agents/memories/, oraz wskazówki w AGENTS.md, aby kolejne agenty mogły czytać i utrzymywać wiedzę projektu. - 100memory
Jawnie zapisuje i przywołuje wiedzę między sesjami przez engram store i recall, na przykład decyzje, wzorce, wnioski i wiedzę z różnych projektów. - 82knowledge_graph_skill
Przeszukuje i rozwija bazę grafu wiedzy SQLite, według zespołów, NPC i zakresów katalogów, z wyszukiwaniem słów kluczowych. - 100memory-lint
Sprawdza, czy pliki pamięci agenta zgadzają się z MEMORY.md, wskazując nieindeksowane pliki i wiszące wpisy, bez zmieniania czegokolwiek. - 95plugin-settings
Pokazuje wzorzec przechowywania ustawień wtyczki w plikach .local.md z nagłówkiem YAML, czyli konfiguracji dla każdego projektu. - 95okf-open-knowledge-format
Tworzy, waliduje i wzbogaca paczki Open Knowledge Format (OKF), czyli wiedzy organizacji w plikach markdown z frontmatterem YAML, czytelnej dla agentów.