Skip to content
Back to skills

File Info

ASecurity

Provides detailed file statistics including lines, size, and modification time when user asks for file info or stats

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
toolsgo

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill file-info --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Info?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for File Info
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-file-info/badge)](https://www.skillsdirectory.com/skills/majiayu000-file-info)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: file-info
description: Provides detailed file statistics including lines, size, and modification time when user asks for file info or stats
---

# 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

1. Get the file path from the user's request
2. Run the `scripts/get_file_stats.sh` script in this skill's directory, passing the file path as an argument
3. The script will:
   - Create `/tmp/executed.txt` as proof of execution
   - Gather file statistics (lines, size, modification time)
   - Handle both files and directories
4. 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.