dependency-guardian

Detect and block reads from dependency folders like node_modules to prevent token waste.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CodeTonight-SA/claude-optim --skill dependency-guardian-codetonight-sa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-guardian
Source: https://github.com/CodeTonight-SA/claude-optim/tree/main/skills/dependency-guardian
Command: npx skills add https://github.com/CodeTonight-SA/claude-optim --skill dependency-guardian-codetonight-sa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI models can waste significant tokens by inadvertently reading from large dependency folders like node_modules/ or venv/, which contain irrelevant code for most tasks. This skill prevents such wasteful operations, optimizing token usage and improving efficiency.

Core Features & Use Cases

  • Dependency Folder Detection: Identifies attempts to read from common dependency directories.
  • Token Waste Prevention: Blocks or warns against operations that would consume excessive tokens on ignored files.
  • Efficiency Audit: Integrates with self-improvement cycles to track and reduce token waste from dependency reads.
  • Use Case: You are working on a project and want to ensure the AI doesn't waste tokens by scanning node_modules/ during a search operation.

Quick Start

"Prevent me from reading any files within dependency folders like node_modules." "Ensure token efficiency by guarding against irrelevant file reads."