/major-ai-skills:zero-cat-bash-preventionfrom major-ai-skills
Use bounded native file readers when available to inspect source with line numbers and relevant context.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When inspecting a file on disk (e.g., src/services/billing.ts), naive agents frequently spawn terminal subprocesses to execute Unix or Windows print commands (run_command("cat src/services/billing.ts") or run_command("type file.ts")).
Using shell cat introduces four major operational failures:
cat outputs raw unnumbered text. The agent cannot accurately determine StartLine or EndLine for downstream replace_file_content edits, causing hallucinated line offsets.cat dumps the entire 2,000-line file into context, burning 15,000+ tokens when the agent only needed to check a 10-line function.cat fails or produces errors on Windows cmd.exe environments.The Zero-Cat Native Inspection Protocol mandates using the native view_file tool, returning 1-indexed line numbers (42: code) with precise [StartLine, EndLine] slice controls.
cat vs. Native view_file Tool┌─────────────────────────────────────────────────────────────┐
│ File Inspection Mechanics │
│ │
│ Shell Subprocess `cat file.ts` (600 Lines / 4,800 Tokens): │
│ import { db } from './db'; │
│ export function query() { ... } │
│ // [595 unindexed lines dumped into context] │
│ ↳ 4,800 tokens billed, 0 line numbers for editing! │
│ │
│ Native `view_file` Tool (30 Lines / 280 Tokens - 94.1% Cut):│
│ 40: export async function chargeCustomer(id: string) { │
│ 41: const customer = await getCustomer(id); │
│ 42: if (!customer) throw new NotFoundError(); │
│ ↳ 280 clean tokens, exact line numbers ready for patching │
└─────────────────────────────────────────────────────────────┘
view_file┌───────────────────────────────────────────────────────────────────────────┐
│ 1. 1-INDEXED LINE NUMBERING: Every line prefixed with `<line_no>: ` │
│ 2. SURGICAL SLICE WINDOWING: `StartLine` and `EndLine` parameters │
│ 3. SUB-MILLISECOND VFS READS: Reads from IDE memory buffer without PTY │
│ 4. CROSS-PLATFORM DETERMINISM: 100% Identical on Windows, macOS, Linux │
└───────────────────────────────────────────────────────────────────────────┘
When inspecting code in Antigravity IDE / Claude Code:
{
"AbsolutePath": "c:/Users/ASUS/Documents/Newfolder/Antigravity/Major AI Skills/src/services/billing.ts",
"StartLine": 40,
"EndLine": 75,
"toolAction": "Inspecting customer billing handler slice",
"toolSummary": "Surgical File View"
}
Inspecting and editing 50 target functions in full-stack repositories:
| Inspection Tool | Ingested Tokens / Inspection | Line Number Indexing | Subsequent Edit Success |
|---|---|---|---|
Shell cat / Get-Content | 4,200 tokens | ❌ None (Unnumbered) | 52% (Frequent line offset errors) |
Native view_file Tool | 310 tokens | ✅ Exact 1-Indexed | 98% (First-pass patch success) |
MANDATORY: Agents must NEVER run
cat,type,head,tail, orGet-Contentvia shell tools (run_command). Always call the dedicated nativeview_filetool with specificStartLineandEndLinearguments.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.