aiwg-refresh

aiwg-refresh is a skill for Claude Code, Codex from jmagly/aiwg. It costs 20 tokens per session (2,667 once invoked), scanned C, original, MIT.

A refresh workflow that updates the AIWG command-line tool and redeploys its frameworks and tools into the current project. It also handles provider detection and related deployment choices.

In plain words
What is it for?
Use it to update AIWG, redeploy current content, restore canonical files, switch providers, or select a deployment model.
Why use it?
It keeps the project's deployed AIWG content aligned after updates, branch changes, manual edits, or a provider switch. It avoids manually repeating the refresh steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to update AIWG, redeploy current content, restore canonical files, switch providers, or select a deployment model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmagly/aiwg/aiwg-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 jmagly/aiwg --skill aiwg-refresh
Clone the repo
git clone --depth 1 https://github.com/jmagly/aiwg

Made for: Claude Code, Codex.

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 aiwg-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagly/aiwg/aiwg-refresh/github.svg)](https://agentmods.dev/skills/jmagly/aiwg/aiwg-refresh)
Your own site
<a href="https://agentmods.dev/skills/jmagly/aiwg/aiwg-refresh"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/aiwg-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 aiwg-refresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmagly/aiwg/aiwg-refresh"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/aiwg-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,667 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00020 $0.02667
Opus 5 $0.00010 $0.01333
Sonnet 5 $0.00004 $0.00533
Haiku 4.5 $0.00002 $0.00267

Measured 9d ago against content hash ff3ee1c3cda1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

aiwg-refresh scanned grade C with 2 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

| AIWG CLI not found | Error: "AIWG CLI not installed. Run: curl -fsSL ... \| bash" |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| AIWG CLI not found | Error: "AIWG CLI not installed. Run: curl -fsSL ... \| bash" |
agentic/code/addons/aiwg-utils/skills/aiwg-refresh/SKILL.md · 367 lines

How it starts

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

Deterministic execution (#1267): this skill has a script: entrypoint that shells out to aiwg refresh "$@". Prefer aiwg run skill aiwg-refresh -- <flags> when a platform supports it; on platforms without a deployed command stub (e.g. hermes) invoke the CLI directly. The CLI owns the deterministic execution step: version/channel resolution, CLI update, framework redeploy, provider detection, and exit codes. The skill owns the agentic layer around that step: intent alignment, output formatting, workspace-state reconciliation, summary, next actions, gates, and recovery. Do not reimplement the refresh manually or add redundant permission prompts before calling the CLI for execution.

Refresh AIWG Deployment

Update the AIWG CLI and/or redeploy frameworks, agents, commands, and tools to the current project without leaving the agentic session.

Use Cases

  • After AIWG updates: Get latest framework features without restarting
  • After switching branches: Ensure deployed content matches expectations
  • After manual edits: Restore canonical AIWG content
  • Provider switch: Redeploy for different platform (Claude → Factory)
  • Model selection: Redeploy with different AI models for each tier

Parameters

Flag Description
--update-cli Update AIWG CLI to latest version before redeploying
--all Redeploy all installed frameworks
--sdlc Redeploy SDLC framework only
--marketing Redeploy Marketing framework only
--utils Redeploy aiwg-utils addon only
--provider <name> Target platform: claude, factory, openai, cursor, warp (default: auto-detect)
--reasoning-model <name> Override model for reasoning agents (opus tier)
--coding-model <name> Override model for coding agents (sonnet tier)
--efficiency-model <name> Override model for efficiency agents (haiku tier)
--filter <pattern> Only deploy agents matching glob pattern (e.g., *architect*)
--filter-role <role> Only deploy agents of specified role: reasoning, coding, efficiency
--save Persist model selection to project models.json
--force Force redeploy even if already up-to-date
--dry-run Show what would be done without executing

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file 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. 9d ago First seen · 367 lines · 20 tokens per session scan C ff3ee1c3cda1

Subscribe to this mod's changes

aiwg-refresh is a skill published in the GitHub repository jmagly/aiwg (211 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 2,667 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.