Agent skill

Polylith Component Creation

by DavidVujic in 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.

MITAuto-check passed

Install Polylith Component Creation

skills CLI
$ npx skills add DavidVujic/python-polylith --skill polylith-component-creation -a claude-code

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

GitHub CLI
$ gh skill install DavidVujic/python-polylith polylith-component-creation --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/polylith-component-creation .claude/skills/polylith-component-creation && 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-component-creation
GitHub stars
553
Token cost
~800 tokens
SKILL.md length
264 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

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

  • Adding non-entry-point code that bases
  • SKILL.md covers Quick command, Command reference, What gets created (loose theme) and Examples, plus 2 more sections
  • Calls uv and poetry
  • Other components will import

What it does

Polylith Component Creation is an agent skill from 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. Use when adding non-entry-point code that bases or other components will import.

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

The repository describes itself as: Tooling support for the Polylith Architecture in Python. The licence is MIT.

When your agent uses it

  • Adding non-entry-point code that bases
  • Other components will import

Example prompts

  • “/polylith-component-creation”

Requirements

  • Python 3

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
    • 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, 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 Component Creation loads about 800 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 264 words of instructions outside code blocks.

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

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). 264 words, ~800 tokens.

Download SKILL.mdSave it as .claude/skills/polylith-component-creation/SKILL.md (or your agent's skills folder).
name
polylith-component-creation
description
Create a Polylith component with `poly create component` — a reusable, isolated brick implementing business logic, a feature, a domain module, or a capability. Use when adding non-entry-point code that bases or other components will import.

Component Creation Skill

💡 Terminology: this skill uses Polylith terms like brick, component, namespace, and theme. If they're unfamiliar, load polylith-concepts first.

Quick command

bash
uv run poly create component --name user_service

Command prefix: If you do not know the package manager, list lock files with ls uv.lock poetry.lock pdm.lock 2>/dev/null (a pyproject.toml is always present, so it tells you nothing on its own). Use uv run poly (uv), poetry poly (poetry), pdm run poly (pdm), hatch run poly (hatch), or poly (activated venv). Examples below use uv run.

A component is reusable, non-entry-point code (business logic, domain features, capabilities). For entry points (HTTP API, CLI, Lambda handler), use polylith-base-creation instead.

Command reference

OptionRequiredDefaultDescription
--nameyes—Name of the component (also the package name).
--descriptionno""Optional human-readable description.

What gets created (loose theme)

components/<namespace>/user_service/
├── __init__.py     # Public interface — empty; add re-exports here
└── core.py         # Implementation — empty; user fills it in

If [tool.polylith.test].enabled = true in workspace.toml, the CLI also creates test/components/<namespace>/user_service/test_core.py.

For the tdd theme layout (components/user_service/{src,test}/<namespace>/user_service/...), load polylith-workspace-setup.

Examples

bash
# Minimal
uv run poly create component --name user_service

# With description
uv run poly create component --name greeting --description "Greeting domain"

Notes for the agent

  • Both core.py and __init__.py are empty boilerplate. The component is not "ready" — the user fills in core.py, then re-exports its public API from __init__.py:
    python
    # components/<namespace>/user_service/__init__.py
    from <namespace>.user_service.core import create_user, get_user
  • Consumers import via the public interface (from <namespace>.user_service import create_user), never via core.py directly. poly deps --interface (load polylith-dependency-visualization) flags violations.
  • A new component is not automatically used by any project. It is registered in a project once a base (or another component already in the project) imports it — then run poly sync (load polylith-sync).

Verification

After creation, verify the component exists using your file tools (e.g., check components/<namespace>/<name>/__init__.py). Then, you will likely need to populate core.py and __init__.py using your file writing tools since they are created empty.

© 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/polylith-component-creation of DavidVujic/python-polylith.

Open the folder on GitHubat commit a7a80f2

Compare with similar skills

Polylith Component Creation 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 Component Creation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Polylith Component Creation this skillDavidVujic/python-polylith553—~800Automated safety check: PassMIT
Remotion Video Creationaffaan-m/ECC275k2 repos~910Automated safety check: PassMIT
Cross Origin Isolationthedaviddias/Front-End-Checklist74k—~565Automated safety check: PassMIT
Remotion Video Creationaffaan-m/ECC275k—~680Automated safety check: PassMIT
Remotion Video Creationaffaan-m/ECC275k—~605Automated safety check: PassMIT
Runbook Creationsickn33/agentic-awesome-skills47k2 repos~2.9kAutomated safety check: PassMIT

Similar skills

  • Best practices for Remotion - Video creation in React. An agent skill from affaan-m/ECC.

    275k GitHub starsUsed in 2 repos~910 tokens
    Media & CreativeAuto-check passed
  • Cross Origin Isolation

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing security-sensitive web apps, SharedArrayBuffer usage, worker-heavy apps, editors, or measurement features that require cross-origin isolation.

    74k GitHub stars~565 tokensUpdated yesterday
    Auto-check passed
  • Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

    275k GitHub stars~680 tokensUpdated 3 days ago
    Media & CreativeAuto-check passed
  • Remotion 最佳实践 - 在 React 中创建视频。29 条领域特定规则,涵盖 3D、动画、音频、字幕、图表、过渡等。

    275k GitHub stars~605 tokensUpdated 3 days ago
    Media & CreativeAuto-check passed
  • Runbook Creation

    sickn33/agentic-awesome-skills

    Create operational runbooks and standard operating procedures.

    47k GitHub starsUsed in 2 repos~2.9k tokens
    DevOps & CloudAuto-check passed
  • Polis Protocol

    sickn33/agentic-awesome-skills

    Coordinate multi-vendor AI agents as a self-improving team — a learning router assigns work by track record and citizens can amend the protocol's own rules.

    47k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-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 3 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 3 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 3 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 3 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 3 days ago
    Auto-check passed
  • Polylith Libs

    DavidVujic/python-polylith

    Inspect third-party libraries used per Polylith project with poly libs.

    553 GitHub stars~656 tokensUpdated 3 days ago
    Auto-check passed

Questions about Polylith Component Creation

What does Polylith Component Creation do?

Create a Polylith component with poly create component — a reusable, isolated brick implementing business logic, a feature, a domain module, or a capability. Polylith Component Creation is an agent skill from 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.

When should I use Polylith Component Creation?

Polylith Component Creation fits situations like: adding non-entry-point code that bases; other components will import.

How do I install Polylith Component Creation in Claude Code?

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

How do I install Polylith Component Creation in Codex?

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

Can I use Polylith Component Creation 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-component-creation -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-component-creation, .gemini/skills/polylith-component-creation, .github/skills/polylith-component-creation and .opencode/skills/polylith-component-creation in your project.

What does Polylith Component Creation need to run?

Going by SKILL.md and its folder, Polylith Component Creation needs the command-line tools its instructions call (uv and poetry). Our summary lists: Python 3.

Does Polylith Component Creation access the network?

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

Is Polylith Component Creation 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 Component Creation use?

Polylith Component Creation 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 Component Creation use?

About 800 tokens (SKILL.md is roughly 3.2k 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 Component Creation?

Skills that share tags, products or a category with Polylith Component Creation: Remotion Video Creation (affaan-m/ECC, 275k stars), Cross Origin Isolation (thedaviddias/Front-End-Checklist, 74k stars), Remotion Video Creation (affaan-m/ECC, 275k stars) and Remotion Video Creation (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Polylith Component Creation?

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.