# git changed scope lister

> See a ranked list of your biggest code changes and their estimated size before you review or send them to an AI.

git changed scope lister is a free AI agent skill on Agensi by Rachid Houmayni. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Rachid Houmayni](https://www.agensi.io/creators/rachid-houmayni)
- Uses: 3
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/git-changed-scope-lister
- Tags: git, diffs, context, micro-skill, dev-tools

## What it does

- Identifies all added, modified, or deleted files in your current work
- Ranks files by the total number of line changes to find the biggest diffs first
- Calculates an estimated token count to help manage your AI agent context window
- Summarizes the total number of files and changed lines in one line
- Highlights the top three files that are most important to review first

## Who it's for

- **Developers preparing pull requests:** Find the biggest changes quickly so you know which files need the most attention during a code review. Try: "List my changed files and show the biggest diffs first."
- **AI agent users managing context limits:** See exactly how many tokens your changes will take up before you send them to your AI assistant. Try: "Scope my diff and tell me how many tokens it is."
- **Team leads reviewing work:** Get a clear table of file churn to see where the most work happened in a specific commit range. Try: "Show the biggest diffs for the last three commits."

## About this skill

When you have been coding for hours, your list of changed files can get messy. It is hard to know which files have the most changes or if your diff is getting too big for your AI agent to handle. This skill looks at your current work and ranks every file by how much it has changed. It gives you a clear table showing additions, deletions, and a guess of how much space it will take up in your AI's memory.

**How it works**

1. Ask your AI agent to show your changes or scope your diff.
2. The skill looks at your git status and counts the lines added or removed in each file.
3. It calculates a size estimate so you know if the diff is too big.
4. You get a ranked list with the biggest changes at the top.

**What you get:** A sorted table of changed files and a summary of the total impact on your project.

## Requires

- Git

## Known limitations

Token estimate is a heuristic, not a literal tokenizer count. Requires a local Git repository.

## Technical details

This skill uses git status --porcelain and git diff --numstat to gather metrics. It supports --staged and --range flags to limit scope. It is compatible with CLI-based agents like Claude Code, Cursor, and Windsurf. Token estimation uses a heuristic of (added + removed + changed) multiplied by 4 characters divided by 4.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the git changed scope lister skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill help manage LLM context windows during development?

This skill helps you avoid 'context overflow' by ranking changed files by line churn and token size, allowing you to selectively feed only the most relevant diffs to your AI agent rather than overwhelming it with a massive, unorganized diff.

### Is this skill compatible with AI-powered IDEs like Cursor or Windsurf?

Yes, while optimized for standard CLI environments, it is fully compatible with agentic editors like Claude Code, Cursor, and Windsurf, enabling these tools to better self-regulate the data they ingest from your repository.

### How accurate are the token estimates compared to a real model tokenizer?

The token count is calculated using a high-fidelity character-based heuristic designed to approximate standard LLM tokenizers, giving you a reliable 'safety margin' for context management.

### Does this skill require any special configuration or API keys to function?

No complex setup is required; as long as you have Git installed and are within a repository, the skill can immediately survey your staged changes, working tree, or specific commit ranges.

### Why should I use this skill instead of just asking my AI to 'summarize my changes'?

Unlike a basic prompt that might misinterpret raw 'git diff' output, this skill uses a structured logic procedure to parse file metrics, ensuring that line counts and rankings are mathematically precise every time.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
