Remote OpenClaw
Menu
SkillsMCPPluginsFree guideDigestSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise
Remote OpenClaw
SkillsMCPPluginsFree guideDigestSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise

Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
Skills/delphine-l/claude_global/token-efficiency
token-efficiency logo

token-efficiency

delphine-l/claude_global
2K installs15 stars
Run it on Hostinger →up to 70% off + an extra 10% with code ZACAARON10Free API →

Installation

npx skills add https://github.com/delphine-l/claude_global --skill token-efficiency

Summary

Token optimization best practices for cost-effective Claude Code usage. Automatically applies efficient file reading, command execution, and output handling strategies. Includes model selection guidance (Opus for learning, Sonnet for development/debugging). Prefers bash commands over reading files.

SKILL.md

Token Efficiency Expert

This skill provides token optimization strategies for cost-effective Claude Code usage across all projects. These guidelines help minimize token consumption while maintaining high-quality assistance.

Core Principle

ALWAYS follow these optimization guidelines by default unless the user explicitly requests verbose output or full file contents.

Default assumption: Users prefer efficient, cost-effective assistance.

---

Model Selection Strategy

Use the right model for the task to optimize cost and performance:

Opus - For Learning and Deep Understanding

Use Opus when:

  • Learning new codebases - Understanding architecture, code structure, design patterns
  • Broad exploration - Identifying key files, understanding repository organization
  • Deep analysis - Analyzing complex algorithms, performance optimization
  • Reading and understanding - When you need to comprehend existing code before making changes
  • Very complex debugging - Only when Sonnet can't solve it or issue is architectural

Sonnet - For Regular Development Tasks (DEFAULT)

Use Sonnet (default) for:

  • Writing code, editing and fixing, debugging, testing, documentation, deployment, general questions

Typical session pattern:

  1. Start with Opus - Spend 10-15 minutes understanding the codebase (one-time investment)
  2. Switch to Sonnet - Use for ALL implementation, debugging, and routine work
  3. Return to Opus - Only when explicitly needed for deep architectural understanding

Savings: ~50% token cost vs all-Opus usage.

---

Skills and Token Efficiency

Myth: Having many skills in .claude/skills/ increases token usage.

Reality: Skills use progressive disclosure - Claude sees only skill descriptions at session start (~155 tokens for 4 skills). Full skill content loaded only when activated.

It's safe to symlink multiple skills to a project. Token waste comes from reading large files unnecessarily, not from having skills available.

---

Token Optimization Rules (Quick Reference)

1. Use Quiet/Minimal Output Modes

Use --quiet, -q, --silent flags by default. Only use verbose when user explicitly asks.

2. NEVER Read Entire Log Files

Always filter before reading: tail -100, grep -i "error", specific time ranges.

3. Check Lightweight Sources First

Check git status --short, package.json, requirements.txt before reading large files.

4. Use Grep Instead of Reading Files

Search for specific content with Grep tool instead of reading entire files.

5. Read Files with Limits

Use offset and limit parameters. Check file size with wc -l first.

6. Use Bash Commands Instead of Reading Files

CRITICAL OPTIMIZATION for pure transformations and inspection. Reading files costs tokens; bash commands don't.

OperationWastefulEfficient
Copy fileRead + Writecp source dest
Replace textRead + Editsed -i '' 's/old/new/g' file
AppendRead + Writeecho "text" >> file
Delete linesRead + Writesed -i '' '/pattern/d' file
Merge filesRead + Read + Writecat file1 file2 > combined
Count linesRead filewc -l file
Check contentRead filegrep -q "term" file
Inspect JSONRead + parse mentallypython3 -c "import json; ..." or jq

When to break this rule — prefer Read + Edit instead:

  • Code edits (.py, .js, .xml, .ga, .tsx, etc.) where the user benefits from seeing a reviewable diff. The cost of reading a small file is worth the reviewability.
  • Validation matters — when a syntactic mistake would corrupt the file (workflow JSON, config schemas).
  • Interactive review — the user explicitly wants to see what changed.

The right framing is scope-based (see next section), not "always bash" or "always Read+Edit". For more detailed strategies and patterns, see strategies.md.

7. Filter Command Output

Limit scope: head -50, find . -maxdepth 2, tree -L 2.

8. Summarize, Don't Dump

Provide structured summaries of directory contents, code structure, command output.

9. Use Head/Tail for Large Output

head -100, tail -50, sample from middle with head -500 | tail -100.

10. Use JSON/Data Tools Efficiently

Extract specific fields: jq '.metadata', jq 'keys'. For CSV: head -20, wc -l.

11. Optimize Code Reading

Get overview first (find, grep for classes/functions), read structure only, search for specific code, read only relevant sections.

12. Use Task Tool for Exploratory Searches

Use Task/Explore subagent for broad codebase exploration. Saves 70-80% tokens vs direct multi-file exploration.

13. Efficient Scientific Literature Searches

Batch 3-5 related searches in parallel. Save results immediately. Document "not found" items.

For detailed strategies, bash patterns, and extensive examples, see strategies.md.

---

Scope-Based Tool Selection

The choice between bash and Read+Edit isn't about token cost alone — it's about whether the user benefits from seeing the change. Match the tool to the scope of work:

ScopePreferred toolWhy
Read-only inspection of structured data (JSON, YAML, JSONL, large logs)python3 -c, jq, grep, awkBash output is filterable; no risk of misediting source files. Inline python3 -c for JSON inspection is faster and cheaper than Read+parse.
In-place edit of CODE (.py, .js, .xml, .ga, .tsx)Read + EditUser sees a reviewable diff; syntactic mistakes are caught early.
Transformation of large data files (CSV, big JSON, BAM-derived TSV)sed, awk, python3 scriptReading the whole file would cost thousands of tokens.
New file from scratchWrite toolOne round-trip; bash heredocs add no value and aren't reviewable.

Quick rule: if the user would want to see and approve the change, use Read+Edit. If it's pure data wrangling or inspection, use bash/python.

Decision Tree for File Operations

Ask yourself:

  1. Creating new file? -> Write tool
  2. Low-cost operation (< 100 lines output)? -> Use Claude context directly
  3. Modifying code file (.py, .js, .xml)? -> Read + Edit (always)
  4. Modifying small data file (< 100 lines)? -> Read + Edit is fine
  5. Modifying critical data (genome stats, enriched tables)? -> bash + log file
  6. Modifying large data file? -> sed/awk
  7. Copying/moving files? -> cp/mv

---

When to Override These Guidelines

Override efficiency rules when:

  1. User explicitly requests full output ("Show me the entire log file")
  2. Filtered output lacks necessary context (error references missing line numbers)
  3. File is known to be small (< 200 lines)
  4. Learning code structure and architecture - Prioritize understanding over efficiency

In learning mode:

  • Read 2-5 key files fully to establish understanding
  • Use grep to find other relevant examples
  • Summarize patterns found across many files
  • After learning phase, return to efficient mode for implementation
  • For detailed learning mode strategies, see learning-mode.md

In cases 1-3, explain token cost to user and offer filtered view first.

---

Quick Reference Card

Model Selection (First Priority):

  • Learning/Understanding -> Use Opus
  • Development/Debugging/Implementation -> Use Sonnet (default)

Before ANY file operation, ask yourself:

  1. Am I creating a NEW file? -> Write tool directly
  2. Is this a LOW-COST operation? (< 100 lines) -> Use Claude context directly
  3. Am I modifying a CODE file? -> Read + Edit (always)
  4. Am I modifying a SMALL data file? (< 100 lines) -> Read + Edit is fine
  5. Am I modifying CRITICAL DATA? -> bash + log file
  6. Am I modifying a LARGE data file? -> bash commands (99%+ savings)
  7. Am I copying/merging files? -> cp/cat, not Read/Write
  8. Can I check metadata first? (file size, line count)
  9. Can I filter before reading? (grep, head, tail)
  10. Can I read just the structure? (first 50 lines, function names)
  11. Can I summarize instead of showing raw data?
  12. Does the user really need the full content?

---

Cost Impact

ApproachTokens/WeekNotes
Wasteful (Read/Edit/Write everything)500KReading files unnecessarily
Moderate (filtered reads only)200KGrep/head/tail usage
Efficient (bash commands + filters)30-50KUsing cp/sed/awk instead of Read

Applying these rules reduces costs by 90-95% on average.

---

Implementation

This skill automatically applies these optimizations when:

  • Reading log files
  • Executing commands with large output
  • Navigating codebases
  • Debugging errors
  • Checking system status

You can always override by saying:

  • "Show me the full output"
  • "Read the entire file"
  • "I want verbose mode"
  • "Don't worry about tokens"

---

Supporting Files

FileContentWhen to load
strategies.mdDetailed bash command strategies, file operation patterns, sed/awk examples, Jupyter notebook manipulation, safe glob patterns, macOS/Linux compatibilityWhen implementing specific file operations or need detailed bash patterns
learning-mode.mdStrategic file selection, targeted pattern learning workflows, broad repository exploration strategies, repository type identificationWhen entering learning mode or exploring a new codebase
examples.mdExtensive token savings examples with before/after comparisons, targeted learning examples (Galaxy wrappers, API patterns), cost calculationsWhen demonstrating token savings or learning from examples
project-patterns.mdAnalysis file organization, task management with TodoWrite, background process management, repository organization, MANIFEST system, efficient file operationsWhen organizing projects, managing long-running tasks, or setting up navigation patterns

---

Summary

Core motto: Right model. Right tool. Filter first. Read selectively. Summarize intelligently.

Model selection (highest impact):

  • Use Opus for learning/understanding (one-time investment)
  • Use Sonnet for development/debugging/implementation (default)

Tool selection (primary optimization):

  • Creating NEW files -> Write tool directly
  • LOW-COST operations (< 100 lines) -> Claude context directly
  • Modifying CODE files -> Read + Edit (always)
  • Modifying SMALL data files (< 100 lines) -> Read + Edit is fine
  • Modifying LARGE data files -> bash commands (sed, awk, grep)
  • Modifying CRITICAL DATA -> bash commands + log file
  • Complex edits -> Read + Edit tools

Secondary rules:

  • Filter before reading (grep, head, tail)
  • Read with limits when needed
  • Summarize instead of showing raw output
  • Use quiet modes for commands
  • Strategic file selection for learning

By following these guidelines, users can get 5-10x more value from their Claude subscription while maintaining high-quality assistance.

Score

0–100
63/ 100

Grade

C

Popularity15/30

1,534 installs — growing adoption.

Completeness27/30

Documented: full SKILL.md body, description, one-line install. Missing: category/license metadata.

Trust15/25

Community skill with a public GitHub source repository you can review.

Freshness6/15

No update timestamp is tracked for this skill in our catalog.

Scored automatically from popularity, completeness, trust, and freshness — computed only from data in our catalog, never fabricated.

Proud of your score? Add this badge to your README.

Paste a snippet into your GitHub README. The badge updates automatically and links back to this page.

Token Efficiency skill score badge previewScore badge

Markdown

[![Token Efficiency skill](https://www.remoteopenclaw.com/skills/delphine-l/claude_global/token-efficiency/badges/score.svg)](https://www.remoteopenclaw.com/skills/delphine-l/claude_global/token-efficiency)

HTML

<a href="https://www.remoteopenclaw.com/skills/delphine-l/claude_global/token-efficiency"><img src="https://www.remoteopenclaw.com/skills/delphine-l/claude_global/token-efficiency/badges/score.svg" alt="Token Efficiency skill"/></a>

Token Efficiency FAQ

How do I install the Token Efficiency skill?

Run “npx skills add https://github.com/delphine-l/claude_global --skill token-efficiency” in your terminal. The skill is added to your agent's skills directory and picked up automatically on the next run — no restart or extra configuration needed.

What does the Token Efficiency skill do?

Token optimization best practices for cost-effective Claude Code usage. Automatically applies efficient file reading, command execution, and output handling strategies. Includes model selection guidance (Opus for learning, Sonnet for development/debugging). Prefers bash commands over reading files. The full SKILL.md on this page shows the exact instructions the skill gives your agent.

Is the Token Efficiency skill free?

Yes. Token Efficiency is a free, open-source skill published from delphine-l/claude_global. As with any third-party skill, review the source repository before installing it into an agent with sensitive access.

Does Token Efficiency work with Claude Code and OpenClaw?

Yes. Skills use the portable SKILL.md format, so Token Efficiency works with Claude Code, OpenClaw, Codex, Hermes, and any other agent that reads SKILL.md skills.

Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
View on GitHub

Recommended skills

Browse all →
find-skills logo

find-skills

vercel-labs/skills

2.7M installsInstall
frontend-design logo

frontend-design

anthropics/skills

720K installsInstall
grill-me logo

grill-me

mattpocock/skills

701K installsInstall
agent-browser logo

agent-browser

vercel-labs/agent-browser

596K installsInstall
grill-with-docs logo

grill-with-docs

mattpocock/skills

594K installsInstall
vercel-react-best-practices logo

vercel-react-best-practices

vercel-labs/agent-skills

591K installsInstall

Browse

Skills by category

Frontend250Git198Data154Testing120Design105Docs103Security96Automation87Backend76Devops37Productivity29Mcp23

Related guides

Hand-picked reading to help you choose, install, and use agent skills.

Guide10 Openclaw Skills Every Nextjs Developer NeedsGuideHow To Debug Openclaw Skills Not WorkingGuideBest Openclaw Skills 2026

Remote OpenClaw

AI agent skills directory, marketplace, and workflow hub for OpenClaw, Hermes Agent, Claude Code, Codex, and MCP-powered operator stacks.

The Agent Stack: weekly agent tooling digest, free.

Explore

  • Home
  • Skills Directory
  • Claude Code Skills
  • Codex Skills
  • MCP Clients
  • Marketplace
  • Hermes Ecosystem
  • Free guide
  • Learn
  • OpenClaw for Creators
  • OpenClaw for Founders
  • Blog
  • The Agent Stack (Digest)

More

  • Submit a Tool
  • Advertise
  • Playbook
  • Free Tools
  • API
  • Shipping
  • Contact
  • Terms
  • Privacy

Know a company that should advertise here? Refer them and earn 10% — up to $300 per referral.

© 2026 Remote OpenClaw
Fazier badgeFeatured on Twelve ToolsFeatured on Wired BusinessRemote OpenClaw - Featured on AI Agents DirectoryListed on Turbo0Featured on Uneed