skills/precision-reading/SKILL.md
Read files surgically — grep first to find relevant sections, then read only those lines with offset+limit. Prevents loading entire 2000-line files when only 5-20 lines matter. Always-on efficiency skill that reduces token consumption without losing any information. Makes file reading targeted rather than exhaustive.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers precision-readingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Load only what you need. Never read an entire file when you can target the exact lines.
This skill shapes every file read. Before using the Read tool, ask: "Do I need the whole file, or just a section?"
Before reading any file, classify your intent:
| Intent | Strategy | |--------|----------| | Understanding overall structure | Grep for key patterns (class/function defs, exports, routes), then read selectively | | Finding a specific function/class | Grep for the name first, get line number, then Read with offset+limit | | Understanding how something is used | Grep for imports/references across files, read only the matching sections | | Editing a known section | If you already know what to change, Read with offset+limit around that area | | First time seeing a file | Read the first 50-100 lines to understand structure, then target from there | | Small file (<100 lines) | Just read the whole thing — the overhead of grep+targeted-read isn't worth it |
Instead of:
Read(file_path="/path/to/big-file.js") # Loads all 2000 lines = expensive
Do:
Grep(pattern="function calculateScore", path="/path/to/big-file.js", output_mode="content", -C=5)
# Found at line 847 with 5 lines context
Read(file_path="/path/to/big-file.js", offset=840, limit=50)
# Loads only lines 840-890 = cheap
When searching across a codebase, use Grep with files_with_matches first to find WHICH files matter, then read targeted sections from those files only.
Instead of reading 10 files fully:
Grep(pattern="dispensary", path="frontend/src/", output_mode="files_with_matches")
# Returns: 3 files
# Then read only relevant sections from those 3 files
| File Size | Strategy | |-----------|----------| | < 100 lines | Read whole file — not worth optimizing | | 100-500 lines | Read whole file if you need broad understanding; grep+target if you need specific section | | 500-1000 lines | Always grep first, then targeted read | | 1000+ lines | ALWAYS grep first. Never read the whole thing unless you genuinely need it all |
Grep(pattern="targetName", path="file_or_dir", output_mode="content", -C=3)
→ If context is sufficient, done. If not, Read(offset=matched_line - 5, limit=50)
Applies to: function definitions, imports/exports, call sites, config values. Grep with context lines is usually enough without a full file read.
tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.