跳到正文
cccskills
免费在 GitHub 公开

memory-promote

Audit this repo's auto-memory files and suggest promoting each one to a more persistent layer — user or repo CLAUDE.md, an existing or new skill, a settings.json hook, or a checked-in reference doc. Use when the user says "audit memory", "promote memory", "clean up memories", "memory-promote", or wants to move ephemeral memory into durable config.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Memory Promote

Auto-memory under <config-dir>/projects/<encoded-cwd>/memory/ is per-conversation context, not durable config. Many memories belong in a more persistent layer where they apply consistently and survive memory pruning. This skill scans memories and proposes a target layer for each.

<config-dir> is $CLAUDE_CONFIG_DIR when set, otherwise ~/.claude. Resolve it once at the start and use it everywhere below.

Scope

The current repo. Memory dirs encode the absolute cwd with / replaced by -:

  • /home/alex/work/api → <config-dir>/projects/-home-alex-work-api/memory/

Compute MEM_DIR="$CONFIG_DIR/projects/$(pwd | tr / -)/memory". If it doesn't exist, report "no memories for this repo" and stop.

If the user asks for something wider or narrower in their own words — another repo, every project, only the cross-cutting ones, just list them without suggestions — honor it using the same encoding. Don't invent flags for it; the report-then-confirm loop below already gives them control.

Steps

  1. List memories. find "$MEM_DIR" -type f -name '*.md' ! -name 'MEMORY.md'. For each file, read the frontmatter and body. Memory frontmatter looks like:

    ---
    name: coolify-deploy
    description: Deployment coordinates for the app
    metadata:
      node_type: memory
      type: project
      originSessionId: <uuid>
    ---
    

    The classification key is metadata.type (commonly user, project, feedback, reference). If it is absent, infer the type from the body.

  2. Classify each memory using the table below.

  3. Render report — one row per memory: file, type, current content (1-line summary), → suggested target, rationale, concrete action.

  4. Wait for user confirmation before changing anything — promotion is a judgment call, so confirm per-item even when the user asked to just apply everything.

  5. On confirm: perform the action (edit CLAUDE.md, invoke /cc:skill-creator, add the hook to settings.json, write a reference doc), then delete the memory file and its line in MEMORY.md.

Promotion targets

Memory patternPromote toWhy
type: user (role, stack, voice, naming)user-level CLAUDE.mdApplies across all projects, not just one
type: feedback — stable preference, repo-specificrepo CLAUDE.mdSurvives memory pruning, visible to teammates
type: feedback — "never run X" / "X is human-only"settings.json PreToolUse deny hookHarness enforces; can't be forgotten
type: feedback — repeatable workflow ("always do X before Y")new skill (via /cc:skill-creator) or hookSkill makes it discoverable; hook makes it automatic
type: project — durable fact (versioning scheme, release flow)repo CLAUDE.mdOnboarding context, not session state
type: project — current sprint/incident/deadlinekeep in memoryGenuinely ephemeral — memory is the right layer
type: reference — internal URL, dashboard, doc pagerepo CLAUDE.md "References" sectionChecked in, shared with team
Pattern already covered by an installed skillpoint to that skill, delete memoryThe skill already encodes it
Build/test command quirksrepo CLAUDE.md "Development Workflow"Lives next to the code that needs it

Heuristics

  • Cross-repo applicability test: would this memory be useful in any other repo? → user-level CLAUDE.md. Only this one? → repo CLAUDE.md.
  • Enforcement test: is the memory a prohibition ("never run X")? → hook beats prose. Memory/CLAUDE.md is a request; a hook is a guarantee.
  • Existing-skill test: before suggesting a new skill, look for overlap in <config-dir>/skills/, the repo's .claude/skills/, and installed plugin skills. Prefer pointing at an existing skill over creating another one.
  • Ephemeral test: does it name a person, sprint, date, or in-flight ticket? → leave it in memory.

Output format

Print a numbered list. Per item:

[N] <memory-file> (type: <type>)
    Current: "<one-line summary of body>"
    → Promote to: <target>
    Why: <one sentence>
    Action: <exact edit / command to run>

After the list, ask "Which to promote? (numbers, all, or none)". Then act on the selected items one at a time.

Notes

  • Don't auto-delete a memory unless its content is fully captured at the new location.
  • When editing a CLAUDE.md, append under an existing relevant section if one exists; only create new sections when needed.
  • For hook proposals, defer to the built-in /update-config skill when it is available — it knows the settings schema. Otherwise edit settings.json directly and show the diff before writing.
  • For skill proposals, defer to /cc:skill-creator — it knows the SKILL.md format.
  • After promotion, also remove the entry from the MEMORY.md index in the same memory dir.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Structure AI work artifacts under .aiwork/{YYYY-MM-DD}_{slug}/ folders using the project's protocol (intent, triage, research, spec, prd, areas, plan, review, notes, docs/). Use when the user asks to plan, capture an intent, make a spec, triage, research a task, write a report, code review, summarize findings, save the work, document decisions, record this, write that down, persist findings, or references any path under .aiwork/. Also use when starting a non-trivial task that needs a plan or spec before implementation, or when finishing one and capturing notes.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

Use this skill when the user asks to test, verify, interact with, or automate web pages and browsers. Trigger for requests involving Chrome automation, browser testing, web scraping, screenshot capture, element selection, or checking web applications. Also trigger when user mentions "browser tools" explicitly.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

changelog

免费

Show recent Claude Code changes personalized to user's setup. Trigger when user asks about changelog, "what's new", "cc changelog", "claude code updates", "recent changes", or wants to know what changed in Claude Code.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

Review code changes from current branch, an Azure DevOps PR, a git ref, or a diff/patch file. Trigger when user says "review this", "code review", "/df:code-review", or provides a PR id/URL, ticket URL, git ref, or diff path. Read-only — never posts comments.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

Review code changes from the current branch, staged changes, a git ref, or a diff/patch file. Pure git-native — no platform/PR awareness. Trigger when user says "review this", "review diff", "/aiwork:code-review-diff", or provides a git ref or diff path. Read-only — never posts comments.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

Czech typography rules for web development. Use when building web pages in Czech language, writing Czech content, or fixing typography issues in Czech text. Covers punctuation, dashes, quotes, numbers, units, non-breaking spaces, and HTML entities.

中文简介正在准备中。当前显示原文说明。

lttr/claude-marketplace22026年10月22日 更新

查看 lttr 的全部技能

报告此技能的问题