用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill token-saver-memory-dedup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
正在显示 SKILL.md
基于 SOC 职业分类
| name | token-saver-memory-dedup |
| description | Helper skill that deduplicates token-saver memory records before persistence. |
| version | 1.0.0 |
| category | helper |
| invoked_by | skill |
| user_invocable | false |
| agents | ["context-compressor"] |
| tags | ["token-saver","memory","deduplication","helper"] |
| source | builtin |
| trust_score | 100 |
| provenance_sha | 323f2531fc4f8d0f |
Deduplicates memory records against existing memory files to prevent duplicate entries.
This skill provides the deduplicateAgainstMemory function that filters out memory records that already exist in the memory system:
patterns.json and gotchas.jsonconst { deduplicateAgainstMemory } = require('./scripts/main.cjs');
const records = {
patterns: [{ text: 'Use canonical transitions', timestamp: '2026-01-01', source: 'test' }],
gotchas: [{ text: 'Avoid shell: true for spawn', timestamp: '2026-01-01', source: 'test' }],
issues: [],
decisions: [],
};
const { dedupedRecords, stats } = deduplicateAgainstMemory(records, '/path/to/memory');
Re-exports the deduplicateAgainstMemory function from token-saver-context-compression for module resolution and testing purposes.