Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Aperivue/medsci-skills --skill define-variablesgit clone --depth 1 https://github.com/Aperivue/medsci-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aperivue/medsci-skills/define-variables)<a href="https://agentmods.dev/skills/aperivue/medsci-skills/define-variables"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/define-variables/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/define-variables"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/define-variables.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.02260 |
| Opus 5.5 | $0.00022 | $0.00904 |
| Sonnet 5.5 | $0.00011 | $0.00452 |
| Haiku 4.5 | $0.00005 | $0.00226 |
Grade A, and why
define-variables scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Define-Variables Skill
Map each exposure, outcome, covariate, and eligibility variable to a canonical guideline/consensus
definition, cross-check it against prior operationalizations in comparable cohorts, then map it to
the available DB variables. Call after /design-study (and /search-lit), before
/write-protocol.
Inputs
- Research question (one sentence)
- Candidate variables — exposure, outcome, key covariates, eligibility filters
- Data dictionary path (xlsx / csv / markdown) OR explicit list of available DB columns
- Cohort type (e.g., health-screening, NHANES-like, claims, registry) — informs which prior-art cohort to compare against
Missing inputs → ask once, then proceed.
4-Tier Pipeline (DB codebook + token-efficient literature)
Tier 0 — DB codebook lookup (mandatory for DB-backed observational studies)
Trigger: project has a project.yaml::db.dictionary_path field pointing to a machine-readable codebook (xlsx/csv/markdown), OR the user supplied a dictionary path in inputs. If neither, skip to Tier 1.
For every candidate DB variable — before touching literature — open the dictionary and record, verbatim, the sheet name, row number, and code→meaning mapping. This prevents the most common observational-study error: assuming a column code (status == 0, grade == 4) means what it intuitively reads like, when the codebook says otherwise.
Per variable:
- Locate the variable in the dictionary by exact column name.
- Copy verbatim: the sheet title, row number, and full code→meaning mapping (or unit/range statement for continuous vars).
- Paste into the
Dict. sheet & row+Dict. verbatimcolumns of the operationalization table. - If the variable is not found, OR the codebook is silent on a specific code value, file a question to the DB owner / data steward. Do NOT infer from cross-tabs, do NOT guess, do NOT proceed with that variable until a verbatim answer exists.
Empirical checks (value distributions, cross-tabs with related columns) are useful for sanity testing after the verbatim codebook meaning is recorded — never as a substitute for it.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago Changed · +8 lines dd4da6674d15
- 2mo ago Changed 9bf85903bf29
- 2mo ago Changed · -60 lines · -15 tokens per session d5a8d500cd7a
- 3mo ago First seen · 155 lines · 69 tokens per session scan A bcbc6775dbb7
define-variables is a skill published in the GitHub repository Aperivue/medsci-skills (418 stars, last pushed 4d ago), licensed MIT. It adds 54 tokens to every session and 2,260 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
define-variables compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| define-variablesAperivue/medsci-skills | Skill | 418 | 4d ago | MIT | A | 54 | Claude Code |
| clinical-trials-searchbeita6969/ScienceClaw | Skill | 1.0k | yesterday | MIT | B | 28 | Claude Code, Codex |
| shidiIcyCreamDAS/shidi-skill | Skill | 15 | 1mo ago | MIT | A | 126 | Claude Code, Codex |
| shidiIcyCreamDAS/shidi-skill | Skill | 15 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| clinical-researchbestagentkits/agency-skills | Skill | 28 | 5mo ago | MIT | A | 152 | Codex |
| sr-search-recordqiaomiaojoe/ai-academic-workflow | Skill | 13 | 13d ago | none | A | 447 | Claude Code, Codex |
| critical-paper-readingqiaomiaojoe/ai-academic-workflow | Skill | 13 | 13d ago | none | A | 191 | Claude Code, Codex |