probabl-ai/skore-skills

plot-ml-figure

Pick pandas, seaborn, plotly, or matplotlib before writing figure code.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/probabl-ai/skore-skills --skill plot-ml-figure

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Plot ML Figure

Worker. Callers own the file and the turn. Do not git end-turn.

Details: references/when.md.

Sequence

  1. If a skore report or sklearn Display already plots this,

use it. Stop.

  1. If interactivity (hover, zoom, pan) is the requirement:

Plotly Express. Write <caller-figure-dir>/<slug>.html with include_plotlyjs=True (inline, offline). explore-ml-data uses data_analysis/. Do not overwrite that caller’s owned HTML (e.g. data_analysis_<slug>.html). The caller embeds <iframe src="<slug>.html" width="100%" height="640"></iframe> in its markdown beside the implication. Do not add kaleido unless the user asked to export a static image. No Dash. Do not use a CDN.

  1. If the plot is statistical on a tidy DataFrame (distribution,

categorical compare, relationship, heatmap, pairplot, facet): seaborn figure-level when a notebook will display it ( displot, relplot, catplot, pairplot, heatmap via FacetGrid / axes only if already on a grid). Not a plt.subplots loop and not a for over columns with a trailing g. One figure-level call as the last expression; facet with col= / col_wrap. Save PNG, leave the figure/grid as the last expression. Never plt.close.

  1. If it is a simple Series/DataFrame bar / line / hist /

area from the index or a few columns, no statistical overlay: df.plot(...). Save the figure (ax.figure.savefig(...)), leave ax.figure (or the axes) visible. Never plt.close.

  1. Else matplotlib. Last resort. In a notebook still save and

display; do not plt.close.

Notebook cells: save for the caller markdown and show the figure in the notebook. plt.close is for non-notebook scripts only (evaluate/audit scratch probes if they are not notebooks).

Polars → pandas at the plot boundary. Missing import → add-python-package if installed; else name the package and return. api get before new symbols.

Missing this skill from a caller → that caller one-line skips and still follows this tree.

Stop conditions

  • Do not write a long matplotlib script for a hist, box, or bar

of a Series.

  • Do not load choose-python-library for matplotlib vs seaborn

vs plotly.

  • Do not pixi add / uv add / env add.
  • Do not install plotly on the default EDA path.
  • Do not plt.close a figure that should appear in a notebook.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
probabl-ai
커뮤니티

audit-ml-pipeline

Audit a persisted skore report read-only and produce a reusable digest. Do not execute it. Run materialize.py once. Never call skore.evaluate or project.put. TRIGGER when a completed run needs an audit, the user asks to audit, show, or re-audit an experiment, a re-run overwrote the same put() key, or they want a narrative of a past experiment without journal/ideas/ files. STOP when status.setup.pending is non-empty (load setup-ml-project), or when there is no approved design, no report, or no ag

설치 수
1
GitHub Stars
142
업데이트
10월 20일
probabl-ai
커뮤니티

choose-python-library

Resolve a library choice and add the selected dependency. Trigger for competing-library questions or an optional package not already fixed by the project stack — at first use (tabular exploration, pipeline, or eval extras), never during workspace setup.

설치 수
1
GitHub Stars
142
업데이트
10월 20일
probabl-ai
커뮤니티

export-ml-project

Coordinate executed notebooks and an offline MkDocs documentation site. Trigger on a generic "export" request, or to flip the notebooks/site gates after setup.

설치 수
1
GitHub Stars
142
업데이트
10월 20일
probabl-ai
커뮤니티

persist-ml-git

Commit the current loop stage when the end-turn hook says invoke. Trigger after python -m skoreskills git end-turn --stage returns action invoke, or when the user asks to commit this turn's work.

설치 수
1
GitHub Stars
142
업데이트
10월 20일