python-conventions

Standardize Python experiment scripts with header blocks and shared figure styling.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/JoernStoehler/msc-math --skill python-conventions-joernstoehler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-conventions
Source: https://github.com/JoernStoehler/msc-math/tree/main/.claude/skills/python-conventions
Command: npx skills add https://github.com/JoernStoehler/msc-math --skill python-conventions-joernstoehler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes Python experiment scripts to ensure readability, traceability, and reproducibility across projects by enforcing consistent header blocks, path handling, and figure styling conventions.

Core Features & Use Cases

  • Enforces script headers with Goals, Input, and Output to document intent and data flow for each script.
  • Establishes path conventions using a repo-root aware approach to make scripts portable and deterministic.
  • Guides consistent figure sizing, DPI, and style via a shared figure_config.py, ensuring visual consistency across experiments.
  • Use Case: A research team maintains multiple experiments; following these conventions makes it easy to onboard new members and reproduce results across scripts.

Quick Start

Follow these conventions when creating or editing any Python script under experiments/, including header blocks, path handling, and reference to figure_config.py for styling.

Frequently Asked Questions about python-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Python experiment scripts for better reproducibility?

To standardize Python experiment scripts for reproducibility, enforce consistent header blocks documenting Goals, Input, and Output, use repo-root aware path handling, and apply shared figure styling via a configuration file.

What is the best way to manage paths in Python data analysis scripts?

The best way to manage paths in Python data analysis scripts is using a repo-root aware approach. This makes scripts portable and deterministic by anchoring path handling to the repository root directory.

How do I keep figure styling consistent across multiple Python experiments?

To keep figure styling consistent across Python experiments, reference a shared configuration file for sizing, DPI, and style. This ensures visual consistency across all scripts generating figures.

Do I need an external framework to enforce coding standards in my experiments directory?

No, you do not need an external framework to enforce these coding standards. The conventions rely only on standard data science libraries and require a markdown frontmatter file defining the skill name and description.

What should be included in a Python script header block for data analysis?

A Python script header block for data analysis should include Goals, Input, and Output sections. This documents the script's intent and data flow to improve readability and traceability for experiment scripts.

Why use standardized conventions for research experiment scripts?

Standardized conventions for research experiment scripts improve readability, traceability, and reproducibility across projects. This makes onboarding new team members easier and ensures results can be reproduced consistently.