Context7 Driven Developmentのロゴ

Context7 Driven Development

コミュニティ
VenTheZone
context7-driven-development

Use when implementing features or debugging issues that involve external libraries, frameworks, or APIs. Always verify with Context7 before writing code.

概要

公開者VenTheZone
リポジトリpi-dots
スキル名context7-driven-development
スター
41
フォーク
0
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VenTheZone/pi-dots.git /tmp/pi-dots
mkdir -p .claude/skills
cp -r /tmp/pi-dots/pi-dotfiles/skills/context7-driven-development .claude/skills/context7-driven-development
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Context7-Driven Development

Overview

Never assume you know the API. Always verify before writing code.

Tool Priority Order

Use tools in this order based on what's available locally:

1. Local Files (Fastest - use when code exists on disk)

bash
read /path/to/file          # Read specific files
grep -rn "pattern" dir/     # Search code patterns
find . -name "*.ts"         # Find files by name
bash "ls -la dir/"          # Quick directory listing

Use when: Repo is cloned, you're working in a project, or files are in /tmp

2. Exa Web Search (For discovery & solutions)

exa_web_search_exa    → General web/code search
exa_crawling_exa      → Read specific URLs
exa_get_code_context_exa → Code examples & docs

Use when: Finding solutions, discovering repos, searching for error fixes, general web queries

3. Context7 (For official library documentation)

context7_resolve-library-id → Find library
context7_query-docs → Query specific docs

Use when: You need authoritative API docs for a known library

4. jcodemunch (For deep code analysis)

jcodemunch_index_repo → Index a repo for analysis
jcodemunch_search_symbols → Find symbols across codebase
jcodemunch_find_references → Find all usages
jcodemunch_get_dependency_graph → Analyze dependencies

Use when: Complex cross-reference analysis, find dead code, symbol importance

When to Use

Use Context7-Driven Development when:

  • Writing code that uses external libraries/frameworks
  • Fixing bugs involving external code
  • Integrating with third-party services
  • Upgrading library versions
  • Debugging library-specific errors

Core Workflow

Implementation Workflow

  1. Check Local First

    • Is the code already on disk? Use read/grep/find
    • If not, consider exa_crawling_exa to fetch the repo or docs page
    • Only then use Context7 for authoritative API docs
  2. Identify Dependencies

    • Check package.json, Cargo.toml, imports
    • List all external libraries being used
  3. Resolve Library IDs or Documentation Sources

    • If Context7 tools are available, use:
    context7_resolve-library-id(libraryName, query)
    • Otherwise resolve the official docs source manually via project docs, web search, or package documentation
    • Include version if known: /org/project/v1.2.3
  4. Query Documentation

    • If Context7 tools are available, use:
    context7_query-docs(libraryId, "How to [specific operation]")
    • Otherwise query the docs manually using your available search/documentation workflow
    • Query BEFORE writing code
    • Query AFTER writing code to verify
    • Be specific: "How to authenticate with JWT in NextAuth.js" not "auth"
  5. Apply to Implementation

    • Follow documentation patterns exactly
    • Check version compatibility
    • Note breaking changes

Debugging Workflow

  1. Reproduce & Isolate

    • Understand error message
    • Identify which library is involved
  2. Search for Solutions

    • First: exa_web_search_exa for error message + fix
    • Second: context7_query-docs for official troubleshooting
    • Third: jcodemunch_find_references to see how project uses it
  3. Verify Fix

    • Apply suggested fix
    • Test thoroughly
    • Check for related issues

Clone-and-Explore Pattern

For deep inspection of external repos:

bash
# Clone to /tmp for temporary analysis
git clone --depth 1 https://github.com/org/repo /tmp/repo

# Then use local tools
read /tmp/repo/src/important.ts
grep -rn "pattern" /tmp/repo/
find /tmp/repo -name "*.test.ts"

Clean up after: rm -rf /tmp/repo

Query Best Practices

Bad QueryGood Query
"auth""How to authenticate users with JWT in Express.js"
"hooks""React useEffect cleanup function examples"
"database""How to connect to PostgreSQL with Prisma ORM"
"error""Fix ECONNREFUSED in node-fetch retry logic"

Red Flags - STOP and Query

  • "I know how this works" → You don't. Query docs.
  • "This is a common pattern" → Patterns change. Verify.
  • "I've used this before" → Memory fails. Check docs.
  • "The API is intuitive" → Assumptions cause bugs. Look it up.
  • "I'll check after writing" → No. Query first. Always.

Verification Checklist

Before submitting code:

  • Checked local files first (read/grep/find)
  • Used Exa search for error messages or alternatives
  • Resolved the correct library or docs source
  • Queried Context7 if available, otherwise checked the official docs manually
  • Followed documentation patterns exactly
  • Checked version compatibility
  • Verified again after implementation

Maximum Queries

  • Exa search: use freely for discovery
  • Context7: max 3 queries per question
  • jcodemunch: index once, then query as needed
  • If you still can't find what you need, note the uncertainty

Examples

Before (Hallucination Risk)

typescript
// Assuming API from memory - WRONG
const client = new SomeClient({ apiKey: process.env.KEY });
await client.doSomething({ option: "value" }); // Might not exist!

After (Docs-Driven)

typescript
// After querying Context7 for SomeClient API
// Learned: v2.0 changed constructor signature
const client = SomeClient.create({
  apiKey: process.env.KEY,
  region: "us-east-1" // Required in v2.0+
});
await client.executeAction({ option: "value" }); // Correct method name

よくある質問

AIスキル「Context7 Driven Development」では何ができますか?

Use when implementing features or debugging issues that involve external libraries, frameworks, or APIs. Always verify with Context7 before writing code.

TypingMindでContext7 Driven Developmentを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles/skills/context7-driven-developmentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Context7 Driven Developmentを使えるAIモデルはどれですか?

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

Context7 Driven Developmentは何個のAIモデルで使えますか?

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

AIスキル「Context7 Driven Development」は無料ですか?

VenTheZoneがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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