Communitygithub.com

PrunaAI/pruna-skills

当用户明确需要最快、最便宜的图片生成时使用——用于情绪板、批量面板或快速迭代,而不是受控逼真或图片内文字的场景。

pruna-skills 是什么?

该技能专为快速、低成本的图片生成而设计,是制作情绪板、批量面板或快速迭代的理想选择。它通过一个简短的提示词直接调用 Pruna API 的 `p-image` 模型,强调速度和成本效益,而不提供对逼真度和图片内文本的精细控制。技能包含详细的提示词构建指南,要求用户使用 `generation-diversity` 的随机种子仪式来确保持续的主题多样性,同时严格遵循“动态且忠实”的原则,首先锁定用户的主题和必需事实,然后通过自由轴(如相机、灯光、渲染类别)扩展提示词。生成的图片质量检查流程和后续编辑(如 `p-image-edit`)也包含在内。该技能适用于 Cursor、Claude Code 等支持技能安装的 AI 辅助开发环境。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/PrunaAI/pruna-skills/tree/HEAD/skills/image/p-image

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

先决条件

在生成之前安装并加载这些技能(如果已通过 @pruna 在上下文中,则跳过):

技能描述安装命令
generation-diversity在编写任何生成提示词时使用——仪式性种子、明确结构、场景轴、付费 API 调用前的质量门控。npx skills add PrunaAI/pruna-skills@generation-diversity -y
image-prompting在为任何生成模型构建静态图像提示词时使用——构图、身份表、编辑、试穿和逼真角色。npx skills add PrunaAI/pruna-skills@image-prompting -y
pruna-api在任何 Pruna 或 Replicate HTTP 调用前使用——凭据、上传/轮询/下载、并行批处理和代理安全。npx skills add PrunaAI/pruna-skills@pruna-api -y

或者一次性安装全套技能: npx skills add PrunaAI/pruna-skills@pruna -y

请遵循每个技能的 生成本身 / 构建部分——不要在此重复指南内容。

代理习惯

路由: 对于从简短提示词进行的 简单、快速 图片生成,使用 `p-image`。当图片生成需要 更多控制(图片中的文字、包含十六进制颜色/边界框的结构化 JSON、高细节逼真效果)时,使用 `p-image-ideogram`(默认 thinking: high、prompt_upsampling: true;对于同一模型上的更快生成,使用 low + prompt_upsampling: false + 明确的提示词)。对于编辑或视频,使用 `p-image-edit` 或 `p-video-2`——而不是重新生成新的图片。

在 第一次回复 中,用反引号命名 `p-image`,确认 PRUNA_API_KEY 已设置(如果未设置,则停止并提供 pruna-api 中的注册链接),然后询问提示词/宽高比(开放输入 → generation-diversity 澄清输入)。在起草提示词时,请遵循 提示词构建(动态 + 忠实)——不要粘贴技能示例。

提示词构建(动态 + 忠实)

每个 input.prompt 必须 新颖且具体,并且必须 保留用户的请求。多样性绝不能覆盖需求摘要。

要做的事不要做的事
执行 generation-diversity 随机种子仪式;说明它;轮换至少 2 个自由轴(相机、灯光、设置纹理、渲染类别)复制此技能中的 curl 示例(水獭DJ、柯基牛仔……)或重复使用前一会话的提示词
首先锁定用户要求的事实(主题、产品、品牌线索、必须保留的道具、如果需要则要求可读文字)将主题替换为忽略请求的“更酷”场景
用具体名词、冻结的动作、材料、位置来扩展(image-prompting 黄金规则)模糊的仅情绪字符串(酷产品氛围,霓虹)
在用户未锁定措辞之前,在 POST 前显示草拟的提示词 + aspect_ratio使用与已批准主题不同的主题进行静默重新生成

忠实度检查(付费前): 如果你从提示词中移除了用户命名的主题/产品/设置,那么任务就是错误的——重写。自由轴只填充需求摘要中未明确的部分。

在显示草拟的提示词时,仍然命名 `p-image`(指南有助于构建;此工具拥有调用权)。

Pruna 注意: p-image 没有提示词上采样——具体语言是全部技巧。除非用户明确要求表面上的文字,否则避免密集的可读排版。

何时不使用

改用其他技能:

技能描述安装命令
p-image-ideogram当图片生成需要更多控制时使用——逼真结果、图片中的文字,或包含十六进制颜色和边界框的结构化 JSON。更简单的图片生成、编辑和视频使用套件中的其他技能。npx skills add PrunaAI/pruna-skills@p-image-ideogram -y
p-image-edit当有人想编辑现有图片时使用——更换服装或背景、从参考图像合成,或应用提示词驱动的编辑。npx skills add PrunaAI/pruna-skills@p-image-edit -y
p-image-try-on当有人想要虚拟试穿时使用——为时尚或电子商务场景,用参考照片中的服装为一模特穿衣。npx skills add PrunaAI/pruna-skills@p-image-try-on -y

HTTP (curl)

创建(异步——推荐)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H "apikey: ${PRUNA_API_KEY}" \
  -H 'Model: p-image' \
  -d '{
    "input": {
      "prompt": "Disco ball reflections on an otter DJ scratching vinyl at a packed 1970s roller rink, fish-eye lens, glitter confetti mid-air, funky energy",
      "aspect_ratio": "9:16"
    }
  }'

轮询并下载:遵循 pruna-api。

在编写提示词之前,完成 generation-diversity 的随机种子仪式——不要将仪式字符串作为 API seed 参数传递。只有在用户请求可重现性时才使用可选的 api_seed。

创建(同步——仅快速测试)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H "apikey: ${PRUNA_API_KEY}" \
  -H 'Model: p-image' \
  -H 'Try-Sync: true' \
  -d '{"input":{"prompt":"Corgi cowboy lassoing a runaway taco truck through Monument Valley dust storm, pulp western poster energy, dynamic diagonal composition","aspect_ratio":"16:9"}}'

生成流程

每次均遵循 generation-diversity 静态图像提示词流程:

  1. 锁定需求摘要 —— 用户主题、产品、格式、任何表面文字。
  2. 仪式性种子 —— 新鲜字符串;派生自由轴(相机、灯光、render_category_tag、aspect_ratio(如未设置))。
  3. 起草明确的提示词 —— 提示词构建(动态 + 忠实) + image-prompting 黄金规则;付费前进行忠实度检查。
  4. 确认 —— 显示 prompt + aspect_ratio,除非措辞已锁定。
  5. POST —— 下面的异步 curl;通过 pruna-api 轮询;在放大/视频前运行 p-image 质量检查清单。

宽高比: 在 input 中传递 aspect_ratio;如果输出尺寸不匹配(例如要求 16:9,得到竖图),则用提示词中明确的 horizontal wide / vertical 措辞重试一次。

情绪板/批量: 每个独立静态图片使用新的仪式性种子;当格式未锁定时,每个面板使用不同的 aspect_ratio。

图片批准后 → 编辑: 将输出 URL 交给 p-image-edit 处理——不要为同一主题再次运行图片生成。

必需输入

  • prompt(字符串)

常用可选字段

  • aspect_ratio:1:1、16:9、9:16、4:3、3:4、3:2、2:3、custom(同时使用 width / height,值为 16 的倍数,范围 256–1440)
  • seed、lora_weights、lora_scale、hf_api_token、disable_safety_checker

典型后续步骤

此技能后的常见后续操作:

技能描述安装命令
p-image-edit当有人想编辑现有图片时使用——更换服装或背景、从参考图像合成,或应用提示词驱动的编辑。npx skills add PrunaAI/pruna-skills@p-image-edit -y
p-image-try-on当有人想要虚拟试穿时使用——为时尚或电子商务场景,用参考照片中的服装为一模特穿衣。npx skills add PrunaAI/pruna-skills@p-image-try-on -y
p-image-upscale当有人想为打印、大裁剪或更高质量的交付而放大或锐化现有图像时使用。npx skills add PrunaAI/pruna-skills@p-image-upscale -y
p-video-2-pro当有人想要从文本或起始/结束帧获得电影级剪辑时使用——产品广告、纪录片镜头或带有生成音频的对话。不适用于 1080p、导入的音轨或仅说话头的主持人。npx skills add PrunaAI/pruna-skills@p-video-2-pro -y
p-video-2当有人想要一个从文本、图像或导入音频生成的精致短视频时使用——1080p B-roll、起始/结束帧动画或带有混合音轨的动态镜头。不适用于电影级生成音频剪辑或仅说话头的主持人。npx skills add PrunaAI/pruna-skills@p-video-2 -y
p-video当有人想要一个从文本或图像生成的简单短视频时使用——快速 B-roll、草稿或起始/结束帧动画。不适用于需要电影级生成、最高质量、紧密唇形同步或 1080p 导入音频的情况。npx skills add PrunaAI/pruna-skills@p-video -y
avatar-single-scene当有人想要一个精心制作的主持人单镜头时使用——说话人物,包含输入和批准门控。npx skills add PrunaAI/pruna-skills@avatar-single-scene -y
avatar-multi-scene当有人想要同一人物主持多个剪辑时使用——多片段 UGC、对比轮播或混合说话和动画场景并保持连续性。npx skills add PrunaAI/pruna-skills@avatar-multi-scene -y

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

PrunaAI/pruna-skills

Use when someone needs spoken narration or voiceover — explainer tracks, documentary lines, or voice to pair with generated video.

PrunaAI/pruna-skills

Use when someone wants an original AI song with vocals — sung lyrics, a style prompt track, or source audio for a music video.

PrunaAI/pruna-skills

Use when someone needs word-level timestamps from audio — lyric alignment, cut-safe line boundaries, or caption source timing before burn-in with video-editing.

PrunaAI/pruna-skills

Use before any Pruna or Replicate HTTP call — credentials, upload/poll/download, parallel batches, and agent safety.

PrunaAI/pruna-skills

Use when assembling or polishing already-rendered clips with ffmpeg — concat, crossfades, burned captions and subtitles, text/logo overlays, before/after sliders, background music beds, platform export — or when composing a multi-layer HTML combination video with Hyperframes. Not for AI video generation, prompt craft, or model-based video edits.

PrunaAI/pruna-skills

Use when crafting video or motion prompts for any generative model — dramaturgy, camera, physics-safe motion, frame anchors, and clip chaining.

PrunaAI/pruna-skills

Use when someone wants to edit an existing photo — change outfits or backgrounds, compose from reference images, or apply prompt-driven edits.

PrunaAI/pruna-skills

Use when someone wants virtual try-on — dress a person in clothes from reference photos for fashion or ecommerce.

PrunaAI/pruna-skills

Use when installing the full Pruna generative media suite — all guides, tools, and workflows in one package.

PrunaAI/pruna-skills

Use when someone wants a cinematic clip from text or start/end frames — product ads, documentary shots, or dialogue with generated audio. Not for 1080p, imported audio tracks, or talking-head-only hosts.

PrunaAI/pruna-skills

Use when someone wants a polished short clip from text, images, or imported audio — 1080p B-roll, start/end frame animation, or a motion shot with a mixed track. Not for cinematic generated-audio clips or talking-head-only hosts.

PrunaAI/pruna-skills

Use when someone wants to edit an existing video with a text instruction — recolor, restyle, remove or add objects, change environment or lighting, update on-screen text, or apply optional reference-guided product and accessory edits. Not for a new clip from scratch or ffmpeg assembly.

PrunaAI/pruna-skills

Use when someone wants a simple short clip from text or images — quick B-roll, drafts, or start/end frame animation. Not when the brief needs cinematic generation, highest quality, tight lip-sync, or imported audio at 1080p.

相关技能