Back to Skills

ce-compound-refresh

Refresh docs/solutions learnings against the current codebase. Use when auditing stale, overlapping, superseded, or drifted learnings; avoid general refactor, debugging, or code review unless docs/solutions is explicit.

21,992stars1,623forksUpdated 6/25/2026

Security Assessment

Medium Risk(60/100)

Detected risks:

Privilege Escalation([references/yaml-schema.md] sudo)
Security Score60/100

About ce-compound-refresh

Maintains the quality of learning and pattern docs stored under docs/solutions/ by reviewing them against the current codebase and then updating, consolidating, replacing, or deleting any that have drifted. It is intended for requests like refreshing learnings, auditing docs/solutions/, cleaning up stale learnings, or consolidating overlapping docs, and it also responds when a related skill flags an older doc as superseded. It deliberately does not trigger for general refactor, debugging, or code-review work unless the user explicitly points at docs/solutions/.

The workflow runs in either interactive or headless mode. Interactive mode asks the user for decisions on ambiguous cases one question at a time using the platform's blocking question tool, leading with a recommendation and preferring multiple choice. Headless mode, selected by passing mode:headless in the arguments, performs no user interaction: it applies all unambiguous actions, records successful writes as applied and failed writes as recommended, marks genuinely ambiguous cases as stale with stale_reason and stale_date frontmatter, uses conservative confidence, and always produces a summary report split into Applied and Recommended sections. Docs are refreshed in a fixed order, reviewing individual learning docs first as the primary evidence, then any pattern docs derived from them, because stale learnings can make a pattern look more valid than it is.

Each candidate artifact is classified into one of five outcomes: Keep (accurate and useful, no edit by default), Update (correct solution but drifted references, apply evidence-backed in-place edits), Consolidate (merge overlapping correct docs into a canonical one and delete the subsumed doc), Replace (create a trustworthy successor then delete the misleading original), or Delete (remove a doc that is no longer useful or distinct, relying on git history for recovery). Core rules emphasize evidence informing judgment rather than a mechanical scorecard, preferring a no-write Keep over leaving review breadcrumbs, and matching docs to current reality. The skill also handles CONCEPTS.md bootstrap requests by disambiguating between building the repo-wide concept map and running a refresh cycle.

FAQ

When should this skill be triggered?

When the user asks to refresh learnings, audit docs/solutions/, clean up stale learnings, or consolidate overlapping docs, or when a companion skill flags an older doc as superseded. It does not trigger for general refactor, debugging, or code-review work unless docs/solutions/ is explicitly named.

What are the possible outcomes for a doc?

Each artifact is classified as Keep, Update, Consolidate, Replace, or Delete. Keep makes no edit by default, Update applies in-place reference fixes, Consolidate merges and deletes the subsumed doc, Replace creates a successor then deletes the old doc, and Delete removes it outright.

How does headless mode differ from interactive mode?

Headless mode (mode:headless) skips all user questions, processes everything in scope, applies all unambiguous actions, marks genuinely ambiguous cases as stale, and always generates a report with Applied and Recommended sections. Interactive mode instead asks the user one question at a time on ambiguous cases.

In what order are docs refreshed?

Individual learning docs are reviewed first because they are the primary evidence, then any pattern docs that depend on them. If the user names a pattern doc first, its supporting learning docs are still inspected before the pattern is changed.

What happens when a write fails in headless mode?

The action is recorded as recommended in the report with full rationale rather than stopping the run. If even a stale-marking write fails, that too is included as a recommendation, so the report structure stays the same regardless of granted permissions.

All Files

7 files
references/concepts-vocabulary.md6.1 KB
View
references/yaml-schema.md5.7 KB
View
assets/resolution-template.md2.4 KB
View
references/schema.yaml7.4 KB
View
SKILL.md53.8 KB
View
references/per-action-flows.md8.3 KB
View
scripts/validate-frontmatter.py4.9 KB
View

Install ce-compound-refresh

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill