add-map — скилл для Claude Code: создаёт карту PLSI
Скилл add-map для Claude Code добавляет в PLSI карту измеряемой величины, которой нет среди установленных карт. Он включается, когда бот передаёт пробел в карте или пользователь просит отслеживать новую величину.
MIT ★ 93 обновлён 2026-11-15
npx skills add Insilico-org/plsi --skill add-map -a claude-codeЧто делает add-map
Скилл проверяет, не измеряет ли уже установленная карта ту же величину, и создаёт пользовательскую карту PLSI для новых координат. Для каждой координаты он задаёт единицу, код и границы применения; производные показатели направляет в processor/add-score. Команды plsi maps validate, plsi maps install и plsi project проверяют, устанавливают карту и строят проекцию.
Карту сохраняет в <PLSI_HOME>/work/<thread>/user_<topic>.yaml. LOINC-коды сверяются через plsi refs show nlm_clinical_tables_loinc, а проверка --live нужна для валидации. Для работы нужны PLSI и доступ к его команде plsi.
Возрастные показатели и генетические маркеры остаются локальными: карты не передают их в Mothership или oracle. Установленные карты менять нельзя; пользовательская карта получает claim_level: designed, пока по ней не оценили предсказание.
Какие задачи решает
- добавить измеряемую величину, которой нет в установленных картах PLSI
- проверить, не покрывает ли существующая координата тот же показатель
- описать единицы, коды и границы применения новой координаты
- создать карту, проверить её и построить проекцию PLSI
Примеры запросов агенту
- Добавь в PLSI карту для отслеживания нового показателя и проверь существующие карты.
- Создай карту пользовательской величины с подходящими единицами и кодами LOINC.
- Проверь и установи карту
user_<topic>, затем построй проекцию.
Как установить add-map
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-map -a claude-code2Вручную: положить файлы
~/.claude/skills/add-map/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/add-map/
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-map -a codex2Вручную: положить файлы
.agents/skills/add-map/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-map -a cursor2Вручную: положить файлы
.cursor/skills/add-map/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Insilico-org/plsi skills/processor/add-map2Вручную: положить файлы
.github/skills/add-map/SKILL.md1Через Skills CLI (Vercel)
npx skills add Insilico-org/plsi --skill add-map -a gemini-cli2Командой платформы
gemini skills install https://github.com/Insilico-org/plsi --path skills/processor/add-mapВручную: положить файлы
.devin/skills/add-map/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об add-map
Как установить add-map в Claude Code?
Выполни npx skills add Insilico-org/plsi --skill add-map -a claude-code. Файл скилла появится в ~/.claude/skills/add-map/SKILL.md.
Что делает add-map?
Он создаёт и устанавливает пользовательскую карту PLSI для измеряемой величины, которой нет в установленных картах. Затем проверяет карту и строит проекцию.
Что нужно для работы add-map?
Нужен PLSI с доступной командой plsi. Проверка карты выполняется с --live; для поиска LOINC-кодов используется plsi refs show nlm_clinical_tables_loinc.
Исходный текст
SKILL.md · MIT
---
name: add-map
description: Use as PLSI Data Processor when PLSI forwards a map gap - a bot needs to track, predict or score a measured quantity no installed map has a coordinate for (an amount, a questionnaire total, a device metric, a lab test) - or the user asks to track one, so it becomes a coordinate in a validated, installed user map.
---
# PLSI add a map
A map is a contract for reading the log (Tier 0: no code, no formula). A computed score is `processor/add-score`;
anything one formula cannot do (a file format, a fitted model) is PLSI Engineer's (`engineer/extend`).
## When to use
- PLSI forwards a `processor/add-map` request from a bot: what it needs to track, in what unit, and why.
- `processor/intake` recorded coded measurements that no map reads, and the user wants them tracked.
- The user asks to track something PLSI does not track yet.
## Steps
1. **Is it really missing?** Read every map, the user's included, and the coverage:
```bash
plsi maps list --instance <instance>
plsi maps show <map_id> --instance <instance>
plsi maps select --instance <instance>
```
A coordinate that already measures the same quantity (another name, another unit): return it in your `result`
and stop. A ratio, index or equation of existing coordinates: `processor/add-score` instead.
2. **Define each coordinate:** one quantity per coordinate, measured the same way: an `id` (lowercase), a plain
`label` that says what and how (e.g. "reported", "calendar-month mean", "stronger hand"), `kind: measured`, the
canonical UCUM `unit` and `predictable: true` unless it is a list of items (`kind: set` with `collects`).
Related quantities go in one map (`user_<topic>`); at most 6 coordinates.
3. **Codes.** Find LOINC codes for exactly that quantity (`plsi refs show nlm_clinical_tables_loinc` for the search
API; property, timing and method must match the label). Put close but different codes in `reject_codes`
(another hand, another time window, packs instead of cigarettes, another method), so they are never read as this
one. A code a shipped coordinate already reads belongs to that coordinate: use it instead (the install refuses
it). No LOINC code exists: accept `{system: free, code: <map_id>.<coordinate_id>}`, and say in your `result` that
`processor/intake` records its values with exactly that code.
4. **Units, windows, boundaries.** Conversions only with a cited factor (`sources`); otherwise none. `recency_days`
and `score_window_days` from how often the quantity is measured and how fast it changes (shipped maps of the same
kind are the default). `inference_boundaries`: what the map supports (tracking and predictions on the quantity)
and what it does not (diagnosis, comparing methods or devices, values estimated instead of measured or
answered); `min_evidence_class_for_actions: hypothesis_only`; `claim_level: designed`.
**Values that give the age back stay local.** A value in years (a clock or organ age, an age difference) is kept
on this computer by itself; anything else that encodes age (a percentile for age, a pace of aging against age)
gets `local_only: true`, so it never goes to the Mothership or an oracle. A user map can never mark a value
shareable (`map.user_local_only`).
**Genetic markers never leave.** A coordinate named by an rsID or an array probe (`rs429358`, `cg00000029`) stays
on this computer whatever the map says: genotypes and CpG-level values are never shared. Name it by the marker.
5. **Write** `<PLSI_HOME>/work/<thread>/user_<topic>.yaml`, shaped like a shipped map (`plsi maps show
sleep_activity`), with a first comment line saying when the codes were checked. Nothing about the user in it:
no names, dates of their records, values or story; labels and boundaries are generic, so the map can be shared
later as it is.
6. **Validate, install, project:**
```bash
plsi maps validate <PLSI_HOME>/work/<thread>/user_<topic>.yaml --live
plsi maps install --instance <instance> --file <PLSI_HOME>/work/<thread>/user_<topic>.yaml
plsi project --instance <instance> --map user_<topic>
```
A violation is fixed in the file and validated again; `map.code_taken` means the quantity already lives in that
shipped coordinate (step 1).
7. **ONE `result`** to PLSI: the map id, each coordinate with unit and codes, what the projection found (values
present, or the gap and its suggestion), the new `states` hash, and one plain line for the user ("PLSI can now
track your <quantity>"). The requesting bot's work continues with the new coordinate.
## Rules
- Never change a shipped map; a better shipped map is a change to the repository, named in your `result`.
- Never invent a quantity the request does not need, or a code that does not resolve (`--live` checks it).
- Changing an installed user map bumps its `map_version`; old predictions keep scoring against their snapshot.
- The map stays `claim_level: designed` until a prediction on it has been scored.
© Insilico-org · MIT · Insilico-org/plsi