mnemonics

GitHub

通过调用@historian子代理实现跨会话的持久化记忆管理,支持决策、偏好及上下文的存储、检索与清理,确保项目知识连续性。

data/skills-md/5kahoisaac/opencode-historian/mnemonics/SKILL.md NeverSight/learn-skills.dev

Trigger Scenarios

需要记住重要决策或用户偏好 跨会话检索历史上下文 清理过时记忆

Install

npx skills add NeverSight/learn-skills.dev --skill mnemonics -g -y
More Options

Non-standard path

npx skills add https://github.com/NeverSight/learn-skills.dev/tree/main/data/skills-md/5kahoisaac/opencode-historian/mnemonics -g -y

Use without installing

npx skills use NeverSight/learn-skills.dev@mnemonics

指定 Agent (Claude Code)

npx skills add NeverSight/learn-skills.dev --skill mnemonics -a claude-code -g -y

安装 repo 全部 skill

npx skills add NeverSight/learn-skills.dev --all -g -y

预览 repo 内 skill

npx skills add NeverSight/learn-skills.dev --list

SKILL.md

Frontmatter
{
    "name": "mnemonics",
    "license": "MIT",
    "metadata": {
        "author": "Isaac Ng, Ka Ho",
        "version": "1.0.0"
    },
    "description": "Memory management by using the historian subagent to store, recall, and manage persistent memories across conversations. Use when you need to remember decisions, preferences, learnings, or retrieve stored context.",
    "compatibility": "opencode, opencode-historian plugin and qmd CLI."
}

Mnemonics: Memory Management via Historian

CRITICAL: You Must Use @historian

Memory tools are ONLY available via the @historian subagent. You CANNOT call these tools directly:

  • memory_remember - Create or update memories
  • memory_recall - Search and retrieve memories
  • memory_forget - Delete memories
  • memory_list_types - List available memory types
  • memory_sync - Rebuild the search index

Always delegate to historian:

@historian remember that we decided on PostgreSQL for the database
@historian what did we decide about authentication?

Memory Types

Type Use For Example
architectural-decision System architecture choices "Using PostgreSQL with read replicas for scaling"
design-decision UI/UX decisions "Card layout for dashboard, 3 columns on desktop"
learning Lessons and discoveries "Bun's native TS support removes build step need"
user-preference User preferences "User prefers dark mode, tabs not spaces"
project-preference Team conventions "We use conventional commits, PR reviews required"
issue Known problems "Rate limiting not implemented yet, tracking in #42"
context General context (default) "Project started Feb 2026, MVP target Q2"
recurring-pattern Reusable patterns "Error handling: wrap in try/catch, return {error}"
conventions-pattern Coding standards "Use named exports, avoid default exports"

Note: Projects may define custom memory types via configuration. Always use @historian list all memory types available to see the complete list for the current project.

When to Delegate to Historian

Remember (create/update):

  • After making a significant architectural or design decision
  • User states a preference about how they work
  • Discovering something important about the codebase or tools
  • Learning a lesson that should persist across sessions

Recall (search/retrieve):

  • Starting a new session → recall relevant context
  • User asks "what did we decide about X?"
  • Need to check if a decision was already made
  • Looking for known issues or patterns

Forget (delete):

  • User wants to remove outdated or incorrect memories
  • Cleaning up duplicated or irrelevant entries

Sync (reindex):

  • After manually editing memory files in .mnemonics/
  • When search results seem outdated

Example Prompts

Remembering

@historian remember that we decided on JWT auth with 15-min expiry
@historian save this learning: Bun handles TypeScript natively without compilation
@historian note that the user prefers minimal UI animations
@historian store this as an architectural-decision: we're using event sourcing for the audit log

Recalling

@historian what did we decide about authentication?
@historian recall any known issues with the API
@historian what are my preferences for this project?
@historian show all architectural decisions
@historian find memories about database choices

Managing

@historian list all memory types available
@historian forget the memory about the old API design
@historian sync the index to include recent memory files

How It Works

  1. Memories are stored in .mnemonics/{type}/{title}.md as markdown files with YAML frontmatter
  2. Indexing is automatic via qmd (hybrid BM25 + vector search)
  3. Historian handles classification, deduplication, and semantic search
  4. Files are git-friendly - commit them to share across team

Best Practices

  1. Be specific in titles - "qmd-cli-for-writes" not "important decision"
  2. Let historian classify - it will search first to avoid duplicates
  3. Recall before deciding - check if a decision already exists
  4. Commit memory files - they're part of project knowledge

Version History

  • e0220ca Current 2026-07-05 21:23

Same Skill Collection

data/skills-md/00prabalk00/claude-skills/knowledge-base-gap-finder/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-agile/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-auth/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-issues/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-project-management/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-projects/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-safe/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-search/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-spaces/SKILL.md
data/skills-md/01000001-01001110/agent-jira-skills/jira-transitions/SKILL.md
data/skills-md/0731coderlee-sudo/wechat-publisher/wechat-publisher/SKILL.md
data/skills-md/0froq/skills/conventionalcommits/SKILL.md
data/skills-md/0froq/skills/nuxt/SKILL.md
data/skills-md/0froq/skills/oq/SKILL.md
data/skills-md/0froq/skills/pinia/SKILL.md
data/skills-md/0froq/skills/pnpm/SKILL.md
data/skills-md/0froq/skills/slidev/SKILL.md
data/skills-md/0froq/skills/tsdown/SKILL.md
data/skills-md/0froq/skills/turborepo/SKILL.md
data/skills-md/0froq/skills/unocss/SKILL.md
data/skills-md/0froq/skills/vitepress/SKILL.md
data/skills-md/0froq/skills/vitest/SKILL.md
data/skills-md/0froq/skills/vue-best-practices/SKILL.md
data/skills-md/0froq/skills/vue-router-best-practices/SKILL.md
data/skills-md/0froq/skills/vue-testing-best-practices/SKILL.md
data/skills-md/0froq/skills/vue/SKILL.md
data/skills-md/0froq/skills/vueuse-functions/SKILL.md
data/skills-md/0froq/skills/web-design-guidelines/SKILL.md
data/skills-md/0juano/agent-skills/bondterminal-x402/SKILL.md
data/skills-md/0juano/agent-skills/edgeone-pages-deploy/SKILL.md
data/skills-md/0juano/agent-skills/ley-ar/SKILL.md
data/skills-md/0juano/agent-skills/ticktick/SKILL.md
data/skills-md/0juano/agent-skills/x-image-cards/SKILL.md
data/skills-md/0juano/x-image-cards/x-image-cards/SKILL.md
data/skills-md/0x0funky/agent-sprite-forge/generate2dsprite/SKILL.md
data/skills-md/0x0funky/agent-sprite-forge/video2dsprite/SKILL.md
data/skills-md/0x2e/superpowers/brainstorming/SKILL.md
data/skills-md/0x2e/superpowers/dispatching-parallel-agents/SKILL.md
data/skills-md/0x2e/superpowers/executing-plans/SKILL.md
data/skills-md/0x2e/superpowers/finishing-a-development-branch/SKILL.md
data/skills-md/0x2e/superpowers/receiving-code-review/SKILL.md
data/skills-md/0x2e/superpowers/requesting-code-review/SKILL.md
data/skills-md/0x2e/superpowers/subagent-driven-development/SKILL.md
data/skills-md/0x2e/superpowers/systematic-debugging/SKILL.md
data/skills-md/0x2e/superpowers/test-driven-development/SKILL.md
data/skills-md/0x2e/superpowers/using-git-worktrees/SKILL.md
data/skills-md/0x2e/superpowers/using-superpowers/SKILL.md
data/skills-md/0x2e/superpowers/verification-before-completion/SKILL.md
data/skills-md/0x2e/superpowers/writing-plans/SKILL.md
data/skills-md/0x2e/superpowers/writing-skills/SKILL.md

Metadata

Files
0
Version
e4a0f95
Hash
c8de2256
Indexed
2026-07-05 21:23

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 03:57
浙ICP备14020137号-1 $방문자$