What Are Agent Skills?
Agent skills are specialized workflow guides that teach AI agents how to effectively use GitNexus for specific development tasks. Each skill provides:- Clear workflow steps for the task
- Tool selection guidance
- Checklists to ensure nothing is missed
- Resource references for efficient navigation
- Real-world examples
Available Skills
GitNexus provides four core skills that cover the most common code intelligence tasks:Exploring
Navigate unfamiliar code, understand architecture, and trace execution flows
Debugging
Trace bugs through call chains, find error sources, and investigate failures
Impact Analysis
Analyze blast radius, assess safety of changes, and understand dependencies
Refactoring
Rename symbols, extract modules, and restructure code safely across multiple files
Automatic Installation
Skills are automatically installed when you runnpx gitnexus analyze in your repository. This command:
- Indexes your codebase into a knowledge graph
- Installs agent skills to
.claude/skills/gitnexus/ - Creates
AGENTS.mdwith skill references - Registers Claude Code hooks (if using Claude Code)
Skill Storage Location
Skills are stored in your repository at:.claude/ directory structure is recognized by:
- Claude Code (full support with skills + hooks)
- Cursor (MCP + skills)
- OpenCode (MCP + skills)
The
.claude/skills/ directory is gitignored by default and regenerated on each gitnexus analyze run.How Skills Work
When an AI agent encounters a task that matches a skill’s description, it:- Loads the skill from
.claude/skills/gitnexus/ - Follows the workflow defined in the skill
- Uses GitNexus tools as guided by the skill
- Checks off items from the skill’s checklist
- Delivers complete results without missing context
Example Workflow
User asks: “How does authentication work?”- Agent recognizes this matches the Exploring skill
- Reads
.claude/skills/gitnexus/gitnexus-exploring/SKILL.md - Follows the exploration workflow:
- Reads
gitnexus://repo/{name}/contextfor overview - Uses
gitnexus_query({query: "authentication"})to find related flows - Uses
gitnexus_contextfor deep dives on specific symbols - Reads process resources for execution traces
- Reads
- Returns comprehensive explanation of auth architecture
Workflow Philosophy
All GitNexus skills follow a consistent pattern:Always Start with Context
- How many symbols are indexed
- Whether the index is stale
- What tools are available
Use Smart Tools, Not Raw Queries
GitNexus tools return pre-structured intelligence instead of raw graph data:query→ Process-grouped execution flows (not raw symbol matches)context→ Categorized references + process participation (not raw edges)impact→ Depth-grouped blast radius with confidence (not raw dependencies)
- Agents get complete context in 1 query (not 5-10)
- Smaller LLMs work effectively (tools do the heavy lifting)
- Results are consistent and reliable
Follow the Checklist
Each skill provides a checklist to ensure thorough analysis:Integration with Editors
Claude Code (Full Support)
Claude Code gets the deepest integration:- ✅ MCP tools for knowledge graph queries
- ✅ Agent skills loaded automatically
- ✅ PreToolUse hooks that enrich grep/glob/bash with graph context
Cursor (MCP + Skills)
Cursor supports:- ✅ MCP tools via
~/.cursor/mcp.json - ✅ Skills via
.claude/skills/directory - ⚠️ No automatic hooks (manual workflow required)
OpenCode (MCP + Skills)
OpenCode supports:- ✅ MCP tools via
~/.config/opencode/config.json - ✅ Skills via
.claude/skills/directory - ⚠️ No automatic hooks
Windsurf (MCP Only)
Windsurf supports:- ✅ MCP tools only
- ❌ No skill loading
- ❌ No hooks
When to Use Which Skill
| User Intent | Skill to Use | Example Questions |
|---|---|---|
| Understand how code works | Exploring | ”How does X work?”, “What’s the architecture?”, “Show me the auth flow” |
| Debug an issue | Debugging | ”Why is X failing?”, “Trace this error”, “Who calls this?” |
| Assess change safety | Impact Analysis | ”What breaks if I change X?”, “Is this safe?”, “Show blast radius” |
| Refactor code | Refactoring | ”Rename this function”, “Extract this module”, “Split this service” |
Next Steps
Exploring Code
Learn how to navigate unfamiliar codebases and understand execution flows
Debugging Workflow
Master the techniques for tracing bugs through the knowledge graph
Impact Analysis
Understand how to assess blast radius before making changes
Refactoring Safely
Learn safe refactoring patterns with automated rename and dependency mapping