Agent skill

engineering-report-generator-error-handling

Sub-skill of engineering-report-generator: Error Handling.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/development/engineering-report-generator/error-handling

SKILL.md

Error Handling

Error Handling

Common Errors

Error Cause Solution
FileNotFoundError Data file missing Verify data path is correct
KeyError Column not in DataFrame Check column names match config
ValueError Data type mismatch Convert types before plotting
Empty figure No data after filtering Validate data before visualization

Error Template

python
def safe_generate_report(data_path: str, output_path: str, config: dict) -> dict:
    """Generate report with error handling."""
    try:
        # Validate data exists
        if not Path(data_path).exists():
            return {'status': 'error', 'message': f'Data file not found: {data_path}'}

        # Load and validate
        df = pd.read_csv(data_path)

*See sub-skills for full details.*

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results