Preface¶
When performing design-oriented tasks in clients like Cursor or Claude Code, the common practice is to integrate a separate image API and write requests, polling logic, and error handling within Skills or scripts. Changing the model requires configuration changes. If you want the Agent to complete tasks like “drawing posters” or “generating style-transfer images” using natural language while minimizing the maintenance of multiple key sets, you can encapsulate the capabilities of Chanling (xdhdancer.top) into a standard Markdown Skill. With a one-time token configuration, the Agent will automatically select sub-capabilities and call interfaces according to the documentation.
Below is the positioning, capabilities, and installation method for the SkillHub community skill @user_91ce4cec/chanling-skill (current version 1.0.2).
What is this¶
@user_91ce4cec/chanling-skill is the master entry point Skill for the Chanling API (https://www.xdhdancer.top). It consists of a root SKILL.md that explains public authentication and asynchronous task conventions, and a subdirectory chanling-image that contains specific rules for image generation. It is published on SkillHub under the community source by publisher user_91ce4cec and categorized under design-media. The page is marked requires_api_key=true, meaning you must provide your own platform token before use.
The core problem this Skill solves is allowing Agents compatible with the Skill protocol to complete task submission, status polling, and result URL retrieval simply by reading Markdown instructions, without needing to hand-write curl commands in the conversation. Sub-skills for video and music are marked as “coming soon” in the official description; as of version 1.0.2, only image capabilities are implemented.
Core Features¶
The following capabilities are derived from the SKILL.md and chanling-image/SKILL.md within the Skill package and can be cross-referenced with the SkillHub introduction.
Unified Authentication and Sub-Skill Routing¶
- Base URL:
https://www.xdhdancer.top - Authentication: Bearer Token. The key is named
xdhdancer_api_keyin the client secrets (placeholder{{secrets.xdhdancer_api_key}}). It is shared across all sub-skills, so there is no need to create duplicate tokens for each capability. - Master Entry Responsibilities: Matches the sub-skill based on user intent (e.g., triggering
chanling-imagefor keywords like “draw”, “generate image”, “poster”), then reads and executes the correspondingSKILL.mdin the subdirectory.
Image Generation (chanling-image)¶
- Protocol: Async two-step process —
POST /v1/videosto submit a task, thenGET /v1/videos/{task_id}to poll. Although the path name containsvideos, the platform convention uses it to handle async tasks for images, videos, and audio. There is no synchronous image generation endpoint (do not use/v1/images/generationsfor this platform’s image models). - Recommended Models (Platform-internal Model IDs, default is the first one):
1.gpt-image-2(GPT series, general-purpose first choice)
2.gemini-3.1-flash-image-preview(Nano Banana 2, fast response, supports image-to-image)
3.gemini-3-pro-image-preview(Nano Banana Pro, for high-definition and text rendering scenarios) - Text-to-Image / Image-to-Image: For image-to-image, you must first upload the reference image via the platform’s image host
POST https://xdhdancer.top/api/share-data, then fill the returned URL into theimagesarray of the request body. - Connectivity Self-Check: On first use or if exceptions occur, run
GET https://www.xdhdancer.top/ai-api/pricingto confirm that models likegpt-image-2are included in the list.
Planned Capabilities¶
The master entry indicates that sub-skills like chanling-video (video), chanling-music (music), and chanling-text (text/multimodal) will be added later. The current package only contains chanling-image.
Installation and Activation¶
1. Install SkillHub CLI (if not installed)¶
Check or install according to the SkillHub Installation Instructions:
command -v skillhub && skillhub --version
If not installed, execute the following (full installation includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install this Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory loaded by your current client; otherwise, it defaults to ./skills/ which may not be recognized. The coordinates provided on the official page are @user_91ce4cec/chanling-skill. The installation method parsed by skillhub search is:
skillhub install chanling-skill --namespace user_91ce4cec --dir <your skills directory>
Common client skills paths (excerpted from SkillHub installation docs):
| Client | skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under project |
After installation, restart or refresh the Skill list according to the specific client’s requirements.
3. Create a token on the Chanling platform¶
- Open https://www.xdhdancer.top , register and recharge as needed (billing details at https://www.xdhdancer.top/pricing ).
- Create a key in “My Tokens” in the dashboard and copy the
sk-xxxformat token.
4. Write to client secrets¶
Store the token as a secret named xdhdancer_api_key, consistent with the placeholders in the Skill files. Please refer to your client’s secrets management documentation for the specific UI or configuration file usage.
Typical Usage¶
Conversational (Recommended)¶
The Skill is designed to be triggered by natural language. After installing and configuring xdhdancer_api_key, you can directly ask the Agent, for example:
- “Use the default model to draw a cyberpunk style cat, 2K square.”
- “Change this local reference image to a watercolor illustration style.” (The Agent should follow the sub-skill instructions to upload to the image host first, then perform image-to-image generation.)
The Agent should first read the master entry SKILL.md, match chanling-image, then use gpt-image-2 by default (if the user does not specify a model) according to the sub-skill, and poll the task at 5-second intervals with a maximum timeout of about 10 minutes.
Command Line Verification (Consistent with sub-skill examples)¶
You can use environment variables to carry the key and reproduce the async submission process:
KEY="$XDHDANCER_KEY"
BASE="https://www.xdhdancer.top"
RESP=$(curl -s -X POST "$BASE/v1/videos" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $KEY" \
-d '{
"model": "gpt-image-2",
"prompt": "a cyberpunk cat sitting on a neon-lit rooftop, ultra detailed",
"size": "2048x2048"
}')
TASK_ID=$(echo "$RESP" | jq -r '.task_id // .id')
# Poll until metadata.url or a failed terminal state
For the GPT series, size is placed at the top level of the request body; for Nano Banana (banana series), aspect ratio related parameters need to be placed inside metadata. See the Per-Kind Parameter Rules in chanling-image/SKILL.md for details.
Scenarios and Notes¶
Who is it for
- Users who already have an account and balance on xdhdancer.top and want to use one set of tokens for text-to-image and image-to-image within Agents like Cursor / Claude Code / Codex.
- Users willing to let the Agent handle async polling and error codes (401 Key, 402 Balance, 404 Model ID, etc.) according to the Markdown Skill, reducing hand-written integration code.
Limitations and Notes
- The Skill is strongly bound to https://www.xdhdancer.top: changing the base URL or model ID will cause authentication or calling failures; do not rewrite the endpoints in the Skill to other vendor APIs.
- Model names are identifiers within the platform and are not the same endpoints as official OpenAI/Google products with the same names.
- Image tasks are billed per use; failure refund rules follow the platform pricing. The Skill requires the Agent not to report specific unit prices to users; if price is needed, guide users to view the pricing page.
- SkillHub page statistics (as of crawl): Rating 100000, Downloads 1113 times; after installation, you still need to configure the API Key and recharge yourself. Community sources require self-evaluation of maintenance pace.
The Skill package notes that the update source can be referenced on GitHub: https://github.com/CCCpan/chanling-skill; SkillHub distribution address is at the end of the text.
Conclusion¶
@user_91ce4cec/chanling-skill encodes the Chanling platform’s async image generation protocol into a standard Skill: configure xdhdancer_api_key once, and the Agent can call gpt-image-2 and the Nano Banana series according to the documentation. After the installation and secrets configuration above, you can complete image generation in conversation; video and music capabilities are subject to future official sub-skills.
- SkillHub Page: https://www.skillhub.cn/skills/user_91ce4cec/chanling-skill
- API Coordinates Page: https://api.skillhub.cn/user_91ce4cec/chanling-skill
- Chanling Platform: https://www.xdhdancer.top