sn-image-doctor
What it does
This skill checks whether the SenseNova-Skills tools are installed and set up correctly. It is for people who see errors from SenseNova skills and want to find out what is missing.
When to use it
- βWhen a SenseNova skill fails and you want to check the setup.
- βWhen you have just installed SenseNova-Skills and want to confirm it is ready.
- βWhen you need to add a missing API key to your SenseNova configuration.
Skill link
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-doctor/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCheck whether my SenseNova-Skills setup is complete and tell me which keys are missing.β
5 new skills a week. 1 minute to read.
How it works
The agent runs a check that looks at the installation, Python packages and environment variables, then offers to save any missing values to a settings file.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
sn-image-doctor
Overview
sn-image-doctor is an infrastructure skill (tier 0) that validates the SenseNova-Skills environment before running other skills. It ensures SenseNova-Skills project is properly installed and configured.
This skill performs comprehensive checks including:
- Installation verification of SenseNova-Skills project
- Python dependency validation
- Environment variable configuration checks, with interactive prompts to configure missing required variables and save them to
.env - Automatic environment reload after configuration changes, with agent restart suggestion if reload fails
Usage
Run the doctor check to validate your environment:
# Basic check
python scripts/check_environment.py
# Verbose output with detailed diagnostics
python scripts/check_environment.py --verbose
Output Format
Text Output
=== SenseNova-Skills Environment Check ===
[1/3] Checking sn-image-base installation...
β
Installation looks good
[2/3] Checking Python dependencies...
β
Python 3.11.0
β
All required packages installed
[3/3] Checking environment variables...
β SN_IMAGE_GEN_API_KEY: Image generation API key is not set; configure SN_API_KEY, or configure SN_IMAGE_GEN_API_KEY only for an image-generation-specific override
Some required environment variables are missing.
Enter values below to save them to /path/to/.env.
Press Enter to skip a variable.
SN_API_KEY: <user input>
β
Saved to /path/to/.env: SN_API_KEY
π Reloading environment...
β
Environment reloaded successfully
=== Summary ===
β
Environment is properly configured
If reload fails, the output will suggest restarting the agent:
β
Saved to /path/to/.env: SN_API_KEY
π Reloading environment...
β οΈ Failed to reload environment: <error message>
π‘ Suggestion: Restart the agent to apply new configuration
Error Output
When checks fail:
=== SenseNova-Skills Environment Check ===
[1/3] Checking sn-image-base installation...
β sn-image-base directory not found
Expected location: /path/to/skills/sn-image-base
[2/3] Checking Python dependencies...
β Missing packages: httpx, pillow
Run: pip install -r skills/sn-image-base/requirements.txt
=== Summary ===
β Environment check failed
Please fix the errors above before using SenseNova-Skills.
Troubleshooting
sn-image-base Not Found
Problem: sn-image-base directory not found
Solution:
# Ensure you're in the project root
cd /path/to/SenseNova-Skills
# Verify the directory exists
ls -la skills/sn-image-base
Missing Dependencies
Problem: Required Python packages not installed
Solution:
# Install dependencies
pip install -r skills/sn-image-base/requirements.txt
# Or use a virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r skills/sn-image-base/requirements.txt
Missing Environment Variables
Problem: Required environment variables not set
Solution:
# If all capabilities use the same gateway, set only the global values.
export SN_API_KEY="your-api-key"
export SN_BASE_URL="https://your-api-endpoint.com"
# Or create a .env file
cat > .env << EOF
SN_API_KEY=your-api-key
SN_BASE_URL=https://token.sensenova.cn/v1
SN_CHAT_TYPE=openai-completions
SN_CHAT_MODEL=sensenova-6.8-flash-lite
EOF
# Load .env file
source .env # Or use a tool like python-dotenv
Fallback priority is capability-specific variable > domain shared variable > global variable. For example, text calls use SN_TEXT_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY; vision calls use SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY; image generation uses SN_IMAGE_GEN_API_KEY -> SN_API_KEY.
API Connectivity Issues
Problem: Cannot reach API endpoints
Solution:
Verify network connectivity
Check firewall settings
Verify API endpoint URLs are correct
Test with curl:
curl -I https://your-api-endpoint.com
Integration with Other Skills
This skill is designed to be run before using other skills in the SenseNova-Skills project:
# 1. Run doctor check
python skills/sn-image-doctor/scripts/check_environment.py
# 2. If checks pass, use other skills
python skills/sn-image-base/scripts/sn_agent_runner.py sn-image-generate \
--prompt "A beautiful landscape"
Command-Line Options
| Option | Description |
|---|---|
| `--ve |
FAQ
Does it show my API keys?
It reports which variables are missing and saves values only when you enter them.
Will I need to restart my agent?
Sometimes. If the reload fails, it suggests restarting the agent.
Is there a detailed mode?
Yes. A verbose option shows more detailed diagnostics.
Details
Original description by the author
Environment diagnostic skill for SenseNova-Skills project. Checks that sn-image-base is properly installed and configured, validates dependencies and environment variables. Prompts user to configure missing required variables and saves them to .env file. After configuration, reloads environment and suggests agent restart if needed.
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14460
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
sn-code-video
6.0kTeaches your agent to make code-driven videos with Canvas, SVG, Three.js or Remotion, checked frame by frame and exported as MP4.
sn-image-base
6.0kGives other skills low-level tools to generate images, recognize picture content and optimize text using SenseNova services.
sn-image-imitate
6.0kHelps your agent create a new image that copies a reference picture's style while changing its content to match your request.
sn-image-resume
6.0kHelps your agent turn your resume text into a designed portfolio-style resume image, with optional style choices.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.