Agent skill

Polylith Migrate Convert Package Manager

by DavidVujic in DavidVujic/python-polylith

[Internal sub-skill of polylith-migrate-orchestrator (optional, runs only when opted in during polylith-migrate-discover).

MITAuto-check passedDevelopment

Install Polylith Migrate Convert Package Manager

skills CLI
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-convert-package-manager -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DavidVujic/python-polylith polylith-migrate-convert-package-manager --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-convert-package-manager .claude/skills/polylith-migrate-convert-package-manager && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
polylith-migrate-convert-package-manager
GitHub stars
553
Token cost
~1.6k tokens
SKILL.md length
702 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

[Internal sub-skill of polylith-migrate-orchestrator (optional, runs only when opted in during polylith-migrate-discover).

  • Works in 7 steps: Ask for User Approval → Rewrite pyproject.toml to PEP 621/uv… → Register as a Workspace Member → …
  • Tasks that involve Creative writing and fiction
  • SKILL.md covers Goal, When to Skip, Inputs and Steps, plus 4 more sections
  • Calls uv, git and poetry

What it does

Polylith Migrate Convert Package Manager is an agent skill from DavidVujic/python-polylith. [Internal sub-skill of polylith-migrate-orchestrator (optional, runs only when opted in during polylith-migrate-discover). Do not load directly — load polylith-migrate-orchestrator first.] Convert the project's pyproject.toml to PEP 621/uv-workspaces format and register it as a uv-workspace member. Opinionated about uv — only applies when the workspace itself uses uv. Skip otherwise.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Creative writing and fiction. The repository describes itself as: Tooling support for the Polylith Architecture in Python. The licence is MIT.

When your agent uses it

  • Tasks that involve Creative writing and fiction

Example prompts

  • “/polylith-migrate-convert-package-manager”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Ask for User Approval
  2. Rewrite pyproject.toml to PEP 621/uv Format
  3. Register as a Workspace Member
  4. Consolidate Dependencies
  5. Lock and Sync
  6. Delete Old Lock Files
  7. Update Verification Commands

What it can do on your machine

Read from SKILL.md and the folder at commit a7a80f2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv
    • git
    • poetry

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Polylith Migrate Convert Package Manager loads about 1.6k tokens when it runs. Until then it costs about 110 tokens; SKILL.md has 702 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DavidVujic/python-polylith at commit a7a80f2, republished under its MIT licence (© DavidVujic). 702 words, ~1,574 tokens.

Download SKILL.mdSave it as .claude/skills/polylith-migrate-convert-package-manager/SKILL.md (or your agent's skills folder).
name
polylith-migrate-convert-package-manager
description
[Internal sub-skill of `polylith-migrate-orchestrator` (optional, runs only when opted in during `polylith-migrate-discover`). Do not load directly — load `polylith-migrate-orchestrator` first.] Convert the project's `pyproject.toml` to PEP 621/uv-workspaces format and register it as a uv-workspace member. **Opinionated about uv** — only applies when the workspace itself uses uv. Skip otherwise.

Skill: polylith-migrate-convert-package-manager

⚠ Opinionation gate. This skill is explicitly opinionated about uv. It does not generalize to Poetry, PDM, or Hatch workspaces. If your Polylith workspace uses one of those, do not run this skill — align the project to the workspace's manager via a manual step instead, and leave CONVERT_PACKAGE_MANAGER=no in state.md.

Goal

Convert the project's pyproject.toml to PEP 621/uv format and register it as a uv-workspace member. This makes the project share the workspace's single lock file and virtual environment, preventing version skew.

When to Skip

Skip this skill if any of the following holds:

  • PACKAGE_MANAGER=uv already in migration/<PROJECT>/state.md (nothing to convert).
  • The workspace root does not use uv (this skill does not apply — see the opinionation gate above).
  • CONVERT_PACKAGE_MANAGER=no in state.md (user opted out during polylith-migrate-discover).
Verify the workspace uses uv before proceeding

Open the workspace root pyproject.toml and look for [tool.uv.workspace] and/or a sibling uv.lock. If neither is present, stop: this skill does not apply.

Inputs

From migration/<PROJECT>/state.md:

  • PROJECT_DIR
  • PACKAGE_MANAGER
  • RUN_TEST_CMD (optional: RUN_LINT_CMD, RUN_TYPECHECK_CMD)

All inputs from state.md are assumed to satisfy the validation rules in polylith-migrate-discover (### Validation rules). Validate before proceeding.

Steps

1. Ask for User Approval
  • Ask the user if they want to convert the project's pyproject.toml to PEP 621/uv format.
  • Record their choice in state.md:
    text
    CONVERT_PACKAGE_MANAGER=<yes|no>
2. Rewrite pyproject.toml to PEP 621/uv Format
  • Move [tool.poetry.dependencies] to [project] dependencies. Keep only runtime (non-dev, non-test) dependencies in the project, listed without version constraints.
  • Remove Poetry-specific sections: [tool.poetry], [tool.poetry.group.*], [[tool.poetry.source]], and [build-system] with poetry-core.
  • Add a [build-system] with hatchling (or the workspace's build backend).
  • Preserve [tool.*] sections for other tools (e.g., pytest, ruff, mypy).
  • Add [tool.uv] only if project-level uv configuration is needed.
3. Register as a Workspace Member
  • Add the project path to the workspace root pyproject.toml under [tool.uv.workspace] members. Example:
    toml
    members = ["projects/example-service-b"]
4. Consolidate Dependencies
  • Add all third-party runtime dependencies with version constraints to the workspace root pyproject.toml [project] dependencies.
  • Move all dev/test/tooling dependencies to the workspace root [dependency-groups] (e.g., dev = [...], test = [...]).
  • Ensure the project's pyproject.toml lists runtime dependencies without version numbers.
5. Lock and Sync
  • Run uv lock from the workspace root to regenerate uv.lock with the new member.
  • Run uv sync to install all dependencies into the shared .venv.
  • Resolve any version conflicts that arise during uv lock.
6. Delete Old Lock Files
  • Remove poetry.lock, Pipfile.lock, and generated requirements*.txt from the project directory.
7. Update Verification Commands
  • Replace any poetry run, pipenv run, or bare commands with uv run equivalents in migration/<PROJECT>/state.md. Example:
    text
    RUN_TEST_CMD=uv run pytest <test-dirs>
    RUN_LINT_CMD=uv run ruff check <dirs>
  • Update PACKAGE_MANAGER=uv in state.md.
Show full SKILL.md (292 more words)Show less

Verify

  • Run the updated RUN_TEST_CMD and confirm the same pass/fail counts as before the conversion.
  • If set, run RUN_LINT_CMD and RUN_TYPECHECK_CMD.
  • Ensure uv lock and uv sync succeed from the workspace root.

Common failure modes

SymptomLikely causeRemediation
Workspace root does not use uv (no [tool.uv.workspace], no uv.lock)This skill does not apply — the opinionation gate at the top of this file rules it out.Stop. Set CONVERT_PACKAGE_MANAGER=no in state.md. Align the project to the workspace's actual manager (Poetry/PDM/Hatch) via a manual step instead.
uv lock fails with "no version satisfies …" after adding the project as a workspace memberProject's old version constraints conflict with the workspace root's pins.Relax the workspace root's range, or, if the project legitimately needs a different version, pin it explicitly in the project's pyproject.toml. As a last resort, exclude the project from the workspace and use a separate environment.
Project depends on a private/internal package that the workspace root doesn't know aboutPrivate index or path-dependency not declared at the root.Add the dependency (and its source — [tool.uv.sources] or [[tool.uv.index]]) to the workspace root pyproject.toml.

Done When

  • The project is listed as a workspace member in the root pyproject.toml.
  • uv lock and uv sync succeed from the workspace root.
  • Old lock files (poetry.lock, Pipfile.lock, generated requirements*.txt) are deleted from the project directory.
  • PACKAGE_MANAGER=uv is recorded in migration/<PROJECT>/state.md.
  • Verification commands in state.md use uv run.
  • Tests pass via uv run.

Commit

After verification passes, commit this phase to the migration branch:

bash
git add -A && git commit -m "migrate(<PROJECT>): phase optional — convert-package-manager"

Substitute <PROJECT> from state.md. This is an optional skill off the numbered main line, so the commit uses the literal phase optional label (no <N>). Do not proceed without a clean commit — the per-phase commit is the rollback point for the next phase's failure-mode tables.

© DavidVujic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/polylith/migrate-project/polylith-migrate-convert-package-manager of DavidVujic/python-polylith.

Open the folder on GitHubat commit a7a80f2

Compare with similar skills

Polylith Migrate Convert Package Manager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Polylith Migrate Convert Package Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Polylith Migrate Convert Package Manager this skillDavidVujic/python-polylith553—~1.6kAutomated safety check: PassMIT
Python Pypi Package Buildergithub/awesome-copilot40k1 repos~4.6kAutomated safety check: PassMIT
Mastering Python SkillSpillwaveSolutions/agent-brain119—~1.4kAutomated safety check: NotesMIT
AristotleK-Dense-AI/mimeographs129—~1.6kAutomated safety check: PassMIT
3dgs Training Debuggerjaccen/Awesome-Gaussian-Skills161—~7kAutomated safety check: PassApache-2.0
Codd Fable Consultyohey-w/codd-dev115—~3.8kAutomated safety check: PassMIT

Similar skills

  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    DevelopmentAuto-check passed
  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    119 GitHub stars~1.4k tokensUpdated 19 days ago
    DevelopmentAuto-check: notes
  • Aristotle

    K-Dense-AI/mimeographs

    Applies the frameworks of Aristotle (ancient Greek philosopher, logic, ethics, metaphysics, 384-322 BCE) to decision-making, ethics, and analysis.

    129 GitHub stars~1.6k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • 3dgs Training Debugger

    jaccen/Awesome-Gaussian-Skills

    Diagnose and fix 3DGS training-time failures: NaN losses, OOM crashes, divergent optimization, floater artifacts, densification failures, hyperparameter sensitivity.

    161 GitHub stars~7k tokensUpdated today
    DevelopmentAuto-check passed
  • Codd Fable Consult

    yohey-w/codd-dev

    Consult Claude Fable 5 (Anthropic's most capable model for deep, long-horizon reasoning — or whichever model currently holds that role) for a genuinely hard, novel CoDD architectural design…

    115 GitHub stars~3.8k tokensUpdated 24 days ago
    DevelopmentAuto-check passed
  • Gpt5 Consultant

    Microck/ordinary-claude-skills

    A skill your agent uses when stuck in circular debugging, when solutions aren't working despite multiple attempts, or when the user expresses frustration with lack of progress.

    404 GitHub stars~2.9k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from DavidVujic/python-polylith

All 37 skills in this repo
  • Polylith Base Creation

    DavidVujic/python-polylith

    Create a Polylith base with poly create base — the entry point of a deployable application (HTTP API, CLI, message-queue consumer, AWS Lambda handler, GCP Cloud Function, scheduled job).

    553 GitHub stars~757 tokensUpdated 4 days ago
    Auto-check passed
  • Polylith Check

    DavidVujic/python-polylith

    Validate a Polylith workspace with poly check — the canonical CI gate.

    553 GitHub stars~972 tokensUpdated 4 days ago
    Auto-check passed
  • Polylith Component Creation

    DavidVujic/python-polylith

    Create a Polylith component with poly create component — a reusable, isolated brick implementing business logic, a feature, a domain module, or a capability.

    553 GitHub stars~800 tokensUpdated 4 days ago
    Auto-check passed
  • Polylith Dependency Management

    DavidVujic/python-polylith

    Add or manage third-party dependencies in a Polylith workspace.

    553 GitHub stars~643 tokensUpdated 4 days ago
    Auto-check passed
  • Polylith Dependency Visualization

    DavidVujic/python-polylith

    Visualize brick × brick dependencies with poly deps — find circular dependencies, inspect a brick's public interface, and detect interface-bypass violations.

    553 GitHub stars~906 tokensUpdated 4 days ago
    Auto-check passed
  • Polylith Diff

    DavidVujic/python-polylith

    List Polylith bricks whose implementation changed since a git tag using poly diff.

    553 GitHub stars~1.1k tokensUpdated 4 days ago
    Auto-check passed

Categories

Questions about Polylith Migrate Convert Package Manager

What does Polylith Migrate Convert Package Manager do?

[Internal sub-skill of polylith-migrate-orchestrator (optional, runs only when opted in during polylith-migrate-discover). Polylith Migrate Convert Package Manager is an agent skill from DavidVujic/python-polylith. [Internal sub-skill of polylith-migrate-orchestrator (optional, runs only when opted in during polylith-migrate-discover).

When should I use Polylith Migrate Convert Package Manager?

Polylith Migrate Convert Package Manager fits situations like: tasks that involve Creative writing and fiction.

How do I install Polylith Migrate Convert Package Manager in Claude Code?

Run `npx skills add DavidVujic/python-polylith --skill polylith-migrate-convert-package-manager -a claude-code`. Or copy the skill folder (.agents/skills/polylith/migrate-project/polylith-migrate-convert-package-manager in DavidVujic/python-polylith) into .claude/skills/polylith-migrate-convert-package-manager in your project. Claude Code loads it when a task matches its description.

How do I install Polylith Migrate Convert Package Manager in Codex?

Run `npx skills add DavidVujic/python-polylith --skill polylith-migrate-convert-package-manager -a codex`. Or copy the skill folder (.agents/skills/polylith/migrate-project/polylith-migrate-convert-package-manager in DavidVujic/python-polylith) into .agents/skills/polylith-migrate-convert-package-manager in your project. Codex loads it when a task matches its description.

Can I use Polylith Migrate Convert Package Manager in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DavidVujic/python-polylith --skill polylith-migrate-convert-package-manager -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/polylith-migrate-convert-package-manager, .gemini/skills/polylith-migrate-convert-package-manager, .github/skills/polylith-migrate-convert-package-manager and .opencode/skills/polylith-migrate-convert-package-manager in your project.

What does Polylith Migrate Convert Package Manager need to run?

Going by SKILL.md and its folder, Polylith Migrate Convert Package Manager needs the command-line tools its instructions call (uv, git and poetry).

Does Polylith Migrate Convert Package Manager access the network?

SKILL.md contains no URLs. Its commands use uv and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Polylith Migrate Convert Package Manager safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Polylith Migrate Convert Package Manager use?

Polylith Migrate Convert Package Manager is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Polylith Migrate Convert Package Manager use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Polylith Migrate Convert Package Manager?

Skills that share tags, products or a category with Polylith Migrate Convert Package Manager: Python Pypi Package Builder (github/awesome-copilot, 40k stars), Mastering Python Skill (SpillwaveSolutions/agent-brain, 119 stars), Aristotle (K-Dense-AI/mimeographs, 129 stars) and 3dgs Training Debugger (jaccen/Awesome-Gaussian-Skills, 161 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Polylith Migrate Convert Package Manager?

DavidVujic (a GitHub user) maintains it in DavidVujic/python-polylith, which has 553 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 4, 2026.

Source: DavidVujic/python-polylith on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.