Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

memory-integration记忆整合

Agent Skill

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

总安装

1,224

周安装

51

GitHub Stars

6

下载量

408
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/troykelly/claude-skills --skill memory-integration

简介

记忆整合技能用于查找、检索和筛选相关信息,支持基于关键词和任务场景的线索定位。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中需要快速获取候选结果的研究类任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 该技能归类于研究检索类别,适合知识管理和上下文关联场景。

SKILL.md

Memory Integration

Overview

Use both memory systems to maintain context across sessions.

Core principle: You have no memory between sessions. Use these tools to remember.

Systems:

  • Episodic Memory - Conversation history search
  • Knowledge Graph (mcp__memory) - Structured facts and relationships

When to Use Memory

MomentMemory Action
Session startSearch for relevant context
Before starting issueSearch for previous work
Making decisionCheck for past decisions
Completing workStore important learnings
Session endStore key outcomes

Episodic Memory

What It Stores

  • Full conversation history
  • Decisions made
  • Problems solved
  • Approaches tried
  • Lessons learned

Searching Episodic Memory

Use the episodic-memory skill or MCP tools:

Search for:
- Issue number: "issue 123", "#123"
- Feature name: "authentication", "user login"
- Problem type: "TypeScript error", "build failure"
- Project name: repository name

Semantic Search (Single Query)

// Search with natural language
mcp__plugin_episodic-memory_episodic-memory__search({
  query: "user authentication implementation decisions"
})

Precise Search (Multiple Concepts)

// Search for intersection of concepts
mcp__plugin_episodic-memory_episodic-memory__search({
  query: ["authentication", "session", "JWT"]
})

Reading Full Conversations

After finding relevant results:

// Read the full conversation
mcp__plugin_episodic-memory_episodic-memory__read({
  path: "/path/to/conversation.jsonl"
})

What to Search For

SituationSearch Terms
Starting issue #123"issue 123", "#123"
Working on auth"authentication", "login", "session"
TypeScript problem"TypeScript", "type error", specific error message
Similar featureFeature name, related concepts

Knowledge Graph (mcp__memory)

What It Stores

  • Entities (Projects, Issues, Decisions, Patterns)
  • Relationships between entities
  • Observations about entities

Creating Entities

Store important facts:

// Create an entity for a project decision
mcp__memory__create_entities({
  entities: [{
    name: "Decision: Use JWT for Auth",
    entityType: "Decision",
    observations: [
      "Decided on 2024-12-01",
      "JWT chosen over sessions for API statelessness",
      "Related to issue #123",
      "Implementation in src/auth/jwt.ts"
    ]
  }]
})

Creating Relationships

Link entities together:

// Create relationships
mcp__memory__create_relations({
  relations: [
    {
      from: "Project: MyApp",
      to: "Decision: Use JWT for Auth",
      relationType: "has_decision"
    },
    {
      from: "Issue #123",
      to: "Decision: Use JWT for Auth",
      relationType: "resulted_in"
    }
  ]
})

Searching the Graph

// Search for relevant nodes
mcp__memory__search_nodes({
  query: "authentication"
})

// Open specific nodes
mcp__memory__open_nodes({
  names: ["Decision: Use JWT for Auth"]
})

// Read entire graph (for small graphs)
mcp__memory__read_graph({})

Memory Protocol

At Session Start

  1. Search episodic memory for:

- Current issue number - Project/repository name - Active feature being worked on

  1. Search knowledge graph for:

- Project entity - Related decisions - Known patterns

  1. Synthesize context before proceeding

During Work

Store as you go:

EventStore In
Major decisionKnowledge graph entity
Problem solvedAdd observation to issue entity
Pattern discoveredKnowledge graph entity
Lesson learnedAdd observation

At Session End

  1. Update knowledge graph with:

- New decisions made - Problems solved - Patterns discovered

  1. Add observations to existing entities:

- Progress on issues - Learnings - Next steps

Entity Types

Suggested entity types for the knowledge graph:

TypeUse ForExample
ProjectRepository/codebase"Project: MyApp"
IssueGitHub issues"Issue #123: Auth"
DecisionArchitectural decisions"Decision: Use JWT"
PatternCode patterns"Pattern: Repository Layer"
ProblemKnown issues"Problem: Race Condition in X"
PersonCollaborators"Person: Alice (maintainer)"

Example: Issue Memory Flow

Session 1: Starting Issue

// Search for any previous context
const episodic = await search("issue 456 user profile");
const graph = await search_nodes("user profile");

// If nothing found, create fresh entity
await create_entities({
  entities: [{
    name: "Issue #456: User Profile Page",
    entityType: "Issue",
    observations: [
      "Started: 2024-12-01",
      "Scope: Profile display, edit, avatar upload"
    ]
  }]
});

Session 1: Mid-Work Decision

// Store a decision made
await add_observations({
  observations: [{
    entityName: "Issue #456: User Profile Page",
    contents: [
      "Decision: Using react-image-crop for avatar cropping",
      "Reason: Best mobile support, active maintenance"
    ]
  }]
});

Session 2: Resuming

// Search for context
const results = await search("issue 456");
// Read: "Using react-image-crop for avatar cropping"

// Continue with context maintained

What to Store

Always Store

  • Architectural decisions with rationale
  • Non-obvious problem solutions
  • Important constraints discovered
  • Dependencies between components

Don't Store

  • Trivial implementation details
  • Things obvious from code
  • Temporary debugging notes
  • Speculation without conclusion

Checklist

At session start:

  • Search episodic memory for issue/project
  • Search knowledge graph for context
  • Note relevant findings

During work:

  • Store major decisions
  • Record problem solutions
  • Note discovered patterns

At session end:

  • Update entities with progress
  • Add new learnings
  • Record next steps

Integration

This skill is called by:

  • session-start - Initial context gathering
  • issue-driven-development - Step 4

This skill supports:

  • Cross-session continuity
  • Decision documentation
  • Pattern discovery

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Gemini CLI

29.68%
按下载量换算121

Antigravity

21.48%
按下载量换算88

Claude Code

18.69%
按下载量换算76

Cursor

13.98%
按下载量换算57

kiro-cli

8.76%
按下载量换算36

windsurf

3.25%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills