Agent skill

Polylith Brick Removal

by DavidVujic in DavidVujic/python-polylith

Safely remove a Polylith brick (component or base) from the workspace.

MITAuto-check passed

Install Polylith Brick Removal

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

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

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

At a glance

Safely remove a Polylith brick (component or base) from the workspace.

  • Works in 5 steps: Delete the source code → Delete the tests → Remove from projects → …
  • The user wants to delete
  • SKILL.md covers Steps to remove a brick and Notes for the agent
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Polylith Brick Removal is an agent skill from DavidVujic/python-polylith. Safely remove a Polylith brick (component or base) from the workspace. Use when the user wants to delete, remove, or tear down a component or base.

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

  • The user wants to delete
  • Tear down a component

Example prompts

  • “/polylith-brick-removal”

Workflow steps

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

  1. Delete the source code
  2. Delete the tests
  3. Remove from projects
  4. Remove from the development project
  5. Sync and Check

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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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 Brick Removal loads about 378 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 172 words of instructions outside code blocks.

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

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). 172 words, ~378 tokens.

Download SKILL.mdSave it as .claude/skills/polylith-brick-removal/SKILL.md (or your agent's skills folder).
name
polylith-brick-removal
description
Safely remove a Polylith brick (component or base) from the workspace. Use when the user wants to delete, remove, or tear down a component or base.

Brick Removal Skill

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

There is no poly remove CLI command. Removing a brick is a manual process.

Steps to remove a brick

  1. Delete the source code: Delete the brick's directory under components/<namespace>/<name> or bases/<namespace>/<name>.
  2. Delete the tests: Delete the brick's test directory under test/components/<namespace>/<name> or test/bases/<namespace>/<name>.
  3. Remove from projects: Search across all projects/*/pyproject.toml files and remove the brick from the [tool.polylith.bricks] section.
  4. Remove from the development project: Remove the brick from the [tool.polylith.bricks] section in the root pyproject.toml (the development project).
  5. Sync and Check: Run poly sync (load polylith-sync) and poly check (load polylith-check) to ensure the workspace is valid and no other bricks were importing the deleted brick.

Notes for the agent

  • Always use your directory and file tools to verify the paths before deleting.
  • If poly check fails after removal, it means another brick was depending on the removed brick. You must fix the importing brick.

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

Open the folder on GitHubat commit a7a80f2

Compare with similar skills

Polylith Brick Removal 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 Brick Removal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Polylith Brick Removal this skillDavidVujic/python-polylith553—~378Automated safety check: PassMIT
Safe Removesd0xdev/sd0x-harness192—~1.5kAutomated safety check: PassMIT
Dead Code Removercode-yeongyu/oh-my-openagent70k—~1.8kAutomated safety check: PassCustom licence
Remove Bg AutomationComposioHQ/awesome-claude-skills77k3 repos~738Automated safety check: PassNone
Remove AI Slopscode-yeongyu/oh-my-openagent70k—~5.3kAutomated safety check: PassCustom licence
Safe PushJetBrains/intellij-community21k—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Safe Remove

    sd0xdev/sd0x-harness

    Safely remove plugin assets (skill/agent/rule/script/hook) with dependency detection and reference cleanup.

    192 GitHub stars~1.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Dead Code Remover

    code-yeongyu/oh-my-openagent

    Finds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents.

    70k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Remove Bg Automation

    ComposioHQ/awesome-claude-skills

    Automate Remove Bg tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Remove AI Slops

    code-yeongyu/oh-my-openagent

    Removes AI-generated code smells from branch changes or an explicit file list behind regression tests.

    70k GitHub stars~5.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Safe Push

    JetBrains/intellij-community

    Official

    Push IntelliJ repository changes through the Safe Push workflow.

    21k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Safe Refactor

    JuliusBrussee/caveman

    Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.

    111k GitHub starsUsed in 1 repo~177 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 5 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 5 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 5 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 5 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 5 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 5 days ago
    Auto-check passed

Questions about Polylith Brick Removal

What does Polylith Brick Removal do?

Safely remove a Polylith brick (component or base) from the workspace. Polylith Brick Removal is an agent skill from DavidVujic/python-polylith. Safely remove a Polylith brick (component or base) from the workspace.

When should I use Polylith Brick Removal?

Polylith Brick Removal fits situations like: the user wants to delete; tear down a component.

How do I install Polylith Brick Removal in Claude Code?

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

How do I install Polylith Brick Removal in Codex?

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

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

What does Polylith Brick Removal need to run?

SKILL.md names no scripts, command-line tools or credentials: Polylith Brick Removal is instructions for the agent only.

Does Polylith Brick Removal access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Polylith Brick Removal 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 Brick Removal use?

Polylith Brick Removal 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 Brick Removal use?

About 378 tokens (SKILL.md is roughly 1.5k 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 Brick Removal?

Skills that share tags, products or a category with Polylith Brick Removal: Safe Remove (sd0xdev/sd0x-harness, 192 stars), Dead Code Remover (code-yeongyu/oh-my-openagent, 70k stars), Remove Bg Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Remove AI Slops (code-yeongyu/oh-my-openagent, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Polylith Brick Removal?

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.