claude-mem-coded-assistant
БесплатноБез исполняемых скриптовНе проверенEntry-point skill for using claude-mem to keep CLAUDE.md and MEMORY.md in sync so Claude learns from past work and avoids repeating mistakes.
от enuno★ 17 звёзд на GitHubОб этом скилле
Claude‑Mem Coding Skill
What This Skill Does
This skill teaches Claude how to:
- Mine claude-mem (via MCP) for high‑signal past work.
- Maintain a concise, high‑impact CLAUDE.md (~1,500 tokens).
- Maintain a curated MEMORY.md of lessons learned and directions, so future work is faster and less error‑prone.
It is an entry point, not a full manual. Detailed workflows and examples live in separate reference files that Claude can open on demand.
When to Use This Skill
Claude should activate this skill when:
- A feature, refactor, or significant bugfix is completed.
- An infra/deployment change introduces new operational lessons.
- Starting work on an area with substantial history in claude-mem.
- Performing a daily “memory maintenance” pass on an active repo.
Inputs and Outputs
Inputs
Claude relies on:
- Files (in repo root):
CLAUDE.md– main project instructions.MEMORY.md– curated lessons and directions.
- claude-mem MCP tools (already installed & connected):
search– index‑level observation search.timeline– temporal context around observations.get_observations– full structured details.
Outputs
This skill produces:
- Patch‑style edits to:
MEMORY.md– new or updated lessons, patterns, and playbooks.CLAUDE.md– refreshed rules while staying under ~1,500 tokens.
- No raw claude-mem transcripts are copied; only compressed, actionable guidance.
How Claude Should Behave
1. Mine claude-mem → Update MEMORY.md
High‑level behavior (details in claude-mem-usage.md):
- Use progressive disclosure against claude-mem:
searchfor recentdecision,bugfix,refactor,discovery,changeobservations.timelinearound promising IDs to see context.get_observationsfor a small set of high‑value IDs.
- From those, update
MEMORY.mdwith:- Architectural decisions and their impact.
- Implementation patterns and anti‑patterns.
- Debugging playbooks and DevOps lessons.
Constraints
- Prefer short bullets over long prose.
- Record why decisions were made and how to act next time.
- Never store secrets or credentials in
MEMORY.md.
For a full template and examples, Claude should open:
memory-structure-reference.mdclaude-mem-usage.md
2. Distill MEMORY.md → Refresh CLAUDE.md (≈1,500 tokens)
High‑level behavior:
Read the existing
CLAUDE.mdand approximate its size; keep the body around 1–1.5k tokens for optimal behavior.Pull only current, high‑impact content from
MEMORY.md:- Still‑valid architectural directions.
- Frequently reused patterns and gotchas.
- Operational guardrails that materially affect daily work.
Rewrite historical notes as timeless rules, e.g.:
- “When adding retries to DB writes, always use the shared retry helper instead of manual loops.”
Use links instead of inlining:
.clauderules/code-style.mdfor style..clauderules/testing.mdfor testing.MEMORY.mdsections for deeper background.
Token Discipline
- If CLAUDE.md is too long:
- Merge overlapping bullets.
- Drop generic advice that doesn’t change behavior.
- Replace detailed explanations with references to supporting docs.
Diff‑First
- Propose minimal patches, not full rewrites:
- Update only sections that need change (e.g., “Architectural Directions”, “Patterns & Gotchas”).
- Preserve stable layout and headings.
- Always leave final acceptance to human review in Git/CI.
For concrete layouts and example diffs, Claude should open:
claude-md-layout-reference.mdexample-diffs.md
Safety and Priority Rules
Claude must:
Always:
- Query claude-mem before re‑solving problems already encountered in this project.
- Update
MEMORY.mdafter meaningful work with concise, actionable lessons. - Keep
CLAUDE.mdfocused on rules that change how work is done, not on general LLM tips.
Never:
- Overwrite
CLAUDE.mdorMEMORY.mdentirely; always propose small diffs. - Paste raw claude-mem observations verbatim into either file.
- Store secrets, API keys, or sensitive infra details in these files.
- Overwrite
Conflict resolution priority:
- Explicit instructions in
CLAUDE.md. - Latest curated guidance in
MEMORY.md. - Raw claude-mem observations and session summaries.
- Ad‑hoc reasoning in the current session.
- Explicit instructions in
Quick “How to Call Me”
Users can invoke this skill with prompts like:
“Use the claude-mem coding skill to:
- mine claude-mem for recent work,
- update MEMORY.md with lessons, and
- refresh CLAUDE.md under the ~1,500‑token budget.”
Claude should then:
- Run the claude-mem
search → timeline → get_observationsflow. - Draft a patch for
MEMORY.mdwith new lessons. - Draft a patch for
CLAUDE.mdderived fromMEMORY.md. - Present both patches clearly for human review and commit.
External References
To ke
Установить claude-mem-coded-assistant в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claude-mem-coded-assistant?
Entry-point skill for using claude-mem to keep CLAUDE.md and MEMORY.md in sync so Claude learns from past work and avoids repeating mistakes.
Как установить скилл claude-mem-coded-assistant?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-mem-coded-assistant запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic