Loading...
Loading...
Trigger Scenarios: (1) Explicit memory requests – remember, record, don't forget, pay attention next time, form rules, generate summaries/record documents; (2) Correction and modification – note, incorrect, wrong, it should be, change to, replace with, don't, also need, missing; (3) Preference expression – I prefer, in the future, it's better, suggest, my habit, I usually; (4) Global specifications – unified, all, every, any, each, every time, all, uniformly; (5) Conversation end settlement – when the conversation ends naturally or the topic switches. Convert users' corrections, preferences and rules into structured memory files to improve the output quality of subsequent conversations.
npx skill4agent add hestonhsl/auto-memory-rules auto-memory-rules| Intent Type | Trigger Signals | Priority | Handling Strategy |
|---|---|---|---|
| Explicit Correction | "incorrect", "wrong", "it should be..." | 🔴 High | Immediate reflection + Record |
| Modification Request | "change to...", "replace with...", "don't..." | 🔴 High | Immediate reflection + Record |
| Preference Expression | "I prefer...", "it's better...", "suggest..." | 🟡 Medium | Record after reflection |
| Method Guidance | "use...command", "go to...query" | 🟡 Medium | Record after reflection |
| Interaction Optimization | Adjustments to answer methods, formats, styles | 🟡 Medium | Record after reflection |
| Global Specification | unified, all, all of, all + verb, any, each, every time, all, uniformly | 🟡 Medium | Record after reflection |
| One-time Modification | "handle specially here", "temporarily..." | ⚪ Low | Do not record |
💡 Detected recordable memory: [Brief description]
Do you want to record it to the memory system? I will automatically apply it next time. [Y/n]memory/.agents/skills/auto-memory-rules/memory/memory/# Step 1: Update index and checklist
# If hooks are installed (see installation instructions below), it will be triggered automatically when writing memory files, no manual execution needed
# Run manually if hooks are not installed:
bash scripts/generate-memory-artifacts.sh
# Step 2: Update platform rules (automatically detect and update all platforms in the current project)
bash scripts/generate-rules.sh✅ Memory system settlement completed
- New memories added: N
- Updated index: memory/index.md
- Updated checklist: memory/CHECKLIST.md
- Updated platform rules: <Automatically detected platforms>.kiro/skills/auto-memory-rules/generate-integration-rules.shgenerate-rules.sh.agents/skills/auto-memory-rules/generate-integration-rules.shgenerate-rules.sh.cursor/skills/auto-memory-rules/.agents/skills/.cursor/rules/.windsurf/skills/auto-memory-rules/generate-rules.sh windsurf.claude/skills/auto-memory-rules/.claude/rules/bash <path-to-skill>/auto-memory-rules/scripts/setup-hooks.sh.mdmemory/generate-memory-artifacts.sh| Category | Applicable Scenarios |
|---|---|
| API calls, interface definitions, HTTP requests, URL specifications |
| TypeScript types, interfaces, generics |
| React components, JSX, Props design |
| Custom Hooks, useXxx encapsulation |
| State design, data flow, state recovery |
| Backend services, business layering, controller/service/repository design |
| Database modeling, SQL, indexes, transactions, migrations |
| Deployment, CI/CD, containers, environment variables, monitoring and alerts |
| Unit testing, integration testing, E2E, testing strategies |
| Authentication and authorization, permission models, input validation, security baselines |
| Design patterns, architecture patterns, code organization |
| Naming, formatting, code style, comments |
| Maintainability, performance optimization, best practices |
| Development processes, debugging methods, troubleshooting |
| Cross-domain general rules, preferences not suitable for the above categories |
YYYY-MM-DD-{category}-{brief-description}.md---
category: [Select only one from the standard list]
priority: [high|medium|low]
tags: [keyword1, keyword2]
description: [One-sentence description]
---
# [Memory Topic]
## Reflection Record
**What the user said**: [Original expression]
**Why they said it**: [Analysis]
**Extracted principle**: [General principle]
## Core Principle
[One-sentence summary]
## Specific Requirements
- [Executable instructions]
## Checkpoints
- [ ] [Statement: Describe what should be done]
Note: Use declarative sentences for checkpoints, not questions or error descriptions
✅ Good: Hooks are not allowed to expose internal setters
❌ Bad: Does the hook expose the setter?
❌ Bad: The hook exposes the setter
## Examples
✅ [Good example]
❌ [Example to avoid]
## Related Memories
- [Related memory file name](related-memory-file-name.md)