compound-refresh

compound-refresh is a skill for Claude Code from aegntic/compound-engineering. It costs 22 tokens per session (3,908 once invoked), scanned A, original, MIT.

A maintenance skill for reviewing learning notes and pattern documents in docs/solutions/ against the current code. It can work interactively or process a whole scope automatically when mode:autonomous is supplied.

In plain words
What is it for?
Use it to keep solution documents accurate, update or archive them when evidence is clear, and mark uncertain documents as stale in autonomous runs.
Why use it?
It helps prevent documented solutions from becoming outdated or conflicting with the software they describe.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Good fit Use it to keep solution documents accurate, update or archive them when evidence is clear, and mark uncertain documents as stale in autonomous runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aegntic/compound-engineering/compound-refresh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aegntic/compound-engineering --skill compound-refresh
Clone the repo
git clone --depth 1 https://github.com/aegntic/compound-engineering

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compound-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-refresh/github.svg)](https://agentmods.dev/skills/aegntic/compound-engineering/compound-refresh)
Your own site
<a href="https://agentmods.dev/skills/aegntic/compound-engineering/compound-refresh"><img src="https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-refresh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compound-refresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/aegntic/compound-engineering/compound-refresh"><img src="https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,908 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.03908
Opus 5.5 $0.00009 $0.01563
Sonnet 5.5 $0.00004 $0.00782
Haiku 4.5 $0.00002 $0.00391

Measured 1mo ago against content hash 04664f1c4bef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compound-refresh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/compound-refresh/SKILL.md · 453 lines

How it starts

The opening of the file, as written. The whole thing — 453 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compound Refresh

Maintain the quality of docs/solutions/ over time. Review existing learnings against the current codebase, then refresh any derived pattern docs that depend on them.

Mode Detection

Check if $ARGUMENTS contains mode:autonomous. If present, strip it from arguments and run in autonomous mode.

Mode When Behavior
Interactive (default) User is present and can answer questions Ask for decisions on ambiguous cases and confirm disruptive actions
Autonomous mode:autonomous in arguments No user interaction. Apply unambiguous actions, mark ambiguous cases stale, and generate a full report

Autonomous mode rules

  • Skip all user questions.
  • Process all docs in scope. If no scope hint was provided, process everything.
  • Attempt all safe actions: Keep, Update, auto-Archive, and Replace when evidence is sufficient.
  • If a write succeeds, record it as applied.
  • If a write fails, record it as recommended in the report and continue.
  • If classification is genuinely ambiguous, mark the doc stale with status: stale, stale_reason, and stale_date.
  • Use conservative confidence. Borderline cases become stale in autonomous mode.
  • Always generate a report with Applied and Recommended sections.

Local Grounding

Before editing anything under docs/solutions/, read the local guidance files in this order:

  1. AGENTS.md
  2. CLAUDE.md (if present)
  3. README.md

Use them to preserve the repository's docs conventions, OpenViking guidance, and workflow naming.

Interaction Principles

These principles apply to interactive mode only. In autonomous mode, skip all user questions and apply the autonomous rules above.

Follow the same interaction style as /workflows:brainstorm:

  • ask questions one at a time
  • prefer multiple choice when natural options exist
  • start with scope and intent, then narrow only when needed
  • do not ask the user to decide before you have evidence
  • lead with a recommendation and explain it briefly

Read the full file on GitHub · 453 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 453 lines · 22 tokens per session scan A 04664f1c4bef

Subscribe to this mod's changes

compound-refresh is a skill published in the GitHub repository aegntic/compound-engineering (2 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 3,908 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.