sn-image-doctor
O que ela faz
Esta skill verifica se as ferramentas do SenseNova-Skills estão instaladas e configuradas corretamente. É para quem vê erros nas skills da SenseNova e quer descobrir o que está faltando.
Quando usar
- ✓Quando uma skill da SenseNova falha e você quer verificar a configuração.
- ✓Quando você acabou de instalar o SenseNova-Skills e quer confirmar que está pronto.
- ✓Quando você precisa adicionar uma chave de API faltante à sua configuração da SenseNova.
Link da skill
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-doctor/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Verifique se minha configuração do SenseNova-Skills está completa e me diga quais chaves estão faltando.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente roda uma verificação que analisa a instalação, os pacotes Python e as variáveis de ambiente, e depois oferece salvar em um arquivo de configuração os valores faltantes.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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 |
Perguntas frequentes
Ela mostra minhas chaves de API?
Ela informa quais variáveis estão faltando e salva os valores somente quando você os digita.
Preciso reiniciar meu agente?
Às vezes. Se o recarregamento falhar, ela sugere reiniciar o agente.
Há um modo detalhado?
Sim. Uma opção verbose mostra diagnósticos mais detalhados.
Detalhes
Descrição original do autor
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.
Popularidade
- Estrelas no GitHub
- 6,0 mil
- Posição no ranking
- #14460
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
sn-code-video
6,0 milEnsina seu agente a criar vídeos guiados por código com Canvas, SVG, Three.js ou Remotion, verificados quadro a quadro e exportados como MP4.
sn-image-base
6,0 milDá a outras skills ferramentas de baixo nível para gerar imagens, reconhecer o conteúdo de figuras e otimizar textos com os serviços da SenseNova.
sn-image-imitate
6,0 milAjuda seu agente a criar uma nova imagem que copia o estilo de uma imagem de referência, mudando o conteúdo para combinar com o seu pedido.
sn-image-resume
6,0 milAjuda seu agente a transformar o texto do seu currículo em uma imagem de currículo com design estilo portfólio, com opções de estilo.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.