af-skill-analyze-context

Analyze token usage in coding context to identify heavy files and duplicates.

3|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/korchasa/ide-rules --skill af-skill-analyze-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: af-skill-analyze-context
Source: https://github.com/korchasa/ide-rules/tree/main/catalog/skills/af-skill-analyze-context
Command: npx skills add https://github.com/korchasa/ide-rules --skill af-skill-analyze-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you understand and optimize context usage by locating heavy token consumers, duplicates, and low-value files to keep prompts lean and efficient.

Core Features & Use Cases

  • Identify context sources: currently open files, recently viewed files, and active terminals.
  • Estimate tokens: use the provided Python script to get estimated token counts for selected files.
  • Analyze findings: surface heavy files, duplicates, garbage/low-value content, and terminal outputs; apply to prompt-budget decisions.
  • Quick wins and recommendations: prune non-essential files and organize context for more predictable AI responses.

Quick Start

Run the estimate_tokens.py script on your target files to generate a token usage report.

Frequently Asked Questions about af-skill-analyze-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze token usage in my coding context?

Token usage analysis identifies heavy token consumers, duplicates, and low-value files to keep prompts lean. It surfaces quick-win recommendations to prune non-essential artifacts, which is crucial for efficient AI-assisted work and predictable model responses.

How do I plan prompt budgets for large coding files?

The analysis uses a Python heuristic to estimate tokens and categorize them by file type. This approach surfaces heavy files, duplicate content, and terminal outputs, providing the data needed to plan prompt budgets and organize context effectively.

What is the best way to find heavy files consuming too many tokens?

Run the estimate_tokens.py script on your target files to generate a token usage report. This identifies heavy files, duplicates, and low-value content, providing actionable recommendations to optimize your context.

Does this token analysis tool require any external dependencies?

No dependencies are required. The Skill operates using a provided Python script to estimate tokens, allowing you to analyze context size and plan prompt budgets without installing external packages.

Can I identify duplicate content and low-value files in my context?

Yes, the analysis identifies duplicates and low-value files by evaluating your context sources. It surfaces these items as quick wins, allowing you to prune non-essential files and optimize your prompt budget for more predictable AI responses.