Przejdź do treści
Biblioteka skilli
Inne · Analiza

ncp-damage-calculator

/ncp-damage-calculator

Liczy obrażenia i kolejność szybkości w grze Pokémon Champions oraz odtwarza możliwy zestaw przeciwnika z obserwowanych obrażeń.

Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

98/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena13 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
32
Skrypty
27
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 27 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/inference_case.py, scripts/inference_core.bundle.js, scripts/inference_web.py, scripts/ncp-calc-api.js, scripts/ncp-calc-api.py, scripts/ncp-infer-case.py, scripts/ncp-speedline-api.js, scripts/ncp-speedline-api.py, scripts/ncp_cli_runtime.py, scripts/ncp_engine.py, scripts/ncp_inference.py, scripts/script_res/ability_data.js, scripts/script_res/damage_MASTER.js, scripts/script_res/damage_

Co robi i kiedy

Liczy obrażenia i kolejność szybkości w grze Pokémon Champions oraz odtwarza możliwy zestaw przeciwnika z obserwowanych obrażeń.

Wyzwalacze z opisu

X用Y打Z多少X能确一/二确Z吗Z吃得下X的Y吗X快过Z吗多少SP能快过/抗住根据这次伤害反推对方配置calc Xdoes this OHKO/2HKO
Oryginalny opis (EN)

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

Jak działa

  1. Workflow
  2. Damage
  3. Speed
  4. Name Resolution
  5. Contract
  6. Caveats
Sekcje z nagłówków SKILL.md, w oryginale · 135 linii, 783 słów
Podgląd SKILL.md
---
name: ncp-damage-calculator
description: 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を抜ける?", "ダメージから相手の配分を推定".
---

# 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](references/api.md#inference-case). 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](references/api.md#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.
Pliki w paczce (32)
  • SKILL.md 7 KB
  • requirements.txt 1 KB
  • agents/openai.yaml 1 KB
  • references/api.md 18 KB
  • references/upstream-LICENSE 1 KB
  • scripts/inference_case.py 21 KB
  • scripts/inference_core.bundle.js 36 KB
  • scripts/inference_web.py 10 KB
  • scripts/ncp-calc-api.js 47 KB
  • scripts/ncp-calc-api.py 2 KB
  • scripts/ncp-infer-case.py 1 KB
  • scripts/ncp-speedline-api.js 12 KB
  • scripts/ncp-speedline-api.py 2 KB
  • scripts/ncp_cli_runtime.py 3 KB
  • scripts/ncp_engine.py 10 KB
  • scripts/ncp_inference.py 23 KB
  • scripts/script_res/ability_data.js 12 KB
  • scripts/script_res/damage_MASTER.js 114 KB
  • scripts/script_res/damage_SV.js 9 KB
  • scripts/script_res/damage_dpp.js 18 KB
  • scripts/script_res/damage_gsc.js 6 KB
  • scripts/script_res/damage_rby.js 5 KB
  • scripts/script_res/damage_rse.js 10 KB
  • scripts/script_res/damage_xy.js 6 KB
  • scripts/script_res/item_data.js 36 KB
  • scripts/script_res/ko_chance.js 31 KB
  • scripts/script_res/move_data.js 136 KB
  • scripts/script_res/move_data_za.js 18 KB
  • scripts/script_res/nature_data.js 1 KB
  • scripts/script_res/pokedex.js 394 KB
  • scripts/script_res/stat_data.js 4 KB
  • scripts/script_res/type_data.js 10 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · pmwl0128/quark_drive_skills98MIT
pmwl0128/quark_drive_skills98MIT

Migawka bazy z 13.11.2026 · wersja paczki ca173474db71 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100pokemon-champions-team
    Buduje, waliduje i ocenia drużyny Pokémon Champions w formatach single i double, także przy zmianach w składzie.
  • 100pokemon-champions-dex
    Wyszukuje w trybie offline fakty z bazy Pokémon Champions w trzech językach, z zapytaniami zbiorczymi i odwrotnym wyszukiwaniem.
  • 86vgc-opponent-scout
    Zbiera uczciwie publiczne informacje o przeciwniku w Pokémon Champions, gdy są potrzebne.
  • 86vgc-team-audit
    Przeprowadza audyt drużyny w Pokémon Champions, zaczynając od ustaleń i błędów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.