Step-by-Step Tutorial
Master ContextDigger in 30 minutes with this complete walkthrough
🎯 What You'll Learn
- ✅ Install ContextDigger (Lesson 0)
- ✅ Initialize ContextDigger in a project
- ✅ Navigate code areas efficiently
- ✅ Bookmark important locations
- ✅ Track your exploration history
- ✅ Understand code dependencies
- ✅ Save and restore context
- ✅ Document your discoveries
- ✅ Use analytics to understand your codebase
- ✅ Collaborate with your team
⏱️ Time Required: ~30 minutes
This tutorial uses a sample e-commerce project as an example. You can follow along with any codebase.
Installation & Prerequisites
Goal: Install ContextDigger and verify it's working
📋 Step 0.1: Check Prerequisites
Before installing, make sure you have:
- ✓ Claude Code (Required) - The interface for all ContextDigger commandsGet it at: claude.com/claude-code
- ✓ Python 3.11 or higher - The backend engineCheck:
python3 --version - ✓ Git (Optional but recommended) - For team collaborationCheck:
git --version
⚡ Step 0.2: Quick Install (Recommended)
Install ContextDigger with a single command:
✅ What this does:
- • Checks Python version (requires 3.11+)
- • Installs the ContextDigger Python package
- • Installs all 40+ Claude Code skills
- • Works for both fresh installs and upgrades
⏱️ This takes 30-60 seconds
You'll see progress messages as it installs the package and skills.
✅ Step 0.3: Verify Installation
Make sure everything installed correctly:
Check the Python package:
Check the Claude Code skills:
You should see 37 skill files installed.
🔧 Troubleshooting Common Issues
❌ "contextdigger: command not found"
The pip user bin directory isn't in your PATH.
📋 Alternative: Manual Installation (Click to expand)
Step 1: Install Python Package
Step 2: Install Claude Skills
Step 3: Verify as shown above
✅ Lesson 0 Complete!
ContextDigger is installed and ready to use! Let's initialize your first project.
Project Initialization & First Dig
Goal: Initialize ContextDigger in your project and explore your first area
📁 Step 1.1: Open Claude Code in Your Project
Navigate to your project directory and open Claude Code:
$ claude
🚀 Step 1.2: Initialize ContextDigger
In the Claude Code chat, type:
✅ Instant Execution
The command runs instantly with no approval prompts! ContextDigger v1.0.0 uses a CLI-based architecture for seamless execution. Just type and go.
What happens:
- • Scans your entire project
- • Detects programming languages
- • Discovers logical code areas (frontend, backend, tests, etc.)
- • Creates `.cdg/` directory
👁️ Step 1.3: View Your Project Dashboard
You'll see:
🎯 Step 1.4: Dig Into Your First Area
Let's explore the backend-api area:
What you learn:
- ✓ All files in this area
- ✓ Recent changes and who made them
- ✓ Related areas (what depends on this)
- ✓ Suggested next steps
✅ Lesson 1 Complete!
You now know how to initialize ContextDigger and navigate to code areas. Time to level up!
Navigation & Bookmarks
Goal: Master navigation and bookmark important locations
🔖 Bookmark Critical Files
You're in the authentication area and found the login handler. Let's bookmark it:
💡 Pro Tip:
Use descriptive names like "login-handler", "payment-bug", "api-endpoint" so you remember what they're for.
📍 List All Your Bookmarks
⚡ Jump to Bookmarks Instantly
Now you're working on something else, but need to go back to the login handler:
Instantly transported to that location, with full context!
🔍 Search Across Everything
Can't remember where the shopping cart code is?
Searches across:
- • Code area names
- • File names and paths
- • Your notes and bookmarks
- • Navigation history
◀️ ▶️ Browser-Like Navigation
Just like a web browser, you can go back and forward:
✅ Lesson 2 Complete!
You can now navigate like a pro and never lose your place in the codebase!
Code Intelligence
Goal: Understand code relationships and impact
🔗 View Dependencies
Before changing the authentication system, see what depends on it:
💥 Impact Analysis
Planning to refactor the database layer? See the blast radius:
⚠️ Impact Report:
- Direct impact: 23 files import from database/
- Indirect impact: 67 files will be affected
- Tests to update: 34 test files
- Risk level: HIGH - this is core infrastructure
🔥 Find Hotspots
Which files change most frequently? These might need refactoring:
✅ Check Test Coverage
Coverage Report:
✅ Lesson 3 Complete!
You can now analyze dependencies, impact, and make informed decisions before changing code!
Context Snapshots
Goal: Save and restore your work context
📸 Save Your Current Context
You're deep into a feature. Boss says "drop everything, critical bug!" Save your context first:
🐛 Handle the Urgent Bug
🔄 Restore Your Context
Bug fixed! Now get back to exactly where you were:
Restored:
- ✓ Back in frontend/checkout area
- ✓ All your bookmarks loaded
- ✓ History restored
- ✓ Notes available
📝 View Your History
✅ Lesson 4 Complete!
You can now handle interruptions without losing your place. Context switching is painless!
Team Collaboration
Goal: Share knowledge and collaborate with your team
📝 Document Your Discoveries
Found something important? Share it with your team:
📚 Generate Team Wiki
Auto-generates a searchable wiki from all team notes. Perfect for onboarding!
👥 See What Teammates Are Doing
🎯 Find Code Owners
Who knows the payment system best?
Experts for payments:
- 1. Marcus (67% of commits)
- 2. Elena (28% of commits)
- 3. Jordan (5% of commits)
✅ Lesson 5 Complete!
You're now collaborating effectively and preserving team knowledge!
Tutorial Complete!
You've mastered the core ContextDigger workflows
Navigation
Move through codebases with precision
Intelligence
Understand dependencies & impact
Collaboration
Share knowledge with your team