بنقرة واحدة
remember
Use when making a decision, choosing a convention, or learning a lesson that should persist across sessions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when making a decision, choosing a convention, or learning a lesson that should persist across sessions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when adding API integration to a module - creates types, contracts, adapter, and service layer.
Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks.
Use when code changes need review before merge - validates architecture, types, security, and test coverage.
Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks.
Use when code changes need review before merge - validates architecture, types, security, and test coverage.
Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks.
| name | remember |
| description | Use when making a decision, choosing a convention, or learning a lesson that should persist across sessions. |
| user-invocable | true |
| argument-hint | [what to remember] |
| allowed-tools | Read, Write |
Save decisions, preferences, and lessons that persist across sessions.
Input: $ARGUMENTS
Detect type of memory:
const memoryFile = '.claude/session-memory.json';
let memory = {};
if (exists(memoryFile)) {
memory = JSON.parse(read(memoryFile));
} else {
memory = {
version: "1.0",
projectId: getProjectName(),
created: new Date().toISOString(),
decisions: [],
preferences: {},
context: {},
patterns: { avoided: [], preferred: [] },
lessons: []
};
}
{
"id": "d001",
"date": "2024-01-15",
"topic": "[extracted topic]",
"decision": "[what was decided]",
"reason": "[why]",
"agent": "[current agent or 'user']"
}
{
"preferences": {
"[category]": {
"[key]": "[value]"
}
}
}
{
"patterns": {
"avoided": ["[pattern]"],
"preferred": ["[pattern]"]
}
}
{
"lessons": [{
"date": "2024-01-15",
"issue": "[what happened]",
"solution": "[how to fix]",
"preventionRule": "[how to prevent]"
}]
}
memory.updated = new Date().toISOString();
write(memoryFile, JSON.stringify(memory, null, 2));
──── /remember ────
✓ Saved to session memory
Type: [Decision | Preference | Pattern | Lesson]
Topic: [topic]
Content: [what was saved]
This will be recalled in future sessions.
Memory file: .claude/session-memory.json
Total memories: [N] decisions, [N] preferences, [N] patterns, [N] lessons
/remember Use Zustand for state management because it's simpler than Redux
Output:
✓ Saved to session memory
Type: Decision
Topic: State Management
Content: Use Zustand instead of Redux
Reason: Simpler
This will be recalled in future sessions.
/remember Always use single quotes in this project
/remember Never use any types in TypeScript
/remember The API changed format and broke parsing. Solution: Always create adapters with versioned contracts.