跳到正文
cccskills
免费在 GitHub 公开

python-project-ops

Use this when managing Python dependencies with uv, running tests with pytest, linting with ruff, formatting code, type checking with mypy, or executing notebooks.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Skill: Python Project Operations

Use this skill when changing dependencies, running tests, linting, formatting, type checking, or executing notebooks.

Package Manager: uv Only

  • Use uv for all dependency installation, synchronization, addition, removal, and updates.
  • Never use pip, pip3, python -m pip, poetry, conda, pipenv, or easy_install.
  • Never manually create or edit requirements.txt.
  • Use uv add <package> when adding dependencies.
  • Use uv add --group dev <package> for dev-only dependencies.
  • Review diffs in pyproject.toml and uv.lock after dependency changes.

Python Version

  • Python 3.11.

Common Commands

uv sync                    # Install/synchronize dependencies
uv run pytest              # Run tests
uv run ruff check .        # Lint
uv run ruff format .       # Format
uv run mypy src            # Type check
uv run papermill notebooks/input.ipynb notebooks/output.ipynb  # Execute notebook
bash scripts/run_quality_checks.sh  # Run all quality checks

Workflow

  1. After modifying pyproject.toml, run uv sync.
  2. After adding code, run uv run ruff check . and uv run ruff format ..
  3. Before committing, run uv run pytest and uv run mypy src.
  4. For notebook execution in CI or automation, prefer papermill.

Tests and Tool Configuration

  • Place tests under tests/; keep them fast by minimizing external dependencies.
  • ruff settings live in the [tool.ruff] section of pyproject.toml.
  • mypy settings live in the [tool.mypy] section of pyproject.toml.
  • Verify notebooks re-run from a clean kernel — see notebook-workflow skill.

Validation Scripts

These run in GitHub Actions CI, and can be run locally before committing.

uv run python scripts/check_no_raw_data_commit.py    # rawデータのコミットを検知
uv run python scripts/check_no_sensitive_patterns.py # 秘密情報のパターンを検知
uv run python scripts/validate_agent_docs.py         # エージェント文書の必須ファイル確認
uv run python scripts/sync_agent_docs.py --check     # CLAUDE.md / AGENTS.md のドリフト検出
bash scripts/run_quality_checks.sh                   # 上記を含む一括実行

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this when summarizing analysis results, writing reports, documenting experiment outcomes, or presenting model evaluation — including structuring findings in Japanese with conclusions, facts, assumptions, interpretations, and caveats.

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

因果推論・効果検証(A/B テスト / ABテスト / オンライン実験 / リフト / SRM / CUPED、観察データの処置効果 / ATE / ATT / CATE / 傾向スコア / propensity score / IPW / 二重頑健 / DML / causal forest、準実験 / 差の差 / DiD / イベントスタディ / 操作変数 / IV / 2SLS / 回帰不連続 / RDD / 合成コントロール)を実行したら必ずセットで出す図と値のルーター。 proportions_ztest, chisquare, statsmodels.stats.power, dowhy, econml, causalml, doubleml, propensity, LinearDML, IV2SLS, rdrobust, rddensity, pysyncon, treat*post がコードに現れたとき、またはユーザーが「ABテストの結果を 見て」「施策の効果を推定して」「差の差で」「傾向スコアで揃えて」「閾値前後で比較して」と言ったときに使う。SRM・ バランス・並行トレンド・first-stage に言及がなくても適用する。SKILL.md のルーティング表で設計を特定し、対応する references/<設計>.md を読んでから実行する。実験でない群間比較の検定は statistical-inference-diagnostics、 予測モデルの解釈(SHAP 等)は predictive-modeling-diagnostics を使う。

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

Use this when performing DataFrame operations — including loading, filtering, joining, aggregating, transforming, or reshaping tabular data with polars or pandas.

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

Use this when creating, editing, executing, or reviewing Jupyter notebooks — including cell structure, kernel management, extracting reusable logic to src/, and ensuring notebooks are restartable.

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

Use this when reading from or writing to local files — including constructing file paths with pathlib, creating directories, choosing output locations, and using path utilities from src/analysis_project/paths.py.

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

分析を始める前に構造化された分析計画を作成する

中文简介正在准备中。当前显示原文说明。

atsushi-green/ds-ai-coding-skills912026年10月4日 更新

查看 atsushi-green 的全部技能

报告此技能的问题