ark-contract

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

A legacy shortcut for adopting or tightening this project's architecture configuration. The current workflow uses /ark-adopt for initial setup and /ark-autopilot for later tightening.

In plain words
What is it for?
Editing the rules or extra rules through the current adoption or autopilot workflow, including changes that need both automated and exploratory checks.
Why use it?
It prevents you from following an outdated command name or claiming completion based only on a command-line check without examining the repository.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/pedroknigge/arkgate/ark-contract
Any agent
npx skills add pedroknigge/arkgate --skill ark-contract
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-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-contract.svg)](https://agentmods.dev/skills/pedroknigge/arkgate/ark-contract)
Your own site
<a href="https://agentmods.dev/skills/pedroknigge/arkgate/ark-contract"><img src="https://agentmods.dev/badge/skills/pedroknigge/arkgate/ark-contract.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,206 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00025 $0.01206
Opus 5 $0.00013 $0.00603
Sonnet 5 $0.00005 $0.00241
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

ark-contract 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 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.

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-contract/SKILL.md · 78 lines

How it starts

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

/ark-contract — Shortcut to adopt / autopilot

Not a first-run door. This leftover name is a shortcut. Writing ark.config.json is /ark-adopt at session 0 and /ark-autopilot afterward. Do that job now.

Autonomy contract

Invoking this leftover name is the approval to write an honest config. Do not preview-only. Never weaken the architecture config.

When / not when

Use this leftover name when… Prefer instead
Layers / include / ArkRules / ArkRun extra / ArkOrder extra need an edit /ark-adopt (path, first arkRun / first arkOrder) or /ark-autopilot (tighten)
False-green / concentrated edge /ark-adopt — write the honest config
Kernel extra / one kernel candidate /ark-runtime — leftover name; wires arkgate/runtime, not a second package

Dual engine (mandatory)

Engine Role
Deterministic CLI / MCP / contract sensors — exit codes, plan kinds, coverage numbers, install status
Exploratory You open this repo's real files and product surface before concluding

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.

Dual plane — layers + extras (mandatory, except /ark-runtime)

Label findings [Layer] vs [ArkRules] vs [ArkRun] vs [ArkOrder]. Absence of extras is valid and silent. First-time extra is /ark-adopt (advisory). Wire one kernel candidate with /ark-runtime. New kernel-managed / plane-root file with /ark-place. Grind skip clusters with /ark-autopilot. Do not invent /ark-run or /ark-order. Skills never enforce.

Read the full file on GitHub · 78 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 21cc3b44fb48
  2. 5d ago First seen · 78 lines · 25 tokens per session scan A 535c869a1e34

Subscribe to this mod's changes

ark-contract is a skill published in the GitHub repository pedroknigge/arkgate (1 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 1,206 once invoked, about $0.0001 per session on Opus 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.