ark-fix

ark-fix is a skill for Claude Code, Codex from pedroknigge/arkgate. It costs 18 tokens per session (1,316 once invoked), scanned A, original, MIT.

A shortcut for fixing a small group of imports that violates the project's ArkGate rules.

In plain words
What is it for?
Use it to move code or design a port, apply the change, and run ArkGate checks again. It is intended for one small violation cluster.
Why use it?
It removes the need to decide which separate repair command to use when a known import problem has already failed a check.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to move code or design a port, apply the change, and run ArkGate checks again. It is intended for one small violation cluster.

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

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 ark-fix

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedroknigge/arkgate/ark-fix"><img src="https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-fix.svg" alt="Reviewed on agentmods" width="80" 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 1,316 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.00018 $0.01316
Opus 5.5 $0.00007 $0.00526
Sonnet 5.5 $0.00004 $0.00263
Haiku 4.5 $0.00002 $0.00132

Measured 23d ago against content hash 575711123ede, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ark-fix 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 23d 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.

templates/agent-skills/ark-fix/SKILL.md · 107 lines

How it starts

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

/ark-fix — Shortcut to /ark-autopilot

Not a first-class door. One-release redirect. Gate violations are /ark-autopilot. Do that job now. CLI only validates. Contener · Guiar · Ordenar — this leftover name is not a star.

When / not when

Use this leftover name when… Prefer instead
One change / small cluster just failed the gate /ark-autopilot
Session 0 / false-green /ark-adopt
One kernel candidate /ark-runtime
One order-plane candidate /ark-order

Plan B one-pilot checklist (when leftover design, not a single edge)

Empty plan A + leftover design work is not architecture finished. One pilot only. Write an extraction card (docs/brownfield-adoption.md §6) — never mechanical-safe, never silent B apply. Kill-switch required. multiPilotBatchForbidden — never multi-pilot batch. Execute that work on /ark-autopilot.

Files nothing imports (one delete at a time)

When doctor.orphanModules lists a file with certainty: no-importer, nothing imports it and no entry point covers it. Delete one file through the write gate, run arkgate-check and status again, then the next. A maybe-dynamic or maybe-unresolved item may still be loaded: open what its evidence names first. If a framework or loader uses the file, add a glob with a reason to .ark/entry-points.json instead — never edit ark.config.json for it. No batch delete, no codemod.

Copies across a wall (one move at a time)

When doctor.crossWallDuplication (status details, --doctor --all) lists a family, the wall stopped the import and the code was copied. Move one copy to the family's destination through the write gate (/ark-place names it), point both sides at it, delete the other copy, run arkgate-check and status again, then the next family. Never open the wall (allowedCrossSlice, a weaker rule) to make the copy importable. Copies inside one slice are not listed on purpose. No batch, no codemod.

Read the full file on GitHub · 107 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. 23d ago Changed · +20 lines 575711123ede
  2. 27d ago Changed · +2 lines a23a2f27dab6
  3. 1mo ago Changed · -5 lines 59baa544ac80
  4. 1mo ago Changed 729d8248aa08
  5. 1mo ago First seen · 90 lines · 18 tokens per session scan A c7300bfeaba2

Subscribe to this mod's changes

ark-fix 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 1,316 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.