用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/BEKO2210/Firstbrain --skill memory命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | memory |
| trigger | /memory |
| description | View and manage Claude's memory -- insights, project context, and embedding status |
| version | 3.0.0 |
| type | skill |
| tags | ["skill","agent","intelligence","memory","insights"] |
A single entry point to understand what Claude knows -- "a dashboard for your AI's brain." Shows working memory summary, long-term insights, active project memories, and embedding index status.
/memory -- Show full memory dashboard (default overview)/memory insights -- Show only long-term insights with details/memory projects -- Show only project memories/memory distill -- Manually trigger insight distillation (normally happens automatically during significant vault activity)Claude operates with a four-layer memory model:
| Layer | Name | Storage | Persistence |
|---|---|---|---|
| 1 | Session Memory | In-context | Single conversation |
| 2 | Working Memory | MEMORY.md + .claude/memory/ topic files | Cross-session |
| 3 | Long-term Summary Memory | .claude/memory/insights.md | Weeks/months |
| 4 | Project-specific Memory | .claude/memory/project-{name}.md files | Project lifetime |
/memory (overview)memory-utils.cjs:
const { generateMemoryOverview } = require('./.agents/skills/memory/memory-utils.cjs');
generateMemoryOverview('.').Output includes: working memory summary, insight count + categories + top entries, active project memories with status, embedding index status.
/memory insightsconst { parseInsights } = require('./.agents/skills/memory/memory-utils.cjs');
const data = parseInsights('.');
/memory projects.claude/memory/project-*.md files./memory distill/scan if indexes are stale.const { loadJson } = require('./.agents/skills/scan/utils.cjs');
const vaultIndex = loadJson('.claude/indexes/vault-index.json');
const tagIndex = loadJson('.claude/indexes/tag-index.json');
const { distillInsights } = require('./.agents/skills/memory/memory-utils.cjs');
const result = distillInsights('.', vaultIndex, tagIndex, { activityLog });
Claude should distill without being asked when either threshold is met:
Either signal meeting threshold triggers distillation. These are guidelines -- Claude uses judgment on when to run distillation and when to stay silent.
Notification policy: Notify for significant updates (new patterns, high-confidence reinforcements). Stay silent for minor ones (small confidence adjustments, no new insights). This is at Claude's discretion.
When proactively surfacing insights during conversation, use a distinct visual callout block:
Pattern noticed: You frequently tag tool notes with both the tool name and #productivity. Want me to apply this pattern to your new Docker note?
Rules for surfacing:
01 - Projects/ with type: project frontmatter..claude/memory/project-{slug}.md with: status, key decisions, blockers, next actions, source link.updated field tracks last modification date..claude/memory/archive/project-{slug}.md (never deleted -- governance)const { archiveProjectMemory } = require('./.agents/skills/memory/memory-utils.cjs');
const result = archiveProjectMemory('.', 'website-relaunch');
// { archived: true, path: '...', lessonsDistilled: 3 }
Individual files per project. Each tracks:
insights.md is plain markdown -- the user can edit, correct, or delete entries directly. Claude respects all user modifications on next read. No special format required beyond the H2/H3 heading structure.
If the user corrects an insight's observation text or confidence, Claude uses the updated values going forward. If the user deletes an insight, Claude does not recreate it unless the pattern re-emerges strongly.
const {
generateMemoryOverview,
distillInsights,
parseInsights,
createProjectMemory,
archiveProjectMemory,
getActiveProjects,
} = require('./.agents/skills/memory/memory-utils.cjs');
const { loadJson } = require('./.agents/skills/scan/utils.cjs');
// Show dashboard
const dashboard = generateMemoryOverview('.');
console.log(dashboard);
// Manually distill
const vaultIndex = loadJson('.claude/indexes/vault-index.json');
const tagIndex = loadJson('.claude/indexes/tag-index.json');
const result = distillInsights('.', vaultIndex, tagIndex, { activityLog: [] });
// Create project memory
const projects = getActiveProjects('.');
for (const project of projects) {
createProjectMemory('.', project);
}