Polaris: Skill for Claude Code

.agents/skills/contract-ledger/SKILL.md

contract-ledger is a skill for Claude Code, Codex from sponge-b0b/Polaris. It costs 21 tokens per session (1,346 once invoked), scanned A, original, Apache-2.0.

A set of rules for managing an append-only ledger of canonical software contracts. It accepts, revises, looks up, and retires typed contract records while preserving each accepted transaction as an immutable file.

In plain words
What is it for?
It is for recording contract assertions, creating full-snapshot revisions, retiring contracts, and looking up exact contract revisions and assertions. It is not for planning projects, writing specifications, implementing code, or reviewing code.
Why use it?
Semantic rules can become unclear if records are edited in place or if missing information is silently filled in. This ledger keeps revisions traceable and prevents unauthorised changes from being treated as authoritative.

Skill for Claude CodeCodex

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents); mentions Codex; $skill-name invocation.

This is sponge-b0b/Polaris's own configuration. It tells Claude Code and Codex how to work on Polaris itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Polaris configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sponge-b0b/Polaris. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sponge-b0b/Polaris/main/.agents/skills/contract-ledger/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sponge-b0b/Polaris

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 contract-ledger

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sponge-b0b/polaris/contract-ledger"><img src="https://agentmods.dev/badge/skills/sponge-b0b/polaris/contract-ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,346 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.00021 $0.01346
Opus 5.5 $0.00008 $0.00538
Sonnet 5.5 $0.00004 $0.00269
Haiku 4.5 $0.00002 $0.00135

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

Security

Grade A, and why

contract-ledger 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 7d 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.

.agents/skills/contract-ledger/SKILL.md · 203 lines

How it starts

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

Contract Ledger

$contract-ledger is the sole writer for Canonical Contract Ledger (CCL) transactions:

contracts/ccl/transactions/

Schema and deterministic mechanics:

contracts/ccl/schema/ccl-v1.schema.json
scripts/ccl.py
scripts/ccl_ledger.py

The CCL records material semantics. It does not plan projects, write Specs, decompose tickets, implement code, or perform review.

Invariants

  • accepted transaction files are append-only and immutable;
  • semantic change creates a new full-snapshot revision;
  • retire is terminal in CCL v1;
  • typed assertions are semantic authority;
  • display / annotations are non-authoritative and excluded from the proposal hash;
  • absence of an assertion never authorizes downstream semantic invention;
  • one transaction may revise several coupled contracts atomically, but never more than one revision of the same contract;
  • every assertion is addressed as <contract-id>@<revision>#<assertion-id>.

Never edit, replace, rename, or delete an accepted transaction to change its meaning.

Modes

lookup

Read-only exact/latest contract or assertion lookup:

python -m scripts.ccl_ledger lookup \
  contracts/ccl/transactions \
  <contract-id> \
  [--revision <n>] \
  [--assertion <assertion-id>]

When an exact CCL address exists, consume it instead of reinterpreting source prose.

existing-authority

Register semantics already fixed completely by current durable governing/constraint authority.

No new semantic choice or human decision is legal here. Every proposed assertion must be entailed at exactly the proposed strength.

Illegal strengthening includes:

  • may → must;
  • examples → required/closed taxonomy;
  • optional → required relationship/cardinality;
  • general durability → invented required public field;
  • open vocabulary → closed enum;
  • unspecified dimension → chosen default.

If normalization requires any such choice, return CCL ADMISSION: UNSUPPORTED.

owner-decision

Read the full file on GitHub · 203 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. 7d ago Changed · -94 lines 157ef3fbf170
  2. 8d ago First seen · 297 lines · 21 tokens per session scan A 9443e2df9918

Subscribe to this mod's changes

contract-ledger is a skill published in the GitHub repository sponge-b0b/Polaris (4 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 1,346 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-10-17.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens