Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Flatten the component hierarchy v1.0.0

Use this resource to find and fix components misplaced in a codebase's hierarchy

New

  • 422 downloads
  • 128 likes
  • 195 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install component-hierarchy-flattening

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent walks the code structure, finds orphaned classes at the root of namespaces and proposes flattening strategies. It keeps components as leaf nodes of the tree. You get a list of classes to move and the steps to fix them.

Mostly picked by

Updated November 2, 2026

Card for the “Flatten the component hierarchy” skill

Details

Generates with
Your agent's model
Licence
CC-BY-4.0

Similar resources

View all

What you get

  • SKILL.md : analysis method and flattening strategies
  • QUICK-REFERENCE.md : quick reference of common cases
  • README.md : overview and examples

Good fit for

  • Business classes sit at the root of your project
  • You want to simplify a namespace hierarchy that is too deep

Not for

    Tags

    • hierarchy
    • components
    • namespaces
    • refactoring
    • architecture

    About

    You say

    “Find the orphaned classes in the root namespaces of this project and propose where they belong.”

    Card for the “Flatten the component hierarchy” skill

    Skill published by tech-leads-club under the CC-BY-4.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to find and fix components misplaced in a codebase's hierarchy
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.5 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • QUICK-REFERENCE.md5.2 KB
    • README.md15.6 KB
    • SKILL.md18.4 KB

    Origin and licence

    Listed unmodified

    Author
    tech-leads-club
    Source
    github.com/tech-leads-club/agent-skills/tree/738451e40785750a8e8de5bce8112675f5f0df02/packages/skills-catalog/skills/(architecture)/component-flattening-analysis
    Licence
    CC-BY-4.0

    Notice

    « component-flattening-analysis » (tech-leads-club, CC-BY-4.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.