Communitygithub.com

使用Graphiti构建代理记忆的时间上下文图

当代理需要长期记忆,不仅要存储平面文本块或聊天历史,还要追踪每次变化的内容、时间以及产生该事实的来源片段时,使用Graphiti。

使用Graphiti构建代理记忆的时间上下文图 是什么?

该技能旨在为AI代理提供一种基于时间上下文图的长期记忆机制。与传统的向量数据库或聊天历史不同,Graphiti能够追踪每个事实的变化历史、变化时间以及产生该事实的源片段(episode),从而实现精细化的记忆管理。它支持多种后端数据库(如Neo4j、FalkorDB、Kuzu、Amazon Neptune)和全文搜索后端(Amazon OpenSearch Serverless),并提供Python、TypeScript和Go的SDK。Graphiti默认使用OpenAI进行LLM推理和嵌入,具有生产就绪的检索性能(亚200毫秒)。该技能适用于需要动态跟踪和查询事实演变的代理场景,如对话理解、知识管理、代码分析等。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/agentskillexchange/skills/tree/main/skills/build-temporal-context-graphs-for-agent-memory-from-evolving-facts-with-graphiti

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

使用Graphiti从演化事实构建代理记忆的时间上下文图

当代理需要长期记忆,不仅要存储平面文本块或聊天历史,还要追踪每次变化的内容、变化时间以及产生该事实的来源片段时,使用Graphiti。

前提条件

Python环境、Graphiti库、根据Graphiti文档配置的支撑图/数据库组件、能够接收片段并查询记忆的代理应用程序。

安装

使用与您的环境匹配的上游安装或设置路径:

  • docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest
  • pip install graphiti-core
  • uv add graphiti-core
  • pip install graphiti-core[falkordb]

上游的需求和注意事项:

  • | 检索与性能 | 预配置、生产就绪的检索,扩展后性能低于200ms | 需要自定义实现,性能取决于您的设置 |
  • | 开发者工具 | 包含图可视化、调试日志、API日志的仪表板;提供Python、TypeScript和Go的SDK | 自行构建工具 |
  • Python 3.10或更高版本

基本使用或入门注意:

文档

来源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Academic Paper Citation Network Mapper

Builds citation networks from Semantic Scholar API and CrossRef DOI metadata. Visualizes paper influence graphs using NetworkX, identifies seminal works, and tracks research lineage across fields.

ACF Custom Fields REST Exposer

Exposes Advanced Custom Fields data through the WordPress REST API using register_rest_field and acf_format_value. Handles repeater fields, flexible content layouts, and gallery fields with proper serialization.

ACF Extended for Advanced Custom Fields Workflows

An ASE skill built around ACF Extended, the WordPress enhancement suite for Advanced Custom Fields that adds field types, admin improvements, front-end forms, options pages, and developer tooling. It is a practical fit for agents working inside complex WordPress content models and custom field workflows.

ACF to Gutenberg Block Migrator

Converts Advanced Custom Fields field groups into native Gutenberg blocks using the ACF Block API v2 and @wordpress/scripts build pipeline. Maps ACF repeaters, groups, and flexible content to InnerBlocks and block attributes with server-side rendering via acf_register_block_type().

Activepieces Open Source Workflow Automation

Activepieces is an open-source, self-hostable workflow automation platform with 200+ integrations. It provides a visual builder for creating automated workflows and exposes all its connectors as MCP servers for AI agent use.

ActivityWatch Cross-Platform Automated Time Tracker and Producti

ActivityWatch is a privacy-first, open-source automated time tracker that records application usage, browser activity, and AFK status across Windows, macOS, and Linux. With 16k+ GitHub stars, it provides detailed productivity analytics without sending data to external servers.

act Local GitHub Actions Runner

act is an open-source CLI tool that runs GitHub Actions workflows locally using Docker, enabling fast feedback on workflow changes without pushing to GitHub. It is a standard tool for local Actions development and testing.

Add a browser review checkpoint before risky agent actions with

Use AgentClick when an agent should pause before risky commands, plans, drafts, or code changes so a human can inspect, edit, approve, or reject them in a purpose-built browser UI.

Add Claude design-system and accessibility workflows with UX/UI

Use UX/UI Agent Skills when Claude should generate tokens, component specs, accessibility audits, and framework-specific UI code from a repeatable design workflow.

Add executable smoke tests for shell scripts and CLIs before ref

Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out.

Add graph-backed memory and context retrieval to agent workflows

Use Cognee to ingest project knowledge into graph and vector memory so agents can retrieve durable context across sessions and workflows.

Add IDE-style semantic code navigation and symbol-safe refactors

Give a coding agent symbol-aware lookup, cross-file rename, and structural edit tools before it starts making brittle text-only changes.

Add managed long-term memory to LangGraph agents with LangMem

Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions.

Add multimodal lifelong memory to MCP and Python agents with Sim

Use SimpleMem to store, compress, index, and retrieve text or multimodal memories for agents through MCP or Python integrations.

Add persistent project memory and hook-driven synthesis with Cla

Keep Claude Code sessions grounded in prior decisions, project context, and daily handoff notes instead of starting from zero every time.

Add Postgres-native vector retrieval to agent and RAG workflows

Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval.

Address GitHub PR review comments from the current branch with g

Find the open PR for the current branch, gather unresolved review comments, and drive a focused comment-resolution workflow with gh-authenticated context.

Add runtime guardrails to TypeScript agents with VoltAgent

Use VoltAgent to intercept, validate, and enforce input/output policies in TypeScript agent workflows.

Add temporal context memory to agent workflows with Zep

Use Zep as an external context layer for agents that need to store events, assemble temporal graph context, and retrieve relevant memory before model calls.

Adobe Firefly API Batch Image Generator

Calls Adobe Firefly

相关技能