From workbench-core
Review and compact accumulated skill learnings. For workbench plugin skills, optionally integrate proven learnings into the SKILL.md itself. Triggered when a learnings file exceeds 30 entries, or run manually any time.
npx claudepluginhub mike-bronner/claude-workbench --plugin workbench-coreThis skill uses the workspace's default tool permissions.
This is an execution-aware skill — check `skills/compact-learnings.learnings.md` in the vault before proceeding. If it exists, apply accumulated learnings.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
This is an execution-aware skill — check skills/compact-learnings.learnings.md in the vault before proceeding. If it exists, apply accumulated learnings.
The user has invoked /workbench:compact-learnings, or the skills protocol flagged a learnings file above the 30-entry threshold.
If the user provided a skill name as an argument, target only skills/{name}.learnings.md.
Otherwise, scan all learnings files (default path shown — resolve via config):
find ~/Documents/Claude/Memory/skills -name "*.learnings.md" 2>/dev/null
For threshold-triggered runs, process only the file that triggered it.
Read the file. Count entries (## headings = entries).
If under 30 entries and this is an unprompted manual run (no specific skill), ask: "Only {N} entries — compact anyway?"
Determine if this is a workbench plugin skill by searching for a matching SKILL.md in installed plugins whose directory name includes claude-workbench:
find ~/.claude/plugins/installed/*claude-workbench*/skills -name "SKILL.md" -path "*/{skill-name}/*" 2>/dev/null
Present each learning to the user with three options and your recommendation.
For workbench plugin skills:
| Option | Meaning |
|---|---|
| Integrate | Bake into SKILL.md — improves the skill definition permanently |
| Keep | Retain in compacted learnings — relevant but too environment-specific for the definition |
| Drop | Stale, contradicted, or no longer relevant — remove |
For all other skills:
| Option | Meaning |
|---|---|
| Keep | Retain in compacted learnings |
| Rewrite | Valid learning but poorly worded — rewrite concisely |
| Drop | Remove |
For each entry, state your recommendation and a one-line rationale. Wait for the user's choice before moving on.
Rewrite with only kept/rewritten entries. Maintain chronological order. Write via mcp__plugin_workbench-core_memory__write (full overwrite).
If all entries were dropped or integrated, write a minimal file with just frontmatter and no entries.
For entries marked "Integrate":
repository field from the plugin's plugin.json to identify the GitHub repo. Derive the local clone path by finding a directory whose git remote -v origin matches the repository URL. Copy the updated SKILL.md to the corresponding path in the source repo.Weave integrated learnings into the existing structure. Do NOT append a "learnings" section — the guidance should read as if it was always part of the skill.
If multiple learnings point to the same issue, consolidate into a single change.
compact-learnings: {skill-name}
entries: {total} → integrated: {n}, kept: {n}, dropped: {n}
SKILL.md: {updated|unchanged}