スキル一覧に戻る
paunchygent

pdm-migration-specialist

by paunchygent

Teacher-first Script Hub for running curated, upload-based tools.

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: pdm-migration-specialist description: Migrate pyproject.toml from pre-PDM 2.0 syntax to modern PEP-compliant format. Focuses on dev-dependencies to dependency-groups conversion and PEP 621 project metadata. Integrates with Context7 for latest PDM documentation.

PDM Migration Specialist

Focused skill for migrating pyproject.toml files from pre-PDM 2.0 legacy syntax to modern PEP-compliant format.

When to Use

Activate when the user:

  • Needs to migrate from [tool.pdm.dev-dependencies] to [dependency-groups]
  • Wants to update legacy pyproject.toml to PEP 621 standards
  • Asks about old vs new PDM syntax
  • Needs to understand modern dependency specification
  • Mentions PDM migration, legacy format, or pre-2.0 syntax
  • Encounters deprecated PDM configuration patterns

Core Capabilities

  • Dev Dependencies Migration: Convert [tool.pdm.dev-dependencies][dependency-groups]
  • PEP 621 Compliance: Migrate to standardized [project] table
  • Dependency Specification: Modern PEP 440/508 formats
  • Build Backend Updates: Migrate to pdm-backend
  • Local Dependencies: Convert to file:///${PROJECT_ROOT}/ syntax
  • Context7 Integration: Fetch latest PDM migration docs

Quick Migration Patterns

Development Dependencies (Most Common)

Old (Pre-2.0):

[tool.pdm.dev-dependencies]
test = ["pytest>=6.0", "pytest-cov"]
lint = ["flake8", "black"]

New (PEP 735):

[dependency-groups]
test = ["pytest>=6.0", "pytest-cov"]
lint = ["flake8", "black"]

Project Metadata

Old (Legacy):

[tool.pdm]
name = "myproject"
version = "1.0.0"

New (PEP 621):

[project]
name = "myproject"
version = "1.0.0"
dependencies = ["requests>=2.28.0"]
requires-python = ">=3.11"

Build Backend

Old:

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

New:

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

Key Differences

AspectPre-2.0Modern (2.0+)
Dev Dependencies[tool.pdm.dev-dependencies][dependency-groups]
Project Metadata[tool.pdm] or non-standard[project] (PEP 621)
Optional DepsVarious formats[project.optional-dependencies]
Local PathsRelative pathsfile:///${PROJECT_ROOT}/
Build Backendsetuptools/flitpdm-backend preferred

CLI Changes

Adding Dev Dependencies:

# Old approach (still works but deprecated)
pdm add --dev pytest

# New approach (PEP 735)
pdm add -dG test pytest

Reference Documentation

  • Detailed Migration Guide: See reference.md in this directory
  • Real Migration Examples: See examples.md in this directory
  • Context7 Library ID: /pdm-project/pdm
  • Relevant PEPs: PEP 621 (project metadata), PEP 735 (dependency groups)

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です