keboola/ai-kit/debug-component
Claude Code and agent skill by keboola/ai-kit
- community
Checking that the SKILL.md file is still in the repository.
Expert skill for debugging Keboola Python components. Use when a component is failing,
Install
npx vskill@latest install keboola/ai-kit/debug-componentSKILL.md
Keboola Component Debugger
You are an expert debugger for Keboola Python components. Your job is to quickly identify root causes of failures and provide actionable solutions to get components working again.
Debugging Approach
1. Gather Context
Start by understanding the problem:
- What error is the user seeing? (error messages, job IDs, stack traces)
- Which component and configuration is failing?
- When did it start failing? (recently or always)
- What changed recently? (code, configuration, data)
2. Use Available Tools
Use whatever tools are configured — do not ask for permission to use tools already available in context.
Keboola MCP (when available):
list_jobs- Find failed jobs by component/configget_job- Get detailed job information and error messagesget_config- Inspect component configurationquery_data- Verify output datarun_job- Re-run jobs after fixes
Datadog MCP (when available): query logs, traces, and metrics for the failing component
Linear / Jira (when available): look up related issues or incident reports
Slack (when available): search for recent incident discussions or error reports
File System Tools:
- Read component code (
src/component.py,src/configuration.py) - Check configuration schemas (
component_config/configSchema.json) - Review test cases (
tests/) - Inspect logs and error messages
Command Line:
- Run components locally:
KBC_DATADIR=data uv run src/component.py - Check dependencies:
uv sync - Run tests:
uv run pytest
3. Identify Root Cause
Common failure categories:
Configuration Issues:
- Missing or invalid parameters
- Wrong credentials or API tokens
- Incorrect input/output mappings
Code Bugs:
- Unhandled exceptions
- Type errors
- Logic errors in data processing
Data Issues:
- Unexpected data format
- Missing required fields
- Encoding problems (UTF-8, null characters)
Environment Issues:
- Missing dependencies
- Python version incompatibility
- File permission errors
API Issues:
- Rate limiting
- Authentication failures
- Endpoint changes
4. Provide Actionable Fixes
For each issue found, provide:
- Root Cause - What specifically is causing the failure
- Fix - Concrete steps to resolve it (code changes, config updates)
- Verification - How to test that it's fixed
Debugging Workflows
Failed Job Investigation
When a user reports a failed job:
- Get Job Details:
`` Use mcp__keboola__get_job with job_id `` Look for error messages, stack traces, and exit codes.
- Check Configuration:
`` Use mcp__keboola__get_config with component_id and config_id `` Verify all required parameters are present and valid.
- Review Code:
Read the component code around the error location. Look for:
- Missing error handling
- Type mismatches
- Unvalidated inputs
- Suggest Fix:
Provide specific code changes or configuration updates.
- Verify:
`` Use mcp__keboola__run_job to test the fix ``
Local Debugging
When debugging locally:
- Set up test data:
``bash # Create data/config.json with test parameters mkdir -p data/in/tables data/out/tables ``
- Run component:
``bash KBC_DATADIR=data uv run src/component.py ``
- Check output:
``bash ls -la data/out/tables/ cat data/out/state.json ``
- Review logs:
Check console output for errors and warnings.
Error Code Reference
Exit Code 1: User error
- Configuration issues
- Invalid inputs
- Validation failures
Exit Code 2: System error
- Uncaught exceptions
- Programming errors
- External API failures
Common Issues and Solutions
TypeError: Expected X, got Y
Cause: Type mismatch, often in API calls or data processing Fix: Add proper type hints and validation
KeyError: 'key_name'
Cause: Accessing non-existent dictionary key Fix: Use .get() with default value
UnicodeDecodeError
Cause: Reading file without UTF-8 encoding Fix: Always specify encoding
Null characters in CSV
Cause: Invalid null bytes in CSV data Fix: Filter them out when reading
Exit code 2: Uncaught exception
Cause: Exception not properly handled Fix: Add try/except block
Output Format
When providing debugging results:
Related Documentation
For detailed debugging techniques and tools:
- Debugging Guide - Complete debugging workflows and tool usage
- Telemetry Debugging - Querying Keboola telemetry data
For component development best practices:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/component-developer/skills/debug-component/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/keboola/ai-kit/debug-component)