Communitygithub.com

101-skills/superpowers

プロンプトエンジニアリングをマスターするためのスキル:LLM、画像生成、動画生成モデル向けのテクニック(連鎖思考、Few-shot、システムプロンプト、ネガティブプロンプトなど)を網羅。Claude、GPT-4、Gemini、FLUX、Veo、Stable Diffusion に対応。

superpowers とは?

このスキルは、AIモデル(LLM、画像生成、動画生成)に対するプロンプトエンジニアリングを包括的に学べるガイドです。スキルの内容は、基本的なプロンプト構造から、連鎖思考(Chain-of-Thought)、Few-shot学習、システムプロンプト、ネガティブプロンプトといった高度なテクニックまで幅広くカバーしています。各テクニックは `belt` CLI(inference.sh のコマンドラインツール)を用いた具体的な実行例とともに解説されており、実際にプロンプトを送信しながら学習できます。Claude、GPT-4、Gemini などのLLMはもちろん、FLUX や Veo といった画像・動画生成モデルにも対応しており、モデルごとの最適なプロンプト作成方法も紹介されています。このスキルを活用することで、AI出力の品質を大幅に向上させ、一貫性のある結果を得たり、複雑なタスクを効率的に処理したりすることが可能になります。また、反復的なリファインメントやマルチターン推論といった実践的なワークフローも学べるため、初心者から上級者まで幅広い開発者やAIエージェントユーザーに役立つ内容です。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

プレビュー

スキル README より

Prompt Engineering Guide

ドキュメント

belt CLI スキルのインストール: npx skills add belt-sh/cli

プロンプトエンジニアリングガイド

inference.sh CLI を使って、AIモデルのプロンプトエンジニアリングをマスターしましょう。

Prompt Engineering Guide

クイックスタート

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

バグを特定し、修正したコードを提供してください。"

連鎖思考(Chain-of-Thought)

belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "ステップバイステップで解いてください:\n\nある店ではリンゴが1個2ドル、オレンジが1個3ドルで売られています。誰かが5個の果物を買って合計12ドル支払った場合、それぞれ何個ずつ買ったでしょうか?\n\n最終的な答えを出す前に、ステップバイステップで考えてください。"
}'

Few-shot 学習

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": "これらのカスタマーレビューの感情を分析してください。"text"、"sentiment"(positive/negative/neutral)、"confidence"(0-1)をキーとするオブジェクトのJSON配列を返してください。\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": "夜のサイバーパンク都市のスカイラインを広角でワンショット、三分割法の構図、前景にネオンサイン、背景にそびえ立つ超高層ビル、雨で濡れた通り"
}'

品質キーワード

フォトリアリスティック、8K、超高精細、シャープな焦点、プロフェッショナル、
傑作、高品質、最高品質、緻密なディテール

ネガティブプロンプト

belt app run falai/flux-dev --input '{
  "prompt": "プロフェッショナルなヘッドショットポートレート、クリーンな背景",
  "negative_prompt": "ぼやけている、歪んでいる、余分な手足、透かし、テキスト、低品質、漫画、アニメ"
}'

動画プロンプティング

基本構造

[ショットタイプ] + [主題] + [アクション] + [設定] + [スタイル]

カメラワーク

belt app run google/veo-3-1-fast --input '{
  "prompt": "日光の差し込む森を歩く女性を追うスロートラッキングショット、ゴールデンアワーの照明、浅い被写界深度、映画的、4K"
}'

アクションの説明

belt app run google/veo-3-1-fast --input '{
  "prompt": "木の台の上でパン生地をこねる手のクローズアップ、朝の光に舞う小麦粉、スローモーション、居心地の良いベーキングの美学"
}'

時間的キーワード

スローモーション、タイムラプス、リアルタイム、滑らかな動き、
連続ショット、クイックカット、一瞬の静止

高度なテクニック

システムプロンプト

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, CEO of TechCorp, announced yesterday that the company raised $50 million in Series B funding. The round was led by 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": "このビジネス上の問題を分析してください:私たちのECサイトのカート放棄率は70%です。考えられる原因を列挙してください。"
}'

# 次:優先順位付け
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "これらのカート放棄の原因を考慮して:[前の出力]、影響の大きさと修正の容易さでランク付けし、優先度マトリックスとしてフォーマットしてください。"
}'

# 三番目:アクションプラン
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "特定されたトップ3の原因に対して、それぞれの課題を検証し修正するために実行できる具体的なA/Bテストを提供してください。"
}'

モデル別のヒント

Claude

  • ニュアンスのある指示を得意とする
  • ロールプレイによく反応する
  • 複雑な制約をよく守る
  • 明示的な出力形式を好む

GPT-4

  • コード生成に強い
  • 例があるとうまく機能する
  • 構造化出力が得意
  • 「ステップバイステップで考えましょう」に反応する

FLUX

  • 詳細な主題の説明を得意とする
  • スタイルの参照がうまく機能する
  • 照明キーワードが重要
  • ネガティブプロンプトをサポート

Veo

  • カメラワークのキーワード
  • 映画的な表現が効果的
  • アクションの説明が重要
  • 時間的コンテキストを含める

よくある間違い

間違い問題解決策
曖昧すぎる予測不能な出力具体性を追加する
長すぎるモデルが集中力を失う重要な情報を優先する
矛盾しているモデルを混乱させる矛盾を削除する
形式がない一貫性のない出力形式を指定する
例がない期待が不明確Few-shotを追加する

プロンプトテンプレート

コードレビュー

この[言語]のコードを次の点についてレビューしてください:
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.

関連スキル