Communitygithub.com

101-skills/superpowers

掌握針對 AI 模型(LLM、影像生成、影片模型)的提示工程技巧:思維鏈、少樣本、系統提示、負面提示。

superpowers 是什麼?

此技能為使用者提供全面的提示工程指南,涵蓋大型語言模型(LLM)、影像生成與影片模型。它詳細說明如何透過角色提示、任務明確化、思維鏈(CoT)、少樣本學習與輸出格式規範等技巧,來提升 AI 產出的品質與一致性。技能內容支援多種模型,包括 Claude、GPT-4、Gemini、FLUX、Veo 與 Stable Diffusion,並展示如何透過 `belt` CLI 工具實際操作。舉例來說,使用者可以學習如何撰寫結構良好的程式碼審查提示、使用負面提示避免影像瑕疵,或透過多輪推理逐步解決複雜問題。同時,文件中指出常見錯誤(如提示過於模糊或過長)並提供對應的修正建議,協助開發者更有效地與 AI 互動。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/101-skills/superpowers/tree/HEAD/guides/prompting/prompt-engineering

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

提示工程指南

說明文件

安裝 belt CLI 技能: npx skills add belt-sh/cli

提示工程指南

透過 inference.sh CLI 掌握 AI 模型的提示工程。

提示工程指南

快速入門

需要 inference.sh CLI (belt)。安裝說明

belt login

# 結構良好的 LLM 提示
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "你是一位資深軟體工程師。請審查以下程式碼的安全性漏洞:\n\n```python\nuser_input = request.args.get(\"query\")\nresult = db.execute(f\"SELECT * FROM users WHERE name = {user_input}\")\n```\n\n請提供具體問題與修復方法。"
}'

LLM 提示技巧

基本結構

[角色/背景] + [任務] + [限制條件] + [輸出格式]

角色提示

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "你是一位擁有 15 年機器學習經驗的資深資料科學家。請用簡單的類比向初學者解釋梯度下降法。"
}'

任務明確化

# 錯誤:模糊不清
"幫我看一下程式碼"

# 正確:具體明確
"請除錯這個 Python 函式,它應回傳列表中偶數的總和,但對所有輸入都回傳 0:

def sum_evens(numbers):
    total = 0
    for n in numbers:
        if n % 2 == 0:
            total += n
        return total

請找出錯誤並提供修正後的程式碼。"

思維鏈

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "請逐步解答:\n\n一家商店以每個 2 美元的價格出售蘋果,以每個 3 美元的價格出售橘子。如果有人買了 5 個水果,總共花了 12 美元,請問他們各買了多少個?\n\n在給出最終答案之前,請逐步思考。"
}'

少樣本範例

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "將以下句子轉換為正式的商業英文:\n\n範例 1:\n輸入:gonna send u the report tmrw\n輸出:I will send you the report tomorrow.\n\n範例 2:\n輸入:cant make the meeting, something came up\n輸出:I apologize, but I will be unable to attend the meeting due to an unforeseen circumstance.\n\n現在請轉換:\n輸入:hey can we push the deadline back a bit?"
}'

輸出格式指定

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "分析這些客戶評論的情緒。請回傳一個 JSON 陣列,其中每個物件包含「text」、「sentiment」(positive/negative/neutral)和「confidence」(0-1)。\n\n評論:\n1. 「Great product, fast shipping!」\n2. 「Meh, its okay I guess」\n3. 「Worst purchase ever, total waste of money」\n\n只回傳有效的 JSON,無需解釋。"
}'

限制條件設定

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "請將這篇文章摘要成恰好 3 個重點。每個重點不得超過 20 個字。只專注於可執行的見解,而不是背景資訊。\n\n[文章內容]"
}'

影像生成提示技巧

基本結構

[主體] + [風格] + [構圖] + [光線] + [技術細節]

主體描述

# 錯誤:模糊不清
"一隻貓"

# 正確:具體明確
belt app run falai/flux-dev --input '{
  "prompt": "一隻綠色眼睛的橙色虎斑貓,坐在一張復古皮革扶手椅上"
}'

風格關鍵字

belt app run falai/flux-dev --input '{
  "prompt": "一位女性的肖像照片,使用 Kodak Portra 400 底片拍攝,柔和自然光,淺景深,懷舊氛圍,類比攝影美學"
}'

構圖控制

belt app run falai/flux-dev --input '{
  "prompt": "夜晚賽博龐克城市天際線的寬景建立鏡頭,採用三分法則構圖,前景有霓虹招牌,背景有高聳摩天大樓,雨水浸濕的街道"
}'

品質關鍵字

photorealistic, 8K, ultra detailed, sharp focus, professional,
masterpiece, high quality, best quality, intricate details

負面提示

belt app run falai/flux-dev --input '{
  "prompt": "專業大頭照肖像,乾淨背景",
  "negative_prompt": "blurry, distorted, extra limbs, watermark, text, low quality, cartoon, anime"
}'

影片提示技巧

基本結構

[鏡頭類型] + [主體] + [動作] + [場景] + [風格]

鏡頭運動

belt app run google/veo-3-1-fast --input '{
  "prompt": "緩慢跟隨鏡頭,拍攝一位女性走在陽光灑落的森林中,黃金時刻光線,淺景深,電影感,4K"
}'

動作描述

belt app run google/veo-3-1-fast --input '{
  "prompt": "特寫鏡頭拍攝雙手在木桌上揉麵團,晨光中的麵粉塵飄浮,慢動作,舒適烘焙美學"
}'

時間關鍵字

slow motion, timelapse, real-time, smooth motion,
continuous shot, quick cuts, frozen moment

進階技巧

系統提示

belt app run openrouter/claude-sonnet-45 --input '{
  "system": "你是一位樂於助人的程式碼助手。請務必在程式碼中加入註解。如果不確定某件事,請直接說出來,而不是猜測。",
  "prompt": "請用 Python 寫一個函式,使用正規表示法驗證電子郵件地址。"
}'

結構化輸出

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "請從以下文字中擷取資訊,並以 JSON 格式回傳:\n\n「John Smith,TechCorp 的 CEO,昨天宣布公司已在 B 輪融資中籌集 5000 萬美元。此輪融資由 Venture Partners 領投。」\n\n綱要:\n{\n  "person": string,\n  "title": string,\n  "company": string,\n  "event": string,\n  "amount": string,\n  "investor": string\n}"
}'

迭代精煉

# 從廣泛開始
belt app run falai/flux-dev --input '{
  "prompt": "山丘上的城堡"
}'

# 加入具體細節
belt app run falai/flux-dev --input '{
  "prompt": "草坡上的中世紀石造城堡"
}'

# 加入風格
belt app run falai/flux-dev --input '{
  "prompt": "草坡上的中世紀石造城堡,戲劇性的日落天空,奇幻藝術風格,史詩構圖"
}'

# 加入技術細節
belt app run falai/flux-dev --input '{
  "prompt": "草坡上的中世紀石造城堡,戲劇性的日落天空,奇幻藝術風格,由 Greg Rutkowski 創作,史詩構圖,8K,高度細節"
}'

多輪推理

# 第一步:分析
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "分析這個商業問題:我們的電子商務網站有 70% 的購物車放棄率。請列出可能的原因。"
}'

# 第二步:優先排序
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "根據這些購物車放棄的原因:[上一個輸出],請按可能影響與修復難度進行排序。以優先級矩陣格式呈現。"
}'

# 第三步:行動計畫
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "針對前三名的原因,請提供具體的 A/B 測試,以便我們驗證並修復每個問題。"
}'

模型特定提示

Claude

  • 擅長細緻的指令
  • 對角色扮演反應良好
  • 擅長遵循複雜限制
  • 偏好明確的輸出格式

GPT-4

  • 程式碼生成能力強
  • 搭配範例效果佳
  • 結構化輸出表現好
  • 對「讓我們一步步思考」有反應

FLUX

  • 需要詳細的主體描述
  • 風格參考效果佳
  • 光線關鍵字很重要
  • 支援負面提示

Veo

  • 鏡頭運動關鍵字
  • 電影語言效果佳
  • 動作描述很重要
  • 包含時間背景

常見錯誤

錯誤問題修正
過於模糊輸出不可預測加入具體細節
過長模型失去焦點優先排序關鍵資訊
互相矛盾混淆模型刪除矛盾點
無格式輸出不一致指定輸出格式
無範例預期不明確加入少樣本範例

提示範本

程式碼審查

請審查這段 [語言] 程式碼:
1. 錯誤與邏輯問題
2. 安全漏洞
3. 效能問題
4. 程式碼風格/最佳實踐

程式碼:
[程式碼]

對於每個發現的問題,請提供:
- 行號
- 問題描述
- 嚴重性(高/中/低)
- 建議的修復方法

內容寫作

請寫一篇關於 [主題] 的 [內容類型]。

讀者:[目標讀者]
語氣:[正式/隨意/專業]
長度:[字數]
要涵蓋的重點:
1. [重點 1]
2. [重點 2]
3. [重點 3]

包含:[特定元素]
避免:[應排除的內容]

影像生成

[帶細節的主體], [場景/背景], [光線類型],
[藝術風格或攝影風格], [構圖], [品質關鍵字]

相關技能

# 影片提示指南
npx skills add inference-sh/skills@video-prompting-guide

# LLM 模型
npx skills add inference-sh/skills@llm-models

# 影像生成
npx skills add inference-sh/skills@ai-image-generation

# 完整平台技能
npx skills add inference-sh/skills@infsh-cli

瀏覽所有應用程式:belt app list

Individual skills in this repo

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

101-skills/superpowers

Build automated AI workflows combining multiple models and services. Patterns: batch processing, scheduled tasks, event-driven pipelines, agent loops. Tools: inference.sh CLI, bash scripting, Python SDK, webhook integration. Use for: content automation, data processing, monitoring, scheduled generation. Triggers: ai automation, workflow automation, batch processing, ai pipeline, automated content, scheduled ai, ai cron, ai batch job, automated generation, ai workflow, content at scale, automation script, ai orchestration

101-skills/superpowers

Build multi-step AI content creation pipelines combining image, video, audio, and text. Workflow examples: generate image -> animate -> add voiceover -> merge with music. Tools: FLUX, Veo, Kokoro TTS, OmniHuman, media merger, upscaling. Use for: YouTube videos, social media content, marketing materials, automated content. Triggers: content pipeline, ai workflow, content creation, multi-step ai, content automation, ai video workflow, generate and edit, ai content factory, automated content creation, ai production pipeline, media pipeline, content at scale

101-skills/superpowers

Create AI-powered podcasts with text-to-speech, music, and audio editing. Tools: Kokoro TTS, DIA TTS, Chatterbox, AI music generation, media merger. Capabilities: multi-voice conversations, background music, intro/outro, full episodes. Use for: podcast production, audiobooks, voice content, audio newsletters. Triggers: podcast, ai podcast, text to speech podcast, audio content, voice over, ai audiobook, multi voice, conversation ai, notebooklm alternative, audio generation, podcast automation, ai narrator, voice content, audio newsletter, podcast maker

101-skills/superpowers

Generate multi-person talking head podcast videos from scratch using AI — character creation, TTS, avatar animation, and video stitching. Use when the user wants to create a podcast, talking head video, or multi-speaker conversation video.

101-skills/superpowers

Content atomization — turn one piece of content into many formats. Covers blog-to-thread, blog-to-carousel, podcast-to-blog, video-to-quotes, and more. Use for: content marketing, social media, multi-platform distribution, content strategy. Triggers: content repurposing, repurpose content, content atomization, content recycling, one to many content, multi platform content, cross post, adapt content, reformat content, blog to thread, blog to video, podcast to blog, content multiplication

101-skills/superpowers

App Store and Google Play screenshot creation with exact platform specs. Covers iOS/Android dimensions, gallery ordering, device mockups, and preview videos. Use for: app store optimization, ASO, app screenshots, app preview, play store listing. Triggers: app store screenshots, aso, app store optimization, play store screenshots, app preview, app listing, ios screenshots, android screenshots, app store images, app mockup, device mockup, app gallery, store listing

101-skills/superpowers

Book cover design with genre-specific conventions, typography rules, and AI image generation. Covers fiction and non-fiction genres, sizing, thumbnail testing, and iteration workflows. Use for: self-publishing, ebook covers, print covers, audiobook covers, cover mockups. Triggers: book cover, cover design, ebook cover, book art, novel cover, self publishing cover, kindle cover, audiobook cover, book jacket, cover illustration, fiction cover, nonfiction cover

101-skills/superpowers

Character consistency across AI-generated images with reference sheets and LoRA techniques. Covers turnaround views, expression sheets, color palettes, and style consistency tricks. Use for: character design, game art, illustration, animation, comics, visual novels. Triggers: character design, character sheet, character consistency, character reference, turnaround sheet, expression sheet, character art, consistent character, character concept, reference sheet, character creation, oc design, character bible

101-skills/superpowers

Data visualization with chart selection, color theory, and annotation best practices. Covers chart types (bar, line, scatter, heatmap), axes rules, and storytelling with data. Use for: charts, graphs, dashboards, reports, presentations, infographics, data stories. Triggers: data visualization, chart, graph, data chart, bar chart, line chart, scatter plot, data viz, visualization, dashboard chart, infographic data, data presentation, chart design, plot, heatmap, pie chart alternative

101-skills/superpowers

Email marketing design with layout patterns, subject line formulas, and deliverability rules. Covers welcome sequences, promotional emails, transactional templates, and mobile optimization. Use for: email marketing, newsletter design, drip campaigns, email templates, transactional emails. Triggers: email design, email template, email marketing, newsletter design, email layout, email campaign, drip campaign, welcome email, promotional email, transactional email, email subject line, email header image, email banner

101-skills/superpowers

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

101-skills/superpowers

Logo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration workflows. Use for: brand identity, startup logos, app icons, favicons, logo concepts. Triggers: logo design, create logo, brand logo, logo generation, ai logo, logo maker, icon design, brand mark, logo concept, startup logo, app icon logo

101-skills/superpowers

Open Graph and social sharing image design with platform specs, text placement, and branding. Covers OG meta tags, Twitter cards, LinkedIn previews, and dynamic generation. Use for: social sharing images, blog thumbnails, link previews, social cards. Triggers: og image, open graph, social sharing image, twitter card, social card, link preview image, og meta, sharing preview, social thumbnail, meta image, og:image, twitter:image, linkedin preview

101-skills/superpowers

Investor pitch deck structure with slide-by-slide framework, visual design rules, and data presentation. Covers the 12-slide framework, chart types, team slides, and common investor turn-offs. Use for: fundraising decks, investor presentations, startup pitch, demo day, grant proposals. Triggers: pitch deck, investor deck, startup pitch, fundraising deck, demo day, pitch presentation, investor presentation, seed deck, series a deck, pitch slides, startup presentation, vc pitch, investor meeting

101-skills/superpowers

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

101-skills/superpowers

Generate professional AI product photography and commercial images. Models: FLUX, Imagen 3, Grok, Seedream for product shots, lifestyle images, mockups. Capabilities: studio lighting, lifestyle scenes, packaging, e-commerce photos. Use for: e-commerce, Amazon listings, Shopify, marketing, advertising, mockups. Triggers: product photography, product shot, commercial photography, e-commerce images, amazon product photo, shopify images, product mockup, studio product shot, lifestyle product image, advertising photo, packshot, product render, product image ai

101-skills/superpowers

AI product photography with studio lighting, lifestyle shots, and packshot conventions. Covers angles, backgrounds, shadow types, hero shots, and e-commerce image requirements. Use for: product photos, e-commerce images, Amazon listings, packshots, lifestyle photography. Triggers: product photography, product photo, packshot, e-commerce photography, product shot, product image, studio photography, lifestyle product, amazon product photo, product listing image, hero shot, product mockup, commercial photography

101-skills/superpowers

Structured competitive analysis with feature matrices, SWOT, positioning maps, and UX review. Covers research frameworks, pricing comparison, review mining, and visual deliverables. Use for: market research, competitive intelligence, investor decks, product strategy, sales enablement. Triggers: competitor analysis, competitive analysis, competitor teardown, market research, competitive intelligence, swot analysis, competitor comparison, market landscape, competitor review, competitive landscape, feature comparison, market positioning

101-skills/superpowers

Research-backed customer persona creation with market data and avatar generation. Covers demographics, psychographics, jobs-to-be-done, journey mapping, and anti-personas. Use for: marketing strategy, product development, UX research, sales enablement, content strategy. Triggers: customer persona, buyer persona, user persona, target audience, ideal customer, customer profile, audience research, user research, icp, ideal customer profile, target market, customer avatar, audience persona

101-skills/superpowers

Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.

相關技能