Логотип 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

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: DefiLlama. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Adapter Author у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/DefiLlama/DefiLlama-Adapters/tree/main/skills/adapter-author
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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

Увімкніть навичку Adapter Author в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Adapter Author, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Adapter Author не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл 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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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

Навіщо використовувати Adapter Author у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Adapter Author — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Adapter Author у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/DefiLlama/DefiLlama-Adapters/tree/main/skills/adapter-author. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Adapter Author?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Adapter Author?

Зі скількома забажаєте. У TypingMind ви можете використовувати Adapter Author із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Adapter Author?

На GitHub цю навичку публікує DefiLlama. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇