/quark-drive-skills:ncp-damage-calculatorfrom quark-drive-skills
Runs Pokémon Champions damage and speed-line calculations, and infers opponent sets from observed damage. Use for exact KO, survival, or speed-order checks between specified Pokémon, moves, spreads, items, abilities, and field states.
Ships in quark-drive-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
$pokemon-champions-dex; the NCP wrapper itself uses
English calculator keys.resolve command to align canonical English names to exact NCP keys.Run one calculation with JSON on stdin or use batch with a JSON array:
@'
{
"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.
Query one speed line:
@'
{"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:
@'
{"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
Do not scan vendored data files manually. Resolve calculator keys through the CLI; --kind defaults
to pokemon:
'["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
Treat the executable schemas as authoritative for commands, input fields, output fields, and errors:
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.
references/upstream-LICENSE.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.hp/atk/def/spa/spd/spe.$pokemon-champions-team or the dex for
legality.switch_in_drops: false
when the caller already encodes Intimidate in boosts. See references/api.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pokemon, damage-calculator, speed-calculator, vgc, pokemon-champions
4 skills in this plugin
/pokemon-champions-dexOffline-first Pokémon Champions battle dex lookup with trilingual aliases (Chinese / English / Japanese), batch queries, and multi-condition reverse search. Use when the request asks for a canonical dex fact about a Pokémon/form/move/ability/item/nature/name, not for popularity trends or damage arithmetic. Chinese examples include "X能学Y吗", "谁会Y", "X是什么属性/种族值/特性", "X的中文/日文/英文名", "这个名字对应谁", "这个Mega石给谁用". English examples include "can X learn Y", "who learns Y", "what are X's types/stats/abilities", "resolve this name", "which form/item is this". Japanese examples include "XはYを覚える?", "Yを覚えるポケモン", "Xのタイプ/種族値/特性", "この名前はどのポケモン?", "このメガストーンの対応先は?". Use it while building or reviewing teams whenever a factual dex claim or name normalization is needed./pokemon-champions-metaOffline-first Pokémon Champions metagame queries for current/historical seasons and single/double formats, including usage, common configurations, partners, trends and competitive Top Meta. Use for "环境/使用率/常见配置/高端局/上位", "usage/ranking/common sets/high ladder/top cut/tournament", or "環境/採用率/よくある型/上位帯/大会". High-level wording routes to topmeta --scope high. Do not trigger from an isolated item, ability or nature without metagame context. Battle dex facts belong to the dex skill; exact damage and speed arithmetic belong to the calculator./pokemon-champions-teamPokémon Champions single/double team building, legality validation, diagnostics, matchup analysis, SP tuning, and real-team evidence queries. Use for producing, completing, changing, reviewing, or evaluating a team (e.g. "帮我组一队", "配一套双打", "围绕X做一队", "这队怎么改", "这队怎么选"; "build me a team", "team around X", "rework/review my team"; "チームを組んで", "この構築を直して", "選出を見て"), as well as parsing/validating teams, resolving public team codes or team screenshots, scanning metagame speed lines (环境速度线 / speed ladder), OHKO/2HKO tables, type effectiveness, current rules, or observed counters (谁能应对X / who counters X).npx claudepluginhub pmwl0128/quark_drive_skills --plugin quark-drive-skillsOther plugins' skills for the same job