Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)6.0k Β· #14460

sn-image-doctor

Fungsinya

Skill ini memeriksa apakah alat SenseNova-Skills sudah terpasang dan diatur dengan benar. Skill ini untuk orang yang melihat galat dari skill SenseNova dan ingin tahu apa yang kurang.

Kapan dipakai

  • βœ“Saat sebuah skill SenseNova gagal dan Anda ingin memeriksa pengaturannya.
  • βœ“Saat Anda baru saja memasang SenseNova-Skills dan ingin memastikan semuanya siap.
  • βœ“Saat Anda perlu menambahkan kunci API yang hilang ke konfigurasi SenseNova Anda.

Link skill

https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-doctor/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-doctor/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPeriksa apakah pengaturan SenseNova-Skills saya sudah lengkap dan beri tahu kunci mana yang hilang.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menjalankan pemeriksaan yang melihat instalasi, paket Python, dan variabel lingkungan, lalu menawarkan untuk menyimpan nilai yang hilang ke file pengaturan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:

  1. Verify network connectivity

  2. Check firewall settings

  3. Verify API endpoint URLs are correct

  4. 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
Pertanyaan umum

Apakah skill ini menampilkan kunci API saya?

Skill hanya melaporkan variabel mana yang hilang dan menyimpan nilainya saat Anda memasukkannya.

Apakah saya perlu memulai ulang agent?

Kadang perlu. Jika pemuatan ulang gagal, skill menyarankan untuk memulai ulang agent.

Apakah ada mode terperinci?

Ada. Opsi verbose menampilkan diagnosis yang lebih rinci.

Detail

Deskripsi asli dari pembuat

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.

repo: OpenSenseNova/SenseNova-Skills

Popularitas

Bintang GitHub
6.0k
Peringkat
#14460
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa