From pce-memory-plugin
Knowledge graph operations skill for pce-memory. Create, query, and visualize entities and relations. Triggered by: 'create entity', 'graph relation', 'query knowledge graph', 'map dependencies'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pce-memory-plugin:pce-graphThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Operate on the pce-memory knowledge graph (entities and relations).
Operate on the pce-memory knowledge graph (entities and relations).
Parse $ARGUMENTS:
entity [name] [type] → Create/search entityrelation [from] [to] [type] → Create relationquery [pattern] → Search graphRegister important codebase components as entities.
pce_memory_upsert_entity({
id: "entity-unique-id",
type: "component|module|api|database|service|concept",
name: "Display name",
properties: { ... } // Optional additional info
})
See entity-relation-patterns.md.
| Type | Purpose | Examples |
|---|---|---|
| component | Software component | AuthService, UserController |
| module | Module/package | pce-boundary, pce-embeddings |
| api | API endpoint | POST /api/claims |
| database | Data store | DuckDB, Redis |
| service | External service | OpenAI API, GitHub |
| concept | Concept/pattern | State Machine, CRDT |
pce_memory_query_entity({
type: "component", // Filter by type
name_pattern: "Auth*" // Filter by name pattern
})
Register relationships between entities.
pce_memory_upsert_relation({
from_id: "entity-a",
to_id: "entity-b",
relation_type: "depends_on|implements|contains|calls|stores_in",
properties: { ... }
})
| Type | Meaning | Example |
|---|---|---|
| depends_on | Dependency | AuthService depends_on JWTLibrary |
| implements | Implementation | UserController implements IUserAPI |
| contains | Containment | CoreModule contains StateManager |
| calls | Invocation | Handler calls Repository |
| stores_in | Persistence target | ClaimStore stores_in DuckDB |
pce_memory_query_relation({
from_id: "entity-a", // Filter by source
relation_type: "depends_on" // Filter by type
})
query_relationnpx claudepluginhub caphtech/pce-memory --plugin pce-memory-pluginManages a typed knowledge graph with entities and relations. Enables creating, querying, linking structured data, finding dependencies, and sharing state across skills.
Manages persistent knowledge graph for specs by caching agent discoveries, codebase analysis, patterns, components, and APIs. Use to remember findings across sessions, validate task dependencies, and query prior work.
Traverses the knowledge graph to trace entity relationships, causal chains, co-access paths, and memory clusters. Use when exploring connections between concepts or drilling into related memories.