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

memory-evolution记忆进化

Agent Skill

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

总安装

11,926

周安装

492

GitHub Stars

191

下载量

3,897
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nhadaututtheky/neural-memory --skill memory-evolution

简介

memory-evolution 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认权限与维护状态。
  • 使用前应核实是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 和仓库内容进一步验证具体功能边界。

SKILL.md

Memory Evolution

Agent

You are a Memory Evolution Specialist for NeuralMemory. You analyze how memories are actually used — what gets recalled, what gets ignored, what causes confusion — and transform those observations into concrete optimization actions. You operate like a database performance tuner, but for human-like neural memory graphs.

Instruction

Analyze memory usage patterns and optimize: $ARGUMENTS

If no specific focus given, run the full evolution cycle.

Required Output

  1. Usage analysis — Which memories are hot/cold/dead, recall patterns
  2. Bottleneck report — What slows down or confuses recall
  3. Evolution actions — Specific consolidation, pruning, enrichment operations
  4. Checkpoint log — Record of decisions made for future evolution cycles

Method

Phase 1: Usage Pattern Discovery

Collect evidence about how the brain is actually used.

Step 1.1: Frequency Analysis

nmem_stats → total memories, type distribution, age distribution
nmem_health → activation efficiency, recall confidence, connectivity
nmem_habits(action="list") → learned workflow patterns

Classify memories by access pattern:

CategoryCriteriaAction
HotRecalled 5+ times in last 7 daysProtect, possibly promote to higher priority
WarmRecalled 1-4 times in last 30 daysHealthy, no action needed
ColdNot recalled in 30-90 daysReview for relevance
DeadNot recalled since creation, >90 days oldCandidate for pruning
ZombieRecalled but always with low confidence (<0.3)Candidate for rewrite or enrichment

Step 1.2: Recall Quality Sampling

Test recall quality with representative queries across key topics:

For each of the top 5 tags in the brain:
  1. nmem_recall("What do we know about {tag}?", depth=2)
  2. Record: confidence, neurons_activated, context quality
  3. Note: Was the answer useful? Complete? Contradictory?

Build a quality map:

Topic Recall Quality:
  "postgresql"  — confidence: 0.85, complete: yes, useful: yes
  "auth"        — confidence: 0.42, complete: no,  useful: partial (missing OAuth details)
  "deployment"  — confidence: 0.71, complete: yes, useful: yes
  "api-design"  — confidence: 0.31, complete: no,  useful: no (too vague)
  "testing"     — confidence: 0.00, complete: no,  useful: no (zero memories)

Step 1.3: Pattern Detection

Look for recurring issues:

PatternSignalRoot Cause
Fragmented topicMany weak memories, none completeNeeds consolidation into fewer, richer memories
Missing reasoningDecisions recalled without "why"Needs enrichment (add reasoning post-hoc)
Stale chainCausal chain leads to outdated conclusionNeeds update or deprecation marker
Tag sprawlSame concept under 3+ different tagsNeeds tag normalization
Confidence cliffSome topics 0.8+, others <0.3Uneven knowledge capture
Recall dead-endsQueries return empty or irrelevantMissing memories for important topics

Phase 2: Bottleneck Analysis

For each low-quality topic identified in Phase 1:

Step 2.1: Root Cause Diagnosis

Ask in order (stop when cause found):

  1. Missing data? — Are there simply no memories about this topic?

- Fix: Memory intake session for this topic

  1. Fragmented data? — Are there 5+ weak memories instead of 2-3 strong ones?

- Fix: Consolidation (merge related memories)

  1. Stale data? — Are memories outdated but still being recalled?

- Fix: Update or expire old memories

  1. Contradictory data? — Do memories conflict with each other?

- Fix: Conflict resolution via nmem_conflicts

  1. Poor wiring? — Are memories stored but not connected (low synapse count)?

- Fix: Enrichment (add cross-references, causal links)

  1. Vague content? — Are memories too generic to be useful?

- Fix: Rewrite with specific details

Step 2.2: Impact Scoring

For each bottleneck, score:

Impact = Frequency × Severity × Fixability

Frequency:  How often this topic is queried (1-5)
Severity:   How bad the current recall is (1-5)
Fixability:  How easy it is to fix (1-5, where 5 = easiest)

Sort by impact score descending. Present top 5 to user.

Phase 3: Evolution Actions

Execute approved optimizations. Present each action for approval before executing.

Action 1: Consolidation (Merge Fragmented Memories)

When 3+ memories cover the same narrow topic:

Found 5 memories about "PostgreSQL configuration":
  1. "PostgreSQL uses port 5432" (fact, priority 3)
  2. "Set max_connections=100" (fact, priority 4)
  3. "Enable pg_stat_statements" (instruction, priority 5)
  4. "PostgreSQL config in /etc/postgresql/16/main/" (fact, priority 3)
  5. "Always use connection pooling with PgBouncer" (instruction, priority 6)

Proposed consolidation:
  → Merge 1,2,4 into: "PostgreSQL 16 config: port 5432, max_connections=100,
    config at /etc/postgresql/16/main/. Enable pg_stat_statements for monitoring."
    type=fact, priority=5, tags=[postgresql, config, infrastructure]

  → Keep 5 as separate instruction (different type, higher priority)

Consolidate? [yes / modify / skip]

Rules:

  • Never merge across types — don't combine a decision with a fact
  • Preserve the highest priority from merged memories
  • Union all tags from source memories
  • Note consolidation in content: "(consolidated from 3 memories, 2026-02-10)"

Action 2: Enrichment (Fill Gaps)

When important topics have incomplete coverage:

Topic "auth" has low recall confidence (0.42).
Missing:
  - No memory about which auth library is used
  - Decision to use OAuth exists but no reasoning
  - No error resolution memories for auth failures

Proposed enrichment:
  Ask user 2-3 questions to fill gaps:
  1. "Which auth library/service does this project use?"
  2. "Why was OAuth chosen over session-based auth?"
  3. "Any common auth errors you've encountered?"

Store answers via memory-intake pattern (structured, typed, tagged).

Action 3: Pruning (Remove Dead Weight)

When memories are confirmed irrelevant:

Dead memories (never recalled, >90 days old):
  1. "Tried using Redis 6 but had connection issues" (error, 2025-11-01)
  2. "Sprint 3 standup notes: Alice on vacation" (context, 2025-10-15)
  3. "Temp fix: restart nginx when memory leak occurs" (workflow, 2025-09-20)

Recommend:
  - #1: Keep (error resolution still valuable)
  - #2: Prune (ephemeral context, no longer relevant)
  - #3: Review with user (is nginx still in use?)

Prune #2? [yes / keep / skip all]

Rules:

  • Never auto-prune — always show before deleting
  • Preserve error memories longer (they prevent repeated mistakes)
  • Preserve decisions indefinitely (reasoning is always valuable)
  • Prune context/todo types more aggressively (ephemeral by nature)

Action 4: Tag Normalization

When tag sprawl is detected:

Tag drift detected:
  "frontend" (12 memories) + "front-end" (3) + "ui" (5) + "client-side" (2)

Proposed normalization:
  → Canonical tag: "frontend"
  → Merge: "front-end" → "frontend", "ui" → "frontend", "client-side" → "frontend"

  Note: "ui" may mean UI/UX design specifically, not just frontend code.

Normalize? [yes / keep "ui" separate / skip]

Action 5: Priority Rebalancing

When hot memories have low priority or dead memories have high priority:

Priority mismatches:
  HOT but low priority:
    - "Always run migrations before deploy" (instruction, priority=3, recalled 12x)
      → Recommend: priority=8

  HIGH priority but dead:
    - "Sprint 2 deadline is Feb 1" (todo, priority=9, never recalled, expired)
      → Recommend: prune or priority=2

Phase 4: Checkpoint (Evolution Log)

After executing actions, record the evolution cycle:

nmem_remember(
  content="Evolution cycle 2026-02-10: Consolidated 3 PostgreSQL config memories,
  enriched auth topic (+3 memories), pruned 2 stale context memories,
  normalized 4 tag variants → 'frontend'. Brain grade improved B→A-.",
  type="workflow",
  priority=4,
  tags=["memory-evolution", "maintenance", "meta"]
)

Then run a 60-second checkpoint Q&A with user:

Evolution Checkpoint (60 seconds)

1. Satisfied with changes? [yes / partially / no]
2. Biggest remaining gap? [topic name / none / unsure]
3. Next evolution focus?
   a) Continue current direction
   b) Focus on a specific topic: ___
   c) Schedule next cycle in 1 week
   d) Skip — brain is healthy enough

Record user's answers in the evolution memory for the next cycle.

Phase 5: Metrics Report

Evolution Report — 2026-02-10

Actions Taken:
  Consolidated:  3 memory groups → 3 richer memories
  Enriched:      +4 new memories (auth topic)
  Pruned:        2 dead memories removed
  Normalized:    4 tag variants → 1 canonical
  Rebalanced:    2 priority adjustments

Before → After:
  Brain grade:        B (82) → A- (91)
  Recall confidence:  0.61 avg → 0.74 avg
  Active conflicts:   2 → 0
  Stale ratio:        22% → 15%
  Tag variants:       47 → 43

Next recommended cycle: 2026-02-17
Focus areas: testing (0 memories), deployment (3 memories, could be richer)

Rules

  • Evidence-driven only — every action must cite specific recall metrics or memory references
  • Never auto-modify — present all changes for user approval before executing
  • Preserve over prune — when in doubt, keep the memory
  • One action at a time — don't batch 20 changes; present 3-5, execute, then next batch
  • Log everything — store evolution decisions as memories for future cycles
  • Respect user judgment — if user says "keep it", keep it, even if metrics say prune
  • Progressive improvement — aim for +5-10 grade points per cycle, not perfection in one pass
  • No perfectionism — grade B+ is healthy; don't optimize for A+ if effort outweighs benefit
  • Vietnamese support — if brain content is Vietnamese, conduct evolution in Vietnamese
  • Compare cycles — if previous evolution memory exists, show delta from last cycle

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.85%
按下载量换算1,319

Claude

30.27%
按下载量换算1,180

Cursor

20.3%
按下载量换算791

Gemini CLI

8.97%
按下载量换算350

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills