Preface¶
When generating images within Agents like Cursor or Claude Code, the common approach is to write temporary scripts or manually open standalone drawing sites. This requires switching contexts back and forth, and for image-to-image tasks, you have to manage reference image uploads and parameters yourself. If you want to integrate “text-to-image” and “image-to-image editing” into a single conversation, you need an image generation Skill encapsulated according to Agent Skill specifications that clearly indicates API Key dependencies.
Below is an introduction to the SkillHub community Skill GPT - image2 (Coordinate @user_e942ebfc/gpt-image2-pro): Based on the gpt-image-2 model, it supports both text-to-image and image-to-image, and is described on the page as out-of-the-box.
What is this¶
GPT - image2 is a design-media category community Skill on SkillHub. The current version is v1.0.9, published by user_e942ebfc, with the source marked as community.
One-sentence positioning: It provides AI image generation capabilities on the Agent side. The underlying model is gpt-image-2, supporting text-to-image and image-to-image. The Skill tag includes requires_api_key=true, meaning you need to prepare and configure the API Key required for the model service before use (refer to the SKILL.md within the installation package for specific variable names and configuration steps; this article does not speculate on field names).
Official Pages:
- SkillHub Showcase Page: https://www.skillhub.cn/skills/user_e942ebfc/gpt-image2-pro
- API Entry (Official address in materials): https://api.skillhub.cn/user_e942ebfc/gpt-image2-pro
As of the data capture time, the page statistics show a rating of 100000 and 34893 downloads (SkillHub statistics change over time; refer to the official website for the latest data).
Core Functions¶
The following capabilities are derived from the SkillHub introduction and metadata, with no extensions added:
- Text-to-Image: Generate images based on natural language descriptions.
- Image-to-Image: Generate or rewrite based on existing reference images according to prompts (specific interaction methods are defined by the instructions within the Skill).
- Model: Uniformly uses gpt-image-2.
- Integration Form: Standard Agent Skill (SKILL.md format). After installing to the current Agent’s skills directory, the Agent reads and executes it during appropriate tasks.
Installation and Activation¶
The installation instructions provided officially by SkillHub are divided into two methods: handing over to an AI to install via documentation, or using the skillhub CLI.
Method 1: Hand over Prompt to AI¶
Send the following intent to the current Agent (consistent with the SkillHub page copy):
请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_e942ebfc/gpt-image2-pro`。
The Agent will follow the SkillHub Installation Instructions to check the CLI, select the skills directory, and execute the installation.
Method 2: skillhub CLI¶
If skillhub is already on your machine, you must use --dir during installation to point to the actual skills directory used by the current Agent. Otherwise, it defaults to installing to ./skills/ which may not be recognized; usually, a restart or refresh of the Agent is required after installation.
First, confirm the CLI:
command -v skillhub && skillhub --version
If not installed, you can execute it according to the SkillHub documentation (full installation example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing this Skill, replace <skills directory> with your environment path. Common paths listed in the SkillHub documentation include:
| Environment | skills Directory (Documented) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Example (Cursor):
skillhub install user_e942ebfc/gpt-image2-pro --dir ~/.cursor/skills/
The coordinate is written as @user_e942ebfc/gpt-image2-pro on the page; when using CLI search and installation, simply use the form user_e942ebfc/gpt-image2-pro (consistent with the SkillHub Section 3 example).
API Key¶
The metadata tag requires_api_key=true indicates that this Skill relies on an external API. After installation, please open SKILL.md and the attached instructions in the skill directory to configure the Key as required by the publisher; without configuration, generation requests cannot be completed normally.
Typical Usage¶
The public page does not include a standalone long-form tutorial. The reproducible workflow is as follows:
- Complete the installation as described in the previous section and configure the API Key.
- Restart or reload the Agent to confirm that GPT - image2 appears in the available Skills list.
- Directly explain the task type in the conversation:
- Text-to-Image: Describe the subject, style, composition, and other expectations of the image;
- Image-to-Image: Provide a reference image (or explain the existing path/attachment) and clearly state what parts you wish to retain or modify.
- The Agent reads the steps in SKILL.md to call gpt-image-2; the output is generally the generated image or a saved path, subject to the definitions within the Skill.
If you need to verify details such as parameter limits, sizes, or formats, please use the SKILL.md inside the installation package as the sole basis. This article does not list interface fields that do not appear in the official summary.
Scenarios and Precautions¶
Who is it for
- Developers or creators who are already using Agents in environments like Cursor, Claude Code, or Codex and wish to complete image generation and editing within the same conversation.
- Users who already possess the API access rights and Key corresponding to gpt-image-2 and are willing to perform a one-time configuration according to the Skill documentation.
Limitations and Notes
- Community Source: Behavior and maintenance rhythm depend on the publisher. Before upgrading, check SkillHub to see if version v1.0.9 has updates.
- API Costs and Compliance: Image generation goes through a third-party model API. Usage and billing are determined by the service to which the Key belongs.
- Installation Directory: Be sure to point
--dirto the current Agent’s skills path to avoid the situation where “it is installed but the Agent does not load it.” - Material Scope: The functional description in this article corresponds only to the SkillHub introduction; for finer details on scripts, environment variables, and example commands, refer to the SKILL.md after installation.
Conclusion¶
GPT - image2 encapsulates the text-to-image and image-to-image capabilities of gpt-image-2 into an Agent Skill, suitable for lightweight image generation workflows inside IDEs or CLI Agents; remember to handle requires_api_key and complete the skills directory installation.
Official Entry: https://www.skillhub.cn/skills/user_e942ebfc/gpt-image2-pro