28sungmin/m4-add-skills/classification
Claude Code and agent skill by 28sungmin/m4-add-skills
- community
Checking that the SKILL.md file is still in the repository.
Calculate classification metrics (Accuracy, Precision, Recall, F1, AUROC) per variable in a QUIQ-format table with Ground_truth labels. Use for data quality assessment when predicted values can be compared against ground truth, generating per-variable confusion matrices and ROC curves.
Install
npx vskill@latest install 28sungmin/m4-add-skills/classificationSKILL.md
Classification Metrics
Calculates classification performance metrics for each variable in a QUIQ-format table by comparing Value (predicted) against Ground_truth (true label). Used in the LYDUS quality management program to evaluate how accurately recorded values match ground truth.
When to Use This Skill
- QUIQ table has
Ground_truthcolumn filled with reference labels - To evaluate per-variable classification quality (accuracy, AUC, etc.)
- To generate confusion matrices and ROC curves per variable
Input Requirements
A QUIQ-format CSV with:
Value— predicted/recorded valueGround_truth— true reference label (must have at least one non-null value)Original_table_name,Variable_name— used to group variables
Rows where either Value or Ground_truth is null are excluded.
Metrics
For each (Original_table_name, Variable_name) group:
| Metric | Method | Note | |
|---|---|---|---|
Accuracy | accuracy_score | Overall correctness | |
Precision | precision_score(average='macro') | Per-class average | |
Recall | recall_score(average='macro') | Per-class average | |
F1Score | f1_score(average='macro') | Harmonic mean | |
AUROC | roc_auc via LabelBinarizer | Mean across classes (OvR) |
Final output also includes weighted averages of all metrics (weighted by number of samples per variable).
Output
| File | Description | |
|---|---|---|
classification_total.txt | Weighted Accuracy / Precision / Recall / F1 / AUROC | |
classification_summary.csv | Per-variable metrics table | |
classification_plots/{n}_{table}_{variable}.png | Confusion matrix + ROC curve per variable |
How to Run
As a script with config
Critical Notes
- Ground_truth 필수 —
Ground_truth컬럼에 값이 없으면 AssertionError 발생.
- AUROC (binary) — 이진 분류 시
y_true_binary[:, 0]기준 단일 AUC 계산. 다중 클래스는 OvR(One-vs-Rest) 방식으로 클래스별 AUC 평균.
- 플롯 파일명 —
re.sub(r'[\\/:*?"<>|]', ' ', name)으로 특수문자 제거 후 저장.
- sklearn 의존성 — DuckDB SQL 변환 불가. scikit-learn, matplotlib 필요.
References
- LYDUS 품질관리 프로그램 활용 가이드라인 (비공개 내부 문서)
- Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/m4/skills/lydus/classification/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/28sungmin/m4-add-skills/classification)