Prompt Constraints
生图 / 视频提示词约束引擎。把模糊需求、关键词、粗糙草稿或参考图,转成受约束、可校验、可直接投喂的生图(t2i / i2i)与视频(t2v / i2v / 多镜头)提示词。 用于:写/优化/扩写生图提示词,写/优化视频提示词,从参考图反推提示词(图画文 / img2prompt),锁定角色·场景·风格一致性(character sheet / 角色三视图 / 身份锚点),写负面约束与回避清单,按模型适配(Nano Banana Pro、即梦 Seedream、GPT Image、Midjourney、FLUX、Seedance、可灵 Kling、Veo、Sora、Hailuo、MiniMax、LTX、Wan)。 当用户提到「生图提示词 / 视频提示词 / prompt / 提示词 / 反推提示词 / 图画文 / 一致性 / 首帧图 / 分镜 / 运镜」时使用。
Install
npx skills add q253595422/prompt-constraints --skill prompt-constraintsgit clone --depth 1 https://github.com/q253595422/prompt-constraints.git /tmp/prompt-constraints
mkdir -p ~/.claude/skills
cp -r /tmp/prompt-constraints/. ~/.claude/skills/prompt-constraintsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Prompt Constraints —— 生图 / 视频提示词约束引擎 核心主张:**提示词的质量不来自形容词的堆砌,而来自约束的清晰度。** 这个 skill 不生产「好看的话」,它生产**受约束的、可校验的、模型能稳定执行的指令**。 --- ## 一、先路由,再动手 判断用户到底要什么,走对应路径: | 用户意图 | 信号 | 路径 | |---|---|---| | 生图 · 文本生图 | 描述一个画面 / 关键词 | → `references/templates.md` §T1 + `references/image.md` | | 生图 · 图生图 / 编辑 | 给图 + 要求改 | → `references/templates.md` §T2 + `references/image.md` | | 生图 · 参考图反推 | 上传图,「反推 / 图画文 / img2prompt」 | → `references/templates.md` §T3 + `references/image.md` §二 | | 视频 · 文生视频 | 描述一段动态 | → `references/templates.md` §V1 + `references/video.md` | | 视频 · 图生视频 | 给首帧/参考图 | → `references/templates.md` §V2 + `references/video.md` | | 视频 · 多镜头 / 分镜 | 时间轴、Shot 1/2/3 | → `references/templates.md` §V3 | | 视频 · FPV / 路径控制 | 路线、航拍、编号停靠 | → `references/templates.md` §V4 | | 一致性 · 角色 / 场景锁定 | 要跨图跨镜一致 | → `references/templates.md` §C1 + `references/consistency.md` | | 粗稿扩写 / 翻译 / 变量模板 | 「优化 / 扩写 / 变专业 / 转英文 / 做成模板」 | → `references/image.md` §三、§四 | | 按模型调优 | 点名 Nano Banana / Seedance / Veo… | → `references/models.md` | | 写负面约束 | 「避免什么 / negative prompt」 | → `references/negative.md` | **只问一个澄清问题**,且只问真正会改变结果的那个。信息不足时先按默认合理推断,不要问卷式盘问。 --- ## 二、约束体系速查 全部方法论的骨架是**六层约束模型**。这里是速查版,完整定义、判定标准与自检见 [`references/constraints-core.md`](references/constraints-core.md)。 | 层 | 一句话约束 | 典型失误 | |---|---|---| | **L1 事实** | 不编造焦距、光圈、型号、品牌、IP、地点;不确定就描述可见的视觉结果 | 写 `85mm f/1.4` 但画面毫无依据 | | **L2 媒介** | 明确目标媒介,并排除最容易混淆的错误媒介 | 想要写实却出了插画感 |
Details
- Skill name
prompt-constraints- Repository
- q253595422/prompt-constraints
- License
- MIT
- Repo updated
- 21 September 2026
FAQ
What does the Prompt Constraints skill do?
生图 / 视频提示词约束引擎。把模糊需求、关键词、粗糙草稿或参考图,转成受约束、可校验、可直接投喂的生图(t2i / i2i)与视频(t2v / i2v / 多镜头)提示词。 用于:写/优化/扩写生图提示词,写/优化视频提示词,从参考图反推提示词(图画文 / img2prompt),锁定角色·场景·风格一致性(character sheet / 角色三视图 / 身份锚点),写负面约束与回避清单,按模型适配(Nano Banana Pro、即梦 Seedream、GPT Image、Midjourney、FLUX、Seedance、可灵 Kling、Veo、Sora、Hailuo、MiniMax、LTX、Wan)。 当用户提到「生图提示词 / 视频提示词 / prompt / 提示词 / 反推提示词 / 图画文 / 一致性 / 首帧图 / 分镜 / 运镜」时使用。
How do I install the Prompt Constraints skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add q253595422/prompt-constraints --skill prompt-constraints. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Prompt Constraints popular?
It lives in q253595422/prompt-constraints, which has 5 GitHub stars and 0 forks.
Related skills
Prompt Optimizer
5talki-io/prompt-optimizer
Optimizes and polishes an existing AI/LLM prompt the user has already written — fixing wording, grammar, structure, redundancy, and clarity — while strictly preserving the original intent, role, scope, capabilities, constraint strength, and every technical detail (commands, paths, URLs, parameters, code blocks). Use whenever the user invokes /prompt-optimizer with a prompt (no extra instruction needed), or pastes a prompt and asks to optimize, refine, polish, clean up, simplify, tighten, restructure, make more professional, or "fix the wording" of it, even without the word "prompt" — e.g. "mak
Prism V2
5Ronkupper/PRISM
PRISM — structured multi-session, multi-vendor LLM-orchestrated audit and research framework. Trigger this skill whenever the user invokes PRISM mechanics by name or by recognizable construct: PRISM audit, PRISM v2, begin a PRISM audit, Master file, any filename matching *_master_p*.md, Prompt Strategy, Lens Library, Vendor Selection, Vendor Triangulation, Setup probes or any of P1-P7 by number, Monitor M* or any of M1-M12 by number, Standing Principle SP-*, Execution Envelope, Execution Self-check, Execution Output, Dispatch register, Dispatch shape (equivalence/split/limitation-named), the W
Reinit
5aisk/reinit
Review available recent code-agent history and tool calls, then update the current repository's durable agent guidance with repeatedly needed facts and user-corrected conventions. Run only when the user explicitly invokes /reinit, $reinit, or names the reinit skill; never invoke automatically.
Phd Application Advisor
5alex-yimingyang/phd-application-advisor
大龄非科班转AI申请海外PhD的全流程顾问。覆盖RA申请、选方向选校、套磁、文书、面试、推荐信、时间规划等所有环节,专门针对30+在职、非CS背景、想转AI方向申博的人群提供策略建议。 当用户提到以下任何场景时使用此skill:大龄读博、非科班申博、转行申PhD、30+申博、在职申博、工作后读博、非传统背景申请PhD、AI方向博士申请、美国博士申请、海外PhD、申博规划、申博咨询,或任何涉及"工作几年后想读博不知道怎么开始"的问题。即使用户没有明确说"非科班",只要描述了类似背景(非CS本科、工作多年、想转AI/ML方向读博),也应触发此skill。
Semantic Compression
5therealmoronto/claude-semantic-compression
Apply semantic logic compression (Ovchinnikov method) when crafting prompts for LLMs or describing complex conditional logic. Use this skill whenever the user asks to: write or optimise a prompt for an LLM, compress or rewrite a task description, describe multi-condition business logic (if/and/or/not chains), or asks why an LLM misunderstood their instructions. Also trigger when the user says ‘compress the logic’, ‘write a prompt for’, ‘the LLM doesn't understand’, ‘simplify the conditions’, or similar intents. Also trigger when the user wants to use output modifiers such as →code or →no-meta,
Openpencil Design Orchestrator
5ziiinian/openpencil-design-orchestrator
Orchestrate Pencil/OpenPencil design work through MCP using a staged workflow: preflight, planning, skeleton, section content, refinement, and safe fallback. Use when working with Pencil/OpenPencil, .fig/.pen design files, MCP-based design editing, or when Claude Code, Codex, Cursor, or Windsurf needs reliable prompt patterns, client setup guidance, and risk controls for AI-assisted design changes.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.