Use when starting a session, beginning a new task, or encountering errors. Graphiti is the knowledge graph memory system for storing patterns, fixes, preferences and learnings across all projects.
/plugin marketplace add sharpner/claude-agents/plugin install workflow-core@sharpner-claude-agentsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Knowledge graph memory for AI agents - stores patterns, fixes, and learnings.
When this skill is invoked, also remember:
| Skill | When |
|---|---|
quality-gate | EVERY response with code changes — 7/7 Checklist! |
worktree | BEFORE any code changes — Isolation check |
verification | BEFORE claiming completion — Evidence required |
Use consistent group IDs per project:
| Group ID Pattern | Usage |
|---|---|
project_<projectname> | Project-specific knowledge |
global_ | Cross-project patterns |
NEVER use fragmented group_ids like projectname_wip, projectname_fixes!
Every session MUST start with context loading:
# Load project context at session start
context = mcp__graphiti__get_context(
query="gotcha fix pattern architecture",
group_ids=["project_<projectname>", "global_"]
)
mcp__graphiti__add_memory(
name="FIX: [Brief description]",
episode_body="Problem: [what was wrong]\nCause: [root cause]\nSolution: [how it was fixed]\nCode: [relevant snippet]",
group_id="project_<projectname>",
source_description="fix",
source="text"
)
mcp__graphiti__add_memory(
name="GOTCHA: [Brief description]",
episode_body="Context: [when this happens]\nProblem: [what goes wrong]\nSolution: [how to avoid/fix]",
group_id="project_<projectname>",
source_description="gotcha",
source="text"
)
mcp__graphiti__add_memory(
name="PATTERN: [Brief description]",
episode_body="Use case: [when to use]\nImplementation: [how to implement]\nExample: [code snippet]",
group_id="project_<projectname>",
source_description="pattern",
source="text"
)
mcp__graphiti__add_memory(
name="ARCH: [Brief description]",
episode_body="Decision: [what was decided]\nRationale: [why]\nAlternatives considered: [what else]\nTradeoffs: [pros/cons]",
group_id="project_<projectname>",
source_description="architecture",
source="text"
)
| Tag | When to Use |
|---|---|
fix | Bug fixes with solution |
gotcha | Known pitfalls to avoid |
pattern | Reusable code patterns |
architecture | Design decisions |
preference | User/project preferences |
mcp__graphiti__get_context(
query="[relevant keywords]",
group_ids=["project_<projectname>"]
)
mcp__graphiti__search_nodes(
query="[search term]",
group_ids=["project_<projectname>"],
max_nodes=10
)
mcp__graphiti__search_memory_facts(
query="[search term]",
group_ids=["project_<projectname>"],
max_facts=10
)
mcp__graphiti__get_episodes(
group_ids=["project_<projectname>"],
max_episodes=10
)
Each subagent should load relevant context at start:
| Subagent Type | Query Keywords |
|---|---|
| Code Reviewer | "patterns gotchas fixes code quality" |
| Security | "security vulnerabilities fixes auth" |
| Frontend | "UI patterns hooks components fixes" |
| Backend | "API database patterns fixes" |
| Testing | "test patterns CI gotchas coverage" |
Every week, extract learnings from Graphiti:
"Generate weekly learning report:
- Top 5 problems encountered
- Patterns (>= 3 occurrences)
- Proposed documentation updates
- Decisions that should be recorded"
"Learn once, remember forever."
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.