semantic-memory

Store and retrieve persistent learnings with metadata across software sessions.

Updated Aug 30, 2024
One-click install
npx skills add https://github.com/minhtri2710/dotfiles --skill semantic-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-memory
Source: https://github.com/minhtri2710/dotfiles/tree/main/dot_config/opencode/skill/semantic-memory
Command: npx skills add https://github.com/minhtri2710/dotfiles --skill semantic-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Store and retrieve learnings across sessions; memories persist and are searchable.

Core Features & Use Cases

  • Store learnings: Save reasons and outcomes.
  • Search memories: Query past learnings.
  • Validate: Reset decay timer to keep memories accurate.

Quick Start

semantic-memory_store(information="OAuth refresh tokens need 5min buffer before expiry", metadata="auth, tokens") semantic-memory_find(query="token refresh", limit=5) semantic-memory_validate(id="mem_123")

Frequently Asked Questions about semantic-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store and retrieve learnings across different sessions?

Store learnings using semantic-memory_store() with information and metadata tags, then retrieve them later with semantic-memory_find() queries. Memories persist in a searchable index, letting you access past solutions and decisions without re-solving the same problems.

What should I store in semantic memory to make it searchable?

Store the rationale (WHY) alongside solutions, outcomes, and architectural decisions with relevant metadata tags. Include context like problem type, technology stack, and decision reasoning so future queries surface the most relevant learnings.

How do I keep stored memories accurate over time?

Use semantic-memory_validate() to reset the decay timer on memories you've confirmed are still correct. Validation prevents stale information from becoming unreliable, maintaining a high-quality searchable knowledge base.

Can I use semantic memory for project-specific patterns and architectural decisions?

Yes, semantic memory is designed to persist long-term learnings of solutions, architectural decisions, and recurring patterns specific to your projects, making them queryable before starting new work.

What happens if I don't validate stored memories?

Without validation, memories decay and lose reliability over time. Decay-based validation is a core requirement, so explicitly refreshing important learnings keeps your searchable index trustworthy and actionable.