memory-manage
Original:🇺🇸 English
Translated
Manages the ai-context/ memory layer: initialize from scratch, update with session work, or maintain/cleanup. Trigger: /memory-init, /memory-update, /memory-maintain, initialize memory, update memory, maintain memory.
5installs
Sourcefearovex/claude-config
Added on
NPX Install
npx skill4agent add fearovex/claude-config memory-manageTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →memory-manage
Unified management of the ai-context/ memory layer. Three modes: init, update, maintain.
Triggers: , , , initialize memory, update memory, maintain memory, memory housekeeping, clean ai-context
/memory-init/memory-update/memory-maintainMode Detection
Determine the mode from the invocation:
- or "initialize memory" or "generate ai-context" → init mode
/memory-init - or "update memory" or "sync memory" or "record session" → update mode
/memory-update - or "maintain memory" or "memory housekeeping" or "clean ai-context" → maintain mode
/memory-maintain
Mode: init
Creates the 5 core ai-context/ files from scratch by reading the project.
Use when: Project has no yet, or you want to regenerate from scratch.
ai-context/Process
- Project inventory: Read configuration files, folder structure, README, representative source files, tests, CI/CD configs.
- Generate files:
- — tech stack, versions, key tools
ai-context/stack.md - — architectural decisions and rationale
ai-context/architecture.md - — naming patterns, code conventions
ai-context/conventions.md - — known bugs, tech debt, gotchas
ai-context/known-issues.md - — empty, ready for session entries
ai-context/changelog-ai.md
- Feature stubs: Scan for bounded contexts (directories with domain logic). Create and stub files for discovered domains.
ai-context/features/_template.md - Report: List files created and coverage summary.
Mode: update
Incrementally updates ai-context/ with work done in the current session.
Use when: After completing significant work (SDD cycles, architecture changes, bug fixes).
Process
- Analyze session: Review what changed — files created/modified, decisions made, bugs fixed, conventions established.
- Update relevant files:
- — new dependencies, version changes
ai-context/stack.md - — new decisions, pattern changes
ai-context/architecture.md - — new naming patterns, style changes
ai-context/conventions.md - — new issues found, resolved issues marked
ai-context/known-issues.md - — append entry with date, summary, files affected
ai-context/changelog-ai.md - — update if relevant domain was touched
ai-context/features/<domain>.md
- Preserve: Never overwrite sections. Only update
[manual]markers.[auto-updated]
Mode: maintain
Periodic housekeeping: archive old entries, separate resolved issues, detect gaps.
Use when: changelog-ai.md is long (30+ entries), known-issues has resolved items, or at the start of a new project phase.
Process
- Changelog archival: If has more than 30 entries, move older entries to
changelog-ai.md.changelog-ai-archive.md - Known-issues cleanup: Move resolved items from to
known-issues.md.known-issues-archive.md - Index generation: Create/update listing all ai-context/ files with one-line descriptions.
ai-context/index.md - Gap detection: Check if CLAUDE.md references ai-context/ files that don't exist. Report gaps.
- Dry-run first: Present all proposed changes, require user confirmation before applying.
Rules
- Init mode MUST NOT run if ai-context/ already exists — warn and suggest update mode instead
- Update mode MUST NOT create new core files — only modify existing ones
- Maintain mode MUST present dry-run before any destructive action (archival, moves)
- All modes are read-heavy, write-light — the goal is accurate, concise documentation
- Never overwrite sections in any file
[manual] - Feature file updates follow the format defined in
skills/feature-domain-expert/SKILL.md