lightgbm-analysis

lightgbm-analysis is a skill for Claude Code, Codex from aipoch/medical-research-skills. It costs 34 tokens per session (3,568 once invoked), scanned A, original, MIT.

An R workflow for training LightGBM models on tabular data, meaning data arranged in rows and columns. It supports classification and regression and produces model metrics, ranked feature-importance tables, and charts.

In plain words
What is it for?
Use it with CSV or tab-delimited TXT/TSV data to train a LightGBM model and save results under table, figure, and data folders. It requires Rscript and the optparse, data.table, and lightgbm packages.
Why use it?
It gives a consistent command-line process for training a model and reporting which input columns mattered most. It also defines the expected input files, output folders, and required R packages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with CSV or tab-delimited TXT/TSV data to train a LightGBM model and save results under table, figure, and data folders. It requires Rscript and the optparse, data.table, and lightgbm packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aipoch/medical-research-skills/lightgbm-analysis
About the project

Medical Research Agent Skills is a library of agent instructions for medical and biomedical research, covering evidence analysis, study protocol design, data analysis, and academic writing. Researchers use it to guide compatible coding agents through common scientific workflows. The catalogue contains many of the library's skills and commands.

aipoch/medical-research-skills · 1,860 stars · on GitHub · aipoch.com

Install

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.

Any agent
npx skills add aipoch/medical-research-skills --skill lightgbm-analysis
Clone the repo
git clone --depth 1 https://github.com/aipoch/medical-research-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for lightgbm-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/aipoch/medical-research-skills/lightgbm-analysis/github.svg)](https://agentmods.dev/skills/aipoch/medical-research-skills/lightgbm-analysis)
Your own site
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/lightgbm-analysis"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/lightgbm-analysis/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.

agentmods 80×15 button for lightgbm-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/lightgbm-analysis"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/lightgbm-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.03568
Opus 5 $0.00017 $0.01784
Sonnet 5 $0.00007 $0.00714
Haiku 4.5 $0.00003 $0.00357

Measured 13d ago against content hash 07961bdfb1c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lightgbm-analysis 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.

awesome-med-research-skills/Data Analysis/LightGBM-analysis/SKILL.md · 357 lines

How it starts

The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Source: https://github.com/aipoch/medical-research-skills

LightGBM Analysis

Use this skill to build a LightGBM model on tabular data and export feature importance ranking results as both a table and a figure.

Use This Skill When

  • You need a command-line LightGBM workflow written in R.
  • You need classification or regression on structured tabular data.
  • You need ranked feature importance outputs for reporting or interpretation.
  • You need standardized outputs under table/, figure/, and data/.

Primary Command

Rscript scripts/main.R \
  --data_file <input_file> \
  --target_var <target_column> \
  --output_dir <output_dir>

Prerequisites

  • Rscript is available in the shell.
  • Required R packages: optparse, data.table, lightgbm.
  • Install basic dependencies with Rscript -e 'install.packages(c("optparse", "data.table"), repos="https://cloud.r-project.org")'.
  • Install the R lightgbm package from the LightGBM project because it is usually not available from CRAN.

Core Arguments

Argument Required Description
--data_file Yes Input data file in CSV format or tab-delimited TXT/TSV format
--target_var Yes Target column used for modeling
--output_dir No Output directory, default ./LightGBM_Results
--fail_if_output_exists No Stop instead of overwriting when output_dir already contains files
--task_type No auto, regression, binary, or multiclass. Default auto
--feature_cols No Comma-separated feature columns. Default uses all columns except target and dropped columns
--drop_cols No Comma-separated columns to exclude before modeling
--importance_type No gain or split. Default gain
--top_n No Number of features to show in the importance plot. Default 20
--output_format No csv or txt table export. Default csv

Read the full file on GitHub · 357 lines

Changes

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.

  1. 13d ago First seen · 357 lines · 34 tokens per session scan A 07961bdfb1c1

Subscribe to this mod's changes

lightgbm-analysis is a skill published in the GitHub repository aipoch/medical-research-skills (1,860 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 3,568 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories