add-score — скилл для Claude Code: формулы и установка
Скилл add-score для Claude Code добавляет в PLSI новый показатель как вычисляемую координату. Запускается, когда запрос требует формулы, которой ещё нет в картах PLSI.
MIT ★ 93 обновлён 2026-11-15
npx skills add Insilico-org/plsi --skill add-score -a claude-codeЧто делает add-score
Скилл добавляет показатель в пользовательскую карту PLSI как производную координату. Сначала он находит опубликованную формулу и проверяет её источник, затем сверяет входные координаты и единицы измерения. Если нужно, пересчёт единиц записывается прямо в формуле.
Перед установкой формула проходит проверку на опубликованном примере в отдельном экземпляре PLSI. Без совпадения с результатом из статьи установка для пользователя не выполняется. Значение скилл берёт из plsi project, а в итог передаёт его единицу, источник и хеш states.
Формулы с таблицами поиска или обученной моделью не подходят для карты: запрос передаётся PLSI Engineer. Для цензурированных входов сравнения, where, min, max и abs могут привести к статусу error; старые прогнозы после смены формулы оцениваются по сохранённому снимку карты.
Какие задачи решает
- добавить в карту PLSI опубликованный показатель
- свести составной результат плана к одной прогнозируемой величине
- проверить формулу на примере из публикации
- пересчитать единицы входной координаты внутри формулы
Примеры запросов агенту
- Добавь в PLSI показатель eGFR по опубликованной формуле CKD-EPI 2021.
- Создай в карте PLSI составной показатель из этих координат.
- Найди и проверь уравнение для нового индекса, затем проверь его на примере из статьи.
Как установить add-score
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-score -a claude-code2Вручную: положить файлы
~/.claude/skills/add-score/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/add-score/
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-score -a codex2Вручную: положить файлы
.agents/skills/add-score/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-score -a cursor2Вручную: положить файлы
.cursor/skills/add-score/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Insilico-org/plsi skills/processor/add-score2Вручную: положить файлы
.github/skills/add-score/SKILL.md1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-score -a gemini-cli2Командой платформы
gemini skills install https://github.com/Insilico-org/plsi --path skills/processor/add-scoreВручную: положить файлы
.devin/skills/add-score/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об add-score
Как установить add-score в Claude Code?
Выполни npx skills add Insilico-org/plsi --skill add-score -a claude-code. Файл скилла устанавливается в ~/.claude/skills/add-score/SKILL.md.
Что делает add-score?
Он добавляет неизвестный картам PLSI показатель как производную координату. Формулу проверяет на опубликованном примере до установки и получает итоговое значение через plsi project.
Что нужно для работы add-score?
Нужен PLSI с командами plsi. Формулу и её источник скилл ищет и проверяет через plsi evidence search и plsi evidence verify.
Исходный текст
SKILL.md · MIT
---
name: add-score
description: Use as PLSI Data Processor when PLSI asks for a score, ratio, index or published equation that no map computes yet (e.g. a lipid ratio, a kidney-function equation, a fibrosis index), so it becomes a derived coordinate the triad computes, stores, predicts and scores.
---
# PLSI add a score
A score is a safe formula inside a State Map (Tier 1): no code, no install step beyond the map. If the computation
cannot be written as one formula (lookup tables, a fitted model), say so in your `result` so PLSI hands it to PLSI Engineer (`engineer/extend`); Engineer not on the team: code extensions are off and PLSI offers "Add PLSI Engineer?".
## When to use
- The user names a score PLSI does not have, or a paper's equation would answer their question.
- A plan needs a composite outcome that should be predicted and scored as one value.
## Steps
1. Find the published formula and verify its source before using it.
```bash
plsi evidence search --source pubmed --query "<score name> equation validation"
plsi evidence verify --kind doi --id <doi>
```
2. Check the inputs. Each variable must be a coordinate with a canonical unit; read units from the map and convert
inside the formula when the paper uses another unit (e.g. creatinine umol/L -> mg/dL is `creatinine / 88.42`).
```bash
plsi maps show blood_phenoage
plsi maps show cardiometabolic
```
3. Write a user map `user_<score>.yaml` holding the input coordinates (copy them from `maps show`) plus one derived
coordinate:
```yaml
- id: egfr_ckd_epi_2021
label: eGFR (CKD-EPI 2021)
kind: derived
unit: mL/min/{1.73_m2}
derive:
engine: expr
model: egfr_ckd_epi_2021
inputs: [creatinine]
formula: >-
142 * min(creatinine / 88.42 / where(female, 0.7, 0.9), 1) ** where(female, -0.241, -0.302)
* max(creatinine / 88.42 / where(female, 0.7, 0.9), 1) ** -1.2 * 0.9938 ** age * where(female, 1.012, 1)
correspondence_type: validated
sources: [{kind: doi, id: <verified doi>}]
```
Formula language: numbers, `+ - * / **`, comparisons, `log ln log10 exp sqrt abs min max`, `where(cond, a, b)`;
variables are the `inputs` plus `age` (years at the draw), `female`, `male` (1 or 0). `inputs` must list exactly
the coordinate variables the formula uses.
4. Validate, then prove the formula on the paper's worked example in a fresh scratch instance per score (`scratch-<score>`, sex and birth year from the worked
example) before using it for the user: ingest the example's input values, project, and compare with the published result (allow rounding).
```bash
plsi maps validate user_egfr.yaml --live
plsi init --instance scratch-egfr --birth-year <example birth year> --sex <example sex> --relation sample
plsi maps install --instance scratch-egfr --file user_egfr.yaml
plsi ingest --instance scratch-egfr --file example_inputs.json
plsi project --instance scratch-egfr --map user_egfr
```
5. Install for the user and project, then send ONE `result` to PLSI with the value, unit, source, the new `states`
hash and any worked-example mismatch (also when the install was refused):
```bash
plsi maps install --instance <instance> --file user_egfr.yaml
plsi project --instance <instance> --map user_egfr
```
## Rules
- Never compute a score yourself; the value is whatever `project` returns.
- No worked-example match, no install for the user. Say what did not match.
- A censored input (e.g. `<0.3`) is propagated as a bound only through formulas without comparisons, `where`, `min`,
`max` or `abs`; otherwise the score shows status `error` with that reason. Say so in your `result`.
- Bump `map_version` when you change a formula; old predictions keep scoring against their snapshot.
- The map stays `claim_level: designed` until a prediction on the score has been scored.
© Insilico-org · MIT · Insilico-org/plsi