Remember - Store Decisions and Patterns

VerifiedSafe

Stores decisions, patterns, and context into a knowledge graph using natural language. Use it to save important development choices, best practices, or anti-patterns so they persist across sessions—automatically extracts entities and relationships from the text.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#memory#decisions#patterns#best-practices#graph-memory

Recommended for

Automated summary

Stores decisions and patterns in a knowledge graph for future sessions.

Strengths

  • Zero configuration required
  • Automatic entity extraction from text
  • Outcome tracking (success/failure) to build a best practice library
  • Categorization for organization

Limitations

  • Requires memory MCP server
  • Only works with Claude Code
  • Automatic extraction may not be perfect
When to use it

When you want to save important decisions or patterns to recall in future sessions.

When not to use it

For transient or trivial information, or if the memory MCP server is not running.

Security analysis

Safe
Quality score92/100

The skill stores user-provided text into a knowledge graph via MCP memory tools. There is no execution of arbitrary commands (e.g., curl, sh, rm) and no exfiltration of secrets. The allowed Bash tool is not used for any harmful operations.

No concerns found

How this analysis is made

Examples

Store a decision
/ork:remember Decided to use PostgreSQL for the database because of its JSON support.
Store a successful pattern
/ork:remember --success Use connection pooling to improve performance
Store an anti-pattern
/ork:remember --failed Using nested loops in SQL queries caused performance issues

name: remember license: MIT compatibility: "Claude Code 2.1.59+. Requires memory MCP server." description: "Stores decisions and patterns in knowledge graph. Use when saving patterns, remembering outcomes, or recording decisions." argument-hint: "[decision-or-pattern]" context: none version: 3.0.0 author: OrchestKit tags: [memory, decisions, patterns, best-practices, graph-memory] user-invocable: true allowed-tools: [Read, Grep, Glob, Bash, mcp__memory__create_entities, mcp__memory__create_relations, mcp__memory__add_observations, mcp__memory__search_nodes] complexity: low model: haiku metadata: category: workflow-automation mcp-server: memory

Remember - Store Decisions and Patterns

Store important decisions, patterns, or context in the knowledge graph for future sessions. Supports tracking success/failure outcomes for building a Best Practice Library.

Argument Resolution

TEXT = "$ARGUMENTS"        # Full argument string, e.g., "We use cursor pagination"
FLAG = "$ARGUMENTS[0]"     # First token — check for --success, --failed, --category, --agent
# Parse flags from $ARGUMENTS[0], $ARGUMENTS[1] etc. (CC 2.1.59 indexed access)
# Remaining tokens after flags = the text to remember

Architecture

The remember skill uses knowledge graph as storage:

  1. Knowledge Graph: Entity and relationship storage via mcp__memory__create_entities and mcp__memory__create_relations - FREE, zero-config, always works

Benefits:

  • Zero configuration required - works out of the box
  • Explicit relationship queries (e.g., "what does X use?")
  • Cross-referencing between entities
  • No cloud dependency

Automatic Entity Extraction:

  • Extracts capitalized terms as potential entities (PostgreSQL, React, pgvector)
  • Detects agent names (database-engineer, backend-system-architect)
  • Identifies pattern names (cursor-pagination, connection-pooling)
  • Recognizes "X uses Y", "X recommends Y", "X requires Y" relationship patterns

Usage

Store Decisions (Default)

/ork:remember <text>
/ork:remember --category <category> <text>
/ork:remember --success <text>     # Mark as successful pattern
/ork:remember --failed <text>      # Mark as anti-pattern
/ork:remember --success --category <category> <text>

# Agent-scoped memory
/ork:remember --agent <agent-id> <text>         # Store in agent-specific scope
/ork:remember --global <text>                   # Store as cross-project best practice

Flags

| Flag | Behavior | |------|----------| | (default) | Write to graph | | --success | Mark as successful pattern | | --failed | Mark as anti-pattern | | --category <cat> | Set category | | --agent <agent-id> | Scope memory to a specific agent | | --global | Store as cross-project best practice |

Categories

  • decision - Why we chose X over Y (default)
  • architecture - System design and patterns
  • pattern - Code conventions and standards
  • blocker - Known issues and workarounds
  • constraint - Limitations and requirements
  • preference - User/team preferences
  • pagination - Pagination strategies
  • database - Database patterns
  • authentication - Auth approaches
  • api - API design patterns
  • frontend - Frontend patterns
  • performance - Performance optimizations

Outcome Flags

  • --success - Pattern that worked well (positive outcome)
  • --failed - Pattern that caused problems (anti-pattern)

If neither flag is provided, the memory is stored as neutral (informational).

Workflow

1. Parse Input

Check for --success flag → outcome: success
Check for --failed flag → outcome: failed
Check for --category <category> flag
Check for --agent <agent-id> flag → agent_id: "ork:{agent-id}"
Check for --global flag → use global user_id
Extract the text to remember
If no category specified, auto-detect from content

2. Auto-Detect Category

| Keywords | Category | |----------|----------| | chose, decided, selected | decision | | architecture, design, system | architecture | | pattern, convention, style | pattern | | blocked, issue, bug, workaround | blocker | | must, cannot, required, constraint | constraint | | pagination, cursor, offset, page | pagination | | database, sql, postgres, query | database | | auth, jwt, oauth, token, session | authentication | | api, endpoint, rest, graphql | api | | react, component, frontend, ui | frontend | | performance, slow, fast, cache | performance |

3. Extract Lesson (for anti-patterns)

If outcome is "failed", look for:

  • "should have", "instead use", "better to"
  • If not found, prompt user: "What should be done instead?"

4. Extract Entities from Text

Step A: Detect entities:

1. Find capitalized terms (PostgreSQL, React, FastAPI)
2. Find agent names (database-engineer, backend-system-architect)
3. Find pattern names (cursor-pagination, connection-pooling)
4. Find technology keywords (pgvector, HNSW, RAG)

Step B: Detect relationship patterns:

| Pattern | Relation Type | |---------|--------------| | "X uses Y" | USES | | "X recommends Y" | RECOMMENDS | | "X requires Y" | REQUIRES | | "X enables Y" | ENABLES | | "X prefers Y" | PREFERS | | "chose X over Y" | CHOSE_OVER | | "X for Y" | USED_FOR |

5. Create Graph Entities (PRIMARY)

Use mcp__memory__create_entities:

{
  "entities": [
    {
      "name": "pgvector",
      "entityType": "Technology",
      "observations": ["Used for vector search", "From remember: '{original text}'"]
    },
    {
      "name": "database-engineer",
      "entityType": "Agent",
      "observations": ["Recommends pgvector for RAG"]
    }
  ]
}

Entity Type Assignment:

  • Capitalized single words ending in common suffixes: Technology (PostgreSQL, FastAPI)
  • Words with hyphens matching agent pattern: Agent (database-engineer)
  • Words with hyphens matching pattern names: Pattern (cursor-pagination)
  • Project context: Project (current project name)
  • Failed patterns: AntiPattern

6. Create Graph Relations

Use mcp__memory__create_relations:

{
  "relations": [
    {
      "from": "database-engineer",
      "to": "pgvector",
      "relationType": "RECOMMENDS"
    },
    {
      "from": "pgvector",
      "to": "RAG",
      "relationType": "USED_FOR"
    }
  ]
}

7. Confirm Storage

For success:

✅ Remembered SUCCESS (category): "summary of text"
   → Stored in knowledge graph
   → Created entity: {entity_name} ({entity_type})
   → Created relation: {from} → {relation_type} → {to}
   📊 Graph: {N} entities, {M} relations

For failed:

❌ Remembered ANTI-PATTERN (category): "summary of text"
   → Stored in knowledge graph
   → Created entity: {anti-pattern-name} (AntiPattern)
   💡 Lesson: {lesson if extracted}

For neutral:

✓ Remembered (category): "summary of text"
   → Stored in knowledge graph
   → Created entity: {entity_name} ({entity_type})
   📊 Graph: {N} entities, {M} relations

Examples

Basic Remember (Graph Only)

Input: /remember Cursor-based pagination scales well for large datasets

Output:

✓ Remembered (pagination): "Cursor-based pagination scales well for large datasets"
   → Stored in knowledge graph
   → Created entity: cursor-pagination (Pattern)
   📊 Graph: 1 entity, 0 relations

Anti-Pattern

Input: /remember --failed Offset pagination caused timeouts on tables with 1M+ rows

Output:

❌ Remembered ANTI-PATTERN (pagination): "Offset pagination caused timeouts on tables with 1M+ rows"
   → Stored in knowledge graph
   → Created entity: offset-pagination (AntiPattern)
   💡 Lesson: Use cursor-based pagination for large datasets
   📊 Graph: 1 entity, 0 relations

Agent-Scoped Memory

Input: /remember --agent backend-system-architect Use connection pooling with min=5, max=20

Output:

✓ Remembered (database): "Use connection pooling with min=5, max=20"
   → Stored in knowledge graph
   → Created entity: connection-pooling (Pattern)
   → Created relation: project → USES → connection-pooling
   📊 Graph: 1 entity, 1 relation
   🤖 Agent: backend-system-architect

Duplicate Detection

Before storing, search for similar patterns in graph:

  1. Query graph with mcp__memory__search_nodes for entity names
  2. If exact entity exists:
    • Add observation to existing entity via mcp__memory__add_observations
    • Inform user: "✓ Updated existing entity (added observation)"
  3. If similar pattern found with opposite outcome:
    • Warn: "⚠️ This conflicts with an existing pattern. Store anyway?"

File-Based Memory Updates

When updating .claude/memory/MEMORY.md or project memory files:

  • PREFER Edit over Write to preserve existing content and avoid overwriting
  • Use stable anchor lines: ## Recent Decisions, ## Patterns, ## Preferences
  • See the memory skill's "Permission-Free File Operations" section for the full Edit pattern
  • This applies to the calling agent's file operations, not to the knowledge graph operations above

Related Skills

  • ork:memory - Search, load, sync, visualize (read-side operations)

Error Handling

  • If knowledge graph unavailable, show configuration instructions
  • If text is empty, ask user to provide something to remember
  • If text >2000 chars, truncate with notice
  • If both --success and --failed provided, ask user to clarify
  • If --agent used without agent-id, prompt for agent selection
  • If entity extraction fails, create a generic Decision entity
  • If relation creation fails (e.g., entity doesn't exist), create entities first then retry

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/remember-store-decisions-and-patterns-mmbizjwx/download' --output '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md.part' && mv '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md.part' '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Environment declared by the author: Claude Code 2.1.59+. Requires memory MCP server.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md' && test -s '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/remember' && cp -R '.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx' '.claude/skills/remember'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/remember-store-decisions-and-patterns-mmbizjwx'

openskills read 'remember-store-decisions-and-patterns-mmbizjwx'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/remember-store-decisions-and-patterns-mmbizjwx/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills