28sungmin/m4-add-skills/completeness

Claude Code and agent skill by 28sungmin/m4-add-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Calculate data completeness (non-null rate) per variable in a QUIQ-format table. Use for data quality assessment to identify variables with missing values and compute overall completeness ratio.

Install

npx vskill@latest install 28sungmin/m4-add-skills/completeness

SKILL.md

Completeness

Calculates data completeness for each variable in a QUIQ-format table. Used in the LYDUS quality management program to measure how many records have non-null values for each variable.

When to Use This Skill

  • After QUIQ conversion, to assess how complete the data is per variable
  • To identify variables with high null rates
  • To compute an overall completeness ratio across all variables

Input Requirements

A QUIQ-format CSV with:

  • Original_table_name, Variable_name — used to group variables
  • Value — NULL presence determines completeness

Metrics

For each (Original_table_name, Variable_name) group:

MetricFormula
Total_numTotal row count
Null_numRows where Value is NULL
Completeness (%)(Total_num - Null_num) / Total_num × 100

Overall completeness = weighted average across all variables (by Total_num).

Output

FileDescription
completeness_total.txtOverall Completeness (%), Total_num, Null_num
completeness_summary.csvPer-variable completeness table

How to Run

python
import os
import duckdb
skill_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(skill_dir, "scripts/duckdb.sql")) as f:
sql = f.read()
quiq_csv = "/path/to/quiq_3patients.csv"
sql = sql.replace("{quiq_csv}", quiq_csv)
df = duckdb.sql(sql).df()
total_num = df["Total_num"].sum()
null_num = df["Null_num"].sum()
completeness = round((total_num - null_num) / total_num * 100, 2)
print(f"Completeness (%) = {completeness}")
save_path = "/path/to/output"
os.makedirs(save_path, exist_ok=True)
df.to_csv(f"{save_path}/completeness_summary.csv", index=False, encoding="utf-8-sig")
with open(f"{save_path}/completeness_total.txt", "w") as f:
f.write(f"Completeness (%) = {completeness}\n")
f.write(f"Total Num = {total_num}\n")
f.write(f"Null Num = {null_num}\n")
print(f"Saved {len(df):,} rows → {save_path}")
As a script with config
yaml
# config.yaml
quiq_path: /path/to/quiq.csv
save_path: /path/to/output
bash
python scripts/completeness.py --config config.yaml

Critical Notes

  1. Value 컬럼 기준 — completeness는 Value 컬럼의 NULL 여부만 판단. 빈 문자열("")은 non-null로 계산됨.
  1. 전체 completeness — completeness_total.txt의 값은 변수별 가중 평균이 아니라, 전체 행 기준 단순 비율 ((전체 - NULL) / 전체 × 100).

References

  • LYDUS 품질관리 프로그램 활용 가이드라인 (비공개 내부 문서)
  • Original Python implementation: LYDUS_Completeness.py (이성민 작성)

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/28sungmin/m4-add-skills/completeness/badge)](https://verified-skill.com/skills/28sungmin/m4-add-skills/completeness)

Something wrong with this skill or its page? Tell us.