/cortex-automate
Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this
$ npx -y skills add cdeust/Cortex --skill cortex-automate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/cortex-automate
Context preview
The summary Claude sees to decide when to auto-load this skill.
Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this
SKILL.md
cortex-automate.SKILL.mdname: cortex-automate
description: "Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this keyword appears', or when you want to automate memory behavior based on conditions."
Automate — Triggers, Rules, and Sync
Keywords
trigger, rule, automate, remind me when, auto-remember, sync instructions, push to CLAUDE.md, prospective memory, keyword trigger, file trigger, domain trigger, time trigger, filter rule, boost rule
Overview
Set up proactive automation in Cortex — triggers that fire when conditions are met (like opening a specific file or entering a domain), rules that filter or boost memories during recall, and syncing top insights back into CLAUDE.md for persistent project instructions.
**Use this skill when:** You want Cortex to proactively surface information based on context, filter out noise during recall, or keep CLAUDE.md updated with memory-derived insights.
Workflow
Triggers — Proactive Memory Recall
Create triggers that fire automatically when conditions match:
**Keyword trigger** — fires when a query/context contains specific words:
cortex:create_trigger({
"type": "keyword",
"pattern": "authentication",
"memory_id": <id>,
"message": "Remember: we decided to use JWT with refresh tokens, not sessions"
})**File trigger** — fires when a specific file is being worked on:
cortex:create_trigger({
"type": "file",
"pattern": "pg_store.py",
"memory_id": <id>,
"message": "This file has a known issue with connection pooling under load"
})**Domain trigger** — fires when entering a specific project domain:
cortex:create_trigger({
"type": "domain",
"pattern": "cortex",
"memory_id": <id>,
"message": "Priority: finish the refactoring plan before adding new features"
})**Time trigger** — fires after a time condition:
cortex:create_trigger({
"type": "time",
"pattern": "7d",
"memory_id": <id>,
"message": "It's been a week — run consolidation"
})Triggers fire up to 5 times by default, then deactivate. They appear in the `query_methodology` response at session start.
Rules — Filter and Boost During Recall
Add rules that modify recall behavior:
**Soft rule** (boost/penalize score):
cortex:add_rule({
"type": "soft",
"scope": "domain:cortex",
"condition": "tag:architecture",
"weight": 1.5,
"description": "Boost architecture memories in Cortex domain"
})**Hard rule** (include/exclude):
cortex:add_rule({
"type": "hard",
"scope": "global",
"condition": "tag:deprecated",
"action": "exclude",
"description": "Never surface deprecated memories"
})**Tag rule** (auto-tag on store):
cortex:add_rule({
"type": "tag",
"scope": "domain:cortex",
"condition": "content_match:refactor",
"tag": "refactoring",
"description": "Auto-tag refactoring memories"
})**List active rules:**
cortex:get_rules({
"scope": "domain:cortex"
})Sync to CLAUDE.md
Push top memory insights into project CLAUDE.md for persistent context:
cortex:sync_instructions({
"directory": "<project root>",
"max_insights": 10
})This extracts the most important, high-confidence memories and formats them as project instructions in CLAUDE.md. Useful for keeping the project-level instructions file updated with lessons and patterns discovered across sessions.
Tips
- **Triggers are personal reminders**: Think of them as "note to future self" tied to a context
- **Rules shape retrieval**: Soft rules are preferred over hard rules — they influence ranking without hiding potentially useful memories
- **Sync periodically**: Run `sync_instructions` after significant sessions to keep CLAUDE.md current
- **Don't over-trigger**: Too many triggers create noise. Use them for genuinely important context-dependent reminders
Read more
name: cortex-automate description: "Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this keyword appears', or when you want to automate memory behavior based on conditions."
Automate — Triggers, Rules, and Sync
Keywords
trigger, rule, automate, remind me when, auto-remember, sync instructions, push to CLAUDE.md, prospective memory, keyword trigger, file trigger, domain trigger, time trigger, filter rule, boost rule
Overview
Set up proactive automation in Cortex — triggers that fire when conditions are met (like opening a specific file or entering a domain), rules that filter or boost memories during recall, and syncing top insights back into CLAUDE.md for persistent project instructions.
**Use this skill when:** You want Cortex to proactively surface information based on context, filter out noise during recall, or keep CLAUDE.md updated with memory-derived insights.
Workflow
Triggers — Proactive Memory Recall
Create triggers that fire automatically when conditions match:
**Keyword trigger** — fires when a query/context contains specific words:
cortex:create_trigger({
"type": "keyword",
"pattern": "authentication",
"memory_id": <id>,
"message": "Remember: we decided to use JWT with refresh tokens, not sessions"
})**File trigger** — fires when a specific file is being worked on:
cortex:create_trigger({
"type": "file",
"pattern": "pg_store.py",
"memory_id": <id>,
"message": "This file has a known issue with connection pooling under load"
})**Domain trigger** — fires when entering a specific project domain:
cortex:create_trigger({
"type": "domain",
"pattern": "cortex",
"memory_id": <id>,
"message": "Priority: finish the refactoring plan before adding new features"
})**Time trigger** — fires after a time condition:
cortex:create_trigger({
"type": "time",
"pattern": "7d",
"memory_id": <id>,
"message": "It's been a week — run consolidation"
})Triggers fire up to 5 times by default, then deactivate. They appear in the `query_methodology` response at session start.
Rules — Filter and Boost During Recall
Add rules that modify recall behavior:
**Soft rule** (boost/penalize score):
cortex:add_rule({
"type": "soft",
"scope": "domain:cortex",
"condition": "tag:architecture",
"weight": 1.5,
"description": "Boost architecture memories in Cortex domain"
})**Hard rule** (include/exclude):
cortex:add_rule({
"type": "hard",
"scope": "global",
"condition": "tag:deprecated",
"action": "exclude",
"description": "Never surface deprecated memories"
})**Tag rule** (auto-tag on store):
cortex:add_rule({
"type": "tag",
"scope": "domain:cortex",
"condition": "content_match:refactor",
"tag": "refactoring",
"description": "Auto-tag refactoring memories"
})**List active rules:**
cortex:get_rules({
"scope": "domain:cortex"
})Sync to CLAUDE.md
Push top memory insights into project CLAUDE.md for persistent context:
cortex:sync_instructions({
"directory": "<project root>",
"max_insights": 10
})This extracts the most important, high-confidence memories and formats them as project instructions in CLAUDE.md. Useful for keeping the project-level instructions file updated with lessons and patterns discovered across sessions.
Tips
- **Triggers are personal reminders**: Think of them as "note to future self" tied to a context
- **Rules shape retrieval**: Soft rules are preferred over hard rules — they influence ranking without hiding potentially useful memories
- **Sync periodically**: Run `sync_instructions` after significant sessions to keep CLAUDE.md current
- **Don't over-trigger**: Too many triggers create noise. Use them for genuinely important context-dependent reminders
Cross-platform persistent memory MCP for Codex, Gemini CLI, Claude Code, and other local MCP hosts. 36 cited neuroscience mechanisms, local-first SQLite/PostgreSQL, hybrid retrieval, decay-based consolidation, and reproducible benchmarks. Claude adds optional automatic lifecycle hooks.
Repo: cdeust/Cortex
Other skills on hypermnesia-mcp.
- /cortex-consolidate
Run memory maintenance — decay old memories, compress stale content, consolidate episodic memories into semantic knowledge, and run sleep-like replay. Use when the user says 'clean up memories', 'consolidate', 'run maintenance', 'compress old memories', 'memory cleanup', or
Open skill - /cortex-debug-memory
Debug and fix memory system issues — validate memories, rate quality, manage protection, forget bad memories, and restore from checkpoints. Use when the user says 'fix memory', 'bad memory', 'wrong memory', 'delete this', 'protect this', 'this memory is wrong', 'memory quality',
Open skill - /cortex-explore-memory
Explore the memory system's state, find gaps in knowledge, assess coverage, and get diagnostic information. Use when the user asks 'what does my memory look like', 'show me memory stats', 'what am I missing', 'how good is my knowledge', 'memory health', 'show coverage', 'find
Open skill - /cortex-import
Import memories from other AI memory systems into Cortex. Supports claude-mem (SQLite), Claude Desktop sessions, ChatGPT web export (JSON), Gemini Takeout (JSON), Cursor conversations, and Claude Code JSONL. Use when the user says 'import from claude-mem', 'migrate memories',
Open skill - /cortex-navigate-knowledge
Navigate the knowledge graph — trace entity relationships, explore causal chains, drill into memory clusters, and traverse co-access paths. Use when the user asks 'how are these related', 'what connects X to Y', 'show me the knowledge graph', 'trace the relationship', 'what
Open skill - /cortex-profile
View and manage your cognitive profile — how you think, work patterns, blind spots, and cross-domain connections. Use when the user says 'show my profile', 'how do I work', 'what are my patterns', 'cognitive style', 'blind spots', 'methodology', or at the start of a session to
Open skill

