refresh

A maintenance procedure for updating a contextualizer's saved references when its upstream sources change. A contextualizer is a project skill that keeps selected reference material aligned with other sources.

In plain words
What is it for?
Locating the installed contextualizer, refreshing its registered sources, and checking the resulting references with verification scripts.
Why use it?
It helps detect and correct outdated references before they cause incorrect guidance.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nick-railsback/skill-engine/refresh
Any agent
npx skills add nick-railsback/skill-engine --skill refresh
Clone the repo
git clone --depth 1 https://github.com/nick-railsback/skill-engine

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.01894
Opus 5 $0.00020 $0.00947
Sonnet 5 $0.00008 $0.00379
Haiku 4.5 $0.00004 $0.00189

Measured 2d ago against content hash d5c3a569b61f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

plugin/skill-engine/skills/refresh/SKILL.md · 164 lines

How it starts

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

Refresh

You receive a task: bring the contextualizer's existing references into agreement with the current upstream state of every registered source. The named checks in verify.sh (plus the permalink-density lint for SHA-pinning) validate your output; the four reference invariants are your authoring targets — not all are machine-checked (see § Output contract). How you reason about drift is your call — there is no Stage -1/1/2/3 prescription, no fixed keystroke menu, no required worker dispatch.

Contextualizer root

Engine workflows operate inside a contextualizer installed as a project skill at one of three install levels:

  • User-level: ~/.claude/skills/<slug>-context/
  • Local-user-level: ~/.claude/local/skills/<slug>-context/ (when in use)
  • Project-level: <repo>/.claude/skills/<slug>-context/

Every path below — research/..., references/..., verify.sh — resolves relative to whichever directory matches. Before reading or writing anything, locate the root by searching all three install levels in order:

Run the script in shared/locator-block.md verbatim before proceeding.

CTX_PROPOSED="${CTX_ROOT}.proposed"

/skill-engine:refresh <name> names the contextualizer to refresh — the directory name without the -context suffix; with no argument, auto-detection applies. The staging-directory model (how $CTX_PROPOSED mirrors the live tree and the sandbox-block diagnostic) is in references/tool-and-output-mechanics.md. Read it before your first write of a run.

Output contract

Two things, both load-bearing:

  1. Updated reference files in references/ (where applicable), each still citing its source by path plus content-hash (see 02-artifact-contract.md). Each still satisfies the four reference invariants (definitions owned by 02-artifact-contract.md §Navigator size budget and §Long references — do not restate them elsewhere):
    • first-5K — the navigator's standing instructions (invariants, critical rules, dispatch logic) fit in the first 5K bytes of SKILL.md body; the catalog table is a TOC and is exempt.
    • depth-1 — no more than one level of pointer indirection.
    • max-100-line-TOC — any reference body over 100 lines carries a TOC marker within its first 30 lines.
    • SHA-pin — every citation pins to a specific SHA, not a moving branch or tag.
  2. Updates to research/source-paths.json reflecting upstream transitions you detected (lifecycle.state for each source; proposed_url on moved; last_checked and last_checked_sha timestamps). The four-state field on source-paths.json is the single source of truth for upstream state.

Read the full file on GitHub · 164 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 164 lines · 40 tokens per session scan A d5c3a569b61f

Subscribe to this mod's changes

refresh is a skill published in the GitHub repository nick-railsback/skill-engine (2 stars, last pushed 25d ago), licensed MIT. It adds 40 tokens to every session and 1,894 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

skill-creator

Create or improve Zhin Agent skills (SKILL.md). Use when asked to add a skill, write SKILL.md, document a repeatable agent workflow, or refine skill frontmatter/keywords. Triggers: 创建技能, 写 SKILL, skill-creator, 加 skill.

zhinjs/zhin · 61 tokens

skill-sync-checker

Detects content drift between skill files and their source documents. Helps maintain skills that are derived from other documentation by comparing content and flagging outdated sections.

kanyun-inc/reskill · 35 tokens

tech-design-generation

Generates professional Technical Design Documents following industry-standard engineering practices. This skill activates when the user asks to write a technical design, create an architecture design, draft a design doc, write a technical proposal, do system design, create a technical design document, write an RFC…

tercel/spec-forge · 110 tokens

test-cases-generation

Generates structured test case sets with multi-dimensional coverage from project code analysis or specification documents. This skill activates when the user asks to write test cases, generate tests, supplement tests, create test coverage, or improve test completeness. It auto-scans the project to extract testable…

tercel/spec-forge · 132 tokens

idea

Use when exploring a new idea before writing formal specifications. Guides users through iterative discovery, research, and critical analysis to crystallize vague ideas into validated requirement drafts. Includes anti-pseudo-requirement checks, competitive research, demand evidence gathering, and "What if we don't…

tercel/spec-forge · 100 tokens

test-plan-generation

Generates professional Test Plan and Test Cases documents following IEEE 829 test documentation standards, ISTQB testing methodologies, and Google Testing Blog best practices. This skill activates when the user asks to write a test plan, create test cases, draft a test plan document, create a test cases document…

tercel/spec-forge · 119 tokens