Efficient Coding

Efficient Coding is a skill for Claude Code, Codex from EliasOulkadi/shokunin. It costs 81 tokens per session (2,516 once invoked), scanned A, original, MIT.

A set of instructions for doing programming work with less unnecessary context while preserving quality.

In plain words
What is it for?
Use it for coding, debugging, refactoring, code explanations, and tool-assisted tasks. It guides how to find relevant code, inspect only needed sections, and verify changes efficiently.
Why use it?
It helps avoid wasting time and attention on unrelated files, repeated reading, or oversized outputs. The guidance favors targeted searches, small file reads, and clear phases of work.

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/eliasoulkadi/shokunin/efficient-coding
Any agent
npx skills add EliasOulkadi/shokunin --skill efficient-coding
Clone the repo
git clone --depth 1 https://github.com/EliasOulkadi/shokunin

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 Efficient Coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/efficient-coding.svg)](https://agentmods.dev/skills/eliasoulkadi/shokunin/efficient-coding)
Your own site
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/efficient-coding"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/efficient-coding.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,516 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 $0.00081 $0.02516
Opus 5 $0.00041 $0.01258
Sonnet 5 $0.00016 $0.00503
Haiku 4.5 $0.00008 $0.00252

Measured 4d ago against content hash 08035a9ac477, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Efficient Coding 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 4d 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.

.pack/skills/efficient-coding/SKILL.md · 246 lines

How it starts

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

Efficient Coding

Core Principle

Every action has a token cost. The goal is to solve the task with the minimum context needed — not minimum effort, minimum waste. Lean context produces faster results and better attention on what matters.


1. Context — The Biggest Cost Driver

Context bloat (sending more than the model needs) is responsible for more wasted tokens than any other cause. Attack it first.

Search before reading:

  • Use Grep/Glob to find the exact file and line range before opening anything.
  • Read only the section you need with offset + limit, not the whole file.
  • Never dump entire directories or large files into context speculatively.

Read each file at most once per task:

  • If a file is already in context, reuse that knowledge. Don't re-read it.
  • Exception: re-read only if the file was modified since you last read it.

Phase separation:

  • Do discovery (reading, searching, understanding) first, then switch to implementation.
  • Don't interleave exploration and editing — stale discovery context charges you on every subsequent turn.

Precision over coverage:

  • If you only need to understand a function, read that function — not the whole module.
  • If you only need a type signature, search for it — don't open the file.

2. Tool Usage — Eliminate Round-Trip Waste

Batch independent calls:

  • When multiple files, searches, or commands are needed and don't depend on each other, issue all calls in a single response — not one at a time.
  • Example: reading 3 unrelated files → one response with 3 Read calls, not 3 sequential responses.

Prefer direct CLI over layered tools:

  • A direct shell command (Bash) is cheaper than an MCP tool that wraps it.
  • Use MCP tools only when they provide genuine capability above the CLI equivalent.

Stop speculative exploration:

  • Don't run commands "just to see what happens." Form a hypothesis first, then act.
  • If the path forward is clear, execute. Don't narrate findings and then ask permission to proceed.

Read the full file on GitHub · 246 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. 4d ago First seen · 246 lines · 81 tokens per session scan A 08035a9ac477

Subscribe to this mod's changes

Efficient Coding is a skill published in the GitHub repository EliasOulkadi/shokunin (113 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 2,516 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

memory-protocol

Universal protocol for total-agent-memory MCP server. Activate at session start, before any non-trivial task, after every significant action, on errors, and at session end. Relevant whenever the user mentions: memory, recall, past context, decisions history, conventions, lessons learned, "продолжаем", "сохранись"…

vbcherepanov/total-agent-memory · 120 tokens

memory

Activate this skill when starting a new session, beginning a new task, saving knowledge, recalling past decisions, or after completing significant work. Also activate on errors to log them for pattern analysis. Relevant when the user asks about memory, past context, lessons learned, decisions history, project…

vbcherepanov/total-agent-memory · 65 tokens

design-explore

Explore 2-4 design options with pros/cons/criteria matrix before writing code. Use for L3-L4 tasks (refactors, architecture, new subsystems). Pairs with savedecision MCP tool.

vbcherepanov/total-agent-memory · 48 tokens

mnema

Use the Mnema MCP server to give the AI long-term, searchable memory. Use it whenever the user shares durable facts, preferences, decisions, or context worth recalling in future sessions. Mnema stores memories in a vector database and recalls them with semantic + hybrid search, with decay scoring and summarization so…

mienetic/mnema · 130 tokens

how-it-works

Explain how claude-dejavu detects antipatterns and learns rules. Use when the user asks "how does dejavu work?" or "what is this thing doing?".

cmg8431/claude-dejavu · 40 tokens

dejavu-rules

Manage dejavu rules manually. Use when user says "add a rule", "remember this", "edit rule", "remove rule", "이거 기억해", "룰 추가해", or wants to manage CLAUDE.md rules through conversation.

cmg8431/claude-dejavu · 56 tokens