image-generation-diagnostics

Diagnose image_generation tool chain failures by validating network connectivity, API authentication, and model responses.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/dascard/nanobot --skill image-generation-diagnostics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation-diagnostics
Source: https://github.com/dascard/nanobot/tree/main/.agents/skills/image-generation-diagnostics
Command: npx skills add https://github.com/dascard/nanobot --skill image-generation-diagnostics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires asyncio, json, pathlib, urllib.

What problem does it solve?

This skill provides a systematic diagnostic framework to identify and fix failures in the Nanobot image generation pipeline, such as connection errors, authentication issues, or model capability limitations.

Core Features & Use Cases

  • Pipeline Validation: Verifies network connectivity, API key validity, and model availability.
  • Error Analysis: Decodes HTTP error responses to distinguish between configuration issues, provider token expiration, and model-specific constraints.
  • Use Case: When a user reports that image generation is failing, use this skill to run a diagnostic check on the environment variables and perform a test generation to pinpoint whether the issue lies in the network, the API provider, or the local file system.

Quick Start

Run the image generation diagnostics tool to verify the current API configuration and test the image generation pipeline.

Frequently Asked Questions about image-generation-diagnostics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I troubleshoot image generation failures in Nanobot?

Troubleshoot Nanobot image generation failures by running diagnostic scripts that validate network connectivity, API authentication, and model response capabilities to pinpoint the exact failure point.

Why does my image generation API return HTTP errors and fail to save files?

Image generation HTTP errors occur due to configuration issues, provider token expiration, or model constraints. Diagnostics decode these responses and verify local file system PNG output integrity to resolve saving failures.

Do I need Python networking libraries to debug API authentication issues?

Debugging API authentication issues requires standard Python networking and file system libraries, specifically asyncio, json, pathlib, and urllib, to execute diagnostic scripts and validate environment variables.

What is the best way to validate network connectivity for image generation models?

Validate network connectivity for image generation models by performing a test generation that checks environment variables, verifies API key validity, and tests the pipeline end-to-end to identify provider or local issues.

Image generation not working in Nanobot, how to check if it is a token expiration issue?

Check token expiration issues by analyzing HTTP error responses through the diagnostic framework, which distinguishes between local configuration problems, provider token expiration, and model-specific constraints.