AgentSkillsCN

file-analyzer

分析文件并提取有用信息,包括统计、类型检测和代码结构

SKILL.md
--- frontmatter
name: file-analyzer
description: Analyze files and extract useful information including statistics, type detection, and code structure
license: MIT
compatibility: opencode
metadata:
  category: file-analysis
  audience: developers

What I do

  • Analyze file statistics (size, lines, words, characters)
  • Detect file types and formats
  • Extract code comments and documentation
  • Analyze Python code structure (functions, classes, imports)
  • Provide comprehensive file analysis for development tasks

When to use me

Use this skill when you need to:

  • Understand the structure of unfamiliar code files
  • Get file statistics for reporting or analysis
  • Extract comments and documentation from source code
  • Analyze Python files for functions, classes, and imports
  • Perform quick file analysis without opening the file manually

How to use me

I can be invoked through the skill tool and will automatically use the global file-analyze command that has been installed on the system. The skill handles different file types and provides appropriate analysis based on the file format.

Example usage:

  • "Analyze the structure of this Python file"
  • "Get statistics for this large log file"
  • "Extract comments from this JavaScript file"
  • "Show me the functions and classes in this Python module"