Logo: Ncp Damage Calculator

Ncp Damage Calculator

Communautéit
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を抜ける?", "ダメージから相手の配分を推定".

Iwwersiicht

Editeurpmwl0128
Repositoryquark_drive_skills
Skill-Nummncp-damage-calculator
Stären
78
Forks
4
Matgeliwwert Dateien
31
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 31 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    pmwl0128 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ncp Damage Calculator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/pmwl0128/quark_drive_skills/tree/main/.agents/skills/ncp-damage-calculator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ncp Damage Calculator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ncp Damage Calculator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ncp Damage Calculator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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...

Firwat Ncp Damage Calculator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ncp Damage Calculator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ncp Damage Calculator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/pmwl0128/quark_drive_skills/tree/main/.agents/skills/ncp-damage-calculator an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ncp Damage Calculator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ncp Damage Calculator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ncp Damage Calculator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ncp Damage Calculator gratis?

pmwl0128 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇