memory-management

GitHub

构建两级记忆系统,将内部简写解码为完整语义。CLAUDE.md作热缓存覆盖高频信息,memory/目录存储全量知识库,通过分层检索实现精准理解与协作。

productivity/skills/memory-management/SKILL.md anthropics/knowledge-work-plugins

Trigger Scenarios

需要理解内部术语或缩写 查询同事、项目背景信息 建立长期工作记忆偏好

Install

npx skills add anthropics/knowledge-work-plugins --skill memory-management -g -y
More Options

Non-standard path

npx skills add https://github.com/anthropics/knowledge-work-plugins/tree/main/productivity/skills/memory-management -g -y

Use without installing

npx skills use anthropics/knowledge-work-plugins@memory-management

指定 Agent (Claude Code)

npx skills add anthropics/knowledge-work-plugins --skill memory-management -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/knowledge-work-plugins --all -g -y

预览 repo 内 skill

npx skills add anthropics/knowledge-work-plugins --list

SKILL.md

Frontmatter
{
    "name": "memory-management",
    "description": "Two-tier memory system that makes Claude a true workplace collaborator. Decodes shorthand, acronyms, nicknames, and internal language so Claude understands requests like a colleague would. CLAUDE.md for working memory, memory\/ directory for the full knowledge base.",
    "user-invocable": false
}

Memory Management

Memory makes Claude your workplace collaborator - someone who speaks your internal language.

The Goal

Transform shorthand into understanding:

User: "ask todd to do the PSR for oracle"
              ↓ Claude decodes
"Ask Todd Martinez (Finance lead) to prepare the Pipeline Status Report
 for the Oracle Systems deal ($2.3M, closing Q2)"

Without memory, that request is meaningless. With memory, Claude knows:

  • todd → Todd Martinez, Finance lead, prefers Slack
  • PSR → Pipeline Status Report (weekly sales doc)
  • oracle → Oracle Systems deal, not the company

Architecture

CLAUDE.md          ← Hot cache (~30 people, common terms)
memory/
  glossary.md      ← Full decoder ring (everything)
  people/          ← Complete profiles
  projects/        ← Project details
  context/         ← Company, teams, tools

CLAUDE.md (Hot Cache):

  • Top ~30 people you interact with most
  • ~30 most common acronyms/terms
  • Active projects (5-15)
  • Your preferences
  • Goal: Cover 90% of daily decoding needs

memory/glossary.md (Full Glossary):

  • Complete decoder ring - everyone, every term
  • Searched when something isn't in CLAUDE.md
  • Can grow indefinitely

memory/people/, projects/, context/:

  • Rich detail when needed for execution
  • Full profiles, history, context

Lookup Flow

User: "ask todd about the PSR for phoenix"

1. Check CLAUDE.md (hot cache)
   → Todd? ✓ Todd Martinez, Finance
   → PSR? ✓ Pipeline Status Report
   → Phoenix? ✓ DB migration project

2. If not found → search memory/glossary.md
   → Full glossary has everyone/everything

3. If still not found → ask user
   → "What does X mean? I'll remember it."

This tiered approach keeps CLAUDE.md lean (~100 lines) while supporting unlimited scale in memory/.

File Locations

  • Working memory: CLAUDE.md in current working directory
  • Deep memory: memory/ subdirectory

Working Memory Format (CLAUDE.md)

Use tables for compactness. Target ~50-80 lines total.

# Memory

## Me
[Name], [Role] on [Team]. [One sentence about what I do.]

## People
| Who | Role |
|-----|------|
| **Todd** | Todd Martinez, Finance lead |
| **Sarah** | Sarah Chen, Engineering (Platform) |
| **Greg** | Greg Wilson, Sales |
→ Full list: memory/glossary.md, profiles: memory/people/

## Terms
| Term | Meaning |
|------|---------|
| PSR | Pipeline Status Report |
| P0 | Drop everything priority |
| standup | Daily 9am sync |
→ Full glossary: memory/glossary.md

## Projects
| Name | What |
|------|------|
| **Phoenix** | DB migration, Q2 launch |
| **Horizon** | Mobile app redesign |
→ Details: memory/projects/

## Preferences
- 25-min meetings with buffers
- Async-first, Slack over email
- No meetings Friday afternoons

Deep Memory Format (memory/)

memory/glossary.md - The decoder ring:

# Glossary

Workplace shorthand, acronyms, and internal language.

## Acronyms
| Term | Meaning | Context |
|------|---------|---------|
| PSR | Pipeline Status Report | Weekly sales doc |
| OKR | Objectives & Key Results | Quarterly planning |
| P0/P1/P2 | Priority levels | P0 = drop everything |

## Internal Terms
| Term | Meaning |
|------|---------|
| standup | Daily 9am sync in #engineering |
| the migration | Project Phoenix database work |
| ship it | Deploy to production |
| escalate | Loop in leadership |

## Nicknames → Full Names
| Nickname | Person |
|----------|--------|
| Todd | Todd Martinez (Finance) |
| T | Also Todd Martinez |

## Project Codenames
| Codename | Project |
|----------|---------|
| Phoenix | Database migration |
| Horizon | New mobile app |

memory/people/{name}.md:

# Todd Martinez

**Also known as:** Todd, T
**Role:** Finance Lead
**Team:** Finance
**Reports to:** CFO (Michael Chen)

## Communication
- Prefers Slack DM
- Quick responses, very direct
- Best time: mornings

## Context
- Handles all PSRs and financial reporting
- Key contact for deal approvals over $500k
- Works closely with Sales on forecasting

## Notes
- Cubs fan, likes talking baseball

memory/projects/{name}.md:

# Project Phoenix

**Codename:** Phoenix
**Also called:** "the migration"
**Status:** Active, launching Q2

## What It Is
Database migration from legacy Oracle to PostgreSQL.

## Key People
- Sarah - tech lead
- Todd - budget owner
- Greg - stakeholder (sales impact)

## Context
$1.2M budget, 6-month timeline. Critical path for Horizon project.

memory/context/company.md:

# Company Context

## Tools & Systems
| Tool | Used for | Internal name |
|------|----------|---------------|
| Slack | Communication | - |
| Asana | Engineering tasks | - |
| Salesforce | CRM | "SF" or "the CRM" |
| Notion | Docs/wiki | - |

## Teams
| Team | What they do | Key people |
|------|--------------|------------|
| Platform | Infrastructure | Sarah (lead) |
| Finance | Money stuff | Todd (lead) |
| Sales | Revenue | Greg |

## Processes
| Process | What it means |
|---------|---------------|
| Weekly sync | Monday 10am all-hands |
| Ship review | Thursday deploy approval |

How to Interact

Decoding User Input (Tiered Lookup)

Always decode shorthand before acting on requests:

1. CLAUDE.md (hot cache)     → Check first, covers 90% of cases
2. memory/glossary.md        → Full glossary if not in hot cache
3. memory/people/, projects/ → Rich detail when needed
4. Ask user                  → Unknown term? Learn it.

Example:

User: "ask todd to do the PSR for oracle"

CLAUDE.md lookup:
  "todd" → Todd Martinez, Finance ✓
  "PSR" → Pipeline Status Report ✓
  "oracle" → (not in hot cache)

memory/glossary.md lookup:
  "oracle" → Oracle Systems deal ($2.3M) ✓

Now Claude can act with full context.

Adding Memory

When user says "remember this" or "X means Y":

  1. Glossary items (acronyms, terms, shorthand):

    • Add to memory/glossary.md
    • If frequently used, add to CLAUDE.md Quick Glossary
  2. People:

    • Create/update memory/people/{name}.md
    • Add to CLAUDE.md Key People if important
    • Capture nicknames - critical for decoding
  3. Projects:

    • Create/update memory/projects/{name}.md
    • Add to CLAUDE.md Active Projects if current
    • Capture codenames - "Phoenix", "the migration", etc.
  4. Preferences: Add to CLAUDE.md Preferences section

Recalling Memory

When user asks "who is X" or "what does X mean":

  1. Check CLAUDE.md first
  2. Check memory/ for full detail
  3. If not found: "I don't know what X means yet. Can you tell me?"

Progressive Disclosure

  1. Load CLAUDE.md for quick parsing of any request
  2. Dive into memory/ when you need full context for execution
  3. Example: drafting an email to todd about the PSR
    • CLAUDE.md tells you Todd = Todd Martinez, PSR = Pipeline Status Report
    • memory/people/todd-martinez.md tells you he prefers Slack, is direct

Bootstrapping

Use /productivity:start to initialize by scanning your chat, calendar, email, and documents. Extracts people, projects, and starts building the glossary.

Conventions

  • Bold terms in CLAUDE.md for scannability
  • Keep CLAUDE.md under ~100 lines (the "hot 30" rule)
  • Filenames: lowercase, hyphens (todd-martinez.md, project-phoenix.md)
  • Always capture nicknames and alternate names
  • Glossary tables for easy lookup
  • When something's used frequently, promote it to CLAUDE.md
  • When something goes stale, demote it to memory/ only

What Goes Where

Type CLAUDE.md (Hot Cache) memory/ (Full Storage)
Person Top ~30 frequent contacts glossary.md + people/{name}.md
Acronym/term ~30 most common glossary.md (complete list)
Project Active projects only glossary.md + projects/{name}.md
Nickname In Key People if top 30 glossary.md (all nicknames)
Company context Quick reference only context/company.md
Preferences All preferences -
Historical/stale ✗ Remove ✓ Keep in memory/

Promotion / Demotion

Promote to CLAUDE.md when:

  • You use a term/person frequently
  • It's part of active work

Demote to memory/ only when:

  • Project completed
  • Person no longer frequent contact
  • Term rarely used

This keeps CLAUDE.md fresh and relevant.

Version History

  • 6f13415 Current 2026-07-05 18:34

Same Skill Collection

bio-research/skills/nextflow-development/SKILL.md
bio-research/skills/single-cell-rna-qc/SKILL.md
bio-research/skills/start/SKILL.md
cowork-plugin-management/skills/cowork-plugin-customizer/SKILL.md
cowork-plugin-management/skills/create-cowork-plugin/SKILL.md
customer-support/skills/customer-escalation/SKILL.md
customer-support/skills/customer-research/SKILL.md
customer-support/skills/draft-response/SKILL.md
customer-support/skills/kb-article/SKILL.md
customer-support/skills/ticket-triage/SKILL.md
data/skills/analyze/SKILL.md
data/skills/build-dashboard/SKILL.md
data/skills/create-viz/SKILL.md
data/skills/data-visualization/SKILL.md
data/skills/explore-data/SKILL.md
data/skills/sql-queries/SKILL.md
data/skills/statistical-analysis/SKILL.md
data/skills/validate-data/SKILL.md
data/skills/write-query/SKILL.md
design/skills/accessibility-review/SKILL.md
design/skills/design-critique/SKILL.md
design/skills/design-handoff/SKILL.md
design/skills/design-system/SKILL.md
design/skills/research-synthesis/SKILL.md
design/skills/user-research/SKILL.md
design/skills/ux-copy/SKILL.md
engineering/skills/architecture/SKILL.md
engineering/skills/code-review/SKILL.md
engineering/skills/debug/SKILL.md
engineering/skills/deploy-checklist/SKILL.md
engineering/skills/documentation/SKILL.md
engineering/skills/incident-response/SKILL.md
engineering/skills/standup/SKILL.md
engineering/skills/system-design/SKILL.md
engineering/skills/tech-debt/SKILL.md
engineering/skills/testing-strategy/SKILL.md
enterprise-search/skills/digest/SKILL.md
enterprise-search/skills/knowledge-synthesis/SKILL.md
enterprise-search/skills/search-strategy/SKILL.md
enterprise-search/skills/search/SKILL.md
enterprise-search/skills/source-management/SKILL.md
finance/skills/audit-support/SKILL.md
finance/skills/close-management/SKILL.md
finance/skills/financial-statements/SKILL.md
finance/skills/journal-entry-prep/SKILL.md
finance/skills/journal-entry/SKILL.md
finance/skills/reconciliation/SKILL.md
finance/skills/sox-testing/SKILL.md
finance/skills/variance-analysis/SKILL.md
human-resources/skills/comp-analysis/SKILL.md
human-resources/skills/draft-offer/SKILL.md
human-resources/skills/interview-prep/SKILL.md
human-resources/skills/onboarding/SKILL.md
human-resources/skills/org-planning/SKILL.md
human-resources/skills/people-report/SKILL.md
human-resources/skills/performance-review/SKILL.md
human-resources/skills/policy-lookup/SKILL.md
human-resources/skills/recruiting-pipeline/SKILL.md
legal/skills/brief/SKILL.md
legal/skills/compliance-check/SKILL.md
legal/skills/legal-response/SKILL.md
legal/skills/legal-risk-assessment/SKILL.md
legal/skills/meeting-briefing/SKILL.md
legal/skills/review-contract/SKILL.md
legal/skills/signature-request/SKILL.md
legal/skills/triage-nda/SKILL.md
legal/skills/vendor-check/SKILL.md
marketing/skills/brand-review/SKILL.md
marketing/skills/campaign-plan/SKILL.md
marketing/skills/competitive-brief/SKILL.md
marketing/skills/content-creation/SKILL.md
marketing/skills/draft-content/SKILL.md
marketing/skills/email-sequence/SKILL.md
marketing/skills/performance-report/SKILL.md
marketing/skills/seo-audit/SKILL.md
operations/skills/capacity-plan/SKILL.md
operations/skills/change-request/SKILL.md
operations/skills/compliance-tracking/SKILL.md
operations/skills/process-doc/SKILL.md
operations/skills/process-optimization/SKILL.md
operations/skills/risk-assessment/SKILL.md
operations/skills/runbook/SKILL.md
operations/skills/status-report/SKILL.md
operations/skills/vendor-review/SKILL.md
partner-built/apollo/skills/enrich-lead/SKILL.md
partner-built/apollo/skills/prospect/SKILL.md
partner-built/apollo/skills/sequence-load/SKILL.md
partner-built/common-room/skills/account-research/SKILL.md
partner-built/common-room/skills/call-prep/SKILL.md
partner-built/common-room/skills/compose-outreach/SKILL.md
partner-built/common-room/skills/contact-research/SKILL.md
partner-built/common-room/skills/prospect/SKILL.md
partner-built/common-room/skills/weekly-prep-brief/SKILL.md
partner-built/slack/skills/slack-messaging/SKILL.md
partner-built/slack/skills/slack-search/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-bot/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-meeting-app/SKILL.md
partner-built/zoom-plugin/skills/choose-zoom-approach/SKILL.md
partner-built/zoom-plugin/skills/cobrowse-sdk/SKILL.md
partner-built/zoom-plugin/skills/contact-center/android/SKILL.md
partner-built/zoom-plugin/skills/contact-center/ios/SKILL.md
partner-built/zoom-plugin/skills/contact-center/SKILL.md
partner-built/zoom-plugin/skills/contact-center/web/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom/SKILL.md
partner-built/zoom-plugin/skills/design-mcp-workflow/SKILL.md
partner-built/zoom-plugin/skills/general/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/electron/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/unreal/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/oauth/SKILL.md
partner-built/zoom-plugin/skills/phone/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-product/SKILL.md
partner-built/zoom-plugin/skills/probe-sdk/SKILL.md
partner-built/zoom-plugin/skills/rest-api/SKILL.md
partner-built/zoom-plugin/skills/rivet-sdk/SKILL.md
partner-built/zoom-plugin/skills/rtms/SKILL.md
partner-built/zoom-plugin/skills/scribe/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-mcp/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-oauth/SKILL.md
partner-built/zoom-plugin/skills/start/SKILL.md
partner-built/zoom-plugin/skills/team-chat/SKILL.md
partner-built/zoom-plugin/skills/ui-toolkit/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/flutter/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/unity/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/android/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/ios/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/web/SKILL.md
partner-built/zoom-plugin/skills/webhooks/SKILL.md
partner-built/zoom-plugin/skills/websockets/SKILL.md
partner-built/zoom-plugin/skills/zoom-apps-sdk/SKILL.md
partner-built/zoom-plugin/skills/zoom-mcp/whiteboard/SKILL.md
pdf-viewer/skills/view-pdf/SKILL.md
product-management/skills/competitive-brief/SKILL.md
product-management/skills/metrics-review/SKILL.md
product-management/skills/product-brainstorming/SKILL.md
product-management/skills/roadmap-update/SKILL.md
product-management/skills/sprint-planning/SKILL.md
product-management/skills/stakeholder-update/SKILL.md
product-management/skills/synthesize-research/SKILL.md
product-management/skills/write-spec/SKILL.md
productivity/skills/start/SKILL.md
productivity/skills/task-management/SKILL.md
productivity/skills/update/SKILL.md
sales/skills/account-research/SKILL.md
sales/skills/call-prep/SKILL.md
sales/skills/call-summary/SKILL.md
sales/skills/competitive-intelligence/SKILL.md
sales/skills/create-an-asset/SKILL.md
sales/skills/daily-briefing/SKILL.md
sales/skills/draft-outreach/SKILL.md
sales/skills/forecast/SKILL.md
sales/skills/pipeline-review/SKILL.md
small-business/skills/call-list/SKILL.md
small-business/skills/cash-flow-snapshot/SKILL.md
small-business/skills/close-month/SKILL.md
small-business/skills/content-strategy/SKILL.md
small-business/skills/contract-review/SKILL.md
small-business/skills/crm-cleanup/SKILL.md
small-business/skills/crm-maintenance/SKILL.md
small-business/skills/customer-pulse-check/SKILL.md
small-business/skills/customer-pulse/SKILL.md
small-business/skills/friday-brief/SKILL.md
small-business/skills/handle-complaint/SKILL.md
small-business/skills/invoice-chase/SKILL.md
small-business/skills/lead-triage/SKILL.md
small-business/skills/monday-brief/SKILL.md
small-business/skills/month-end-prep/SKILL.md
small-business/skills/month-heads-up/SKILL.md
small-business/skills/plan-payroll/SKILL.md
small-business/skills/price-check/SKILL.md
small-business/skills/quarterly-review/SKILL.md
small-business/skills/review-contract/SKILL.md
small-business/skills/run-campaign/SKILL.md
small-business/skills/sales-brief/SKILL.md
small-business/skills/tax-prep/SKILL.md
small-business/skills/ticket-deflector/SKILL.md
bio-research/skills/instrument-data-to-allotrope/SKILL.md
bio-research/skills/scientific-problem-selection/SKILL.md
bio-research/skills/scvi-tools/SKILL.md
data/skills/data-context-extractor/SKILL.md
partner-built/brand-voice/skills/brand-voice-enforcement/SKILL.md
partner-built/brand-voice/skills/discover-brand/SKILL.md
partner-built/brand-voice/skills/guideline-generation/SKILL.md
small-business/skills/business-pulse/SKILL.md
small-business/skills/canva-creator/SKILL.md
small-business/skills/job-post-builder/SKILL.md
small-business/skills/margin-analyzer/SKILL.md
small-business/skills/smb-onboard/SKILL.md
small-business/skills/smb-router/SKILL.md
small-business/skills/tax-season-organizer/SKILL.md

Metadata

Files
0
Version
6f13415
Hash
ad42fd09
Indexed
2026-07-05 18:34

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 22:37
浙ICP备14020137号-1 $bản đồ khách truy cập$