Adapter Authorのロゴ

Adapter Author

組織人気
DefiLlama
adapter-author

Validates whether a DefiLlama request belongs in DefiLlama-Adapters, then helps coding agents create and validate TVL adapters when it does. Use when a user wants to add a new DefiLlama TVL protocol listing, check repo fit, create or fix a TVL adapter, choose adapter helpers or registries, run `node test.js`, prepare PR metadata, or decide whether they should instead use `DefiLlama/dimension-adapters` or send a mail

概要

公開者DefiLlama
リポジトリDefiLlama-Adapters
スキル名adapter-author
スター
1.3K
フォーク
7.7K
同梱ファイル
3
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

DefiLlama TVL Adapter Author

Use this skill to help a protocol developer add or inspect a DefiLlama TVL adapter using repo-native patterns. The primary use case is creating new TVL adapters; narrow fixes to existing adapters are also supported when the user asks.

Step 1: Initial intake

Ask one broad question to gather context:

Tell me about the protocol, what you want added or changed on DefiLlama, why it belongs in TVL, and any chains, contracts, vaults, factories, markets, tokens, docs, oracle details, or methodology notes you already have.

After the answer, ask one unresolved question at a time. Recommend an answer when you have a defensible default. If a question can be answered by inspecting this repository or existing adapters, inspect first instead of asking. Lock each important answer before moving on to dependent decisions.

Step 2: Repository-fit gate (required before editing)

This repository (DefiLlama-Adapters) is for TVL adapters that compute TVL from on-chain data. Before editing any files, decide whether the request fits. If it does not, stop and direct the user to the correct repository:

Request typeCorrect destination
Volume, fees, or revenueDefiLlama/dimension-adapters (see this repo's pull_request_template.md)
Listing metadata only (logo, category, links)mail with info to metadata@defillama.com
Liquidationsmail with info to metadata@defilama.com
New fetch/API-only TVL with no on-chain measurementStop and ask for chain-backed contracts, owners, vaults, pools, markets, or logs

API-assisted discovery is acceptable when the API only enumerates pools, vaults, markets, token lists, or config; the TVL amount itself must still come from on-chain balances, calls, or logs.

Step 3: Workflow

  1. Read README.md, pull_request_template.md, and test.js in the repo root.
  2. Confirm repository fit (Step 2). If the request belongs elsewhere, stop and direct the user.
  3. If protocol facts are incomplete, follow references/protocol-intake.md and continue intake.
  4. Classify the protocol with references/adapter-patterns.md, then open the matching example adapters and helpers before coding.
  5. Prefer existing registry/helper patterns when the protocol cleanly matches them.
  6. Before editing, present an understanding checkpoint to the user with:
    • target path or registry entry
    • protocol shape and chains
    • TVL methodology and bucket classification (tvl, staking, pool2, borrowed, ownTokens)
    • helper or registry choice
    • unknowns and stop/ask items
    • exact validation command
  7. Edit only the adapter files needed for the chosen pattern.
  8. Run the appropriate validation command:
    • Folder adapter: node test.js projects/<protocol>/index.js
    • Single-file adapter: node test.js projects/<protocol>.js
    • Registry-backed adapter: node test.js <protocol-key>
  9. Interpret the output: total TVL must exist, chain/type breakdown should be plausible, unknown-token and pricing warnings should be understood, and zero TVL must have a clear explanation.
  10. Follow references/validation-and-pr.md to draft the PR body from pull_request_template.md. Leave unknown facts as TODO or open questions; do not guess.

Existing-adapter fixes

For changes to existing adapters, preserve the current pattern unless there is a concrete reason to change it. Inspect the current adapter, make the smallest correctness fix, run node test.js for that adapter, and revisit methodology only if the requested change affects what is counted.

Stop and ask

Stop before coding when any of the following is ambiguous: methodology, asset inclusion, double-counting, protocol-token treatment, oracle / source of truth, chain support, contract ownership, or repository fit.

Stop before declaring PR-ready when: node test.js has not passed, PR metadata is missing, unknown-token output is unexplained, package or lockfile changes are present, or the result depends on an unconfirmed assumption.

Forbidden actions

  • Do not add project-specific npm dependencies.
  • Do not edit package.json, package-lock.json, pnpm-lock.yaml, or pnpm-workspace.yaml.
  • Do not create fetch/API-only TVL adapters for new projects.
  • Do not put volume, fees, revenue, liquidations, or listing-only metadata updates in this repo.
  • Do not invent methodology, oracle usage, token IDs, category, audits, logo, treasury addresses, or social links.
  • Do not count borrowed assets as base TVL; use the lending helpers and the separate borrowed bucket when appropriate.
  • Do not set doublecounted, misrepresentedTokens, or permitFailure to hide uncertainty.
  • Do not open, push, or submit a PR unless the user explicitly asks.

Behavior examples

Good: stop a fees-adapter request and direct the user to DefiLlama/dimension-adapters before coding.

Good: use registries/erc4626.js for a plain ERC4626 vault list.

Good: use API data to discover vault addresses, then derive TVL from on-chain totalAssets.

Bad: return a third-party API's total TVL number for a new listing.

Bad: add an npm package or touch lockfiles to support one protocol.

Bad: mark something doublecounted without naming the other listed protocol whose TVL overlaps.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Adapter Author」では何ができますか?

Validates whether a DefiLlama request belongs in DefiLlama-Adapters, then helps coding agents create and validate TVL adapters when it does. Use when a user wants to add a new DefiLlama TVL protocol listing, check repo fit, create or fix a TVL adapter, choose adapter helpers or registries, run `node test.js`, prepare PR metadata, or decide whether they should instead use `DefiLlama/dimension-adapters` or send a mail

TypingMindでAdapter Authorを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/DefiLlama/DefiLlama-Adapters/tree/main/skills/adapter-authorを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Adapter Authorを使えるAIモデルはどれですか?

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

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

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

AIスキル「Adapter Author」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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