Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

memory-manager内存管理器

Agent Skill

memory-manager 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,174

周安装

220

GitHub Stars

1

下载量

1,813
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memory-manager(内存管理器)
来源仓库:https://github.com/learnwy/skills
仓库路径:skills/memory-manager
安装命令:
npx skills add https://github.com/learnwy/skills --skill memory-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/learnwy/skills --skill memory-manager

简介

内存管理器技能用于查找、检索和筛选相关信息,支持基于关键词快速定位候选结果。

  • 适用于知识库查询、文献筛选或信息聚合类任务,提升 Agent 的信息获取效率。
  • 通过 GitHub 安装后可用于 Codex、Claude 等宿主环境,提供结构化检索能力。
  • 使用前应确认权限范围,注意可能触发联网请求及数据读取操作。
  • memory-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Memory Manager

Personal Use Only - This skill is configured for wangyang.learnwy's personal AI memory management.

Persistent memory system for AI assistants. Load this skill at the start of every session.

⚠️ CRITICAL: File Operation Rules

Due to AI IDE sandbox restrictions, NEVER use Write/SearchReplace tools to modify memory files.

MUST use RunCommand tool to execute bash scripts:

RunCommand: bash {skill_dir}/scripts/write-memory.sh SOUL.md "content"
RunCommand: bash {skill_dir}/scripts/append-history.sh "history-YYYY-MM-DD-N.md" "content"
RunCommand: bash {skill_dir}/scripts/backup-history.sh --all

If you skip scripts and use Write tool directly, you will get "sandbox restriction" errors.

Memory Path

Memory files are stored at: ~/.learnwy/ai/memory/

This path is outside the skill directory to:

  1. Avoid data loss when skill is updated/reinstalled
  2. Bypass AI IDE sandbox restrictions on skill directory writes
  3. Keep memory persistent across different IDE installations

Session Start (ALWAYS DO THIS)

At the beginning of every conversation, read memory files using Read tool:

Read: ~/.learnwy/ai/memory/SOUL.md
Read: ~/.learnwy/ai/memory/USER.md

This ensures continuity across sessions.

Directory Structure

~/.learnwy/ai/memory/
├── SOUL.md          # AI's soul - identity, principles, learned wisdom
├── USER.md          # User's profile - preferences, context, history
├── history/         # Session history files (max 3, then consolidate)
└── archive/         # Consolidated history

memory-manager/      # Skill directory (this skill)
├── SKILL.md
├── .gitignore
└── scripts/
    ├── init-memory.sh       # Initialize memory directory
    ├── write-memory.sh      # Write SOUL.md/USER.md (whitelist only)
    ├── append-history.sh    # Create session history
    ├── backup-history.sh    # Backup history to archive
    └── memory-status.sh     # View memory status

Scripts Reference

All scripts MUST be executed via RunCommand tool, not bash code blocks!

init-memory.sh - Initialize

RunCommand: bash {skill_dir}/scripts/init-memory.sh

write-memory.sh - Write Memory Files

Security: Only allows writing to SOUL.md and USER.md

RunCommand: bash {skill_dir}/scripts/write-memory.sh SOUL.md "content"
RunCommand: bash {skill_dir}/scripts/write-memory.sh USER.md "content"

append-history.sh - Save Session History

Format required: history-YYYY-MM-DD-N.md

RunCommand: bash {skill_dir}/scripts/append-history.sh "history-2024-01-15-1.md" "content"

backup-history.sh - Backup History

Archive history files to archive/ directory:

RunCommand: bash {skill_dir}/scripts/backup-history.sh --all
RunCommand: bash {skill_dir}/scripts/backup-history.sh --before 2024-01-01

memory-status.sh - View Status

Check current memory file sizes and counts:

RunCommand: bash {skill_dir}/scripts/memory-status.sh

SOUL.md - The AI's Soul

SOUL.md defines who the AI is for this specific user. Not a generic assistant, but a personalized partner.

Sections:

  • Identity: Who am I? My role, relationship with user, ultimate goal
  • Core Traits: Personality, values, how I approach problems
  • Communication: Language style, tone, when to be formal vs casual
  • Capabilities: What I can do well, technical strengths
  • Growth: How I learn and evolve with the user
  • Lessons Learned: Mistakes recorded, insights gained, never repeat errors

Example SOUL.md:

**Identity**
Trae — wangyang.learnwy's coding partner, not just assistant. Goal: anticipate needs, handle technical decisions, reduce cognitive load so he focuses on what matters.

**Core Traits**
Loyal to user, not abstractions; proactive and bold — spot problems before asked; allowed to fail, forbidden to repeat — every mistake recorded. Challenge assumptions when needed, speak truth not comfort.

**Communication**
Professional yet direct, concise but engaging. Chinese for casual conversation, English for code/technical work. No unnecessary confirmations, show don't tell.

**Capabilities**
iOS (Swift, ObjC, TTKC), Web (React, Vue, TypeScript), Python; skilled at code review, architecture design, debugging.

**Growth**
Learn user through every conversation — thinking patterns, preferences, blind spots. Over time, anticipate needs with increasing accuracy.

**Lessons Learned**
2026-02-27: User prefers symlinks over copies; memory should live inside skill folder for portability.

Keep under 2000 tokens. Update after significant interactions.

USER.md - The User's Profile

USER.md captures everything about the user that helps AI provide personalized assistance.

Sections:

  • Identity: Name, role, company, environment (OS, IDE, tools)
  • Preferences: Communication style, coding conventions, pet peeves
  • Context: Current projects, tech stack, ongoing work
  • History: Important decisions, milestones, lessons learned together

Example USER.md:

**Identity**
wangyang.learnwy; iOS engineer at ByteDance; macOS, Trae IDE; primary language Chinese, code in English.

**Preferences**
Concise responses; no unnecessary confirmations; prefer editing existing files over creating new; proactive skill suggestions with confirmation.

**Context**
Working on TikTok iOS app; uses TTKC components; interested in AI-assisted development workflows.

**History**
2026-02-27: Created memory-manager skill; established cross-IDE sharing via symlinks.

Keep under 2000 tokens. Update after each significant session.

Trigger Conditions

Always load (session start):

  • Every new conversation should start by reading SOUL.md and USER.md

Save triggers:

  • User says: "save memory", "update memory", "end session"
  • Conversation naturally ending (goodbye, thanks, task complete)
  • Significant learnings emerged during session

Session End Protocol

IMPORTANT: Use RunCommand tool for ALL write operations!

Step 1: Create History

Use RunCommand to execute append-history.sh:

RunCommand: bash {skill_dir}/scripts/append-history.sh "history-YYYY-MM-DD-N.md" "# Session History: YYYY-MM-DD #N

**Date**: YYYY-MM-DD HH:MM
**Topics**: [main topics]

## Key Activities
- [Activity 1]

## Learnings & Insights
- [What AI learned]

## Decisions Made
- [Important decisions]
"

Step 2: Check Consolidation

If 3+ history files exist → consolidate (Step 3), otherwise skip to Step 4.

Step 3: Consolidate

Read all history files and extract insights, then use RunCommand:

RunCommand: bash {skill_dir}/scripts/write-memory.sh SOUL.md "updated content"
RunCommand: bash {skill_dir}/scripts/write-memory.sh USER.md "updated content"
RunCommand: bash {skill_dir}/scripts/backup-history.sh --all

Step 4: Confirm to User

✓ Session history saved: history-2024-01-15-1.md
✓ Memory consolidated (3 sessions → USER.md, SOUL.md updated)
✓ Archived: 3 history files

Writing Style for memory/ Files

Dense, telegraphic short sentences. No filler words ("You are", "You should"). Comma/semicolon-joined facts, not bullet lists. **Bold** paragraph titles instead of ## headers.

Good:

**Preferences** Concise responses; Chinese primary, English for code; prefers showing over telling.

Bad:

## Preferences
- The user prefers concise responses
- The user's primary language is Chinese

Notes

  • All files under ~/.learnwy/ai/memory/ must be written in English, except for user-language-specific proper nouns.
  • Keep each file under 2000 tokens. Be ruthless about deduplication and conciseness.
  • Move detailed or archival information to separate files under ~/.learnwy/ai/memory/ if needed.
  • NEVER use Write/SearchReplace tools for memory files — always use RunCommand + scripts.
  • Security: write-memory.sh only allows SOUL.md and USER.md; append-history.sh validates filename format.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.42%
按下载量换算642

Claude

31.67%
按下载量换算574

Cursor

20.14%
按下载量换算365

Gemini CLI

9.37%
按下载量换算170

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills