file-summarization
Installation
SKILL.md
File Summarization
Apply this methodology when summarizing files of any type. This skill provides the routing logic and type-specific strategies for faithful file summarization.
Pre-Summarization Assessment
Before summarizing any file, the model MUST:
-
Read the file - Use the Read tool to access the actual content. Never guess from the filename.
-
Assess size - Run
$CLAUDE_PLUGIN_ROOT/scripts/file_metrics.pyto determine word count and file type. If the script is unavailable, use the Read tool and manually estimate word count from line count. -
Select strategy - Based on size thresholds from the table below.
-
Verify file type - Use file extension and content inspection to determine which type-specific strategy to apply.