03-tool-usage

03-tool-usage is a cursor rule for Cursor from Bilal140202/the-lord-of-the-skills. It costs 905 tokens per session, scanned A, a copy of 03-tool-usage, MIT.

A guide to choosing tools for finding files, searching text, understanding code, and editing a repository.

In plain words
What is it for?
Use it when navigating a codebase, locating rules, searching exact text, finding files, or editing known paths.
Why use it?
It reduces wasted time and avoids using the wrong search method for a task.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when navigating a codebase, locating rules, searching exact text, finding files, or editing known paths.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bilal140202/the-lord-of-the-skills/03-tool-usage
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.

Clone the repo
git clone --depth 1 https://github.com/Bilal140202/the-lord-of-the-skills

Made for: Cursor.

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 03-tool-usage

README.md
[![agentmods](https://agentmods.dev/badge/rules/bilal140202/the-lord-of-the-skills/03-tool-usage/github.svg)](https://agentmods.dev/rules/bilal140202/the-lord-of-the-skills/03-tool-usage)
Your own site
<a href="https://agentmods.dev/rules/bilal140202/the-lord-of-the-skills/03-tool-usage"><img src="https://agentmods.dev/badge/rules/bilal140202/the-lord-of-the-skills/03-tool-usage/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 03-tool-usage

Your own site · 80×15
<a href="https://agentmods.dev/rules/bilal140202/the-lord-of-the-skills/03-tool-usage"><img src="https://agentmods.dev/badge/rules/bilal140202/the-lord-of-the-skills/03-tool-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 905 This file is loaded in full into every session.
When invoked 905 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00905 $0.00905
Opus 5 $0.00452 $0.00452
Sonnet 5 $0.00181 $0.00181
Haiku 4.5 $0.00090 $0.00090

Measured 9d ago against content hash ab815338f47a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

03-tool-usage 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 9d 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.

Origin

This is a copy

100% identical to 03-tool-usage — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/gondor/cursor/Renvia-code__best-cursor-rules/03-tool-usage.mdc · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tool Usage for This Repository

Tool Selection Strategy

codebase_search (Semantic Search)

When to use:

  • Finding rules by topic or concept
  • Understanding how similar rules are structured
  • Discovering patterns across multiple rules

Examples:

✅ "How do other rules handle React patterns?"
✅ "What's the structure for backend rules?"
✅ "Find rules related to testing"

Don't use for:

❌ Finding specific file names (use glob_file_search)
❌ Exact text matches (use grep)
❌ Known file paths (use read_file)

grep (Exact Text Search)

When to use:

  • Finding specific patterns in rules
  • Locating frontmatter fields
  • Finding all rules with certain globs

Examples:

✅ grep("alwaysApply: true")      # Find always-on rules
✅ grep("globs:.*\\.tsx")         # Find TypeScript rules
✅ grep("## Common Mistakes")     # Find rules with this section

glob_file_search (Find Files)

When to use:

  • Listing all rules in a category
  • Finding rules by name pattern
  • Getting file counts

Examples:

✅ glob_file_search("rules/frameworks/*.mdc")
✅ glob_file_search("**/*react*.mdc")
✅ glob_file_search("rules/**/*.mdc")

read_file (Direct Access)

When to use:

  • Reading a specific rule file
  • Checking rule format/structure
  • Reviewing before editing

Examples:

✅ read_file("rules/frameworks/nextjs-15.mdc")
✅ read_file(".cursor/rules/01-rule-format.mdc")

Parallel Operations

✅ DO: Read multiple rules at once

// When comparing or reviewing multiple rules
read_file('rules/frameworks/nextjs-15.mdc')
read_file('rules/frameworks/react-19.mdc')
read_file('rules/backends/supabase.mdc')
// All execute in parallel

❌ DON'T: Read sequentially when independent

// Slow - waits between each
read_file('rules/frameworks/nextjs-15.mdc')
// wait...
read_file('rules/frameworks/react-19.mdc')
// wait...

Common Tasks

Adding a new rule

1. glob_file_search("rules/{category}/*.mdc")  # See existing
2. read_file(".cursor/rules/01-rule-format.mdc")  # Check format
3. read_file("rules/{category}/similar-rule.mdc")  # Reference
4. write("rules/{category}/new-rule.mdc", content)

Read the full file on GitHub · 167 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. 9d ago First seen · 167 lines · 905 tokens per session scan A ab815338f47a

Subscribe to this mod's changes

03-tool-usage is a cursor rule published in the GitHub repository Bilal140202/the-lord-of-the-skills (4 stars, last pushed 6d ago), licensed MIT. It adds 905 tokens to every session, about $0.0045 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to 03-tool-usage, differing in 0 lines, and is treated as a copy.