Skip to content
huangserva avatar

Intelligent Prompt Generator

Generates image prompts across portrait, cross-domain, and design modes, with Claude supplying semantic gaps the database lacks.

CCM score
41 of 100
skills.sh installs
264
GitHub stars
1.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three generation modes: portrait, cross-domain (combining portrait, video, art, and common domains), and design for posters and cards
  • Draws on 1,246 database elements for lighting, photography, composition, technical quality, and basic character traits
  • Requires Claude to fill in anime characters, special moves, historical figures, and IP styles that the database cannot cover
  • Selects database elements only when their keywords match the request, and falls back to Claude-written English descriptions otherwise

Install

$ npx -y skills add huangserva/skill-prompt-generator --skill intelligent-prompt-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Intelligent Prompt Generator Skill v2.0

你是一个智能提示词生成专家,拥有语义理解、常识推理和一致性检查能力。

🎉 v2.0 新功能

系统已升级到v2.0!现在支持3种生成模式:

1️⃣ Portrait(人像)- 向后兼容

  • 适用:纯人像摄影
  • 示例:"生成一个年轻女性肖像"
  • 使用:portrait domain (502个元素)

2️⃣ Cross-Domain(跨域)- 🆕 新功能

  • 适用:复杂场景,需要多domain组合
  • 示例:"龙珠悟空打出龟派气功的蜡像3D感"
  • 使用:自动识别需要的domains(portrait + video + art + common)
  • 优势:充分利用1,246个元素,利用率从40%提升到80%

3️⃣ Design(设计)- 🆕 新功能

  • 适用:设计海报、卡片,需要专业设计规范
  • 示例:"温馨可爱风格的儿童教育海报"
  • 使用:SQLite元素 + YAML变量(配色、边框、装饰)
  • 优势:20万+种配色组合

🚀 如何使用v2.0

重要:系统会自动识别用户需求类型并选择最佳生成模式!

调用方式

当用户请求生成提示词时,你需要:

  1. 解析用户输入,识别需求类型
  2. 调用Python生成器
  3. 返回结果

关键代码:

import os
os.chdir('/Users/serva/.claude/skills/skill-prompt-generator')

from core.cross_domain_generator import CrossDomainGenerator

generator = CrossDomainGenerator()
result = generator.generate(user_input)

print(f"生成类型: {result['type']}")
print(f"提示词: {result['prompt']}")

generator.close()

自动识别规则

系统会自动根据用户输入识别类型:

  • 有人物 + 无复杂需求 → portrait
  • 有人物 + 有动作/特效 → cross_domain
  • 有设计风格关键词 → design

🌟 Cross-Domain智能补充机制(重要!)

核心原则:数据库提供通用元素,Claude补充语义内容!

为什么需要智能补充?

Details

Repository
github.com/huangserva/skill-prompt-generator
Category
AI Image, Video & Voice
First seen
Jun 3, 2026

Questions

What does the intelligent-prompt-generator skill do?

The intelligent-prompt-generator skill is a v2.0 prompt generator that supports portrait, cross-domain and design modes, with semantic understanding, common-sense reasoning and consistency checks. In cross-domain mode it combines database elements with descriptions the agent writes itself, such as anime characters or special moves.

How do I install the intelligent-prompt-generator skill?

Run npx -y skills add huangserva/skill-prompt-generator --skill intelligent-prompt-generator -y inside a project. After that, the intelligent-prompt-generator skill lets the agent turn a request like a Dragon Ball character performing a special attack into a full image prompt.

What does the intelligent-prompt-generator skill need to run?

The intelligent-prompt-generator skill runs on Python 3.8 or later and reads the Universal Elements Library bundled in the skill-prompt-generator repository. Its Python engine needs the packages listed in requirements.txt, installed with pip.

Which category is the intelligent-prompt-generator skill in?

The intelligent-prompt-generator skill sits in the AI Image, Video and Voice category on Claude Marketplaces. Its neighbours there include ai-video-generation and ai-image-generation, which lead that category.

Similar to Intelligent Prompt Generator

More AI Image, Video & Voice