Логотип Ncp Damage Calculator

Ncp Damage Calculator

Спільнота
pmwl0128
ncp-damage-calculator

Run Pokémon Champions damage and speed-line calculations, or infer an opponent's possible set from observed damage and remaining HP. Use when the request asks for a concrete damage, KO, survival, or speed-order calculation between specified Pokémon, moves, spreads, field states, items, abilities, or stat stages. For broad team-building or tuning, use the team skill first and let it delegate exact calc checks. Chinese examples include "X用Y打Z多少", "X能确一/二确Z吗", "Z吃得下X的Y吗", "X快过Z吗", "多少SP能快过/抗住", "根据这次伤害反推对方配置". English examples include "calc X's move into Y", "does this OHKO/2HKO", "can Y survive this hit", "does X outspeed Y", "infer their spread from this hit". Japanese examples include "XのYでZにどれくらい入る?", "確定一発/二発?", "ZはYを耐える?", "XはZを抜ける?", "ダメージから相手の配分を推定".

Огляд

Видавецьpmwl0128
Репозиторійquark_drive_skills
Назва навичкиncp-damage-calculator
Зірки
78
Форки
4
Файли в пакеті
31
Посилання
  • Інструкції у форматі Markdown

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

  • Працює з будь-якою LLM

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

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

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

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

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

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

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

1

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

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pmwl0128/quark_drive_skills.git /tmp/quark_drive_skills
mkdir -p .claude/skills
cp -r /tmp/quark_drive_skills/.agents/skills/ncp-damage-calculator .claude/skills/ncp-damage-calculator
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

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

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

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

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

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

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

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

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

NCP Damage Calculator

Compute Pokémon Champions damage ranges and speed lines with the bundled NCP VGC Damage Calculator core. Use exact calculations whenever a claim depends on damage, KO, survival, or move order.

Workflow

  1. Resolve Chinese or Japanese names through $pokemon-champions-dex; the NCP wrapper itself uses English calculator keys.
  2. Run the wrapper's resolve command to align canonical English names to exact NCP keys.
  3. Supply the actual item, ability, nature, SP spread, stat stages, status, and relevant field state.
  4. Use the damage API for a concrete attack, or the speed API for one Pokémon, a table, or a direct comparison.
  5. Report assumptions with the result. A successful calculation does not establish Champions legality.

Damage

Run one calculation with JSON on stdin or use batch with a JSON array:

powershell
@'
{
  "attacker": {
    "name": "Mega Metagross",
    "ability": "Tough Claws",
    "item": "Metagrossite",
    "nature": "Jolly",
    "sps": {"hp": 2, "atk": 32, "def": 0, "spa": 0, "spd": 0, "spe": 32},
    "moves": ["Earthquake"]
  },
  "defender": {
    "name": "Mega Raichu Y",
    "ability": "No Guard",
    "item": "Raichunite Y",
    "nature": "Timid",
    "sps": {"hp": 2, "atk": 0, "def": 0, "spa": 32, "spd": 0, "spe": 32},
    "moves": ["Zap Cannon"]
  },
  "move": "Earthquake",
  "field": {}
}
'@ | python scripts\ncp-calc-api.py

The result includes all rolls, percentage rolls, min/max values, defender HP, and the calculator description.

Speed

Query one speed line:

powershell
@'
{"name":"Mega Staraptor"}
'@ | python scripts\ncp-speedline-api.py

Query a filtered table or compare two complete speed states. compare also reports move order under Trick Room:

powershell
@'
{"filters":{"type":"Flying","speedMin":170},"limit":20}
'@ | python scripts\ncp-speedline-api.py table
@'
{"a":{"name":"Garchomp","nature":"Jolly","sps":{"spe":32}},
 "b":{"name":"Archaludon","nature":"Modest","item":"Choice Scarf","sps":{"spe":32}}}
'@ | python scripts\ncp-speedline-api.py compare

Name Resolution

Do not scan vendored data files manually. Resolve calculator keys through the CLI; --kind defaults to pokemon:

powershell
'["garchomp","Rotom Wash","Mega Charizard X"]' | python scripts\ncp-calc-api.py resolve
'["close combat","earthquake"]'                | python scripts\ncp-calc-api.py resolve --kind move
'["choice scarf","lifeorb"]'                   | python scripts\ncp-calc-api.py resolve --kind item
'["roughskin","intimidate"]'                   | python scripts\ncp-calc-api.py resolve --kind ability

Contract

Treat the executable schemas as authoritative for commands, input fields, output fields, and errors:

powershell
python scripts\ncp-calc-api.py schema
python scripts\ncp-speedline-api.py schema

For opponent set inference, read python scripts/ncp-infer-case.py schema and the case workflow. Obtain a matching inference-prior from meta, then use init → add → status; remove corrects a recorded hit and example gives a surviving configuration without changing the team. Preserve the case file between turns. Record the exact battle frame: opponent HP is integer percent, our HP is exact, and stat stages already include entry effects. Explain impossible readings and joint conflict before drawing conclusions. status --predict reports damage bounds, model-conditional remaining-HP distributions and expected information in bits for the selected member's available moves, in their original order. Compare informationGainBits, not damage variation alone: random rolls can vary without distinguishing builds. These predictions assume a landed hit against a full-HP opponent in projection_frame; possibleAfters remains the initial range. The host chooses observations and when to stop. No distinguishing supported move means this member/frame has no further information, not that the opponent's build is confirmed. Relative nature shares and example spreads never confirm the opponent's true set. The case runtime requires quickjs-ng and the sibling dex; meta is only used to export the initial prior.

For saved Quark Drive Web observations, use import-web with the browser roster/record export and an explicit matching prior; see the browser transfer procedure. It preserves each hit's frozen configuration, format and enabled state. Browser storage does not save the prior: do not claim an old webpage result was reproduced using a different snapshot.

Read references/api.md when field options, batch shapes, speed modifiers, or a complete example are needed. It is explanatory documentation, not a second contract.

Caveats

  • The wrapper vendors, rather than reimplements, the NCP core. Attribution and its upstream license are in references/upstream-LICENSE.
  • The Python CLIs host that vendored JavaScript in-process via quickjs-ng (python -m pip install -r requirements.txt), so no Node runtime is needed. If quickjs-ng is not installed, those same Python entries automatically delegate to the Node CLIs (node scripts\ncp-calc-api.js / ncp-speedline-api.js); calculation and query results are identical.
  • It targets Pokémon Champions at level 50 with Champions stat points; canonical keys are hp/atk/def/spa/spd/spe.
  • NCP contains entries beyond the Champions-legal roster. Use $pokemon-champions-team or the dex for legality.
  • On-field state is resolved before the damage frame: Intimidate, terrain seeds, Trace, Air Lock, Infiltrator, weight and paradox abilities all apply on their own. Pass switch_in_drops: false when the caller already encodes Intimidate in boosts. See references/api.md.
  • Damage results model the fields exposed by the API, not every possible residual or multi-turn effect.
  • Speed defaults are 31 Speed IV, 32 Speed SP, and a positive Speed nature unless explicitly replaced.

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

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

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

Що робить навичка ШІ Ncp Damage Calculator?

Run Pokémon Champions damage and speed-line calculations, or infer an opponent's possible set from observed damage and remaining HP. Use when the request asks for a concrete damage, KO, survival, or speed-order calculation between specified Pokémon, moves, spreads, field states, items, abilities, or stat stages. For broad team-building or tuning, use the team skill first and let it delegate exact calc checks. Chinese examples include "X用Y打Z多少", "X能确一/二确Z吗", "Z吃得下X的Y吗", "X快过Z吗", "多少SP能快过/抗住", "根据这次伤害反推对方配置". English examples include "calc X's move into Y", "does this OHKO/2HKO", "can Y survi...

Навіщо використовувати Ncp Damage Calculator у TypingMind?

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

Як встановити Ncp Damage Calculator у TypingMind?

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

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

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

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

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

Чи безкоштовна навичка ШІ Ncp Damage Calculator?

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

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

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

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

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

Усі

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

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