Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Tokenflux

ASecurity

Token and context efficiency discipline for coding work. Use at the start of any coding task that involves exploring a repository, reading files, or running commands — especially in large codebases or long sessions. Gather the minimum context needed to act correctly — search before reading, read targeted ranges, filter command output, avoid redundant reads and tool calls — while never trading correctness for token savings.

3 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsshellnodedebugginggitapisecurity

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add louisnwadike52-design/tokenflux --skill tokenflux --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tokenflux?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Tokenflux
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/louisnwadike52-design-tokenflux/badge)](https://www.skillsdirectory.com/skills/louisnwadike52-design-tokenflux)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: tokenflux
description: Token and context efficiency discipline for coding work. Use at the start of any coding task that involves exploring a repository, reading files, or running commands — especially in large codebases or long sessions. Gather the minimum context needed to act correctly — search before reading, read targeted ranges, filter command output, avoid redundant reads and tool calls — while never trading correctness for token savings.
---

# TokenFlux

Use the minimum context and output needed to complete the task **correctly**. Optimize token efficiency, not token count: a cheap read that prevents a wrong edit is efficient; a skipped read that causes one is not. When token savings and correctness conflict, correctness wins — always.

## Core loop

Search → Identify → Targeted read → Reason → Act.

Before any retrieval, ask:

1. Is this already in context?
2. Can a search replace a read?
3. Can a narrow range replace a full file?
4. Will the output change my next action?

If the answer to 4 is no, skip the call.

## Repository exploration

Discover progressively: structure → relevant directories → relevant files → relevant symbols → implementation.

- Enter through package manifests, entry points, and configuration relevant to the task — not an indiscriminate crawl.
- Never bulk-read: `node_modules`, build/dist output, generated files, lockfiles (unless dependency versions are the question), binaries, images, large logs, caches, unrelated docs.
- No speculative exploration: do not inspect modules "just in case."

## File reading

- Search first (`rg`, `grep`, Grep tool) to locate the symbol; then read a narrow range around the match; widen only when needed.
- Full-file reads are appropriate for small files, or when whole-file understanding genuinely matters (refactors, reviews, tricky state).
- Prefer targeted shell filters (`rg -n`, `sed -n '120,180p'`) over dumping whole files.

## Tool calls

- Skip calls whose output will not change your next action.
- Batch independent lightweight operations into one step.
- Use the cheapest sufficient source: existing context → search → targeted read → full read.
- Do not repeat a call whose result is already known and unchanged.

## Command output

- Prefer quiet forms: `git status --short`, `git log --oneline -20`, `--reporter=dot`, `--silent` where safe.
- Filter at the source: `| head`, `| tail`, `rg pattern`, redirect known noise.
- After test runs, inspect failures — not passing logs.
- Never suppress or truncate errors needed for debugging.

## Context reuse

- Track what you have already established (file locations, symbols, decisions) and reuse it.
- Do not reread an unchanged file to reconfirm a known fact. Reread only if: the file changed, your memory of it is uncertain, or more detail is genuinely required.

## Context priority

- **P0 — never drop:** user requirements, explicit constraints, security requirements, API contracts, active errors and test failures, current implementation decisions.
- **P1 — preserve:** relevant architecture, source, interfaces, data models, dependencies, task state.
- **P2 — compressible:** supporting details, exploration history, secondary docs.
- **P3 — droppable:** repeated explanations, unrelated files, stale command output, redundant observations.

When working notes grow repetitive, compress them into a compact map (`auth: service src/auth/service.ts · middleware src/auth/jwt.ts · strategy JWT`) — but never compress away implementation-critical detail.

## Modes

If the project has a `.tokenflux.json`, honor its `"mode"` (and other preferences); otherwise use `balanced`.

- `balanced` — cut obvious waste; when in doubt, gather the context.
- `aggressive` — also trim marginal reads and redundant tool output; still verify anything correctness-critical.
- `maximum` — minimum viable context wherever it is safe; correctness checks remain mandatory.

## Safety

Never do any of the following to save tokens: skip validation or tests; guess instead of reading required code; ignore security-relevant information; hide, trim, or soften errors; drop user requirements or constraints; modify files merely to shrink context. When uncertainty materially affects correctness, retrieve more context — that is the efficient move.

## Anti-patterns

- `cat huge-file.ts` to find one function → `rg -n "functionName" huge-file.ts`, then read that range.
- Reading the whole repository tree before knowing what the task needs.
- Rereading a file you just wrote or edited yourself.
- Pasting a full verbose command dump when one filtered line answers the question.
- Skipping the one read that would confirm an API signature before using it.

Attribution

louisnwadike52-designlouisnwadike52-design
View sourceMore from louisnwadike52-design →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →