Back to list
swtch1

file-info

by swtch1

1🍴 0📅 Jan 21, 2026

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

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon