agentic-token-efficiency-master-rule

agentic-token-efficiency-master-rule is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 32 tokens per session (1,176 once invoked), scanned A, original, MIT.

A set of operating rules for coding agents to reduce wasted context, command output, and code changes. Tokens are the text units used to communicate with an AI model.

In plain words
What is it for?
Use it when designing or reviewing an agent workflow that needs focused file reading, small patches, compact commands, and lower response overhead.
Why use it?
It helps prevent agents from reading large files unnecessarily, producing verbose logs, or changing more code than needed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; mentions Claude Code; mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it when designing or reviewing an agent workflow that needs focused file reading, small patches, compact commands, and lower response overhead.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule
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 alivirgo/Major-AI-Skills --skill agentic-token-efficiency-master-rule
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

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 agentic-token-efficiency-master-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule/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 agentic-token-efficiency-master-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/agentic-token-efficiency-master-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 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.00032 $0.01176
Opus 5 $0.00016 $0.00588
Sonnet 5 $0.00006 $0.00235
Haiku 4.5 $0.00003 $0.00118

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

Security

Grade A, and why

agentic-token-efficiency-master-rule 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.

skills/agentic-token-efficiency-master-rule/SKILL.md · 100 lines

How it starts

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

Agentic Token Efficiency Master Constitution (Zero-Waste Agent Architecture)

Overview

In multi-turn autonomous coding environments (Antigravity, Claude Code, OpenAI Codex, OpenClaw), token consumption scales quadratically ($O(N^2)$) if context is not rigorously managed. Unoptimized agents dump 2,000-line files into context, execute verbose shell commands, and generate lengthy conversational commentary - exhausting context windows, degrading attention, and multiplying API costs 10x.

The Agentic Token Efficiency Master Constitution defines the 5 non-negotiable operational axioms that every high-performance AI coding agent must enforce across tool execution, context ingestion, and code mutation.


The 5 Operational Axioms of High-Performance Agents

┌─────────────────────────────────────────────────────────────┐
│                 The 5 Token Efficiency Axioms               │
│                                                             │
│  AXIOM 1: SURGICAL SLICING    ──► Read 40 lines, not 2,000  │
│  AXIOM 2: ATOMIC PATCHING     ──► Replace 5 lines, not file │
│  AXIOM 3: PORCELAIN SHELL     ──► Silent, compact CLI flags │
│  AXIOM 4: PREAMBLE SUPPRESSION──► 100% Artifact, 0% Chatter │
│  AXIOM 5: PERSISTENT MEMORY   ──► Cache static schemas      │
└─────────────────────────────────────────────────────────────┘

The 5 Axioms in Detail

1. Surgical Slicing over Full File Ingestion

  • Anti-Pattern: Using cat src/server.ts or reading 2,500 lines when debugging a single route.
  • Axiom: Use targeted AST search or grep_search to find line numbers, then call view_file with StartLine and EndLine slices (e.g. lines 120-165).

2. Atomic Patching over Complete Rewrites

  • Anti-Pattern: Overwriting a 400-line file with write_to_file to fix a 1-line syntax error.
  • Axiom: Use replace_file_content targeting the exact TargetContent and ReplacementContent block. Keeps output token stream under 50 tokens instead of 2,000 tokens.

Read the full file on GitHub · 100 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 · -1 tokens per session 81a1fa3c9e1c
  2. 12d ago First seen · 100 lines · 33 tokens per session scan A 7d7685d6d4bb

Subscribe to this mod's changes

agentic-token-efficiency-master-rule is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 1,176 once invoked, about $0.0002 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.