python-step
Generic plan step: write a standalone Python script under src/ that turns the step's inputs into its outputs, run it, fix it until it succeeds, then call finish_step.
- License 许可
- MIT
- 最近更新
- 2026-10-25
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- python-step
- metadata
- { "beyondml": { "kind": "step", "modality": "any" } }
- description
- Generic plan step: write a standalone Python script under src/ that turns the step's inputs into its outputs, run it, fix it until it succeeds, then call finish_step.
- allowed-tools
- read_file write_file list_files run_python ask_user finish_step
03 SKILL.md 正文
Python step
- Put the script in
src/<step_id>.py, runnable aspython src/<step_id>.pyfrom the project root. - Read only
data/raw/and upstream outputs; never write underdata/raw/. - Write key numbers as JSON to
os.environ.get("BEYONDML_METRICS", "metrics.json"). - Print a short summary.
- After a failure, read
stderr_tailand fix the script rather than starting over. - Finish with
finish_step(summary, outputs)listing every output path.
04 同仓库更多 Skills
tabular-demo
Demo step skill for tabular data.
leakage-demo
Demo knowledge skill about target leakage.
bad-name
Name does not match its folder.
train-test-split
How to split data so the score is honest.
tabular-features
Writes src/features.py with derived features (ratios, logs, interactions) and no target use. Usually right after tabular-eda. Check: run src/features.py, expects data/processed/features.csv.
tabular-export
Writes the shipped code (src/pipeline.py, src/train.py, src/predict.py) from the winning run and trains it. Usually right after evolve-search or tabular-ensemble. Check: run src/train.py, expects models/model.joblib, metric accuracy (classification) or r2 (regression) with a minimum.