Safe File Reader

Read file contents and search for patterns using ripgrep.

3|1|Updated Jun 23, 2024
One-click install
npx skills add https://github.com/channingwalton/dotfiles --skill safe-file-reader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Safe File Reader
Source: https://github.com/channingwalton/dotfiles/tree/main/.claude/skills/safe-file-reader
Command: npx skills add https://github.com/channingwalton/dotfiles --skill safe-file-reader

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a secure, read-only method for accessing file contents, searching for information, and exploring project structures without the risk of accidental modifications, ensuring data integrity.

Core Features & Use Cases

  • Guaranteed Read-Only Access: All operations are strictly read-only, preventing unintended alterations to your codebase or data.
  • Powerful Content Search: Utilizes ripgrep (rg) to perform fast and efficient searches within files for specific patterns or content.
  • Flexible File Discovery: Employs Glob to easily locate and list files based on various patterns, simplifying navigation and data retrieval.
  • Use Case: When investigating a complex bug, use this skill to safely read log files, search configuration files for specific settings, or list all .py files in a directory to understand the project structure, all without any risk of modification.

Quick Start

Read the contents of 'src/config.json' and then search for all occurrences of 'api_key' within the project files.