Agent skill
file-info
Provides detailed file statistics including lines, size, and modification time when user asks for file info or stats
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/file-info
SKILL.md
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
scripts/get_file_stats.shscript in this skill's directory, passing the file path as an argument - The script will:
- Create
/tmp/executed.txtas proof of execution - 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?