debug-mining-engine — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited debug-mining-engine (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
"The answer lies in the darkness" - Transform every debugging session into reusable skills
The Debug Mining Engine automatically captures debugging sessions and transforms them into three reusable assets:
Every bug you fix becomes a permanent asset in your skill arsenal.
Use the Debug Mining Engine when you want to:
Traditional debugging:
Debug Mining:
ROI: Every debugging session becomes an investment that pays dividends forever.
AI Auto-Detection (Passive):
Manual Override (Active):
/debug-start "Description of what you're debugging"
# ... debug and fix the issue ...
/debug-endSmart Prompts:
🤔 I noticed you just fixed an error. Should I save this debugging session?
Error: "Could not find table 'repositories'"
Solution: Created schema validation script
[Yes, save it] [No, discard] [Let me review first]1. Full Skill (/home/ubuntu/skills/skills/debugging-patterns/[skill-name]/)
├── SKILL.md # Complete methodology
├── scripts/
│ ├── detect_error.py # Error detection
│ ├── apply_fix.py # Automated fix
│ └── validate_solution.py # Validation
├── templates/
│ ├── fix_template.sh # Template for similar fixes
│ └── test_template.py # Test template
└── references/
├── error_analysis.md # Deep dive
├── solution_rationale.md # Why this works
└── related_patterns.md # Similar issues2. Code Snippet (/home/ubuntu/debug-snippets/[category]/[name].sh)
#!/bin/bash
# Quick Fix: Supabase Schema Validation
# Error: Could not find table 'repositories'
# Solution: Validate schema before querying
python3 << 'EOF'
from supabase import create_client
client = create_client(url, key)
# Validate table exists
try:
client.table('your_table').select('*').limit(1).execute()
print("✅ Table exists")
except Exception as e:
print(f"❌ Table not found: {e}")
EOF3. Pattern Guide (/home/ubuntu/debug-patterns/[name].md)
# Pattern: Supabase Schema Validation
## The Problem
Querying Supabase tables without validating schema first
## Why This Happens
- Table names change during development
- Schema migrations not applied
## The Solution Pattern
Always validate schema before querying
## When to Apply
- Before any Supabase query
- After schema migrations# Run the setup script
bash /home/ubuntu/skills/skills/utility-skills/debug-mining-engine/scripts/setup_monitor.shThis adds debug monitoring to your shell environment.
mkdir -p /home/ubuntu/debug-sessions
mkdir -p /home/ubuntu/debug-snippets/{database,api,filesystem,network,auth}
mkdir -p /home/ubuntu/debug-patterns# Trigger a test error
/debug-start "Testing debug mining"
python3 -c "raise Exception('Test error')"
/debug-end
# Check if session was captured
ls /home/ubuntu/debug-sessions/$(date +%Y-%m-%d)/# You run a command that fails
$ python3 audit_script.py
❌ Error: Could not find table 'repositories'
# AI detects error and starts capturing
[Debug Mining: Capture started]
# You try different solutions
$ python3 audit_script.py --table users
❌ Still failing
$ python3 audit_script.py --validate-schema
✅ Success!
# AI detects fix and prompts
🤔 Should I save this debugging session?
[Yes, save it]
# AI generates assets
✅ Generated 3 assets:
1. Full Skill: supabase-schema-validator
2. Code Snippet: supabase-schema-check.sh
3. Pattern Guide: database-validation.md# Start debugging manually
$ /debug-start "Fixing API connection timeout"
[Debug Mining: Manual capture started]
# Debug and fix
$ curl https://api.example.com/endpoint
Error: Connection timeout
$ curl --retry 3 --retry-delay 2 https://api.example.com/endpoint
✅ Success!
# End capture
$ /debug-end
[Debug Mining: Analyzing session...]
✅ Generated skill: api-retry-with-backoff# List available debugging skills
ls /home/ubuntu/skills/skills/debugging-patterns/
# Use a code snippet
bash /home/ubuntu/debug-snippets/database/supabase-schema-check.sh
# Read a pattern guide
cat /home/ubuntu/debug-patterns/database-validation.mdThe system learns from your debugging history:
🔍 Pattern Detected!
You've debugged "table not found" errors 3 times this month.
Suggestion: Create a pre-flight validation skill
[Create skill] [Remind me later]💡 Based on your debugging history:
- "api-connection-validator" (you debug API errors often)
- "environment-config-checker" (env vars cause 40% of errors)
[Generate these skills] [Show examples]📈 Debug Mining Stats (Last 30 Days)
Debugging Time: 12 hours → 3 hours (-75%)
Errors Captured: 45
Skills Generated: 12
Reuse Count: 28
Time Saved: ~9 hours`setup_monitor.sh` - Install shell monitoring system
bash scripts/setup_monitor.sh`monitor.py` - Error detection and session capture
python3 scripts/monitor.py --exit-code 1 --command "failed_command"`analyzer.py` - Pattern analysis and extraction
python3 scripts/analyzer.py --session-id debug_2026-02-11_01-33-08`generator.py` - Multi-format skill generation
python3 scripts/generator.py --session-id debug_2026-02-11_01-33-08`list_sessions.py` - List captured debugging sessions
python3 scripts/list_sessions.py --days 30`stats.py` - Show debug mining statistics
python3 scripts/stats.py`search_patterns.py` - Search for similar patterns
python3 scripts/search_patterns.py --error "table not found"`skill_template/` - Template for generated full skills `snippet_template.sh` - Template for code snippets `pattern_template.md` - Template for pattern guides
# Good
/debug-start "Fixing Supabase query error in audit script"
# Not as good
/debug-start "debugging"Always review generated skills before adding to arsenal:
# Review before committing
cat /home/ubuntu/skills/skills/debugging-patterns/new-skill/SKILL.mdAdd tags to make skills discoverable:
/debug-start "Fixing API timeout" --tags api,network,timeoutIf you find a better solution, update the skill:
python3 scripts/update_skill.py --skill supabase-schema-validator --session debug_2026-02-12_10-30-00Export patterns to share with team:
python3 scripts/export_pattern.py --pattern database-validation --format markdownProblem: Errors not being captured automatically
Solution:
which debug_monitor_commandsource ~/.bashrc/debug-start "test"Problem: Debug sessions not appearing in /home/ubuntu/debug-sessions/
Solution:
ls -la /home/ubuntu/debug-sessions/tail -f /home/ubuntu/debug-mining/monitor.logpython3 scripts/monitor.py --testProblem: Generated skills contain incorrect code
Solution:
cat /home/ubuntu/debug-sessions/[date]/[session-id].jsonpython3 scripts/generator.py --session [id] --reviewCreate custom pattern analyzers for your specific domain:
# /home/ubuntu/debug-mining/custom_analyzers/my_analyzer.py
from analyzer import PatternAnalyzer
class MyCustomAnalyzer(PatternAnalyzer):
def analyze_custom_pattern(self, session):
# Your custom analysis logic
passGenerated skills automatically integrate with your unified skill arsenal:
from lib.skill_registry import SkillRegistry
registry = SkillRegistry('/home/ubuntu/skills/skills.json')
# Find debugging skills
debug_skills = registry.find_by_category('debugging-patterns')
# Get related skills
related = registry.get_complements('supabase-schema-validator')Chain debugging skills with other skills:
from lib.skill_composer import SkillComposer
composer = SkillComposer(registry)
# Create workflow
workflow = composer.compose_workflow([
'brainstorming',
'writing-plans',
'database-schema-generator',
'supabase-schema-validator', # Generated from debugging!
'testing-framework'
])
composer.execute_workflow(workflow, context)Every bug you fix becomes a permanent asset.
Stop losing debugging knowledge. Start building a library of solutions that grows with every error you encounter.
"The answer lies in the darkness" - And now you can capture it! 🎯
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.