ark-upgrade

ark-upgrade is a skill for Codex from pedroknigge/arkgate. It costs 18 tokens per session (4,978 once invoked), scanned B, original, MIT.

Instructions for upgrading ArkGate, a package that manages agent rules and skills. The upgrade process previews changes before applying them.

In plain words
What is it for?
Use it to preview and apply an ArkGate upgrade, refresh instruction files, keep other agents' skills, and check the result for problems.
Why use it?
It helps preserve customized files and skills while updating managed ones, and makes the planned changes reviewable before they are written.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # or: node node_modules/arkgate/bin/ark.mjs upgrade --json.

Good fit Use it to preview and apply an ArkGate upgrade, refresh instruction files, keep other agents' skills, and check the result for problems.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pedroknigge/arkgate
agentmods
npx agentmods add skills/pedroknigge/arkgate/ark-upgrade

Made for: 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 ark-upgrade

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-upgrade.svg)](https://agentmods.dev/skills/pedroknigge/arkgate/ark-upgrade)
Your own site
<a href="https://agentmods.dev/skills/pedroknigge/arkgate/ark-upgrade"><img src="https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-upgrade.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,978 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00018 $0.04978
Opus 5 $0.00009 $0.02489
Sonnet 5 $0.00004 $0.00996
Haiku 4.5 $0.00002 $0.00498

Measured yesterday against content hash c1c5a0311149, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

ark-upgrade scanned grade B with 1 finding 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 yesterday.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Stale `~/.claude/skills`, `~/.grok/skills`, or `~/.gemini/config/skills` | Shared homes should be the newest ArkGate on the machine (additive; never downgrade). Refresh: `--install-agent-gates --skills-only --agent-hom
templates/agent-skills/ark-upgrade/SKILL.md · 334 lines

How it starts

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

/ark-upgrade — managed ArkGate upgrade

Contener · Guiar · Ordenar. In plain words: contain the write, guide the next step, order leftover mess. This door is Contener: keep the pin current. Skills never enforce — CLI / hooks / CI do.

When: bump the published arkgate package and refresh managed gates. Not when: session 0 (/ark-adopt) or leftover design (/ark-explore).

When / not when

Use /ark-upgrade when… Do not use it when…
Bump the pin and refresh managed gates Session 0 / path missing → /ark-adopt
Preview then --apply in this turn Leftover design / map → /ark-explore; apply Shape → /ark-autopilot

Steps

  1. Preview: arkgate upgrade (no writes). Default is hosts keep — do not retire other hosts’ skills.
  2. Apply in this turn: arkgate upgrade --apply (installs the bumped package unless --no-install). Needs --plan-digest when applying managed files.
  3. Re-run arkgate-check --doctor. Customized files stay unless you pass --accept-conflicts / --refresh-skills.

Checklist

  • Preview unions --tools with hosts already in the repo. Multi-agent trees keep every host.
  • Apply must run the package install of the new pin. Do not skip npm install unless --no-install is explicit.
  • Refresh AGENTS.md and CLAUDE.md (same projection schema).
  • Prefer project .agents/skills. Do not duplicate the catalog into ~/.codex/skills.

The preview is the source of truth. Do not treat a filename or package version as proof of ownership.

Autonomy contract

Invoking this skill is the approval. Preview, then --apply in this turn. Stopping at preview is incomplete unless the probe failed or a conflict needs --accept-conflicts / --refresh-skills consent.

For session 0, start with /ark-adopt (or ark-check --recommend); brownfield honesty is /ark-adopt before this upgrade flow.

Improvement compass (process preflight)

Read the full file on GitHub · 334 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. yesterday Changed · +11 lines c1c5a0311149
  2. 4d ago Changed ef455469200e
  3. 7d ago First seen · 323 lines · 18 tokens per session scan B cf0253076e05

Subscribe to this mod's changes

ark-upgrade is a skill published in the GitHub repository pedroknigge/arkgate (1 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 4,978 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.