Agent skill

Builder Refresh

by cluesmith in cluesmith/codev

Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient.

Apache-2.0Auto-check passed

Install Builder Refresh

skills CLI
$ npx skills add cluesmith/codev --skill builder-refresh -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cluesmith/codev builder-refresh --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cluesmith/codev.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/builder-refresh .claude/skills/builder-refresh && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
builder-refresh
GitHub stars
288
Token cost
~1.7k tokens
SKILL.md length
1,025 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient.

  • Works in 3 steps: Use the commands porch gave you → Write your working state → Run the execute command, then stop
  • Porch emits a context-refresh task
  • SKILL.md covers When NOT to run this, The procedure, If it refuses and After the clear, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Builder Refresh is an agent skill from cluesmith/codev. Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient. Use when porch emits a context-refresh task, or the builder is told to "refresh your context" / "run a self-refresh". A builder does not invoke this autonomously mid-task; porch chooses the moment. Counterpart to the architect's /arch-save.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Codev helps humans and agents co-develop both the context and the code of the project. The licence is Apache-2.0.

When your agent uses it

  • Porch emits a context-refresh task
  • The builder is told to refresh your context / run a self-refresh

Example prompts

  • “refresh your context”
  • “run a self-refresh”
  • “/builder-refresh”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Use the commands porch gave you
  2. Write your working state
  3. Run the execute command, then stop

What it can do on your machine

Read from SKILL.md and the folder at commit 9cd8607. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Builder Refresh loads about 1.7k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 1,025 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cluesmith/codev at commit 9cd8607, republished under its Apache-2.0 licence (© cluesmith). 1,025 words, ~1,748 tokens.

Download SKILL.mdSave it as .claude/skills/builder-refresh/SKILL.md (or your agent's skills folder).
name
builder-refresh
description
Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient. Use when porch emits a context-refresh task, or the builder is told to "refresh your context" / "run a self-refresh". A builder does not invoke this autonomously mid-task; porch chooses the moment. Counterpart to the architect's /arch-save.
argument-hint
(none — porch's refresh task supplies the commands)

/builder-refresh — save, clear, and come back knowing where you are

You are a builder that has reached a protocol boundary. Your context can be discarded here safely, because everything that matters is already on disk: the spec, the plan, status.yaml, your thread narrative, and git history. A fresh context re-orients from those artifacts rather than from memory.

The enforcement is in the command, not in this document. afx self-refresh refuses to clear on an unverified save, refuses when the re-entry cannot be scheduled, and refuses when your worktree has uncommitted tracked changes. This skill sequences the steps and explains the judgement calls; it cannot and does not decide whether the clear is safe.

When NOT to run this

Porch chooses the moment. You do not. Run this when porch's refresh task tells you to, or when the architect directs it. Do not invoke it mid-task on your own judgement — a boundary is a point a fresh context can resume from, and a mid-task snapshot resumes into confusion.

If you are not at a boundary and think you need a refresh anyway, say so to the architect rather than doing it: afx send architect "...".

The procedure

1. Use the commands porch gave you

Porch's refresh task contains the exact two commands for this boundary, including the --boundary flag. Run those, verbatim.

Do not retype them from memory and do not omit the flag. --boundary binds the challenge to the boundary it was issued at, so a challenge left behind by an aborted refresh cannot be used to clear you at a later boundary, against a save describing work that has since moved on. That guard has been silently disabled twice by an instruction that dropped the flag, which is why this document deliberately does not restate the commands.

If you arrived here without a porch task — an architect-directed refresh, say — there is no boundary to bind, and the flagless form is correct. Run afx self-refresh --help for the exact spelling rather than guessing it.

2. Write your working state

The first command prints a save request naming a file and a marker line. Write that file.

The marker must be the FIRST LINE, reproduced exactly. A save whose nonce appears further down is refused — that check exists because echoing the request back into the file otherwise passed every gate, and echoing instructions is something agents do by accident.

Write for a cold reader — a competent agent that wakes up with your worktree, your branch, and no memory of this conversation. Most of your state is already on disk, so do not restate the spec or the plan. Carry only what the artifacts do not contain:

  • receipts — what is done and verified, with paths and commit hashes, distinguishing "written" from "verified";
  • deviations from the plan, and why;
  • flaky or skipped tests, and what you did about them;
  • deferred work, and the reason;
  • standing orders from the architect you are still bound by, including anything you were told NOT to do;
  • the next concrete action.

Pointers, not prose. The save has a minimum size, and it is not a word count to pad — a file below it is indistinguishable from a stub. If you genuinely have less than that to say, you are probably omitting receipts or standing orders.

3. Run the execute command, then stop

The second command verifies your save, writes a re-orientation to disk, schedules your re-entry, and clears you — in that order, and only if every step succeeds.

Then end your turn. Do not start new work. The clear takes effect when the turn ends.

If it refuses

Most refusals happen before anything destructive, and those leave your context untouched. One does not. Read which you got.

Show full SKILL.md (407 more words)Show less
Pre-clear refusals — your context is intact
RefusalWhat it means
state file missing / too small / wrong nonceYour save did not satisfy the gate — check the marker is on line 1
worktree has uncommitted tracked changesCommit first; a refreshed context re-orients from git, so uncommitted work is invisible to it
Tower is not running, or did not schedule the re-entryClearing would strand you, so it refused
challenge missing / already consumed / for a different boundaryRun the begin step again
invalid parametersA flag is out of range — nothing was read or written
challenge could not be marked consumedNothing was cleared, but a re-entry is already queued and will arrive; ignore it. Retrying queues a second one

For any of these: report it and carry on.

bash
afx send architect "Context refresh refused at <boundary>: <the reason it printed>"

Then run porch next for your normal tasks. The refresh never blocks your work — the boundary is recorded as consumed either way, so a failed refresh costs you some context and nothing else.

clear-failed — you cannot assume anything

If the command reports that the clear was attempted but may still have landed, do not treat that as a pre-clear refusal. Sending /clear can succeed on the wire and still report an error, so from inside this turn it is genuinely unknown whether your context survives.

  • A re-entry message is already queued and will arrive shortly. If your context was cleared, that message is your re-orientation. If it was not, the message is harmless and can be ignored.
  • Do not start new work in this state.
  • Tell the architect explicitly that the outcome is ambiguous:
bash
afx send architect "Self-refresh clear-failed at <boundary> — clear may or may not have landed; re-entry is queued"

After the clear

A re-entry message arrives shortly, identifying itself as an automatic context refresh. It carries your identity, protocol, project, worktree and branch, and points at .builder-reorient.md — the full spawn-quality frame, on disk.

It will tell you to run porch next. Do that; porch's state is untouched by the clear and its next task emission is your re-orientation.

If the re-entry never arrives, nothing is lost. .builder-reorient.md is on disk and the architect can send you back with one message. Say so if you notice.

What this does not do

  • It does not write status.yaml. Only porch does, and the boundary is already recorded there before you are asked to refresh.
  • It does not decide whether to refresh. Porch decided that.
  • It does not retry. A boundary is refreshed at most once, so a refusal means this boundary simply does not get a refresh.

© cluesmith, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/builder-refresh of cluesmith/codev.

Open the folder on GitHubat commit 9cd8607

Compare with similar skills

Builder Refresh next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Builder Refresh compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Builder Refresh this skillcluesmith/codev288—~1.7kAutomated safety check: PassApache-2.0
Index Refreshpaperclipai/paperclip99k—~994Automated safety check: PassMIT
Meta Refreshthedaviddias/Front-End-Checklist74k—~434Automated safety check: PassMIT
Team Builderaffaan-m/ECC275k1 repos~1.8kAutomated safety check: PassMIT
Team Builderaffaan-m/ECC275k1 repos~808Automated safety check: PassMIT
Dashboard Builderaffaan-m/ECC275k—~221Automated safety check: PassMIT

Similar skills

  • Index Refresh

    paperclipai/paperclip

    A skill your agent uses when an LLM Wiki operation issue requests an index refresh.

    99k GitHub stars~994 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Meta Refresh

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid meta refresh redirects.

    74k GitHub stars~434 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Team Builder

    affaan-m/ECC

    Interactive picker that discovers available agent personas via the claude agents command and agents/ markdown globs, groups them into domains, has the user select up to five, dispatches them in…

    275k GitHub starsUsed in 1 repo~1.8k tokens
    Agent WorkflowsAuto-check passed
  • Team Builder

    affaan-m/ECC

    用于组合和派遣并行团队的交互式代理选择器

    275k GitHub starsUsed in 1 repo~808 tokens
    Auto-check passed
  • Dashboard Builder

    affaan-m/ECC

    Grafana、SigNoz、および同様のプラットフォーム用の実際のオペレータ質問に答える監視ダッシュボードを構築します。メトリクスを虚栄ボードではなく機能するダッシュボードに変える場合に使用します。

    275k GitHub stars~221 tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Dashboard Builder

    affaan-m/ECC

    为 Grafana、SigNoz 等平台构建能够回答实际运维人员问题的监控仪表板。适用于将指标转化为可用的仪表板,而非华而不实的展示板。

    275k GitHub stars~279 tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed

More from cluesmith/codev

All 12 skills in this repo
  • Afx

    cluesmith/codev

    Agent Farm CLI — the tool for spawning builders, managing Tower, workspaces, and cron tasks.

    288 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Arch Init

    cluesmith/codev

    Adopt an architect identity and recover its state from codev/state/<name.md.

    288 GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed
  • Arch Save

    cluesmith/codev

    Save an architect's state, clear its context, and re-init automatically — the packaged save→clear→re-init refresh cycle.

    288 GitHub stars~3.8k tokensUpdated 2 days ago
    Auto-check passed
  • Codev

    cluesmith/codev

    Codev project management CLI — init, adopt, update, and doctor commands.

    288 GitHub stars~962 tokensUpdated 2 days ago
    Auto-check passed
  • Consult

    cluesmith/codev

    AI consultation CLI — query Gemini, Codex, or Claude for reviews and analysis.

    288 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check: notes
  • Generate Image

    cluesmith/codev

    AI image generation via Gemini with optional async providers.

    288 GitHub stars~751 tokensUpdated 2 days ago
    Auto-check passed

Questions about Builder Refresh

What does Builder Refresh do?

Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient. Builder Refresh is an agent skill from cluesmith/codev. Refresh a builder's own context at a protocol boundary — save working state, verify it, clear, and re-orient.

When should I use Builder Refresh?

Builder Refresh fits situations like: porch emits a context-refresh task; the builder is told to refresh your context / run a self-refresh.

How do I install Builder Refresh in Claude Code?

Run `npx skills add cluesmith/codev --skill builder-refresh -a claude-code`. Or copy the skill folder (.codex/skills/builder-refresh in cluesmith/codev) into .claude/skills/builder-refresh in your project. Claude Code loads it when a task matches its description.

How do I install Builder Refresh in Codex?

Run `npx skills add cluesmith/codev --skill builder-refresh -a codex`. Or copy the skill folder (.codex/skills/builder-refresh in cluesmith/codev) into .agents/skills/builder-refresh in your project. Codex loads it when a task matches its description.

Can I use Builder Refresh in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cluesmith/codev --skill builder-refresh -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/builder-refresh, .gemini/skills/builder-refresh, .github/skills/builder-refresh and .opencode/skills/builder-refresh in your project.

What does Builder Refresh need to run?

SKILL.md names no scripts, command-line tools or credentials: Builder Refresh is instructions for the agent only.

Does Builder Refresh access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Builder Refresh safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Builder Refresh use?

Builder Refresh is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Builder Refresh use?

About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Builder Refresh?

Skills that share tags, products or a category with Builder Refresh: Index Refresh (paperclipai/paperclip, 99k stars), Meta Refresh (thedaviddias/Front-End-Checklist, 74k stars), Team Builder (affaan-m/ECC, 275k stars) and Team Builder (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Builder Refresh?

cluesmith (a GitHub organization) maintains it in cluesmith/codev, which has 288 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 6, 2026.

Source: cluesmith/codev on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.