loop-action-efficiency

loop-action-efficiency is a skill for Claude Code, Codex from rebel0789/Memory-Recall. It costs 0 tokens per session (305 once invoked), scanned A, original, Apache-2.0.

A workflow skill for keeping each coding-loop action small, reusable, and measurable. It tells the agent to look for existing project helpers, tests, documents, and generated files before creating new code.

In plain words
What is it for?
Use it to choose existing project primitives, make the smallest suitable edit, state the validation command, and report changed files and diff size.
Why use it?
It reduces unnecessary new code and keeps changes within the planned file and validation boundaries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/rebel0789/memory-recall/loop-action-efficiency
Any agent
npx skills add rebel0789/Memory-Recall --skill loop-action-efficiency
Clone the repo
git clone --depth 1 https://github.com/rebel0789/Memory-Recall

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 loop-action-efficiency

README.md
[![agentmods](https://agentmods.dev/badge/skills/rebel0789/memory-recall/loop-action-efficiency.svg)](https://agentmods.dev/skills/rebel0789/memory-recall/loop-action-efficiency)
Your own site
<a href="https://agentmods.dev/skills/rebel0789/memory-recall/loop-action-efficiency"><img src="https://agentmods.dev/badge/skills/rebel0789/memory-recall/loop-action-efficiency.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 305 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.00000 $0.00305
Opus 5 $0.00000 $0.00152
Sonnet 5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

loop-action-efficiency 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/loop-action-efficiency/SKILL.md · 34 lines

What it actually says

Loop Action Efficiency

Purpose

Keep each loop action small, reused, and measurable. Use existing repo contracts, helpers, tests, docs, and generated artifacts before creating new code.

Procedure

  1. Restate the current loop action and stop condition in one sentence.
  2. Search for the nearest existing primitive, fixture, script, schema, or UI model that already covers the behavior.
  3. Follow the laziness ladder in order: reuse an existing primitive, adapt the nearest boundary, make the smallest coherent edit, and generate new code only when the first three options do not satisfy the plan.
  4. Before writing, name the expected file boundary and the validation command.
  5. After writing, report measured effect only: changed files, diff size, and any available contextBudget values. Do not claim provider billing savings.

Guardrails

  • The skill is instruction-only and read-only. It never grants write authority.
  • Do not add dependencies, adapters, daemons, schedulers, or framework layers.
  • Do not broaden filesystem, network, approval, memory, or policy scope.
  • Stop when the next action is outside the loop plan or needs human review.

Completion

Return skill:loop-action-efficiency, status, action ladder, reused primitive, changed boundary, validation result, measured contextBudget or "unestimated", residual risk, rollback, and confirmation that no write authority was granted by the skill itself.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 34 lines · 0 tokens per session scan A 94e3a764337c

Subscribe to this mod's changes

loop-action-efficiency is a skill published in the GitHub repository rebel0789/Memory-Recall (8 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 305 tokens. 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-09-04.

Related

Other skills, from other repositories