sn-image-base
できること
これは、他のSenseNovaスキルが呼び出す基礎の部品となるスキルです。主にエンドユーザーではなく、開発者や他のスキルのためのものです。
使う場面
- ✓別のSenseNovaの画像スキルが、画像を生成または編集する必要があるとき。
- ✓スキルが、画像に何が写っているかを認識する必要があるとき。
- ✓スキルが、LLMを使って文章を書き直したり最適化したりする必要があるとき。
スキルのリンク
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-base/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“SenseNovaの画像ツールを使って、夕暮れの静かな図書館の16:9の画像を生成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、依頼をSenseNovaの画像またはLLMのサービスに送り、入力を前処理せずに結果を返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
sn-image-base
Dependency Installation
pip install -r requirements.txt
Overview
sn-image-base is the base-layer skill (tier 0) of the SenseNova-Skills project and provides four low-level tools:
sn-image-generate: image generation (calls text-to-image-no-enhance API)sn-image-edit: image editing with SenseNova U1.5 Lite (calls/images/edits)sn-image-recognize: image recognition (uses VLM to analyze image content)sn-text-optimize: text optimization (uses LLM to process text)
This skill does not perform any input preprocessing and only calls backend services to return results.
Tools List
sn-image-generate
Image generation tool that calls the text-to-image-no-enhance API.
--prompt is required; all other parameters are optional:
| Parameter | Type | Default | Description |
|---|---|---|---|
--prompt |
string | Required | Prompt text for image generation |
--negative-prompt |
string | "" |
Negative prompt |
--image-size |
string | 2k |
Image size preset (case-insensitive). Recommended: 2k. 4k is supported by sensenova-u1.5-lite; other SenseNova image models may reject it. Other values → status=failed. |
--aspect-ratio |
string | 16:9 |
Aspect ratio, e.g. 1:1, 16:9, 9:16 |
--seed |
int | None |
Random seed for reproducible generation |
--unet-name |
string | None |
Specify a UNet model name |
--api-key |
string | SN_IMAGE_GEN_API_KEY -> SN_API_KEY |
API key (CLI argument has priority; MissingApiKeyError is raised when all are empty) |
--base-url |
string | SN_IMAGE_GEN_BASE_URL -> SN_BASE_URL |
API base URL (CLI argument has priority) |
--poll-interval |
float | 5.0 |
Polling interval (seconds) |
--timeout |
float | 300.0 |
Timeout (seconds) |
--insecure |
flag | False |
Disable TLS verification |
--save-path |
Path | Auto-generated | Save path |
SenseNova image requests explicitly send watermark=false by default. Both sensenova-u1-fast and sensenova-u1.5-lite are supported; U1.5 Lite additionally supports native 4K output. This no-watermark feature is currently in free public beta and may become paid.
sn-image-edit
Edits one or more reference images with SenseNova U1.5 Lite through the /images/edits endpoint. Local paths are converted to Data URLs; HTTP(S) URLs and Data URLs are passed through.
python scripts/sn_agent_runner.py sn-image-edit \
--prompt "Change the background to a snowy mountain" \
--images source.png reference.png \
--save-path edited.png
The edit request uses the official defaults n=1, size=auto, watermark=false, prompt_extend=true, and response_format=url.
sn-image-recognize
Image recognition tool that uses VLM (Vision Language Model) to analyze image content. Supports multiple image inputs.
--images and --user-prompt (or --user-prompt-path) are required. All other parameters use three-level defaults (CLI > env var > built-in default):
| Parameter | Type | Built-in Default | Env Var | Description |
|---|---|---|---|---|
--api-key |
string | No hardcoded default | SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY |
Chat runtime API key; raises MissingApiKeyError when all are unset |
--base-url |
string | SN_CHAT_BASE_URL default |
SN_VISION_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URL |
Vision provider base URL; falls back to shared chat/global provider |
--model |
string | sensenova-6.8-flash-lite |
SN_VISION_MODEL -> SN_CHAT_MODEL |
Vision-capable model name |
--vlm-type |
string | openai-completions |
SN_VISION_TYPE -> SN_CHAT_TYPE |
Chat protocol type override |
--user-prompt-path |
string | None |
- | Local file path, mutually exclusive with --user-prompt |
--system-prompt-path |
string | None |
- | Local file path, mutually exclusive with --system-prompt |
Available values for --vlm-type:
openai-completions: OpenAI-compatible/v1/chat/completionsinterfaceanthropic-messages: Anthropic Messages/v1/messagesinterface
sn-text-optimize
Text optimization tool that uses LLM (Language Model) to optimize text content. Does not accept image inputs.
--user-prompt (or --user-prompt-path) is required. All other parameters use three-level defaults (CLI > env var > built-in default):
| Parameter | Type | Built-in Default | Env Var | Description | |------|------|---------
よくある質問
直接使えますか?
他のスキルのためのものなので、ほとんどの人はそれらのスキルを通して使います。
入力を先に変えますか?
いいえ。入力を前処理せず、サービスを呼び出して結果を返します。
どの画像サイズが使えますか?
1:1、16:9、9:16などの一般的な縦横比に対応しており、2kが推奨サイズです。
詳細
作者による元の説明
Base-layer skill for the SenseNova-Skills project, providing low-level APIs for image generation, recognition (VLM), and text optimization (LLM). This skill does not preprocess inputs; it only calls backend services and returns results. This skill is not user-facing and is intended for upper-layer skills only.
人気
- GitHubのスター
- 6.0k
- ランキング
- #14459
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
sn-code-video
6.0kCanvas、SVG、Three.js、Remotionでコードから動画を作り、フレームごとに確認してMP4で書き出す方法をエージェントに教えます。
sn-image-doctor
6.0kSenseNova-Skillsの設定がインストールされ、Pythonパッケージがあり、必要なAPIキーがそろっているかを確認し、不足しているキーをファイルに保存します。
sn-image-imitate
6.0k参考画像のスタイルをまねた新しい画像を作り、依頼に合うように内容を変えるようエージェントを支援します。
sn-image-resume
6.0k履歴書のテキストを、デザインされたポートフォリオ風の履歴書画像に変換します。スタイルの選択肢も任意で指定できます。