| name | skill-debugger |
| description | Debugs why Codex skills are not triggering when expected, analyzing descriptions, trigger conditions, installation paths, discovery, and skill conflicts |
| version | 0.1.0 |
| source | fork |
| checksum | e2c3a1c11b5e047b5d0607004c72bcc2665c15bea6864beec8cf61648c434a2d |
| updated_at | 2026-06-08T03:10:00.000Z |
| intent | skill-management |
| layer | meta |
Skill Debugger
Systematic debugging tool for Codex skills that are not triggering as expected. Identifies root causes like poor descriptions, missing trigger words, naming issues, installation-path mistakes, or skill discovery problems.
Agent Workflow
To debug effectively, follow this Hybrid Workflow:
- Fact Check (Hard Metrics): Use
Glob and Read tools to verify the target skill's implementation.
- Does the folder exist?
- Does
SKILL.md exist?
- Is the YAML frontmatter valid?
- Context Analysis (Soft Metrics): Compare the target skill's description with the user's recent prompts.
- Agent Cognition: "The user asked for 'finance help', but the skill description only says 'data analysis'. That's why it didn't trigger."
- Synthesize: Report the factual findings (e.g., "File exists") + your semantic diagnosis (e.g., "Description is too vague").
Capabilities
- Trigger Analysis: Examines why a skill isn't being invoked when it should be
- Description Evaluation: Checks if skill description clearly communicates when to use it
- Keyword Detection: Identifies missing or weak trigger keywords in descriptions
- Discovery Debugging: Verifies Codex can find and load the skill
- Conflict Detection: Identifies skills with overlapping triggers or descriptions
- YAML Validation: Checks frontmatter format and required fields
- Interactive Diagnosis: Guides through systematic debugging steps
- Fix Suggestions: Provides specific improvements to improve skill triggering
Common Skill Triggering Problems
Problem 1: Vague Description
Symptom: Skill exists but Codex never uses it
Root Cause: Description doesn't mention specific use cases or keywords
Example:
description: Helps with various tasks ❌ Too vague
description: Analyzes financial ratios from statement data for investment decisions ✅ Specific
Problem 2: No Clear Trigger Words
Symptom: Need to explicitly mention skill name to invoke it
Root Cause: Description lacks keywords that match user queries
Fix: Add trigger keywords like "financial analysis", "investment", "ratios"
Problem 3: Skill Not Discovered
Symptom: Codex says skill doesn't exist
Root Cause: Wrong installation location or invalid SKILL.md
Check: ~/.codex/skills/[name]/SKILL.md, <repo>/.agent/skills/local/[name]/SKILL.md, <repo>/.agent/skills/upstream/<source>/[name]/SKILL.md, or <repo>/.codex/skills/[name]/SKILL.md
Problem 4: Name Mismatch
Symptom: Skill found but not loaded
Root Cause: YAML name doesn't match folder name
Fix: Ensure name: skill-name matches folder skill-name/
Problem 5: Overlapping Skills
Symptom: Wrong skill triggers instead
Root Cause: Multiple skills with similar descriptions
Fix: Make each description unique and specific
Input Requirements
Basic Debugging:
- Skill name or path
- Expected trigger scenario (what you asked that should have triggered it)
Deep Analysis:
- All installed skills paths (for conflict detection)
- Recent conversation history (to see what Codex chose instead)
Output Formats
Quick Diagnosis:
Skill: code-review
Status: ❌ Not triggering
Root Cause: Description too generic
Fix: Add specific keywords like "review", "code quality", "pull request"
Detailed Report:
=== Skill Debugging Report ===
Skill: financial-analyzer
Path: ~/.codex/skills/financial-analyzer/
Status: ⚠️ Rarely triggers
Issues Found:
1. [CRITICAL] Description missing use case keywords
- Current: "Analyzes financial data"
- Should mention: financial ratios, investment analysis, DCF, valuation
2. [HIGH] No "When to Use" section in SKILL.md
- Codex can't determine clear triggering conditions
3. [MEDIUM] Overlaps with "data-analyzer" skill
- Both mention "analyzes data"
- Make this one specific to finance
Recommendations:
1. Update description to: "Calculates financial ratios and performs DCF valuation analysis for investment decisions"
2. Add "When to Use" section with examples: "when analyzing company financials", "for investment analysis"
3. Differentiate from data-analyzer by focusing on financial metrics
Expected Improvement: 90% better triggering with these fixes
Conflict Matrix:
Skills with Overlapping Triggers:
code-review ←→ quality-analyzer (both mention "code quality")
Fix: code-review for PRs, quality-analyzer for metrics
data-analyzer ←→ financial-analyzer (both mention "analysis")
Fix: Make financial-analyzer specific to finance keywords
Debugging Workflow
Step 1: Verify Skill Exists
"Check if my code-review skill is installed correctly"
"Is the financial-analyzer skill discoverable?"
Codex will:
- Check file exists at expected location
- Validate SKILL.md format
- Verify YAML frontmatter
Step 2: Analyze Description Quality
"Why isn't my code-review skill triggering?"
"Debug the financial-analyzer skill - I asked about ratios but it didn't trigger"
Codex will:
- Examine description for specificity
- Check for relevant keywords
- Compare against your query
Step 3: Test Trigger Scenarios
"What should I ask to trigger the code-review skill?"
"Give me 5 phrases that should invoke financial-analyzer"
Codex will:
- Generate test queries based on description
- Identify gaps between description and intended use
- Suggest description improvements
Step 4: Check for Conflicts
"Do any of my skills conflict with code-review?"
"Why does data-analyzer trigger instead of financial-analyzer?"
Codex will:
- Compare all skill descriptions
- Identify overlapping keywords
- Suggest differentiation strategies
Systematic Debugging Questions
When a skill isn't triggering, Codex will ask:
-
Installation Check
- "Is the skill at
~/.codex/skills/[name]/SKILL.md, <repo>/.agent/skills/local/[name]/SKILL.md, or <repo>/.codex/skills/[name]/SKILL.md?"
- "Does
ls ~/.codex/skills/ show your skill folder?"
-
YAML Validation
- "Is the YAML frontmatter properly formatted with
--- delimiters?"
- "Does the
name: field match the folder name?"
- "Is there a
description: field?"
-
Description Quality
- "Does the description mention specific use cases?"
- "Does it include keywords you'd naturally use?"
- "Is it specific enough to avoid confusion with other skills?"
-
Content Analysis
- "Is there a 'When to Use' or 'Use Cases' section?"
- "Are there clear usage examples?"
- "Does the first paragraph explain the purpose?"
-
Conflict Check
- "Do other skills have similar descriptions?"
- "Which skill actually triggered instead?"
- "How can we differentiate this skill?"
How to Use
Quick Fix:
"My code-review skill isn't working"
"Why doesn't Codex use my financial-analyzer?"
"Debug skill triggering for aws-solution-architect"
Detailed Analysis:
"I asked 'analyze this company's financials' but financial-analyzer didn't trigger. Debug it."
"Compare my code-review and quality-analyzer skills - which should trigger when?"
Preventive Check:
"Before I install this skill, check if it will trigger correctly"
"Will my new skill conflict with existing ones?"
Common Fixes (By Root Cause)
Fix 1: Improve Description Specificity
Before: description: Helps with code analysis
After: description: Performs static code quality analysis with metrics calculation and refactoring suggestions
Fix 2: Add Trigger Keywords
Add words users would naturally say:
- Financial skill: "ratios", "valuation", "DCF", "investment"
- Code skill: "review", "quality", "refactor", "analyze code"
- Data skill: "visualization", "trends", "insights", "dashboard"
Fix 3: Add "When to Use" Section
## When to Use
Use this skill when you need to:
- Analyze company financial statements
- Calculate financial ratios (P/E, ROE, ROA, etc.)
- Perform DCF valuation
- Make investment decisions based on financial data
Fix 4: Differentiate from Similar Skills
If you have data-analyzer and financial-analyzer:
- data-analyzer: "for general data analysis and visualization"
- financial-analyzer: "specifically for financial statement analysis and investment metrics"
Fix 5: Fix Name Mismatch
Ensure folder name matches YAML name:
Folder: ~/.codex/skills/code-review/
YAML: name: code-review ✅
Folder: ~/.codex/skills/code-review/
YAML: name: code_review ❌ Mismatch!
Diagnostic Checklist
When debugging, Codex will check:
Integration with Other Skills
Works with skill-quality-analyzer:
"Run quality analysis on financial-analyzer then debug why it's not triggering"
Works with skill-tester:
"Test if code-review skill triggers for 'review this PR'"
Workflow:
- skill-debugger: Identify why not triggering
- skill-quality-analyzer: Check overall quality
- Fix issues
- skill-tester: Verify fix works
Limitations
- Cannot Read Codex's Internal Decision Process: Can only infer based on descriptions
- No Real-Time Monitoring: Can't watch skill selection in action
- Heuristic-Based: Uses patterns, not guaranteed 100% accurate
- No Auto-Fix: Provides recommendations but you must apply them
- Context-Dependent: Triggering also depends on conversation context
When NOT to Use This Skill
- Skill Works Fine: No debugging needed
- Skill Execution Errors: Use skill-tester for runtime issues
- Documentation Issues: Use skill-doc-generator
- Quality Problems: Use skill-quality-analyzer
Success Metrics
After applying fixes, skill should trigger when:
- User query contains description keywords
- Use case matches "When to Use" section
- No more specific skill exists for the query
Expected Trigger Rate: 80-90% when query clearly matches intended use case
Pro Tips
- Test Your Descriptions: Ask "Would I say this naturally?"
- Be Specific: "financial ratio calculation" > "data analysis"
- Avoid Overlaps: Each skill should have unique keywords
- Use Examples: Add 5+ usage examples in SKILL.md
- Think Like Users: What would you actually ask?
- Regular Audits: Run debugger on all skills monthly
- Version Descriptions: Track what works over time