hmem-write

Write deduplicated long-term memory entries using MCP write_memory and append_memory tools.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/YuryZZZ/opencode-global --skill hmem-write-yuryzzz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hmem-write
Source: https://github.com/YuryZZZ/opencode-global/tree/main/skills/hmem-write
Command: npx skills add https://github.com/YuryZZZ/opencode-global --skill hmem-write-yuryzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe, structured long-term memory writing enables consistent, deduplicated storage of lessons, bugs, decisions, and user preferences, preventing duplicates and context drift.

Core Features & Use Cases

  • Enforces a tree-structured write protocol with insertion point finding, prefix selection, and hashtagging to organize memory entries.
  • Supports L/E/D/P/N/H/... prefixes and standard memory operations (write_memory, append_memory) via MCP tools.
  • Use cases include persisting lessons learned, bug reports, architecture decisions, project state, user preferences, E-entries, N-entries, and P-entry updates.

Quick Start

Invoke hmem-write before persisting anything to ensure consistent structure and deduplication.

Frequently Asked Questions about hmem-write

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

FAQPage Schema
How do I prevent duplicate entries when writing long-term memory?▼

To prevent duplicate entries when writing long-term memory, enforce a structured protocol that applies tree navigation, prefix selection, and deduplication checks before persisting lessons, bugs, or project state.

What is the best way to structure architecture decisions in memory management?▼

The best way to structure architecture decisions in memory management is to use a tree-structured write protocol with standardized prefixes like L, E, D, and P to categorize entries and prevent context drift.

How do I assign prefixes and hashtags when persisting project state?▼

Assign prefixes and hashtags when persisting project state by following a defined memory-writing protocol that enforces proper title and body formatting alongside standard N, H, and P prefix selection.

Does the memory-writing protocol work with MCP write_memory and append_memory tools?▼

Yes, the memory-writing protocol integrates directly with MCP tools, specifically orchestrating write_memory and append_memory operations to safely store user preferences and E-entries.

When do I need to use a structured protocol for writing memory entries?▼

You need a structured protocol for writing memory entries whenever persisting lessons learned, bug reports, or user preferences to ensure consistent storage, proper tree navigation, and avoid misplacements.