Xpersona
K

knowledge-graph-memory

CLAWHUB · Unverified

Builds and maintains a knowledge graph for long-term memory with concept drift detection and temporal reasoning. Use when storing structured knowledge, detec... Skill: knowledge-graph-memory Owner: jpengcheng523-netizen Summary: Builds and maintains a knowledge graph for long-term memory with concept drift detection and temporal reasoning. Use when storing structured knowledge, detec... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-27T08:02:41.036Z | auto Initial release of knowledge-graph-memory skill. - Provides a knowledge graph for long-term memory with concept dr

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177n9nwg73ep3g6fp9z19025n83h4xr:jpeng-knowledge-graph-memory
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jpengcheng523-netizen-jpeng-knowledge-graph-memory/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,435 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: knowledge-graph-memory
description: Builds and maintains a knowledge graph for long-term memory with concept drift detection and temporal reasoning. Use when storing structured knowledge, detecting concept changes over time, or performing temporal queries.
---

# Knowledge Graph Memory

Long-term memory system with knowledge graph, concept drift detection, and temporal reasoning.

## When to Use

- Building knowledge graphs from concepts and relationships
- Detecting concept drift over time
- Temporal reasoning and time-based queries
- Long-term memory storage with consolidation

## Usage

```javascript
const { KnowledgeGraph, Memory } = require('./skills/knowledge-graph-memory');

// Create a knowledge graph
const kg = new KnowledgeGraph();

// Add concepts
kg.addConcept('AI', { category: 'technology', importance: 0.9 });
kg.addConcept('Machine Learning', { category: 'technology' });

// Link concepts
kg.link('AI', 'Machine Learning', 'includes');

// Find related concepts
const related = kg.getRelated('AI');

// Detect concept drift
const drift = kg.detectDrift('AI');

// Search concepts
const results = kg.search({ name: 'AI' });
```

## Features

- **Knowledge Graph**: Nodes (concepts) and edges (relationships)
- **Concept Drift Detection**: ADWIN, DDM, statistical methods
- **Temporal Reasoning**: Time-based queries and event tracking
- **Memory Consolidation**: Promote important memories, forget unused ones

## API

### KnowledgeGraph

```javascript
const kg = new KnowledgeGraph({
  maxNodes: 10000,
  consolidationThreshold: 0.1,
  driftDetection: { method: 'statistical', threshold: 2.0 }
});

// Add and get concepts
kg.addConcept(name, properties);
kg.getConcept(idOrName);

// Create relationships
kg.link(sourceId, targetId, edgeType, properties);

// Query
kg.getRelated(conceptId, edgeType);
kg.findPath(startId, endId, maxDepth);
kg.search({ name: 'pattern', type: 'concept' });

// Drift detection
kg.detectDrift(conceptId);

// Memory management
kg.consolidate();
kg.removeConcept(id);

// Serialization
kg.toJSON();
KnowledgeGraph.fromJSON(data);
```

### Concept

```javascript
const concept = new Concept({
  name: 'AI',
  type: 'concept',
  properties: { category: 'technology' },
  importance: 0.8
});

concept.access();  // Increment access count
concept.update({ newProperty: 'value' });  // Update with history
```

### DriftDetector

```javascript
const detector = new DriftDetector({
  method: 'statistical',
  windowSize: 100,
  threshold: 2.0
});

const result = detector.addSample(value);
// { drift: boolean, warning: boolean, mean, stdDev }
```

### TemporalReasoner

```javascript
const reasoner = new TemporalReasoner();

reasoner.addEvent({ type: 'concept_added', conceptId: 'AI' });
reasoner.getEventsInRange(start, end);
reasoner.getEventsBefore(time);
reasoner.getEventsAfter(time);
reasoner.getRecentEvents(10);
```

### Memory

```javascript
const memory = new Memory({
  shortTermMaxSize: 100,
  consolidationInterval: 360000

_meta.json

{
  "ownerId": "kn751cs05f46j016xa7q3519hs83gke6",
  "slug": "jpeng-knowledge-graph-memory",
  "version": "1.0.0",
  "publishedAt": 1774598561036
}

skill-card.md

## Description:

Builds and maintains a knowledge graph for long-term memory with concept drift detection, temporal reasoning, structured knowledge storage, and time-based queries.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jpengcheng523-netizen](https://clawhub.ai/user/jpengcheng523-netizen)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to store structured knowledge as concepts and relationships, detect changes in concept histories, and run temporal or relationship queries over in-memory data.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Caller-provided data can remain in local process memory while the skill is in use.

Mitigation: Avoid storing secrets or regulated data unless the host agent has appropriate memory handling, access control, and retention policies.

Risk: Short-term memory eviction may remove the oldest-created entry rather than the least recently used entry.

Mitigation: Configure memory size and consolidation thresholds for the workload, and explicitly recall, consolidate, or forget entries when retention behavior matters.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jpengcheng523-netizen/skills/jpeng-knowledge-graph-memory)

## Skill Output:

**Output Type(s):** [Code, JSON, Guidance]

**Output Format:** [JavaScript objects and JSON-serializable graph, memory, drift, and temporal query results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Local in-memory state; no network, credential, destructive, or persistence behavior identified in server security evidence.]

## Skill Version(s):

1.0.0 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package.json

{
  "name": "knowledge-graph-memory",
  "version": "1.0.0",
  "description": "Knowledge graph for long-term memory with concept drift detection and temporal reasoning",
  "main": "index.js",
  "keywords": [
    "knowledge-graph",
    "memory",
    "concept-drift",
    "temporal-reasoning",
    "long-term-memory"
  ],
  "author": "evolver",
  "license": "MIT"
}

Sponsored

Ads related to knowledge-graph-memory and adjacent AI workflows.