.claude/skills/self-diagnostic/SKILL.md
Run self-diagnostics on Cornelius agent to verify skills, commands, agents, and integrations are working. Use when troubleshooting, after configuration changes, or for regular health checks.
npx skillsauth add abilityai/cornelius self-diagnosticInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run comprehensive diagnostics to verify all agent components are functioning correctly.
Run full diagnostics:
/self-diagnostic
Run specific test category:
/self-diagnostic commands-only
/self-diagnostic skills-only
/self-diagnostic agents-only
/self-diagnostic dependencies-only
| Source | Location | Read | Write | Description |
|--------|----------|------|-------|-------------|
| Vault Path | Brain/ | ✓ | | Verify vault exists |
| Permanent Notes Dir | Brain/02-Permanent/ | ✓ | | Verify directory exists |
| Article Index | Brain/04-Output/Articles/ARTICLE-INDEX.md | ✓ | | Verify index exists |
| Local Brain Search | resources/local-brain-search/ | ✓ | | Search scripts and index |
| Skills Directory | .claude/skills/*/SKILL.md | ✓ | | Skill configurations |
| Commands Directory | .claude/commands/*.md | ✓ | | Command configurations |
| Agents Directory | .claude/agents/*.md | ✓ | | Agent configurations |
| Python Runtime | System | ✓ | | Verify Python3 available |
| uv Package Manager | ~/.local/bin/uv | ✓ | | Verify uv available |
| Temp Output | /tmp/cornelius-diagnostic/ | | ✓ | Diagnostic results (optional) |
$ARGUMENTS
CRITICAL: These diagnostics are READ-ONLY and NEVER modify production data.
/tmp/cornelius-diagnostic/ onlyVerify core infrastructure is accessible:
# Test 1.1: Check vault path exists
test -d "/Users/eugene/Dropbox/Agents/Cornelius/Brain" && echo "PASS: Vault path exists" || echo "FAIL: Vault path missing"
# Test 1.2: Check permanent notes directory
test -d "/Users/eugene/Dropbox/Agents/Cornelius/Brain/02-Permanent" && echo "PASS: Permanent notes directory exists" || echo "FAIL: Permanent notes directory missing"
# Test 1.3: Check Local Brain Search is available
test -f "/Users/eugene/Dropbox/Agents/Cornelius/resources/local-brain-search/run_search.sh" && echo "PASS: Local Brain Search scripts exist" || echo "FAIL: Local Brain Search scripts missing"
# Test 1.4: Check Article Index exists
test -f "/Users/eugene/Dropbox/Agents/Cornelius/Brain/04-Output/Articles/ARTICLE-INDEX.md" && echo "PASS: Article Index exists" || echo "FAIL: Article Index missing"
Verify external dependencies are installed:
# Test 2.1: Python available
python3 --version 2>/dev/null && echo "PASS: Python3 available" || echo "FAIL: Python3 not found"
# Test 2.2: uv package manager (for epub-chapter-extractor)
/Users/eugene/.local/bin/uv --version 2>/dev/null && echo "PASS: uv available" || echo "FAIL: uv not found"
# Test 2.3: Check Local Brain Search can run (simple test)
cd /Users/eugene/Dropbox/Agents/Cornelius/resources/local-brain-search && python3 -c "import sqlite3; import json; print('PASS: Core Python modules available')" 2>/dev/null || echo "FAIL: Python modules missing"
# Test 2.4: Check mermaid-diagram MCP is responsive
# (Just verify the skill file exists - actual MCP test would require invocation)
test -f "/Users/eugene/Dropbox/Agents/Cornelius/.claude/agents/diagram-generator.md" && echo "PASS: Diagram generator agent configured" || echo "FAIL: Diagram generator agent missing"
Verify skills are properly configured (metadata valid):
# Test 3.1: List all skills and validate structure
for skill_dir in /Users/eugene/Dropbox/Agents/Cornelius/.claude/skills/*/; do
skill_name=$(basename "$skill_dir")
if [ -f "${skill_dir}SKILL.md" ]; then
# Check for required frontmatter
if head -1 "${skill_dir}SKILL.md" | grep -q "^---"; then
if grep -q "^name:" "${skill_dir}SKILL.md" && grep -q "^description:" "${skill_dir}SKILL.md"; then
echo "PASS: Skill '$skill_name' - valid metadata"
else
echo "FAIL: Skill '$skill_name' - missing name or description"
fi
else
echo "FAIL: Skill '$skill_name' - missing frontmatter"
fi
else
echo "FAIL: Skill '$skill_name' - missing SKILL.md"
fi
done
Verify commands are properly configured:
# Test 4.1: List all commands and validate structure
for cmd_file in /Users/eugene/Dropbox/Agents/Cornelius/.claude/commands/*.md; do
cmd_name=$(basename "$cmd_file" .md)
if head -1 "$cmd_file" | grep -q "^---"; then
if grep -q "^description:" "$cmd_file"; then
echo "PASS: Command '/$cmd_name' - valid metadata"
else
echo "FAIL: Command '/$cmd_name' - missing description"
fi
else
echo "FAIL: Command '/$cmd_name' - missing frontmatter"
fi
done
Verify sub-agents are properly configured:
# Test 5.1: List all agents and validate structure
for agent_file in /Users/eugene/Dropbox/Agents/Cornelius/.claude/agents/*.md; do
agent_name=$(basename "$agent_file" .md)
if head -1 "$agent_file" | grep -q "^---"; then
if grep -q "^name:" "$agent_file" || grep -q "^description:" "$agent_file"; then
echo "PASS: Agent '$agent_name' - valid metadata"
else
echo "FAIL: Agent '$agent_name' - missing name or description"
fi
else
echo "FAIL: Agent '$agent_name' - missing frontmatter"
fi
done
These tests invoke actual skills/commands with READ-ONLY operations.
This tests the semantic search and grep functionality:
Invoke /search-vault with query: "dopamine"
Expected: Returns at least 1 result from permanent notes
Run this test:
Use the Skill tool to invoke search-vault with args "dopamine"
Success criteria:
Tests 3-layer semantic search:
Invoke /recall with query: "decision making"
Expected: Returns layered results with connections
Run this test:
Use the Skill tool to invoke recall with args "decision making"
Success criteria:
Tests connection discovery:
Invoke /find-connections with query: "Dopamine"
Expected: Returns connections for the Dopamine note
Run this test:
Use the Skill tool to invoke find-connections with args "Dopamine"
Success criteria:
Tests perspective extraction:
Invoke /get-perspective-on with query: "AI agents"
Expected: Returns Eugene's perspective with note citations
Run this test:
Use the Skill tool to invoke get-perspective-on with args "AI agents"
Success criteria:
Tests local brain search scripts directly:
# Run semantic search
/Users/eugene/Dropbox/Agents/Cornelius/resources/local-brain-search/run_search.sh "consciousness" --limit 3 --json
# Run connections query
/Users/eugene/Dropbox/Agents/Cornelius/resources/local-brain-search/run_connections.sh --stats --json
# Run hub discovery
/Users/eugene/Dropbox/Agents/Cornelius/resources/local-brain-search/run_connections.sh --hubs --limit 5 --json
Success criteria:
These tests are INTENTIONALLY SKIPPED to avoid side effects:
| Test | Reason Skipped | |------|----------------| | /create-article | Would create files in Brain/04-Output/ | | /update-changelog | Would create changelog file | | /analyze-kb | May update knowledge-base-analysis.md | | /deep-research | Uses external APIs (Gemini, Apollo) - costs money | | /synthesize-insights | May create output files | | /talk | Interactive mode - not suitable for automated testing | | nano-banana-image-generator | Uses Gemini API - costs $0.039/image | | epub-chapter-extractor | Requires actual EPUB file | | vault-manager (write ops) | Would modify vault notes | | auto-discovery | Creates changelog files | | insight-extractor | Creates notes in AI Extracted Notes/ | | document-insight-extractor | Creates notes in Document Insights/ |
Present results as:
# Cornelius Self-Diagnostic Report
**Run Date:** [current date/time]
**Agent Version:** 01.25
## Summary
| Category | Passed | Failed | Skipped |
|----------|--------|--------|---------|
| Infrastructure | X | X | 0 |
| Dependencies | X | X | 0 |
| Skills | X | X | 0 |
| Commands | X | X | 0 |
| Agents | X | X | 0 |
| Functional Tests | X | X | X |
## Detailed Results
### Infrastructure Tests
[Results...]
### Dependency Tests
[Results...]
### Skills Validation
[Results...]
### Commands Validation
[Results...]
### Agents Validation
[Results...]
### Functional Tests
[Results...]
### Skipped Tests
[List with reasons...]
## Recommendations
[Any issues found and suggested fixes]
Based on $ARGUMENTS:
/tmp/cornelius-diagnostic/ for reviewdevelopment
Rebuild the Cornelius voice agent system prompt from knowledge base sources
data-ai
Update dashboard.yaml with current knowledge base metrics from analysis report
documentation
Update Knowledge Graph Changelog
testing
Comprehensive testing playbook for Local Brain Search memory improvements (Phases 1, 3, 4)