memory-skill: Editable Local Long-Term Memory for AI Agents

Foreword

In multi-turn conversations, Agents often rely solely on the current context window. When a session is closed or a different machine is used, user preferences, project conventions, past pitfalls, and important decisions cannot be connected. Common practices include hand-writing MEMORY.md, scattered notes, or stuffing history into RAG, but these lack unified classification, retrieval, and metadata, resulting in high maintenance costs.

Below is an introduction to the SkillHub community Skill memory-skill (coordinates @user_4005c3e1/memory-skill, version 1.0.0): it utilizes the file system within the workspace to carry memory, supporting classified archiving and retrieval, with data remaining locally, readable and editable.

What is this

memory-skill is a set of long-term memory skills for AI Agents, published by user_4005c3e1, sourced from the community, and categorized as ai-agent on SkillHub. Its official description states that the goal is to allow Agents to retain structured information across multiple sessions, rather than restating background from scratch every time.

Compared to “relying only on conversation history” or “a single large memorandum file,” it breaks down memory into multiple uses (preferences, project background, lessons, decisions, daily summaries, research archives) and combines it with keyword retrieval, Qwen3-Rerank precision ranking, and YAML metadata to facilitate Agent writing and recall. The page is marked requires_api_key=false, indicating that installing this Skill itself does not strictly require binding to an external API Key (whether reranking capabilities have separate dependencies should be subject to the SKILL.md inside the Skill package).

Core Features

The following capabilities are derived from the official SkillHub introduction; details not appearing in the materials are not expanded upon.

  1. User Preference Memory: Cross-session preferences such as coding style, communication habits, and common tool selections.
  2. Project Background Documentation: Context such as repository structure, business terminology, and current iteration goals.
  3. Error Lesson Accumulation: Verified failure causes and fixes to reduce repeated pitfalls.
  4. Decision History Tracking: Architecture or solution trade-offs and reasons, facilitating future alignment.
  5. Daily Session Summary: Compressing session key points by day to reduce the risk of long conversations filling up the context.
  6. External Research Archive: Local retention of research conclusions, links, and summaries.

Storage and Retrieval: Memory is based on the file system; it defaults to the .workbuddy/memory/ directory in the current workspace. Privacy is controlled by the local machine and repository permissions, and it can be viewed or modified directly with an editor. The retrieval side supports keyword matching and declares the use of Qwen3-Rerank for precision ranking; entries use YAML to manage metadata, facilitating classification and filtering.

Installation and Enablement

The Skill follows the general SKILL.md format. When installing on SkillHub, the package must be placed in the skills directory recognized by the current Agent; otherwise, the Agent will not load it.

1. Prepare SkillHub CLI

First, confirm if skillhub is installed:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation to perform a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install memory-skill

Install the coordinate @user_4005c3e1/memory-skill into the skills directory of the current environment. <skills directory> needs to be replaced with the actual path; for example, Cursor commonly uses ~/.cursor/skills/:

skillhub install @user_4005c3e1/memory-skill --dir ~/.cursor/skills/

The official page also supports providing the prompt below to the Agent, allowing it to complete the installation according to the SkillHub Installation Guide:

Please install `@user_4005c3e1/memory-skill` based on https://skillhub.cn/install/skillhub.md.

Common skills paths for other clients (excerpted from SkillHub installation documentation, select according to the tool you actually use):

  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • workbuddy: ~/.workbuddy/skills/

After installation, restart or refresh the Skill list according to the requirements of your Agent to make memory-skill take effect. Specific trigger words, subcommands, and directory structures are subject to the SKILL.md inside the package.

3. Memory Data Directory

Memory files generated during runtime are written to the workspace .workbuddy/memory/ (note that the path is relative to the current project root). If using clients like Cursor but the memory directory still falls under the workbuddy convention, ensure that the workspace and Agent configuration are consistent to avoid the mismatch of “Skill installed but memory files not found.”

Typical Usage

The public page does not provide step-by-step copy-paste command examples; the reproducible process can be understood according to the official capability descriptions as follows.

  1. After enabling the Skill, instruct the Agent in the conversation to write information that needs long-term retention into the corresponding categories (e.g., project background, error lessons, decision records). The Agent should select subdirectories and YAML fields based on SKILL.md.
  2. When starting a new session, instruct the Agent to retrieve relevant memories from .workbuddy/memory/ based on the current task: first match by keywords, then perform precision ranking via Qwen3-Rerank, and inject high-relevance snippets into the context.
  3. Manual Maintenance: When corrections or deletions of outdated memories are needed, directly edit the files in that directory; YAML metadata facilitates batch viewing of category and time information.

If you need to confirm writing templates, retrieval parameters, or reranking switches, please open the SKILL.md inside the memory-skill package under ~/.cursor/skills/ (or your specified --dir) after installation to execute accordingly.

Applicable Scenarios and Notes

Who it is for

  • Developers who maintain the same repository or product for a long time and want the Agent to remember preferences, architectural decisions, and historical lessons.
  • Users who need auditable, version-controllable “Agent memory” rather than an invisible vector database black box.
  • Agent users using workbuddy or those who have configured the skills directory according to SkillHub documentation.

Limitations and Notes

  • As the memory volume grows with the project, .workbuddy/memory/ should be organized regularly to avoid retrieval noise.
  • During multi-machine collaboration, if memory is only on the local machine workspace, it needs to be explicitly shared via git or other synchronization methods (whether to include it in the version control repository is determined by team norms).
  • SkillHub statistics (as of page capture): Rating 100000, Downloads 1377, Installations 18; this is a community Skill, and the maintenance rhythm depends on the publisher.
  • The precision ranking capability involves Qwen3-Rerank; environmental differences may lead to different recall quality; subject to the actual SKILL.md configuration.

Conclusion

memory-skill localizes Agent long-term memory into files: clearly categorized, searchable, and editable. It is suitable for precipitating “verbal agreements in conversations” into project assets. Installation and coordinates are subject to SkillHub.

  • SkillHub Page: https://www.skillhub.cn/skills/user_4005c3e1/memory-skill
  • API Entry (from page link): https://api.skillhub.cn/user_4005c3e1/memory-skill
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye