Skip to content
Skills Library
AI & agents · Learning & explanation

cato-efficiency

/cato-efficiency

CATO's rules for saving tokens while navigating and reading code, including with Serena, Graphify, ast-grep and GitHub MCP. Use when exploring a repository, reading large files, or when the conversation's context is already large.

Repository
cato-plugin ↗
Licence
MIT
Last repository change
12.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

CATO's rules for saving tokens while navigating and reading code, including with Serena, Graphify, ast-grep and GitHub MCP. Use when exploring a repository, reading large files, or when the conversation's context is already large.

Original author description

CATO's rules for saving tokens while navigating and reading code, including with Serena, Graphify, ast-grep and GitHub MCP. Use when exploring a repository, reading large files, or when the conversation's context is already large.

How it works

  1. Pick the most precise tool available
  2. Rules
Original SKILL.md headings · 32 lines, 452 words
SKILL.md preview
---
name: cato-efficiency
description: CATO's rules for saving tokens while navigating and reading code, including with Serena, Graphify, ast-grep and GitHub MCP. Use when exploring a repository, reading large files, or when the conversation's context is already large.
---

# Token efficiency with CATO

Every turn's cost is the whole context re-read. Whatever enters the context stays there until /compact or /clear.

## Pick the most precise tool available

| For | Use first | If not available |
|---|---|---|
| Project overview | `graphify-out/GRAPH_REPORT.md` (Graphify) | `mcp__cato__repo_map` |
| Where a concept appears and what it connects to | `mcp__cato__graph_query` (Graphify) | `mcp__cato__repo_map` with `focus` |
| Reading a class/function | Serena's `find_symbol` with `include_body: true` | `mcp__cato__read_symbol` |
| A file's structure | Serena's `get_symbols_overview` | `Read` with `offset`/`limit` on the repo_map's `[L<start>-L<end>]` |
| Who uses a symbol | Serena's `find_referencing_symbols` | `mcp__cato__structural_search` |
| A code pattern (call, decorator, hook) | `mcp__cato__structural_search` (ast-grep) | Grep |
| Free text | Grep | — |

## Rules

1. **Surgical reads:** in files over 300 lines, never read the whole file; use the tools above or `Read` with `offset` and `limit`.
2. **No re-reads:** do not read a file that is already in the context again unless it changed.
3. **Broad searches in a subagent:** delegate to `cato-explorer` when you need to search many unknown files; only the conclusion comes back.
4. **Serena:** CATO applies an answer limit when you don't pass `max_answer_chars`. If Serena says the answer went over the limit, narrow the request (`relative_path`, `depth`, `include_body: false`) instead of raising the limit.
5. **GitHub MCP:** ask only for what you need: `fields` (no `body` when not needed), `perPage`, `detail: "none"` on `get_commit`, `failed_only`/`tail_lines` on `get_job_logs`. CATO strips API-only fields from the JSON.
6. **Graphify:** do not read `graphify-out/graph.json` (CATO denies it); use the report or `graph_query`.
7. **Large output:** compressed output carries `#cmd_xxxxxxxx` and large MCP responses carry `#sbx_xxxxxxxx`. Search them with `mcp__cato__search_sandbox` instead of running again. When the output warns "⚠ N error lines not shown", the errors are in the log: search for the failure term before concluding anything.
8. **Verbose output in a subagent:** a full test suite, long logs and lengthy documentation stay in the subagent's context; only the summary comes back.
9. **CLI before MCP:** when a CLI exists (`gh`, `aws`, `gcloud`), it adds no tool definitions to the context.
10. **Abandoned path:** to drop an attempt, suggest `/rewind` ("Summarize from here"), which returns to a prefix already in the cache; `/compact` is for natural breaks, and `/clear` for switching tasks (with `/rename` first, to find the session later).
11. **Concise answers:** do not reprint code that was already written; cite `file:line`.
12. **Cost:** `/cato` shows the real recorded cost, cache misses, tokens saved and what would save the most; `/cato-doctor` points out settings that spend context; `/cato-import` adds the sessions from before the install. CATO writes these in the user's language.

Versions

The database has no other skills named cato-efficiency.

Database snapshot: 13.11.2026 · package version 228978d8118a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90token-optimization
    Use the token-optimizer MCP tools to reduce context/token usage when reading, searching, or editing files, or when the context window is filling up. Trigger when reading large files, re-reading files already seen, searching a big/unknown tree, making edits to large files, or…
  • 100graphify-agents
    Use a graphify knowledge graph to give agents low-token codebase context — query the graph instead of reading raw files during research, decomposition, and impact analysis. Use when wiring graphify into an agent-loop, an Explore/research subagent, or an MCP-enabled agent, or…
  • 90agency-token-budget
    Token-saving operating rules for agency work in any agent (Cursor, Claude Code, Codex, …). Use when optimizing spend/context, planning multi-agent runs, choosing explore vs graphify, or when the user asks to save tokens / reduce context usage. Also use when an agency run risks…
  • 93serena-usage
    Serena MCP for project memory and code navigation. Use when managing Serena memories, navigating symbols, performing intelligent refactoring, or maintaining context/continuity across AI agent sessions.
  • 95token-efficiency
    Reduce token waste — avoid redundant reads, duplicate searches, unnecessary tool calls. Use when planning tool usage or when context is getting large.
  • 90cctoken-saverr
    Keeps Claude Code's context window small so every turn costs fewer cache-read and cache-write tokens, without losing important context. Use this skill at the start of any coding session, and whenever exploring a codebase, reading files, running commands with long output,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.