ark-loop

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

A shortcut for an Ark workflow that fixes illegal imports in a codebase. Ark is a set of tools and rules for checking software structure.

In plain words
What is it for?
It is for validating import-related changes, applying mechanically safe fixes, and checking that the result meets the project's rules.
Why use it?
It helps apply safe import fixes while requiring additional investigation when the problem needs design judgment.

Skill for Claude CodeCodex

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

Good fit It is for validating import-related changes, applying mechanically safe fixes, and checking that the result meets the project's rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedroknigge/arkgate/ark-loop
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-loop
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-loop

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedroknigge/arkgate/ark-loop"><img src="https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 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.00022 $0.00974
Opus 5.5 $0.00009 $0.00390
Sonnet 5.5 $0.00004 $0.00195
Haiku 4.5 $0.00002 $0.00097

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

Security

Grade A, and why

ark-loop 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 27d 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-loop/SKILL.md · 82 lines

How it starts

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

/ark-loop — Shortcut to /ark-autopilot

Not a first-class door. One-release redirect. Driving --plan to goal.met is /ark-autopilot. Do that job now. Contener · Guiar · Ordenar — this leftover name is not a star.

When / not when

Use this leftover name when… Prefer instead
Plan A has steps; drive to goal.met /ark-autopilot
Map only /ark-explore
Session 0 /ark-adopt

Dual engine (mandatory)

Engine Role
Deterministic Only the four mechanical-safe kinds auto-apply; plan tags; gate re-check
Exploratory Read sources; detect concentrated edges / false-green before grinding

The CLI is a sensor, never the whole job. Claiming done without the exploratory bar for this skill is incomplete.

MCP workspace binding (mandatory)

Before any ark_* MCP tool, call ark_identity with project.expectedRoot set to the exact workspace root. Continue only when binding.status === "matched" and authoritative === true; retain projectIdentity.projectId, then pass both expectedRoot and expectedProjectId under project on every later MCP call. If identity is missing, mismatched, unverified, or the root is uncertain, do not consume MCP analysis: use the workspace-local CLI and report that MCP restart/retargeting is required. ark://manifest never satisfies this preflight.

Atomic multi-file work uses ark_prepare_change with the same matched project envelope.

Subagent fan-out (optional, host-dependent)

If the host supports parallel subagents, fan out read-only scouts; otherwise fall back to sequential. Never weaken the gate.

  • Greenfield: /ark-adopt or ark-check --recommend / ark start.
  • Brownfield: /ark-adopt.

Mechanical-edit hygiene (outcome gate)

Leftover name, same edit bar as /ark-autopilot if you still land here.

  • Header injection must merge into the existing doc comment; the kept result has one /**, not stacked headers.
  • Route completion or movement must preserve the original typed defineRoute<…>(opts, handler) call; reconstruct that call instead of extracting untyped opts/handler constants that drop generics or contextual typing.
  • A convention-only *-data.ts stub is not a fix: move the real code or leave the placeholder file uncreated; never write import "server-only"; export {} as an empty naming token.
  • Keep the edit only when the previously clean file stays typecheck-clean. Otherwise roll it back and treat the change as judgment.

Read the full file on GitHub · 82 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. 27d ago Changed · +2 lines 11c2e523e098
  2. 1mo ago Changed · -6 lines a7a7419df311
  3. 1mo ago Changed 03baf2c44e64
  4. 1mo ago First seen · 86 lines · 22 tokens per session scan A c8a0a7589198

Subscribe to this mod's changes

ark-loop is a skill published in the GitHub repository pedroknigge/arkgate (1 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 974 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.