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

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliasoulkadi/shokunin/efficient-coding
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 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/github.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/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 Efficient Coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/efficient-coding"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/efficient-coding.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 164
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00081 $0.02516
Opus 5.5 $0.00032 $0.01006
Sonnet 5.5 $0.00016 $0.00503
Haiku 4.5 $0.00008 $0.00252

Measured 1mo ago against content hash 08035a9ac477, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (112 stars, last pushed 19d ago), licensed MIT. It adds 81 tokens to every session and 2,516 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

vector-backend-operations

Select and connect the right vector-store backend for the vector-mcp MCP server — chromadb, postgres/pgvector, qdrant, couchbase, or mongodb — and supply the correct dbtype/connection parameters that every collection and search call needs. Use when the agent must decide which engine to target, wire up…

Knuckles-Team/vector-mcp · 113 tokens

vector-collection-management

Create, populate, list, and delete vector-store collections through the vector-mcp MCP server's vectorcollectionmanagement tool. Use when the agent must stand up a new RAG collection, ingest documents (from a directory, file paths/URLs, or raw text) into an existing collection, enumerate collections, or drop one …

Knuckles-Team/vector-mcp · 123 tokens

vector-hybrid-search

Retrieve knowledge from a vector-store collection via the vector-mcp MCP server's vectorsearch tool — semantic (ANN) search, lexical BM25 search, or a hybrid of the two fused with Reciprocal Rank Fusion. Use when the agent must answer a question from an indexed corpus, pull top-k relevant chunks for RAG context, or…

Knuckles-Team/vector-mcp · 113 tokens

vector-mcp-operations

Operate vector-mcp through its governed MCP and Arbora capabilities. Use for collection lifecycle, root-confined document ingestion, semantic or lexical retrieval, hybrid search, backend readiness, troubleshooting, and sanitized verification evidence.

Knuckles-Team/vector-mcp · 48 tokens

chromadb

Build and operate Chroma collections for RAG: PersistentClient vs HttpClient, embedding-function contracts, metadata/where filters, and dimension-safe upsert/query paths agents routinely break.

alivirgo/Major-AI-Skills · 39 tokens

ask-user-questions

Ask clarifying questions to users via interactive TUI. Use when you need user input on preferences, implementation choices, or ambiguous instructions.

paulp-o/ask-user-questions-mcp · 32 tokens