Documentation Index
Fetch the complete documentation index at: https://mintlify.com/abhigyanpatwari/GitNexus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thedetect_impact prompt guides AI agents through a comprehensive pre-commit impact analysis workflow. It analyzes your current code changes, identifies affected execution flows, and provides a risk assessment.
Use this before committing to understand the blast radius of your changes.
Parameters
What changes to analyze:
unstaged— Only unstaged changesstaged— Only staged changesall— All uncommitted changes (staged + unstaged)compare— Compare against a specific branch/commit (requiresbase_ref)
Branch or commit to compare against (required if scope is
compare)Examples: main, develop, HEAD~1, a1b2c3dWhat It Does
The prompt instructs the agent to:- Run
detect_changeswith the specified scope to find changed symbols and affected processes - Analyze critical symbols using
contexttool to see full reference graph - Check blast radius using
impacttool for high-risk items - Generate risk report with changes, affected processes, risk level, and recommendations
Usage
In Claude Desktop
In Cursor/OpenCode
Invoke the prompt from the MCP prompts menu, or reference it directly:With Parameters
Example Workflow
Here’s what the agent does when you invoke this prompt:Analyze Critical Symbols
For each symbol in critical processes, runs
context({name: "validateUser"}) to see:- All callers
- All callees
- Process participation
- Related symbols
Check Blast Radius
For high-risk symbols (many callers or cross-process usage), runs:To see what breaks at depth 1, 2, and 3.
Example Output
The agent presents a structured risk report:When to Use
Before Committing
Run this before every commit to catch breaking changes
Before PR
Include the report in your PR description
During Code Review
Use to understand reviewer’s concerns about blast radius
Before Deploy
Final check before merging to production
Comparison with Tools
This prompt orchestrates multiple tools:| Tool | Purpose in Workflow |
|---|---|
detect_changes | Find what changed and affected processes |
context | Get 360-degree view of critical symbols |
impact | Calculate blast radius for high-risk items |
Next Steps
Detect Changes Tool
Learn about the underlying tool used by this prompt