/super-skills:memory-compactfrom super-skills
Reviews and compacts persistent agent memory by dropping obsolete, duplicated, task-specific, or repository-recoverable entries, merging similar ones, and keeping only high-value long-term memories. Maintains the primary entry file under 200 lines and 25 KB.
Ships in super-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Compact the persistent memory this agent has. Use whatever memory store the harness provides — a single file, a directory with an index, or a memory API. Never assume a path or a product name. If the harness has no persistent memory, say so and stop.
The primary entry file — the whole file for a single-file store, the index for a directory store — is capped at 200 lines and 25 KB; reaching either means compaction is due.
Locate. Use the memory store the harness gives you. For a directory store, read the index and every topic file; the index is a pointer list, never content.
Inventory. List every entry with its size.
Classify. Give every entry exactly one action — delete, merge, promote, or keep — with a one-line reason traced to the rubric below. An entry on the never-drop list stays a keep unless the user explicitly says otherwise.
Propose. Present one batch table (entry → action → reason) and wait for a single confirmation; the user may accept all or adjust. Skip this step only if the invocation explicitly says to proceed without confirmation.
Snapshot. For a file-based store, copy the entry file(s) to a system temp path before writing and keep the path for the report. For a non-file store, the confirmation above is the only safety net — say so in the report.
Rewrite. Apply the confirmed plan in place. Never write outside the memory store.
Verify the cap. The primary entry file must end under 200 lines and under 25 KB. Topic files answer to the rubric, not to the size cap. If the memory is honestly compacted and still over, report the overage; never keep deleting just to hit the number. An explicit cap in the invocation overrides these defaults.
Report. Before/after size, counts per action, notable merges and removals, snapshot path, and any suggestion to promote something outside the memory — suggestions only, never writes to other documents.
| Action | Applies to |
|---|---|
| delete | obsolete · duplicated · task-specific · recoverable from the repository |
| merge | similar memories → one entry |
| promote | stable recurring patterns → consolidate inside the memory |
| keep | only high-value long-term memories |
Never drop (unless the user explicitly says so): user preferences, identity, and collaboration style · corrections that prevent repeated mistakes · active commitments with dates · validated stable patterns.
Default drop: implementation details recoverable from the repo or git · one-off task state and temporary TODOs · debugging recipes for already-solved problems · duplicate or near-duplicate entries.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/cbc-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./react-effectsReact useEffect anti-pattern detection and correction guide. Use this skill whenever writing, reviewing, or modifying any React component that contains useEffect, or when about to add a useEffect hook. Also trigger when you see patterns like "setState inside useEffect", "effect chains", "derived state in effect", or "notify parent in effect". Covers 12 specific scenarios where Effects are unnecessary or misused, with correct alternatives. Even if the useEffect looks reasonable at first glance, consult this skill to verify it's truly needed./wechat-miniprogramImplement and verify WeChat Mini Program and Mini Game work: locate source and config, compile, preview and upload, automate pages and canvas, read console/network evidence, and integrate CloudBase. Use when a project has project.config.json, app.json, or WXML/WXSS, or when the user mentions 小程序, 小游戏, 微信开发者工具/wechatide, or building Taro/uni-app into WeChat.npx claudepluginhub whinc/super-skills --plugin super-skillsOther plugins' skills for the same job