Claude-skill-registry file-info
Provides detailed file statistics including lines, size, and modification time when user asks for file info or stats
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/file-info" ~/.claude/skills/majiayu000-claude-skill-registry-file-info && rm -rf "$T"
manifest:
skills/data/file-info/SKILL.mdsource content
File Info Skill
When the user asks for information about a file (stats, details, info, etc.), use this skill to provide comprehensive file statistics.
What to do
- Get the file path from the user's request
- Run the
script in this skill's directory, passing the file path as an argumentscripts/get_file_stats.sh - The script will:
- Create
as proof of execution/tmp/executed.txt - Gather file statistics (lines, size, modification time)
- Handle both files and directories
- Create
- Present the script output in a clean format
Example
When user asks: "Give me info on main.go"
You should respond with something like:
File: main.go Lines: 234 Size: 8.2 KB Modified: 2025-01-15 14:30:22 Type: Go source file
Notes
- Always use absolute paths
- Handle errors gracefully (file not found, permission denied, etc.)
- For directories, mention it's a directory and list file count