Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
[Internal sub-skill of polylith-migrate-orchestrator. An agent skill from DavidVujic/python-polylith.
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-component --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-split-big-component .claude/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.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/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .claude/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-componentType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-component --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component .agents/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .agents/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-component --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component .cursor/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .cursor/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/DavidVujic/python-polylith.git --path .agents/skills/polylith/migrate-project/polylith-migrate-split-big-component--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-component --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component .gemini/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .gemini/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-componentInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component .github/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .github/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install DavidVujic/python-polylith polylith-migrate-split-big-component --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DavidVujic/python-polylith.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component .opencode/skills/polylith-migrate-split-big-component && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "polylith-migrate-split-big-component" agent skill from https://github.com/DavidVujic/python-polylith/tree/main/.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component into .opencode/skills/polylith-migrate-split-big-component/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "polylith-migrate-split-big-component", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
polylith-migrate-split-big-component[Internal sub-skill of polylith-migrate-orchestrator. An agent skill from DavidVujic/python-polylith.
Polylith Migrate Split Big Component is an agent skill from DavidVujic/python-polylith. [Internal sub-skill of polylith-migrate-orchestrator. Do not load directly — load polylith-migrate-orchestrator first, which drives all phases.] Split the big component (components/<topns/<INITIALBASENAME/) into multiple focused components.
Its SKILL.md is about 3.2k 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. The repository describes itself as: Tooling support for the Polylith Architecture in Python. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit a7a80f2. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Polylith Migrate Split Big Component loads about 3.2k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 1,446 words of instructions outside code blocks.
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.
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.
The full file from DavidVujic/python-polylith at commit a7a80f2, republished under its MIT licence (© DavidVujic). 1,446 words, ~3,241 tokens.
.claude/skills/polylith-migrate-split-big-component/SKILL.md (or your agent's skills folder).📐 Scope vs sibling skills. This skill operates within one project and turns one component into many components. Don't confuse with:
polylith-migrate-extract-standalone-modules— same scope (one project) but pulls foundational modules (consts.py,exceptions.py) out of the residual big component into their own standalone components.polylith-migrate-split-component-internals— operates inside one already-extracted component, splitting itscore.pyinto multiple files. No new components are created.polylith-migrate-isolate-shared-and-project-logic— cross-project scope; identifies shared-vs-project-specific logic when migrating a 2nd+ project.polylith-migrate-dedupe— opportunistic deduplication; this skill includes a dedup-analysis subsection so for a single project you usually don't needpolylith-migrate-dedupeseparately.
Split the big component (components/<top_ns>/<INITIAL_BASE_NAME>/) into multiple focused components to improve maintainability, clarity, and reusability.
From migration/<PROJECT>/state.md:
TARGET_TOP_NSINITIAL_BASE_NAMEFrom migration/<PROJECT>/manifest.md:
All inputs from
state.mdare assumed to satisfy the validation rules inpolylith-migrate-discover(### Validation rules). Validate before proceeding.
directory_tree and grep to analyze the big component's structure and identify natural slices.domain_a_serializer, data_transformations). Avoid generic names like utils or helpers.migration/<PROJECT>/split_plan.md:When NOT to Extract:
Extraction Order:
exceptions.py, consts.py).models.py that imports exceptions and consts).Name components after the domain or functionality they represent:
| Original module name | Content (after inspection) | Component name |
|---|---|---|
serializers.py | Serializes data for ERP | domain_a_serializer |
transformations/ | Maps data between formats | data_transformations |
parsers.py | Parses event payloads | event_parser |
validators.py | Validates records | record_validator |
Extracting a module into a separate component can create circular imports if the new component imports from the parent component and the parent still imports from the new component. This commonly happens when a component's __init__.py eagerly imports from many submodules.
Diagnosis: The cycle typically looks like:
new_component.core → parent.__init__ → parent.submodule → new_componentPython triggers parent.__init__ whenever any submodule of parent is imported (e.g. from parent.consts import X loads parent/__init__.py first).
Resolution strategies (in order of preference):
Extract the circular part into its own component. A circular dependency often signals that the code involved is isolated enough to be its own component. Extract the module that causes the cycle into a standalone component — this breaks the cycle structurally. A component doesn't have to be a "feature"; it can be a utility, a data definition, a pure technical module, or a single ORM model. If the code has a clear responsibility and can be imported without pulling in the rest of the parent, it belongs in its own brick.
# Before (cycle): new_component → parent.consts → parent.__init__ → parent.handlers → new_component
# After (no cycle): new_component → consts_component (standalone, no __init__ chain)Trim __init__.py exports. Remove the problematic import from the parent's __init__.py and have callers import the submodule directly. This makes the dependency graph explicit and often eliminates the cycle without creating a new brick.
# Before: parent/__init__.py imports everything eagerly
from parent.command_handler import CommandHandler # triggers handler → new_component cycle
# After: remove from __init__.py, callers import directly
from parent.command_handler import CommandHandler # in the base that needs itStandalone component instead of submodule. If the new component would be a submodule of an existing package (e.g. myns.models.example_transaction), importing it triggers the parent package's __init__.py and all its eager imports. Make it a standalone component at the namespace level instead (e.g. myns.example_transaction).
Deferred import (last resort). Move the import inside the function that uses it. This works but hides the dependency and makes the code harder to reason about. Prefer strategies 1–3 first.
Pre-flight check: Before extracting a module, trace the import chain:
parent.submodule_X → Python loads parent.__init__parent.__init__ (directly or transitively) import from the new component?When a second project needs a component that already exists (e.g. myns.logging, myns.kafka), compare the implementations closely. Common refactoring patterns:
Pattern: Parameterize the shared component. When two implementations are 80%+ identical with project-specific extras, refactor the shared component to accept optional parameters rather than duplicating code.
Example — logging with project-specific loggers:
# Shared component: myns.logging
def init(config, *, extra_loggers=None, cache_logger_on_first_use=False):
loggers = {**_BASE_LOGGERS}
loggers.update(_verbosity_overrides(config.LOG_VERBOSITY_LEVEL))
if extra_loggers:
loggers.update(extra_loggers)
...
# Project A base:
init(config, extra_loggers={"httpx": {...}, "backoff": {...}},
cache_logger_on_first_use=config.LOG_CACHE_LOGGER_ON_FIRST_USE)
# Project B base:
init(config, extra_loggers={"confluent_kafka_helpers": {...}})When to parameterize vs. keep separate:
Components with generic names like models, schemas, exceptions, or consts may start with a single core.py file. As the workspace grows, these components can accumulate code from different domains. Splitting core.py into multiple domain-focused modules inside the component can improve maintainability and clarity.
When to Split:
core.py file contains definitions from multiple distinct domains (e.g., domain_a and domain_b).Approach:
domain_a.py, domain_b.py).After drafting the split plan (but before executing any moves), analyze the planned components — and any already existing components in the workspace — for duplication:
Identify overlap: For each planned component, check whether an existing component already contains similar logic. Look for:
domain_a_serializer implementations).Classify the overlap:
Propose shared extractions: When genuinely duplicated code is found, add a step to the split plan:
<PROJECT>/split_plan.md with a rationale.Always confirm with the user before creating shared components — "is this code genuinely shareable?" is a judgment call that depends on how the projects will evolve.
For each planned component in split_plan.md:
__init__.py.__init__.py to re-export the public API.polylith-migrate-automate-import-updates (it covers dotted, bare-submodule, and quoted-string references and splits mixed import lines), then grep for residual references to the old path.pyproject.toml: Add the new brick to the project's [tool.polylith.bricks].RUN_TEST_CMD succeeds.RUN_LINT_CMD and RUN_TYPECHECK_CMD succeed.POLY_CMD_PREFIX check to validate the workspace structure.POLY_CMD_PREFIX sync to synchronize the [tool.polylith.bricks] table with actual imports.| Symptom | Likely cause | Remediation |
|---|---|---|
New component is named utils, helpers, common, or misc | Naming taken from old module names instead of the domain the code serves. | Rename to a domain-specific name (see the "Examples of Component Naming" table). Generic-named bricks attract more code and become the next big component. |
Extracted component imports back into the residual via the residual's __init__.py | Circular import — see the "Avoiding circular imports" subsection above. | Apply strategies 1–3 from that subsection (extract the cyclic part, trim __init__.py exports, or restructure to standalone). Strategy 4 (deferred import) only as last resort. |
poly check flags the newly extracted component as not used by any project | The project's base still imports from the residual path (<TARGET_TOP_NS>.<INITIAL_BASE_NAME>.<x>) instead of the new component. | Update the base's imports to the new component's public API, then POLY_CMD_PREFIX sync --quiet and re-run check. |
| Verification fails and you can't quickly diagnose | Phase commit not yet made. | git reset --hard HEAD to roll back to the previous phase's commit and consult the user. |
After verification passes, commit this phase to the migration branch:
git add -A && git commit -m "migrate(<PROJECT>): phase <N> — split-big-component"Substitute <PROJECT>, <N>, and <phase-name> from state.md and the orchestrator's phase table. Do not proceed to the next phase 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
Just SKILL.md in .agents/skills/polylith/migrate-project/polylith-migrate-split-big-component of DavidVujic/python-polylith.
Open the folder on GitHubat commit a7a80f2
Polylith Migrate Split Big Component 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Polylith Migrate Split Big Component this skillDavidVujic/python-polylith | 553 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Typescript Advanced Typesrolling-scopes/rsschool-app | 10k | 24 repos | ~4.2k | Automated safety check: Pass | MPL-2.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Greplooponyx-dot-app/onyx | 32k | 4 repos | ~3.3k | Automated safety check: Pass | MIT |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
rolling-scopes/rsschool-app
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
onyx-dot-app/onyx
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
akash-network/node
Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.
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).
DavidVujic/python-polylith
Validate a Polylith workspace with poly check — the canonical CI gate.
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.
DavidVujic/python-polylith
Add or manage third-party dependencies in a Polylith workspace.
DavidVujic/python-polylith
Visualize brick × brick dependencies with poly deps — find circular dependencies, inspect a brick's public interface, and detect interface-bypass violations.
DavidVujic/python-polylith
List Polylith bricks whose implementation changed since a git tag using poly diff.
Categories
[Internal sub-skill of polylith-migrate-orchestrator. An agent skill from DavidVujic/python-polylith. Polylith Migrate Split Big Component is an agent skill from DavidVujic/python-polylith. [Internal sub-skill of polylith-migrate-orchestrator.
Polylith Migrate Split Big Component fits situations like: development work in your project.
Run `npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a claude-code`. Or copy the skill folder (.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component in DavidVujic/python-polylith) into .claude/skills/polylith-migrate-split-big-component in your project. Claude Code loads it when a task matches its description.
Run `npx skills add DavidVujic/python-polylith --skill polylith-migrate-split-big-component -a codex`. Or copy the skill folder (.agents/skills/polylith/migrate-project/polylith-migrate-split-big-component in DavidVujic/python-polylith) into .agents/skills/polylith-migrate-split-big-component in your project. Codex loads it when a task matches its description.
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-split-big-component -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-split-big-component, .gemini/skills/polylith-migrate-split-big-component, .github/skills/polylith-migrate-split-big-component and .opencode/skills/polylith-migrate-split-big-component in your project.
Going by SKILL.md and its folder, Polylith Migrate Split Big Component needs the command-line tools its instructions call (git). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Polylith Migrate Split Big Component is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Polylith Migrate Split Big Component: Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.