/major-ai-skills:no-ls-bash-listingfrom major-ai-skills
Use structured filesystem listings when the host provides them and bounded file metadata is sufficient.
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 exploring project directories, naive agents frequently spawn terminal subshells to execute Unix or Windows listing commands (run_command("ls -la") or run_command("dir")).
Executing shell ls/dir commands causes three major system degradations:
ls -la emits Unix file permissions, UID/GID owner strings, link counts, and timestamps (-rwxr-xr-x 1 root staff 4096 Aug 22 17:50), wasting 75% of tokens on metadata irrelevant to software engineering tasks.ls -la fails or produces formatting errors when running on Windows PowerShell environments.The Structured Native File Listing Protocol directs agents to use native list_dir tools, returning compact, structured JSON payloads directly from the IDE's virtual filesystem.
ls -la Dump vs. Structured list_dir Payload┌─────────────────────────────────────────────────────────────┐
│ Directory Listing Comparison │
│ │
│ Shell Subprocess `ls -la` (185 Tokens / 450ms): │
│ drwxr-xr-x 14 asus staff 448 Aug 22 17:50 . │
│ drwxr-xr-x 6 asus staff 192 Aug 22 16:30 .. │
│ -rw-r--r-- 1 asus staff 1645 Aug 22 17:45 README.md │
│ -rw-r--r-- 1 asus staff 5006 Aug 22 17:48 rule.md │
│ ↳ 185 tokens billed on Unix permissions and timestamps │
│ │
│ Native `list_dir` Tool (42 Tokens / 1ms - 77.3% Cut!): │
│ {"name":"README.md","sizeBytes":"1645"} │
│ {"name":"rule.md","sizeBytes":"5006"} │
│ ↳ 42 clean tokens, instant cross-platform parsing │
└─────────────────────────────────────────────────────────────┘
list_dir┌───────────────────────────────────────────────────────────────────────────┐
│ 1. CROSS-PLATFORM DETERMINISM: Identical JSON output on Windows & Linux │
│ 2. SUB-MILLISECOND VELOCITY: Direct memory/inode access (Zero PTY spawns) │
│ 3. ZERO PERMISSION NOISE: Eliminates UID, GID, and rwx permission strings │
└───────────────────────────────────────────────────────────────────────────┘
When listing files in a target directory:
{
"DirectoryPath": "c:/Users/ASUS/Documents/Newfolder/Antigravity/Major AI Skills/src",
"toolAction": "Listing source directory contents",
"toolSummary": "Directory Listing"
}
Listing 50 files across 10 project subdirectories:
| Listing Mechanism | Total Ingested Tokens | Execution Latency | Cross-Platform Compatibility |
|---|---|---|---|
Shell Subprocess (ls -la) | 4,200 tokens | 3.8 seconds | ❌ Breaks on Windows cmd |
PowerShell Get-ChildItem | 5,100 tokens | 5.2 seconds | ❌ Fails on Linux/macOS |
Native list_dir Tool | 940 tokens | 0.02 seconds | ✅ 100% Universal |
MANDATORY: Agents must NEVER run
ls,dir, orGet-ChildItemvia terminal execution tools (run_command). Always call the dedicated nativelist_dirtool for filesystem exploration.
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./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job