Agent skill

Polylith Check

by DavidVujic in DavidVujic/python-polylith

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

MITAuto-check passedDevelopment

Install Polylith Check

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

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

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

At a glance

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

  • Works in 3 steps: Missing Brick Error: If the error says a… → Missing Dependency Error: If the error… → Version Drift Error: Under --strict, if…
  • The user wants to lint
  • SKILL.md covers Quick command, Typical CI usage, What it verifies and Command reference, plus 2 more sections
  • Calls uv, poetry and pytest

What it does

Polylith Check is an agent skill from DavidVujic/python-polylith. Validate a Polylith workspace with poly check — the canonical CI gate. Verifies brick imports against project pyproject.tomls, third-party library declarations vs. the lock file, and (under --strict) cross-project version consistency. Exits 1 on failure. Use when the user wants to lint, validate, verify, or CI-gate a Polylith workspace.

Its SKILL.md is about 970 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.

When your agent uses it

  • The user wants to lint
  • CI-gate a Polylith workspace

Example prompts

  • “/polylith-check”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Missing Brick Error: If the error says a brick imports another brick that isn't in [tool.polylith.bricks] → run poly sync (load…
  2. Missing Dependency Error: If the error says a brick imports a third-party library not listed in the project's dependencies → load…
  3. Version Drift Error: Under --strict, if versions of the same library diverge between projects → inspect pyproject.toml or load…

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
    • pytest

    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 Check loads about 972 tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 312 words of instructions outside code blocks.

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

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). 312 words, ~972 tokens.

Download SKILL.mdSave it as .claude/skills/polylith-check/SKILL.md (or your agent's skills folder).
name
polylith-check
description
Validate a Polylith workspace with `poly check` — the canonical CI gate. Verifies brick imports against project `pyproject.toml`s, third-party library declarations vs. the lock file, and (under `--strict`) cross-project version consistency. Exits 1 on failure. Use when the user wants to lint, validate, verify, or CI-gate a Polylith workspace.

Check Skill

Quick command

bash
uv run poly check

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.

⚠ Run poly sync first if bricks have been added/removed since the last commit, otherwise sync-related findings will dominate the report. Load polylith-sync if needed. ⚠ Exit code 1 = failure — this is the right command to wrap in CI.

Typical CI usage

bash
uv run poly sync --quiet                          # Make sure brick lists are current (--quiet avoids the interactive prompt)
uv run poly check                                 # Validate; build fails if non-zero

# (Optional) scope test runs to bricks whose implementation changed.
# `poly diff --bricks --short` emits a comma-separated list, which becomes a
# pytest `-k` expression (`log,message` → `pytest -k "log or message"`).
changes="$(uv run poly diff --bricks --short)"
[ -n "$changes" ] && uv run pytest -k "${changes//,/ or }"

Use poly diff (implementation diff) for "run tests for what changed". Use poly test diff --short if you specifically want to scope on test-code changes — load polylith-testing for that variant. Both feed the same pytest -k recipe.

What it verifies

  • Every brick imported by another brick is listed in the consuming project's [tool.polylith.bricks].
  • Every third-party library imported by a project's bricks is declared in that project's dependencies and present in the lock file.

Command reference

OptionDefaultDescription
--strictfalseStricter name/version matching across projects (catches version drift).
--verbosefalsePrint extra context, including lock-file lookups.
--quietfalseSuppress output. Exit code unchanged.
--alias—Comma-separated import_name=package_name aliases.
--directorycwdLimit the check to projects whose path matches this directory.

Examples

bash
# Standard CI gate
uv run poly check

# One project only
uv run poly check --directory projects/user_api

Common failure modes & Auto-Fixes

  1. Missing Brick Error: If the error says a brick imports another brick that isn't in [tool.polylith.bricks] → run poly sync (load polylith-sync).
  2. Missing Dependency Error: If the error says a brick imports a third-party library not listed in the project's dependencies → load polylith-dependency-management and add the library to the project's pyproject.toml.
  3. Version Drift Error: Under --strict, if versions of the same library diverge between projects → inspect pyproject.toml or load polylith-libs to find the drift, then align versions (or rely on a single root lock file).

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

Open the folder on GitHubat commit a7a80f2

Compare with similar skills

Polylith Check 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 Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Polylith Check this skillDavidVujic/python-polylith553—~972Automated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • 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.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    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.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    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.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    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.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    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 3 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 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

Categories

Questions about Polylith Check

What does Polylith Check do?

Validate a Polylith workspace with poly check — the canonical CI gate. Polylith Check is an agent skill from DavidVujic/python-polylith. Validate a Polylith workspace with poly check — the canonical CI gate.

When should I use Polylith Check?

Polylith Check fits situations like: the user wants to lint; CI-gate a Polylith workspace.

How do I install Polylith Check in Claude Code?

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

How do I install Polylith Check in Codex?

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

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

What does Polylith Check need to run?

Going by SKILL.md and its folder, Polylith Check needs the command-line tools its instructions call (uv, poetry and pytest).

Does Polylith Check 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 Check 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 Check use?

Polylith Check 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 Check use?

About 972 tokens (SKILL.md is roughly 3.9k 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 Check?

Skills that share tags, products or a category with Polylith Check: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Polylith Check?

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.