Prompt Engineerのロゴ

Prompt Engineer

組織
TSS-Blue-AI-Lab
prompt-engineer

Craft and optimize prompts for better AI output. Improve clarity, structure, and effectiveness of prompts for Claude Code, Codex, and other AI tools. Use when: getting poor results from AI, building reusable prompt templates, or creating skills and agents.

概要

公開者TSS-Blue-AI-Lab
リポジトリai-lab-agent-skills
スキル名prompt-engineer
スター
26
フォーク
3
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    TSS-Blue-AI-LabがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Prompt Engineer」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/prompt-engineer
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills.git /tmp/ai-lab-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-lab-agent-skills/skills/prompt-engineer .claude/skills/prompt-engineer
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPrompt Engineerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPrompt Engineerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Prompt Engineerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Prompt Engineer

Write prompts that get consistently good results from AI coding tools.

When to Use

  • AI output is vague, wrong, or not what you wanted
  • Building reusable prompt templates for your team
  • Creating new skills or agent definitions
  • Optimizing an existing workflow for better results

How It Works

1. Prompt Structure

Effective prompts have clear structure:

markdown
## Role (who the AI should be)
You are a senior TypeScript developer specializing in Next.js.

## Context (what the AI needs to know)
We have a Next.js 14 app with App Router, Prisma ORM, and PostgreSQL.
The codebase uses server components by default.

## Task (what to do — be specific)
Add a search endpoint at GET /api/search that:
- Accepts a `q` query parameter
- Searches the `posts` table by title and content
- Returns paginated results (20 per page)
- Uses full-text search with PostgreSQL ts_vector

## Constraints (boundaries and rules)
- Do NOT use client-side filtering
- Use Zod for input validation
- Follow existing patterns in app/api/
- Include error handling for empty queries

## Output format (what the result should look like)
Create the route file and a corresponding test file.

2. Common Prompt Mistakes

MistakeExampleFix
Too vague"Make it better""Reduce the function from 50 to <20 lines by extracting validation"
No context"Add search""Add search to the /api/posts endpoint using PostgreSQL full-text search"
Too many tasks"Build the whole app"Break into steps: "First, set up the database schema"
No constraints"Add auth""Add JWT auth using NextAuth, session-based, no OAuth"
Assumed knowledge"Fix the bug""Fix the TypeError on line 42 of UserList.tsx — data is undefined on first render"

3. Prompt Patterns

Step-by-Step

Force the AI to think through the problem:

Before writing code:
1. Read the existing UserService and understand its API
2. List the changes needed
3. Implement each change one at a time
4. Run tests after each change
Few-Shot Examples

Show what you want with examples:

Convert these function names from camelCase to snake_case:

Examples:
- getUserById → get_user_by_id
- calculateTotalPrice → calculate_total_price

Now convert:
- fetchAllOrders
- validateUserInput
- sendNotificationEmail
Negative Constraints

Tell it what NOT to do:

Refactor this component:
- Do NOT change the component's public API (props)
- Do NOT add new dependencies
- Do NOT split into multiple files
- Do NOT change test files
Role + Audience
Explain this code as if I'm a junior developer who knows JavaScript
but has never used React. Focus on the state management pattern.

4. Optimizing Iteratively

Draft 1: "Add tests"
  → Too vague, AI writes random tests

Draft 2: "Write unit tests for lib/pricing.ts"
  → Better scope, but tests might be trivial

Draft 3: "Write unit tests for lib/pricing.ts covering:
  - Standard pricing calculation
  - Bulk discount (>100 units)
  - Negative quantities (should throw)
  - Zero price items
  - Currency rounding to 2 decimals
  Use Jest with describe/it blocks."
  → Specific, covers edge cases, defines tool

5. Prompt Templates

Code Generation
Create [component/function/endpoint] that:
- [specific behavior 1]
- [specific behavior 2]
- [specific behavior 3]

Follow the patterns in [reference file].
Use [specific libraries/tools].
Include [tests/types/error handling].
Code Review
Review [file/PR] for:
1. Security vulnerabilities (injection, XSS, auth bypass)
2. Performance issues (N+1 queries, unnecessary re-renders)
3. Code quality (readability, naming, duplication)

For each issue: severity (critical/warning/info), location, and fix.
Debugging
This code throws [exact error message] when [steps to reproduce].

Expected behavior: [what should happen]
Actual behavior: [what happens instead]

The relevant files are [file1, file2].
Recent changes: [what changed].

Quality Checklist

  • Task is specific and measurable
  • Context includes the tech stack and relevant files
  • Constraints prevent unwanted changes
  • Output format is defined
  • Prompt works consistently (test 3+ times)

Examples

> Optimize this prompt to get better code generation results
> Create a reusable prompt template for API endpoint generation
> Turn this vague request into a structured, effective prompt

よくある質問

AIスキル「Prompt Engineer」では何ができますか?

Craft and optimize prompts for better AI output. Improve clarity, structure, and effectiveness of prompts for Claude Code, Codex, and other AI tools. Use when: getting poor results from AI, building reusable prompt templates, or creating skills and agents.

TypingMindでPrompt Engineerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Prompt Engineerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPrompt Engineerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/prompt-engineerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Prompt Engineerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Prompt Engineerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPrompt Engineerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Prompt Engineer」は無料ですか?

TSS-Blue-AI-LabがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇